| name | project-workflow |
| description | Project development workflow patterns including Plan-Build-Review-Fix cycle and feature development processes. |
| triggers | ["workflow","cycle","process","development flow","feature flow"] |
Project Workflow Skill
Overview
This skill defines the development workflow patterns for the Codebase Singularity framework, including the core Plan-Build-Review-Fix cycle and feature development processes.
Core Workflow: Plan-Build-Review-Fix
The foundational workflow for all development:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโ
โ โ PLAN โโโโโบโ BUILD โโโโโบโ REVIEW โโโโโบโ FIX โโ
โ โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโฌโโโโโโ
โ โฒ โ โ
โ โ Loop until โ โ
โ โโโโโโโโโโโโโ quality passes โโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Phase 1: Plan
Command: /plan [feature]
Agent: planner
Activities:
- Understand requirements
- Analyze existing code
- Research solutions
- Design architecture
- Create implementation plan
Output: specs/[feature]-plan.md
Phase 2: Build
Command: /build
Agent: builder
Activities:
- Read implementation plan
- Create/modify files
- Write core logic
- Add error handling
- Create basic tests
Output: Working code + tests
Phase 3: Review
Command: /review
Agent: reviewer
Activities:
- Check code quality
- Verify logic correctness
- Security analysis
- Performance check
- Test coverage check
Output: specs/reviews/[date]-review.md
Phase 4: Fix
Command: /fix
Agent: fixer
Activities:
- Address review findings
- Fix issues by priority
- Verify fixes
- Re-run affected tests
Output: Fixed code + verification
Workflow Patterns
Feature Development
1. /prime # Load context
2. /plan # Design feature
3. /build # Implement
4. /review # Quality check
5. /fix # Address issues
6. [Repeat 4-5 until passing]
7. git commit # Save work
Bug Fix
1. /prime # Load context
2. [Investigate bug] # Understand issue
3. /plan bugfix # Plan the fix
4. /fix # Implement fix
5. /review # Verify fix
6. git commit # Save work
Refactoring
1. /prime # Load context
2. /review # Identify issues
3. /plan refactor # Plan changes
4. /build # Implement refactor
5. /review # Verify improvement
6. git commit # Save work
Complete Cycle Command
Command: /cycle [feature]
Runs the complete Plan-Build-Review-Fix cycle:
Step 1: Planning
โโโ Read requirements
โโโ Analyze codebase
โโโ Create plan
โโโ Get approval
Step 2: Building
โโโ Implement plan
โโโ Create tests
โโโ Show progress
Step 3: Reviewing
โโโ Quality check
โโโ Security check
โโโ Generate report
Step 4: Fixing (if needed)
โโโ Address findings
โโโ Verify fixes
โโโ Re-review
Step 5: Complete
โโโ Summary
โโโ Files changed
โโโ Next steps
Quality Gates
Before Building
Before Committing
Before Release
Agent Coordination
Single Agent Tasks
| Task | Agent |
|---|
| Create plan | planner |
| Write code | builder |
| Review code | reviewer |
| Fix issues | fixer |
| Write tests | test-writer |
| Fetch docs | doc-fetcher |
| Security check | security-auditor |
| Improve code | refactorer |
Multi-Agent Workflows
Feature Development:
planner โ builder โ test-writer โ reviewer โ fixer
Security Audit:
reviewer โ security-auditor โ fixer โ reviewer
Documentation:
doc-fetcher โ builder (docs) โ reviewer
Workflow Commands Reference
| Command | Purpose |
|---|
/prime | Initialize session |
/plan | Create implementation plan |
/build | Build from plan |
/review | Review code quality |
/fix | Fix review issues |
/cycle | Complete workflow |
/orchestrate | Multi-agent coordination |
/delegate | Direct agent invocation |
Best Practices
Planning
- Be thorough but concise
- Consider edge cases early
- Plan for testing
- Identify risks upfront
Building
- Follow the plan
- Write clean code
- Test as you go
- Ask when unclear
Reviewing
- Be constructive
- Provide solutions
- Prioritize findings
- Acknowledge good work
Fixing
- Fix one issue at a time
- Verify each fix
- Don't introduce new issues
- Document changes
Workflow Troubleshooting
Plan Not Detailed Enough
- Ask for clarification
- Review similar features
- Break into smaller steps
Build Taking Too Long
- Break into smaller pieces
- Check for blockers
- Review plan scope
Review Finding Many Issues
- Don't panic
- Prioritize by severity
- Fix incrementally
- Learn from feedback
Fix Introducing New Issues
- Roll back changes
- Fix one at a time
- Increase test coverage
- Get second review