Format: ~15 min instruction + hands-on lab time
If you accomplish all five, you're ahead of most professional developers using AI.
Turning plans into code
PRD --> Plans --> Roadmaps --> ???
(what) (how) (checklist) (CODE)
You have the planning docs. Now we turn them into working software.
Review @context.md. Implement the roadmap
at ai/roadmaps/[your-roadmap].md.
AI will:
What you do:
Did AI build what we planned?
Verification implements the Law of Witnesses — a second perspective to ensure truth and correctness.
After implementation, verify against the roadmap.
Review the roadmap at ai/roadmaps/[your-roadmap].md.
Check off what was completed from phase 1.
Flag anything that was missed or implemented
differently than planned.
Don't make any code changes — just report.
AI will:
You review:
After verification, update the roadmap:
Update the roadmap to reflect what was completed.
Add notes on any changes from the original plan.
Mark phase 1 as complete if everything checks out.
The prompt sequence you'll use every time you implement from a roadmap:
Step 1 — Review Context
Review @context.md and the roadmap at ai/roadmaps/[your-roadmap].md.
Step 2 — Implement
Implement phase [N] of the roadmap.
Follow the architecture in aiDocs/architecture.md
and coding style in aiDocs/coding-style.md.
Check off tasks in the roadmap as you complete them.
Step 3 — Verify with a Sub-Agent
Deploy a sub-agent to verify all implementation from phase [N].
Compare what was built against the roadmap requirements.
Flag anything missed or implemented differently than planned.
Don't make code changes — just report.
Step 4 — Archive When Complete
Once all phases are done and verified:
Move both the plan and roadmap to ai/roadmaps/completed/
The full loop
"When AI can test itself, you have the full loop."
AI implements --> AI tests --> AI reads output --> AI fixes
^ |
└──────────────────────────────────────────────────┘
Without CLI scripts, YOU are the bottleneck.
Create CLI scripts in scripts/ that exercise
the features we just built.
Each script should:
- Accept inputs as command-line arguments
- Run the feature
- Output JSON results to stdout
- Use proper exit codes (0 = success, non-zero = failure)
- Send errors to stderr
scripts/
├── build.sh # Compile/build the project
├── test.sh # Run all tests
├── run.sh # Run the application
└── dev.sh # Start dev server (optional)
Minimum viable set: build.sh and test.sh
AI can run your entire workflow from the command line
#!/bin/bash
echo "Building project..."
./scripts/build.sh || { echo '{"status":"fail","step":"build"}' >&2; exit 1; }
echo "Running tests..."
if npm test 2>&1; then
echo '{"status": "pass", "message": "All tests passed"}'
exit 0
else
echo '{"status": "fail", "message": "Tests failed"}' >&2
exit 1
fi
Shell scripts don't work on all machines.
For Windows/Mac compatibility, consider Node.js scripts:
// scripts/test.js
const { execSync } = require('child_process');
try {
execSync('npm test', { stdio: 'inherit' });
console.log(JSON.stringify({ status: 'pass' }));
process.exit(0);
} catch (err) {
console.error(JSON.stringify({ status: 'fail', error: err.message }));
process.exit(1);
}
Run with: node scripts/test.js
Run and validate
# Build first
./scripts/build.sh
# Then test
./scripts/test.sh
AI reads the output and knows:
1. AI runs: ./scripts/test.sh
2. AI reads output
3. If exit code 0: Done! Tests pass.
4. If exit code != 0: AI reads error output
5. AI diagnoses the issue
6. AI fixes the code
7. Go to step 1
$ ./scripts/test.sh
{"status": "pass", "tests": 12, "failures": 0}
$ echo $?
0
Autonomous bug fixing
Run ./scripts/test.sh.
If any tests fail, analyze the output,
fix the issues, and run again.
Continue until all tests pass.
Then step back and let AI work.
Let AI work. Step back. Only intervene if:
Intervention prompt:
Stop. Let's step back.
What have we tried so far?
What's the actual root cause?
Is there a different approach entirely?
PLAN --> IMPLEMENT --> TEST --> FIX --> VERIFY
(roadmap) (AI codes) (CLI) (loop) (check roadmap)
^ |
└────────────┘
Now it's your turn. Work through these steps on YOUR project: