[Single imperative sentence. e.g. "Add pagination to the GET /users endpoint."]
[One or two sentences on why. e.g. "To prevent timeouts when the users table is large."]
- [File or module to read first]
- [Existing pattern to follow, e.g. "see how /posts handles this in routes/posts.ts"]
- [e.g. "Do not change the public API surface"]
- [e.g. "No new dependencies"]
- [e.g. "Follow the error-handling pattern in lib/errors.ts"]
- [Adjacent thing the agent might reasonably touch but shouldn't]
[e.g. "Write unit tests for new logic. All existing tests must continue to pass."]
- [Specific, verifiable condition]
- [e.g. "GET /users?page=2&limit=20 returns 200 with the correct slice and a total count"]
[Either: "Stop and ask before proceeding if something is unclear." Or: "Proceed with the most conservative assumption and leave a TODO comment explaining it."]