Cursor + Claude: The Power Duo
Master the workflow of combining Cursor IDE with Claude for maximum coding velocity.
Cursor is a code editor built on VS Code with an agent that can read your files and write patches. Claude is the model you can run inside it. Used together they cover two different jobs: Claude does the thinking and the writing, Cursor does the reading of your repository and the applying of the diff. The mistake most people make is treating the two as one magic button and letting the agent run unattended. The workflow below keeps a human decision at every step where a decision actually matters.
Before the first prompt, put a short rules file in the repository (.cursor/rules for Cursor) and keep it honest:
the framework and language versions you actually run, not the ones you plan to upgrade to the commands that must pass before a change is accepted — type check, lint, tests, build two or three real examples of the pattern you want followed, by file path what the agent must not touch: generated files, migrations already applied, credentials
An agent with no rules invents structure. An agent with a rules file copies the structure you already have, which is the only reason the fifth change is as cheap as the first.
2. Write the spec as a sentence the diff can be checked against
Add a formatPrice helper in src/lib/money.ts that returns $20 for whole dollars and $20.50 otherwise. Use it in the three cards that print a raw number today. Do not change the price data.
The boundary ("do not change the price data") is what turns a vague request into a reviewable patch. Without it you get a refactor you did not ask for, mixed into a fix you needed.
Ask for the plan before the code: which files it will read, which it will change, what it will run to check itself. Read the list of files. If a file you did not expect appears, the model has misunderstood the task — correct it there, before any code exists. This is the cheapest place to catch a wrong direction.