Cursor
Build a Feature in an Existing Repo
Brief a coding agent to ship a feature by matching local patterns, touching only the files that matter.
Generate Tests
Add tests that match the repo's runner and style, covering the behaviour that would actually break users.
Add tests for this module using the test stack already in the repo. Module / files: {{module}} Behaviour that must not regress: {{behaviour}} Known edge cases: {{edges}} Rules: - Mirror existing test file placement and naming - Prefer behaviour over implementation details - Include the unhappy paths in {{edges}} - Do not mock so much that the test asserts nothing - If a case needs a fixture, create a small one next to existing fixtures End with: how to run only these tests, and any behaviour you could not cover because the code is untestable — with a minimal seam if needed.
Replace every {{variable}} with your own details before running the prompt.
3 variables
Brief a coding agent to ship a feature by matching local patterns, touching only the files that matter.
Force the agent to reproduce the bug, write or run a failing test, then apply a minimal fix.
Run a structured audit: correctness, security, a11y, and dead code — with file:line findings, not vibes.