Coding with an AI assistant: spec → generate → verify
medium 14 minAn AI assistant writes code fast, but it stops when the code looks done, not when it is done.
Remember it
The few things worth knowing cold, and how to make them stick.
Memory hook
An AI assistant writes code fast, but it stops when the code looks done, not when it is done. Write a precise spec, let it generate, then verify with tests and a careful read of the diff. You own every line you merge.

Key points
- Plausible is not correct: you define what correct means and prove the code meets it.
- A spec names the signature, edge cases, error behaviour, constraints and concrete examples.
- Tests first, checked to fail for the right reason, then the implementation.
- Verify with evidence, a full read of the diff, and your own edge probes; get a second opinion.
- Give security its own pass and vet every new dependency by name.