Take this back to your project
- Write the skill before the automation. If you can't do it yourself with a documented process, an agent can't either.
- Isolate "decide" from "act." Keep verification separate from fixing.
- Make it a state machine you can read. Labels + comment history, no hidden state.
- Treat agent failure as a codebase signal, not a prompt-engineering problem.