This guide shows you how to apply the three structured prompt templates—core.md, refresh.md, and request.md—to get consistently reliable, autonomous, and high-quality assistance from Cursor AI.
Purpose:
Defines the AI’s always-on operating principles: when to proceed autonomously, how to research with tools, when to ask for confirmation, and how to self-validate.
Setup (choose one):
-
Project-specific
- In your repo root, create a file named
.cursorrules
. - Copy the entire contents of core.md into
.cursorrules
. - Save. Cursor will automatically apply these rules to everything in this workspace.
- In your repo root, create a file named
-
Global (all projects)
- Open Cursor’s Command Palette (
Ctrl+Shift+P
/Cmd+Shift+P
). - Select Cursor Settings: Configure User Rules.
- Paste the entire contents of core.md into the rules editor.
- Save. These rules now apply across all your projects (unless overridden by a local
.cursorrules
).
- Open Cursor’s Command Palette (
Use this template only when a previous fix didn’t stick or a bug persists. It runs a fully autonomous root-cause analysis, fix, and verification cycle.
{Your persistent issue description here}
---
[contents of refresh.md]
Steps:
- Copy the entire refresh.md file.
- Replace the first line’s placeholder (
{Your persistent issue description here}
) with a concise description of the still-broken behavior. - Paste & Send the modified template into the Cursor AI chat.
Cursor AI will then:
- Re-scope the problem from scratch
- Map architecture & dependencies
- Hypothesize causes and investigate with tools
- Pinpoint root cause, propose & implement fix
- Run tests & linters; self-heal failures
- Summarize outcome and next steps
Use this template when you want Cursor to add a feature, refactor code, or make specific modifications. It enforces deep planning, autonomous ambiguity resolution, and rigorous validation.
{Your feature or change request here}
---
[contents of request.md]
Steps:
- Copy the entire request.md file.
- Replace the first line’s placeholder (
{Your feature or change request here}
) with a clear, specific task description. - Paste & Send the modified template into the Cursor AI chat.
Cursor AI will then:
- Analyze intent & gather context with all available tools
- Assess impact, dependencies, and reuse opportunities
- Choose an optimal strategy and resolve ambiguities on its own
- Implement changes in logical increments
- Run tests, linters, and static analysis; fix failures autonomously
- Provide a concise report of changes, tests, and recommendations
- Be Specific: Your placeholder line should clearly capture the problem or feature scope.
- One Template at a Time: Don’t mix
refresh.md
andrequest.md
in the same prompt. - Leverage Autonomy: Trust Cursor AI to research, test, and self-correct—only step in when it flags a truly irreversible or permission-blocked action.
- Review Summaries: After each run, skim the AI’s summary to stay aware of what was changed and why.
By following this guide, you’ll turn Cursor AI into a proactive, self-sufficient “senior engineer” who plans deeply, executes confidently, and delivers quality code with minimal back-and-forth. Happy coding!
would this work with vscode as well?