npx claudepluginhub mateon01/aidlc-for-claude --plugin aidlc-for-claude# AI-DLC: Code Generation (CONSTRUCTION Stage 5)
Generate code from approved design artifacts. Two-part: Planning then Execution.
## Execution
1. Load common rules from the `/aidlc` orchestrator command
2. This stage ALWAYS executes for each unit
### Part 1: Planning
3. Delegate to the `aidlc-code-planner` agent via Task tool (model: opus)
4. Pass context: aidlc-state.md, all design artifacts for the unit, RE artifacts (if brownfield)
5. Agent creates code plan in `aidlc-docs/construction/plans/{unit-name}-code-generation-plan.md`
6. Present approval gate for the plan
### Part 2: Execu...Generate code from approved design artifacts. Two-part: Planning then Execution.
/aidlc orchestrator commandaidlc-code-planner agent via Task tool (model: opus)aidlc-docs/construction/plans/{unit-name}-code-generation-plan.mdaidlc-code-generator agent via Task tool (model: sonnet)# Part 1
Task(subagent_type="aidlc-for-claude:aidlc-code-planner", model="opus",
prompt="Create code generation plan for unit [unit-name]. [context]")
# Part 2
Task(subagent_type="aidlc-for-claude:aidlc-code-generator", model="sonnet",
prompt="Execute the approved code plan for unit [unit-name]. [context]")