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.
Where it shows up
The same pattern appears across everyday software.
Bug fix with a repro test
Ask the assistant to write a failing test that reproduces the bug first, then fix it. The test proves the fix and guards against regressions.
Repo instructions file
Teams put the exact test, type-check and lint commands in a file the assistant reads every session, so it always knows how to check its own work.
CI as the final gate
Whatever the assistant claims, the merge waits for CI and a human approval. Branch protection enforces what a prompt cannot.
Dependency check
Before accepting a new import, confirm the package exists, is the one you meant, and is maintained. Suggested names can be wrong or typo-squatted.