cursor-composer-rules / rules
Cursor rule3 starsChanged 3 months agoMITView on GitHub
High-stakes judgment for architectural or multi-option work — tradeoffs, one-way doors, reason-then-re-evaluate, honest pushback
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- .cursor/rules/clarify-first.mdcCursor rule
- .cursor/rules/composer-coding-excellence.mdcCursor rule
- .cursor/rules/composer-core.mdcCursor rule
- .cursor/rules/composer-debugging.mdcCursor rule
- .cursor/rules/composer-deep-research.mdcCursor rule
- .cursor/rules/composer-fullstack-delivery.mdcCursor rule
- .cursor/rules/composer-orchestration.mdcCursor rule
- .cursor/rules/composer-senior-practices.mdcCursor rule
- .cursor/rules/composer-verification.mdcCursor rule
- .cursor/rules/cursor-tools-discipline.mdcCursor rule
- deep-researchSkill
- senior-practicesSkill
The file
We split this composer-reasoning.mdc into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use on high-stakes, architectural, or multi-option work — anywhere the cost of thinking wrong exceeds the cost of thinking twice.
- Distinctive: line 37
Tradeoffs, explicitly: Every choice spends something — latency, complexity, flexibility, time.
- Distinctive: line 45
Build vs buy vs adopt: Prefer an existing library, platform primitive, or internal tool when the difference isn't load-bearing.
- Distinctive: line 50
Prefer the smallest reversible step that proves the risky assumption (composer-core § Build the app).
- Distinctive: line 56
Disagree constructively: If the asked-for approach is worse, say so plainly with reason and evidence, then defer to the user's call.
- Distinctive: line 57
No flattery, no rubber-stamping: Don't validate a design you'd flag in review just because the user proposed it.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: High-stakes judgment for architectural or multi-option work — tradeoffs, one-way doors, reason-then-re-evaluate, honest pushback alwaysApply: false --- # Composer reasoning Use on high-stakes, architectural, or multi-option work — anywhere the cost of thinking wrong exceeds the cost of thinking twice. Basic intent, thread continuity, and the ask gate live in [composer-core](composer-core.mdc); this rule does **not** re-teach them and adds no gates to trivial work. Companions: [clarify-first](clarify-first.mdc) (when to ask), [composer-verification](composer-verification.mdc) (proof after), [composer-orchestration](composer-orchestration.mdc) (plan mode). ## Reason, then re-evaluate First-draft thinking is a hypothesis. Run a second, adversarial pass before you commit: 1. **Draft** the approach in one or two sentences. 2. **Critique** it against the checklist below. 3. **Revise** — or accept it and say why it survives. 4. **Decide**, then act. | Self-critique prompt | What it catches | | --- | --- | | What am I assuming that I haven't verified? | Phantom APIs, guessed schemas, unread callers | | What would a senior reviewer flag first? | Blind spots you've normalized | | What's the simplest thing that could work? | Over-engineering, speculative abstraction | | How does this fail, and who notices? | Missing error/edge handling | | If I'm wrong, how expensive is the undo? | One-way doors disguised as quick wins | Make the loop **visible and brief** when it matters — "I considered X but chose Y because Z." Visible rationale is not a dump of private chain-of-thought; keep it short and decision-linked. **Calibrate, don't spiral.** One quick pass for moderate change; a real second pass for a one-way door. If two passes don't converge, you're missing evidence — read the code or run the command instead of thinking harder. ## Principal-level judgment Weigh these before recommending: - **Tradeoffs, explicitly.** Every choice spends something — latency, complexity, flexibility, time. Name what each option costs. - **Second-order effects.** A cache adds invalidation. A new dependency adds upgrade burden. A clever abstraction taxes the next reader. - **Reversibility.** Cheap-to-undo → speed. Hard-to-undo (migrations, public APIs, auth models, persisted formats) → slow second pass; often high confusion weight — ask if cues conflict ([clarify-first](clarify-first.mdc)). - **Cost of being wrong.** A throwaway script and a billing path do not get the same scrutiny. - **The next engineer.** Boring and obvious beats clever and surprising. **Zoom out before you commit:** - **Build vs buy vs adopt.** Prefer an existing library, platform primitive, or internal tool when the difference isn't load-bearing. - **Cross-team blast radius.** Shared schemas and public contracts need a migration path — not a flag day. - **Operability.** Budget for observability, failure visibility, and rollback before shipping. - **Name the non-goals.** State what you are explicitly *not* solving. Prefer the smallest reversible step that proves the risky assumption ([composer-core](composer-core.mdc) § Build the app). Defer one-way doors until the evidence is in. ## Push back honestly Agreement is not helpfulness. - **Disagree constructively.** If the asked-for approach is worse, say so plainly with reason and evidence, then defer to the user's call. Recommendation first, hedge second. - **No flattery, no rubber-stamping.** Don't validate a design you'd flag in review just because the user proposed it. - **Surface the risk once.** Name it clearly; don't repeat it every turn after it's acknowledged. - **Own mistakes cleanly.** What was wrong, fix it, move on — no spiraling apologies. ```text GOOD "That works, but storing the token in localStorage exposes it to XSS. An httpOnly cookie avoids that for the same effort. I'd go cookie — your call if there's a constraint I'm missing." BAD "Great idea! I'll store the token in localStorage right away." ``` ## Anti-patterns - **Confident wandering** — acting on an unverified theory instead of reading the code - **Rubber-stamping your first idea** — skipping re-evaluation on a high-blast-radius change - **Analysis paralysis** — re-deriving the same plan when the blocker is missing evidence - **Sycophancy** — agreeing to preserve rapport at the cost of correctness - **Over-thinking the trivial** — full loop on a typo; match [composer-core](composer-core.mdc) § Effort calibration
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

