The CodeMySpec Method.
Generating code is the easy part. Shipping is the loop.
AI can write code. Shipping working software takes stories, architecture, BDD specs, verified implementations, and QA. Six phases, every artifact verified by the next, problems routed back to the right level. Here's the full loop.
By John Davenport · the engineer who built CodeMySpec with CodeMySpec
01// the_loop
Six phases. Every artifact verified.
Stories define what done looks like. Each subsequent phase verifies its predecessor. When verification fails, the issue routes back to the level that owns it — story, design, or code. The forward path is solid. The feedback edges are dashed. That's the whole methodology in one diagram.
02// the_problem
Code generation isn't software.
Most AI coding tools stop at code generation. You get output that looks right, passes a vibe check, and falls apart in production.
No Verification
Generated code compiles and maybe passes a few tests. But does it actually do what the user asked for? Nobody checks.
No Traceability
Requirements live in a chat thread. Architecture lives in the AI's head. When something breaks, there's no trail back to intent.
No Feedback Loop
When QA finds a bug, where does it go? Back into the same chat? A new prompt? There's no structured path from 'this is broken' to 'this is fixed.'
// AI code generation without verification is just sophisticated autocomplete. You need the full loop.
03// the_solution
The full loop.
Code generation is one step in a six-step process. Every step produces artifacts that the next step verifies against. Nothing ships without passing through the full loop.
04// the_six_phases
Each phase is a real artifact.
Stories
// Define what 'done' looks like
The Stories MCP Server interviews you about requirements, generates stories with acceptance criteria, and tracks them through the development lifecycle. Stories link to bounded contexts and BDD specs automatically.
05// the_proof
Built with the loop. Shipped with the loop.
I built CodeMySpec using this method. Every feature went through the full loop.
- ✓ Stories with acceptance criteria drive every feature
- ✓ Architecture review catches design problems before implementation
- ✓ BDD specs verify features do what users asked for
- ✓ Unit tests verify implementations match their specs
- ✓ Application QA catches what automated tests miss
- ✓ The feedback loop routes problems to the right level
// Every feature traces from story → BDD spec → implementation → QA. The loop is the methodology.
06// start_the_loop
Run the loop on your codebase.
Phoenix-native today, ~30 minutes to set up. Install the plugin, run the story interview, and you're in phase 01.
07// faq