A project template for AI-assisted refinement and development that enforces traceability between requirements, code, and tests.
When using AI coding assistants, it's easy to lose track of:
- What requirements exist and their current state
- Which requirements have test coverage
- How requirements evolved over time
This template provides:
- Structured requirements in REQUIREMENTS.md with trackable IDs (
[REQ-XXX-N]) - Architecture documentation in ARCHITECTURE.md
- Static instructions in CLAUDE.md for agent guidance
- Test-to-requirement linking via
Covers: REQ-XXX-Ncomments - Coverage reporting to identify untested requirements
- Ask your coding agent to "apply instructions from https://github.com/aleksandrov/instructions".
- Review changes made in your repository.
The template instructs Claude to work in one of two modes based on priority:
- Development mode takes priority if
TODOsection has items - Refinement mode runs only if
TODOsection is empty - Drafts section provides context but isn't processed
- Write draft ideas in
Draftssection of TODO.md (optional, for context) - Move ideas you want refined to
Refinementsection of TODO.md - Ask agent to 'follow instructions'
- Agent refines ideas into structured requirements in
TODOsection - Edit/adjust requirements as needed
- Ask agent to 'follow instructions' again
- Agent implements requirements from
TODOsection and moves them to REQUIREMENTS.md
The agent:
- Reads requirements from
TODOsection of TODO.md - Implements them with test coverage
- Tracks requirement coverage before/after
- Adds implemented requirements to REQUIREMENTS.md with IDs
- Updates ARCHITECTURE.md if architectural changes made
- Clears
TODOsection
The agent:
- Reads ideas from
Refinementsection of TODO.md - Researches best practises and similar projects
- Creates structured requirements
- Writes them to
TODOsection for implementation - Clears
Refinementsection
Let us know about your experience!