| name | workflow-orchestrator |
| description | Orchestrate the six-stage development workflow. Use when user asks "what stage am I at?", "what''s next?", "workflow status", "where should I start?", "ๅทฅไฝๆต็จ", "ไธไธๆญฅๆฏไป้บผ", "ๆๅจๅชๅ้ๆฎต", or wants guidance on the development process. Detects current state by checking changes/ folder and guides users through brainstorm โ spec โ plan โ tdd โ review โ archive stages. Use when this capability is needed. |
| metadata | {"author":"forgivesam168"} |
Workflow Orchestrator
๐ฏ Purpose: Detect current workflow stage and guide users through the six-stage development process with clear Agent recommendations.
When to Use This Skill
Use this skill when:
- Starting a new feature and unsure where to begin
- Wondering "what's next?" after completing a stage
- Need to check current workflow status
- Want to understand the overall development flow
- ๆณ็ฅ้็ฎๅๅจๅชๅ้ๆฎต
- ไธ็ขบๅฎไธไธๆญฅ่ฉฒๅไป้บผ
Six-Stage Workflow Overview
1. Brainstorm โ 2. Spec โ 3. Plan โ 4. TDD โ 5. Review โ 6. Archive
Standard Path (Med/High risk):
Brainstorm โ Spec โ Plan โ TDD โ Review โ Archive
Fast Path (Low risk only):
Brainstorm โ Plan โ TDD โ Review โ Archive
(skip Spec)
Current State Detection
Step 1: Check Changes Folder
Look for changes/<YYYY-MM-DD>-<slug>/ directory and check which files exist:
| File Present | Stage Completed | Next Stage | Recommended Action |
|---|
| None | Not started | Brainstorm | Start with brainstorming |
01-brainstorm.md | Brainstorm โ
| Spec | Generate specification |
03-spec.md | Spec โ
| Plan | Create implementation plan |
04-plan.md | Plan โ
| TDD | Start TDD implementation |
| Code changes (git diff) | TDD in progress/done | Review | Run code review |
05-review.md | Review โ
| Archive | Finalize and archive |
99-archive.md | Complete ๐ | - | Start new feature |
Step 2: Provide Guidance
Based on detected stage, provide:
- โ
Current Status: Which stage is completed
- ๐ฏ Next Step: What to do next
- ๐ค Agent Recommendation: Which agent to use
- ๐ Action Instructions: Clear CLI/VS Code commands
- ๐ Reference: Link to detailed documentation
Stage-by-Stage Guidance
Stage 0: Not Started โ Brainstorm
Status: No change package detected
Next Step: Start brainstorming session
Recommended Agent: architect-agent or spec-agent
Action Instructions:
CLI:
Input: "ๆ่ฆ้ๅงไธๅๆฐๅ่ฝ็ brainstorming"
[System loads brainstorming skill]
โ /agent โ Select architect-agent or spec-agent
โ Continue conversation to generate 01-brainstorm.md
VS Code:
Input: /brainstorm
Or: "brainstorm a new feature"
โ Select @workspace #architect-agent
Triggers brainstorming skill: Risk classification, option exploration, decision log
Stage 1: Brainstorm โ
โ Spec
Status: 01-brainstorm.md exists, clarified requirements
Next Step: Generate specification document (PRD)
Recommended Agent: spec-agent
Action Instructions:
CLI:
Input: "็ข็ spec ๆไปถ"
[System loads specification skill]
โ /agent โ Select spec-agent
โ Continue conversation to generate 03-spec.md
VS Code:
Input: /spec
Or: "generate spec document"
โ Select @workspace #spec-agent
Triggers specification skill: User stories, acceptance criteria, technical requirements
Note: Low-risk changes can skip to Plan (Fast Path)
Stage 2: Spec โ
โ Plan
Status: 03-spec.md exists, requirements documented
Next Step: Break down into executable implementation plan
Recommended Agent: plan-agent
Action Instructions:
CLI:
Input: "ๅนซๆ่ฆๅๅฏฆไฝ่จ็ซ"
[System loads implementation-planning skill]
โ /agent โ Select plan-agent
โ Continue conversation to generate 04-plan.md
VS Code:
Input: /create-plan
Or: "create implementation plan"
โ Select @workspace #plan-agent
Triggers implementation-planning skill: Task breakdown, TDD integration, impact analysis
Stage 3: Plan โ
โ TDD
Status: 04-plan.md exists, tasks defined
Next Step: Start test-driven development implementation
Recommended Agent: coder-agent
Action Instructions:
CLI:
Input: "้ๅง TDD ๅฏฆไฝ"
[System loads tdd-workflow skill]
โ /agent โ Select coder-agent
โ Follow Red-Green-Refactor cycle
VS Code:
Input: /tdd
Or: "start TDD implementation"
โ Select @workspace #coder-agent
Triggers tdd-workflow skill: Red-Green-Refactor, test scaffolding, coverage verification
Stage 4: TDD Done โ Review
Status: Code changes detected (git status/diff shows modifications)
Next Step: Run code and security review
Recommended Agent: code-reviewer-agent
Action Instructions:
CLI:
Input: "review ๆ็ code"
[System loads code-security-review skill]
โ /agent โ Select code-reviewer-agent
โ Review checklist: DDD, security, financial precision
VS Code:
Input: /code-review
Or: "review my code"
โ Select @workspace #code-reviewer-agent
Triggers code-security-review skill: Code quality, security audit, financial correctness
Stage 5: Review โ
โ Archive
Status: 05-review.md exists, code reviewed and approved
Next Step: Finalize change package and create work log
Recommended Agent: Default agent (no specific agent required)
Action Instructions:
CLI:
Input: "archive ้ๅ change package"
[System loads work-archiving skill]
โ Generate 99-archive.md and update WORK_LOG.md
VS Code:
Input: /archive
Or: "finalize and archive"
Triggers work-archiving skill: Work log entry, lessons learned, follow-up items
Stage 6: Complete ๐
Status: 99-archive.md exists, change package archived
Next Step: Start new feature or celebrate! ๐
Action: Ready for next work item
- Run
/workflow for new feature
- Or: "ๆ่ฆ้ๅงๆฐ็ brainstorming"
Output Template
When user asks about workflow status, respond with:
## ๐ Current Workflow Status
### Detected State
- **Change Package**: `changes/<date>-<slug>/`
- **Completed Stages**: [List completed stages with โ
]
- **Current Stage**: [Current stage name]
### ๐ฏ Next Step: [Next stage name]
**What to do**: [Brief description]
**Recommended Agent**: `[agent-name]`
**Action Instructions**:
**CLI**:
[Provide exact CLI commands and natural language inputs]
**VS Code**:
[Provide slash command or natural language inputs]
### ๐ Progress Overview
- [x] Brainstorm
- [x] Spec
- [ ] Plan โ **You are here**
- [ ] TDD
- [ ] Review
- [ ] Archive
### ๐ Detailed Workflow
For complete workflow documentation, see [WORKFLOW.md](../../WORKFLOW.md)
Fast Path Decision Helper
If user asks "should I skip spec?", apply these rules:
| Risk Level | Criteria | Workflow Path |
|---|
| Low | Bug fix, minor refactor, config change | Fast Path (skip Spec) |
| Medium | New feature, API change, schema change | Standard Path (include Spec) |
| High | Security, auth, money handling, breaking change | Standard Path (mandatory) |
When in doubt: Use Standard Path (better safe than sorry)
Troubleshooting
"I don't see any changes/ folder"
Solution: You haven't started a change package yet. Begin with brainstorming:
- CLI: "้ๅง brainstorming"
- VS Code:
/brainstorm
"Multiple change folders exist"
Solution: Work on the most recent one (highest date). Archive old ones if completed.
"I want to skip a stage"
Solution:
- Low-risk only: Can skip Spec (brainstorm โ plan)
- Never skip: Brainstorm, Plan, TDD, Review (core safety net)
"Which agent should I use?"
Solution: Follow the "Recommended Agent" for each stage. If unsure, use the default agentโit will still work but may be less specialized.
Integration with Other Skills
This orchestrator skill works with:
- brainstorming: Stage 1
- specification: Stage 2
- implementation-planning: Stage 3
- tdd-workflow: Stage 4
- code-security-review: Stage 5
- work-archiving: Stage 6
Related Documentation
๐ก Pro Tip: Run workflow detection regularly by asking "what's next?" to stay on track and maintain momentum.
Converted and distributed by TomeVault โ claim your Tome and manage your conversions.