| name | construction-build-and-test |
| description | Generate build instructions and comprehensive test strategy for all units. |
| argument-hint | null |
| disable-model-invocation | true |
| model | opus |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash(ls *), Bash(find *), Bash(mkdir *), Bash(npm *), Bash(npx *), Bash(bun *), Bash(cargo *), Bash(go *), Bash(python *), Bash(pip *), Bash(mvn *), Bash(gradle *) |
AI-DLC: Build and Test (Construction)
ultrathink
Generate comprehensive build and test instructions for all units. This stage runs once after all units complete code generation.
Prerequisites Check
- Read
aidlc-docs/aidlc-state.md — verify Code Generation is complete for ALL units
- If any unit incomplete: Inform user which units need code generation. STOP.
- Log stage start in
aidlc-docs/audit.md
Execution
Follow build-and-test-detail.md:
Analysis
- Analyze testing requirements — determine appropriate strategy:
- Unit tests (already generated per unit)
- Integration tests (between units/services)
- Performance tests (if NFR requirements defined)
- E2E tests, contract tests, security tests (as needed)
Generate Instructions
- Build instructions →
aidlc-docs/construction/build-and-test/build-instructions.md
- Prerequisites, dependencies, build steps, verification, troubleshooting
- Unit test instructions →
aidlc-docs/construction/build-and-test/unit-test-instructions.md
- Integration test instructions →
aidlc-docs/construction/build-and-test/integration-test-instructions.md
- Performance test instructions (if applicable) →
aidlc-docs/construction/build-and-test/performance-test-instructions.md
- Additional tests (as needed):
- contract-test-instructions.md
- security-test-instructions.md
- e2e-test-instructions.md
Summary
- Generate test summary →
aidlc-docs/construction/build-and-test/build-and-test-summary.md
Completion
- Update
aidlc-state.md — mark Build and Test complete
- Present comprehensive results:
- Build status
- Test results per category
- Generated files list
- WAIT for user approval: "Ready to proceed to Operations stage?"
- Log in audit.md
Reference Files
Critical Rules
- This runs ONCE for ALL units (not per-unit)
- Code Generation must be complete for ALL units before starting
- Generate appropriate test types based on project complexity
- Append to audit.md — never overwrite