Mastering AI agents
AI Coding Workflow: Write the Spec, Then the Plan (Templates)
To keep an AI coding agent from drifting, write a short spec before any code: the problem, the decisions, what's out of scope and what done means. Turn the reviewed spec into a plan of files, steps and checks, review that against the spec, then hand it to the agent and verify the result. Copy-ready spec and plan templates included.