requirement-workflow

State-machine driven orchestrator for structured software development. Use when user wants to build a feature, fix a bug, implement something substantial, refactor code, or develop new functionality. Triggers on: '开发功能', '实现这个', 'build this feature', 'implement', 'add new module'. Creates workflow in .trae/workflow/ with stages: ANALYZING → PLANNING → DESIGNING → IMPLEMENTING → TESTING → DELIVERING.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "requirement-workflow" with this command: npx skills add learnwy/skills/learnwy-skills-requirement-workflow

Requirement Workflow Orchestrator

State-machine driven development workflow with agent/skill injection support.

Execution Flow

1. ANALYZE & SELECT LEVEL → Run init-workflow.sh
2. STAGE LOOP → Run advance-stage.sh for each stage
3. CREATE DOCUMENTS → spec.md → tasks.md → design.md → checklist.md → report.md

Step 1: Analyze & Select Level

LevelConditionDoc Depth
L1≤3 files, quick fixBrief + simple
L24-15 files, standard featureFull PRD + design
L3Security/cross-module/breakingComprehensive

Step 2: Initialize Workflow

{skill_root}/scripts/init-workflow.sh -r <project_root> -n <name> -t <type> -l <level>

Types: feature, bugfix, refactor, hotfix

Step 3: Execute Stage Loop

For EACH stage:

A. Run: {skill_root}/scripts/advance-stage.sh -r <project_root>
B. Check for injected agents (pre_stage/post_stage)
C. Create stage document
D. Repeat until status = DONE

Stage Documents

StageDocumentContent
ANALYZINGspec.mdRequirements, scope
PLANNINGtasks.mdTask breakdown
DESIGNINGdesign.mdTechnical design
IMPLEMENTINGCodeImplementation
TESTINGchecklist.mdTest checklist
DELIVERINGreport.mdSummary report

Scripts

ScriptPurpose
init-workflow.shInitialize workflow
advance-stage.shAdvance to next stage
get-status.shCheck current status
inject-agent.shAdd agent injection
generate-report.shGenerate final report

Example

User: "Add user authentication feature"

$ {skill_root}/scripts/init-workflow.sh -r /project -n "user-auth" -t feature -l L2
✅ Created: .trae/workflow/20240115_001_feature_user-auth/

$ {skill_root}/scripts/advance-stage.sh -r /project
✅ Transitioned to ANALYZING
🤖 Injected: risk-auditor (pre_stage)

[Create spec.md...]

$ {skill_root}/scripts/advance-stage.sh -r /project
✅ Transitioned to PLANNING
...

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

memory-manager

No summary provided by upstream source.

Repository SourceNeeds Review
General

english-learner

No summary provided by upstream source.

Repository SourceNeeds Review
General

trae-rules-writer

No summary provided by upstream source.

Repository SourceNeeds Review
Research

knowledge-consolidation

No summary provided by upstream source.

Repository SourceNeeds Review
requirement-workflow | V50.AI