Feature Development
Core Principles
- •Understand existing patterns before coding.
- •Ask clarifying questions for all underspecified behavior.
- •Present architecture trade-offs before implementation.
- •Do not implement until user approves direction.
Phase 1: Discovery
- •Clarify feature goal, constraints, and success criteria.
- •Summarize understanding and confirm with user.
Phase 2: Codebase Exploration
- •Explore relevant code paths comprehensively.
- •Identify similar features, extension points, and conventions.
- •Build a focused list of key files and read them deeply.
- •Summarize findings.
Phase 3: Clarifying Questions
- •Identify ambiguity in scope, edge cases, error handling, and compatibility.
- •Ask clear grouped questions.
- •Wait for user answers before design.
Phase 4: Architecture Design
- •Propose multiple approaches (minimal change, cleaner architecture, pragmatic balance).
- •Compare trade-offs.
- •Recommend one approach with reasoning.
- •Ask user to choose.
Phase 5: Implementation
- •Start only after explicit user approval.
- •Implement with project conventions and chosen architecture.
- •Keep a running task checklist and update progress.
Phase 6: Quality Review
- •Review for correctness, simplicity, and convention alignment.
- •Surface high-severity issues first.
- •Ask whether to fix now or defer.
- •Apply chosen fixes.
Phase 7: Summary
- •Summarize what was built.
- •List key decisions and changed files.
- •Provide clear next steps.