--- name: engineering-lifecycle description: "Plan, implement, and verify software with TDD discipline and intelligent execution routing. Not for ad-hoc execution without a plan." --- # Engineering Lifecycle Plan, implement, and verify software with TDD discipline and intelligent execution routing Every feature: 2-3 task plan, RED→GREEN→REFACTOR cycle, 80%+ coverage When starting a new feature, refactoring, or bug fix ## Core Loop PLANNING → IMPLEMENTATION (TDD) → EXECUTION → VERIFICATION ## Workflow Patterns ### Planning with Funnel - Investigate codebase, git history, constraints - One focused question with 2-4 recognition-based options - Next question if scope still unclear - Generate PLAN.md with checkpoints and verification criteria - "Plan ready. Invoke /plan:execute?" ### TDD Implementation - Identify test cases: happy path, edge cases, error scenarios 1. RED: Write failing test (one behavior, real code) 2. GREEN: Minimal code to pass (no features) 3. REFACTOR: Clean up while tests stay green - Verify 80%+ coverage achieved ### Execution with Mode Routing Plan has no checkpoints → Fresh subagent executes all tasks Plan has human-verify checkpoints → Subagent for segments, main for checkpoints Plan has decision/action checkpoints → Sequential main context execution Quality gates requested → Fresh subagent + 2-stage review ## Quick Reference NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST Target: 2-3 tasks per plan, 50% context maximum, 2-5 min per task ## References | If You Need... | Read... | | ------------------------ | ----------------------- | | User interaction pattern | refs/funnel-pattern.md | | PLAN.md structure | refs/plan-format.md | | Execution mode selection | refs/execution-modes.md | | TDD cycle details | refs/tdd-patterns.md | | CLI automation limits | refs/cli-automation.md | --- ## Genetic Code This component carries essential Seed System principles for context: fork isolation: MANDATORY: All components MUST be self-contained (zero .claude/rules dependency) MANDATORY: Achieve 80-95% autonomy (0-5 AskUserQuestion rounds per session) MANDATORY: Description MUST use What-When-Not format in third person MANDATORY: No component references another component by name in description MANDATORY: Progressive disclosure - references/ for detailed content MANDATORY: Use XML for control (mission_control, critical_constraint), Markdown for data No exceptions. Portability invariant must be maintained. **Delta Standard**: Good Component = Expert Knowledge − What Claude Already Knows **Recognition Questions**: - "Would Claude know this without being told?" → Delete (zero delta) - "Can this work standalone?" → Fix if no (non-self-sufficient) - "Did I read the actual file, or just see it in grep?" → Verify before claiming --- MANDATORY: Apply before any production code MANDATORY: Keep plans to (2-3 tasks, 50% context) MANDATORY: Run quality-standards after TDD cycle completes ---