/develop Command
Build features through structured phases with validation gates. The/develop command implements the RPI (Research > Plan > Implement) pattern with built-in confidence scoring and approval gates.
Syntax
The
/develop command delegates to the orchestrator agent, which has memory and spans multiple phases.The Four-Phase Workflow
Phase 1: Research
Explore the codebase to understand scope and constraints.Activities:
- Find all relevant files and existing patterns
- Check dependencies and constraints
- Score confidence across 5 dimensions (0-100)
- Scope clarity (0-20): Know exactly what files change?
- Pattern familiarity (0-20): Similar patterns exist?
- Dependency awareness (0-20): Know what depends on changed code?
- Edge cases (0-20): Can identify the edge cases?
- Test strategy (0-20): Know how to verify?
- Score ≥ 70 → Present research findings and move to Phase 2
- Score < 70 → Identify gaps, gather more context, re-score
Phase 2: Plan
Present a detailed plan for approval.Plan Format:Approval Gate:
Wait for “proceed” or “approved” before continuing.
Phase 3: Implement
Execute the approved plan with regular checkpoints.Workflow:
- Make changes in plan order
- Run tests after each file change
- Pause for review every 5 edits
- Run full quality gates at the end (lint, typecheck, test)
Phase 4: Review & Commit
Final review and commit with conventional format.Checklist:
- Self-review all changes for issues
- Check for console.log, TODOs, secrets
- Present summary for final approval
- Commit with conventional message
- What corrections were made during implementation?
- Any patterns worth adding to LEARNED?
- Format:
[LEARN] Category: Rule
Confidence Scoring Example
Task: Add rate limiting to /api/loginWhen to Use /develop
- Use /develop
- Skip /develop
Multi-file changes:
- Features touching 3+ files
- Refactors with cross-cutting concerns
- New subsystems or modules
- Database migrations
- API contract changes
- Authentication/authorization logic
- Working with new libraries
- Implementing patterns you haven’t used before
- Making architectural decisions
Integration with Orchestrator Agent
The/develop command delegates to the orchestrator agent:
- Memory enabled: Orchestrator remembers context across phases
- Full tool access: Can read, edit, and run commands
- Skill preloading: Project patterns loaded automatically
Quality Gates
Phase 3 (Implement) runs quality gates at the end:Quality gate commands are configurable in
config.json. See Quality Gates Configuration.Example Session
Best Practices
Trust the Research Phase
Don’t skip research even if you think you know the codebase. Low confidence scores catch surprises.
Wait for Approval
Always review the plan before proceeding. It’s easier to adjust plans than to refactor code.
Pause at Checkpoints
Review progress every 5 edits. Catch mistakes early before they compound.
Capture Learnings
After completing, run
/learn-rule to capture any corrections or patterns discovered.Troubleshooting
Research phase takes too long
Research phase takes too long
If research is slow:
- Use Task agent with confidence scoring
- Provide file hints in the feature description
- Narrow scope to specific subsystems
Plan keeps getting rejected
Plan keeps getting rejected
If plans aren’t landing:
- Be more specific in feature description
- Provide examples of desired behavior
- Reference existing similar features
Quality gates failing
Quality gates failing
If quality gates consistently fail:
- Run gates manually before
/develop - Fix existing issues first
- Adjust gate commands in config.json
Related Commands
/commit
Manual commit after Phase 4
/wrap-up
End session after /develop
/replay
Surface learnings before /develop
/learn-rule
Capture patterns after /develop
Next Steps
- Read Multi-Phase Development concept
- Learn about Orchestrator Agent
- Configure Quality Gates