Problem
Feature work often lands with partial tests, stale docs, or AI-generated edge cases nobody asked for.Outcome
You ship the feature with intent, tests, and docs aligned in one loop.High-level walkthrough
- Add or update the spec for the new feature before coding.
- Define requirements, scenarios, and verification targets.
- Ask Codex to implement only what the spec defines.
- Ask Codex to update tests and docs in the same change.
- Run spec check and fix drift before merge.
Codex example prompt
Any coding agent prompt
Verify
- Confirm new requirements are covered by tests or commands.
- Confirm docs mention the new behavior.
- Confirm spec check passes.
- Confirm no extra behavior was added outside the spec.