// This skill should be used when the user asks about "DERIVE workflow", "effective development methodology", "research-backed approach", "structured development", "how to approach this task", or wants guidance on planning and executing software development tasks systematically. Provides the complete DERIVE methodology with research-backed evidence for each phase.
| name | DERIVE Methodology |
| description | This skill should be used when the user asks about "DERIVE workflow", "effective development methodology", "research-backed approach", "structured development", "how to approach this task", or wants guidance on planning and executing software development tasks systematically. Provides the complete DERIVE methodology with research-backed evidence for each phase. |
| version | 1.0.0 |
A research-backed workflow for effective AI-assisted software development. DERIVE improves outcomes through structured phases, persistent documentation artifacts, and iterative refinement.
Research shows structured workflows dramatically outperform ad-hoc prompting:
| Technique | Improvement | Source |
|---|---|---|
| Self-planning before code | +25.4% Pass@1 | Jiang et al., 2023 |
| Iterative refinement | +20% to +63% | Self-Refine, CYCLE |
| Compiler/execution feedback | +80% | CoCoGen |
| Document-based communication | +67% executability | MetaGPT (ICLR 2024) |
| Testing phase | -17% to -56% without | LCG Study |
Critically, one RCT found AI slowed experienced developers by 19% when they skipped exploration and context-gathering. DERIVE prevents this.
Break complex tasks into atomic, testable sub-tasks before implementation.
Why it works: Self-planning research shows +25.4% Pass@1 improvement. Complex problems see up to +61.5% relative gains when decomposed first.
How to decompose:
.derive/plan.mdAnti-patterns:
Understand existing code before proposing changes.
Why it works: The productivity RCT found 19% slowdown when developers skipped exploration. Understanding context first avoids wasted effort and incorrect assumptions.
How to explore:
Explore agent for deep codebase researchAnti-patterns:
Apply explicit chain-of-thought for complex decisions.
Why it works: Chain-of-thought prompting is foundational to LLM reasoning. Explicit reasoning catches errors and produces better architectural decisions.
How to reason:
.derive/decisions.mdAnti-patterns:
Build bottom-up with minimal, focused changes.
Why it works: The Guided Code Generation framework achieved +23.79% improvement by implementing leaf nodes first and composing upward. Minimal changes reduce bug surface.
How to implement:
.derive/progress.md after each completed unitAnti-patterns:
Execute, test, and verify with real feedback.
Why it works: Research shows removing testing causes -17% to -56% degradation. Compiler/execution feedback provides +80% improvement over static generation.
How to validate:
.derive/spec.mdderive:validator agent for systematic validationAnti-patterns:
Iterate based on feedbackโoptimal at 2-3 cycles.
Why it works: Self-Refine shows +20% improvement from iteration. CYCLE achieves up to +63.5% with feedback loops. Diminishing returns after 2-3 iterations.
How to evolve:
Anti-patterns:
DERIVE uses four artifacts in .derive/ for session continuity and structured handoffs:
| Artifact | Purpose | Updated During |
|---|---|---|
spec.md | Requirements & acceptance criteria | Start, Evolve |
plan.md | Decomposed tasks & architecture | Decompose, Reason |
progress.md | Current state & completed work | All phases |
decisions.md | Key choices with rationale | Reason, Evolve |
Why artifacts matter: MetaGPT found document-based communication produces +67% better executability than dialogue, -49% tokens, and -67% fewer human revisions. Artifacts also enable session continuity across compacts.
Use DERIVE for:
Skip DERIVE for:
DERIVE complements Claude Code's built-in agents:
DERIVE Workflow:
โโโโโโโโโโโโโโโ
โ 1. DECOMPOSEโ โ Break into atomic tasks โ plan.md
โโโโโโโโโโโโโโโค
โ 2. EXPLORE โ โ Understand existing code
โโโโโโโโโโโโโโโค
โ 3. REASON โ โ Explicit decision-making โ decisions.md
โโโโโโโโโโโโโโโค
โ 4. IMPLEMENTโ โ Bottom-up, minimal changes โ progress.md
โโโโโโโโโโโโโโโค
โ 5. VALIDATE โ โ Test against spec.md
โโโโโโโโโโโโโโโค
โ 6. EVOLVE โ โ Iterate 2-3 cycles
โโโโโโโโโโโโโโโ
For detailed research citations and paper links:
references/papers.md - Full citations with links to 15+ arxiv papersFor advanced guidance:
references/autonomy-levels.md - Research-backed autonomy calibration per phasereferences/feedback-loops.md - Compiler, test, and self-reflection feedback integrationreferences/metrics.md - Success metrics and validation against researchFor commands to execute DERIVE workflow:
/derive:start <task> - Initialize workflow with new task/derive:approve-spec - Mandatory checkpoint before implementation (+61% productivity)/derive:continue - Resume after compact or new session/derive:status - Check current progressFor specialized agents:
derive:architect - Task decomposition and implementation planningderive:tdd - Test-driven development (RED-GREEN-REFACTOR cycle)derive:validator - Systematic validation against spec