Build Feature
Implement features following established patterns. Read references/coding-patterns.template.md for codebase-specific patterns.
Workflow
1. Understand Scope
- •Read the design doc (primary input)
- •Check if implementation plan exists
- •Identify files to create/modify
2. Plan (if no impl plan exists)
- •Analyze similar features in codebase
- •Deeply think & plan feature
- •Write approved plan to designated location
- •If no plan file exists and you are not in plan mode, notify user to switch to plan mode
- •Implement your plan
- •Verify with build & lint commands
3. When you finish, Review & Re-iterate
Launch 2 agents in parallel using the Task tool with different focuses:
- •code-simplifier agent: Code quality and maintainability, focus on re-use without compromising human readability (simplicity/DRY/elegance)
- •code-reviewer agent: Functional correctness and logic errors (bugs/correctness)
Rules
- •Never introduce new patterns without discussion
- •Never use
anytypes - define interfaces - •Add comments only when code cannot express intent
- •Follow existing patterns in the codebase