This compendium articulates a rigorously structured methodology for leveraging Cursor AI in concert with four canonical prompt schemata—core.md, request.md, refresh.md, and RETRO.md—ensuring the agent operates as a risk‑averse principal engineer who conducts exhaustive reconnaissance, executes with validated precision, and captures institutional learning after every session.
Establishes the agent’s immutable governance doctrine: familiarise first, research exhaustively, act autonomously within a safe envelope, and self‑validate.
| Scope | Steps |
|---|---|
| Project‑specific | 1. Create .cursorrules in the repo root.2. Paste the entirety of core.md. 3. Commit. |
| Global | 1. Open Cursor → Command Palette. 2. Select Configure User Rules. 3. Paste core.md. 4. Save. |
Once loaded, these rules govern every subsequent prompt until explicitly superseded.
Invoked to introduce new capabilities, refactor code, or alter behaviour. Enforces an evidence‑centric, assumption‑averse workflow that delivers incremental, test‑validated changes.
Activated when prior remediations fail or a defect resurfaces. Drives a root‑cause exploration loop culminating in a durable fix and verified resilience.
For either template:
- Duplicate the file.
- Replace the top placeholder with a concise request or defect synopsis.
- Paste the entire modified template into chat.
The agent will autonomously:
- Plan → Gather Context → Execute → Verify → Report.
- Surface a live ✅ /
⚠️ / 🚧 ledger for multi‑phase endeavours.
Codifies an end‑of‑conversation ritual whereby the agent distils behavioural insights and incrementally refines its standing rule corpus—without introducing session‑specific artefacts into the repository.
-
After the primary task concludes, duplicate RETRO.md.
-
Send it as the final prompt of the session.
-
The agent will:
- Reflect in ≤ 10 bullet points on successes, corrections, and lessons.
- Update existing rule files (e.g.,
.cursorrules,AGENT.md) by amending or appending imperative, generalised directives. - Report back with either
✅ Rules updatedorℹ️ No updates required, followed by the reflection bullets.
- No new Markdown files are created unless explicitly authorised.
- Chat‑specific dialogue never contaminates rule files.
- All validation logs remain in‑chat.
- Be Unambiguous — Provide precise first‑line summaries in each template.
- Trust Autonomy — The agent self‑resolves ambiguities unless blocked by the Clarification Threshold.
- Review Summaries — Skim the agent’s final report and live TODO ledger to stay aligned.
- Minimise Rule Drift — Invoke
RETRO.mdregularly; incremental rule hygiene prevents bloat and inconsistency.
| Symbol | Meaning |
|---|---|
| ✅ | Step or task fully accomplished |
| Anomaly encountered and mitigated | |
| 🚧 | Blocked, awaiting input or external resource |
By adhering to this framework, Cursor AI functions as a continually improving principal engineer: it surveys the terrain, acts with caution and rigour, validates outcomes, and institutionalises learning—all with minimal oversight.