Required Resources
Always load before coding:
- •
references/development_checklist.md - •
references/elixir_best_practices.md - •
references/typescript_best_practices.md - •
references/definition_of_done.md - •
references/validation.md - •
assets/templates/phase_execution_record_template.md - •Optional calibration example:
assets/examples/phase_execution_example_docs_import.md
Workflow
- •Read
prd.md,fdd.md,plan.md, and relevantdesign/*.mdfor the target phase. - •Preflight gate: run
.agents/scripts/spec_validate.sh --slug <feature_slug> --check allbefore coding. - •Hard gate: if preflight validation fails, stop implementation, fix spec docs, and re-run until it passes.
- •Use
assets/templates/phase_execution_record_template.mdas a tracking block while implementing. - •Implement phase-scoped tasks only; add/update tests with code changes.
- •Run compile/tests and mandatory self-review loop; fix findings.
- •Sync spec docs when implementation diverges.
- •Postflight gate: run
.agents/scripts/spec_validate.sh --slug <feature_slug> --check allafter implementation and doc updates. - •Hard gate: if postflight validation fails, the run is not complete; fix docs and re-run until it passes.
- •If validation cannot run, instruct the user to run it and report blockers.
Validation Gate
- •Preflight: execute
.agents/scripts/spec_validate.sh --slug <feature_slug> --check allbefore coding. - •Postflight: execute
.agents/scripts/spec_validate.sh --slug <feature_slug> --check allafter implementation and spec updates. - •If either validation run fails, stop and fix docs before proceeding.
- •Execute the command directly when environment access allows; do not merely suggest it.
Self-Review Requirement
- •Run at least one
self_reviewround after tests execute. - •Resolve high/medium findings before completion.
- •Cap at 3 review/fix rounds.
Output Contract
- •Report implemented phase, key files changed, tests run, and validation status.