agentleFS
madebyarismadebyaris/cursor-composer-rules/.cursor/rules/composer-reasoning.mdc

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

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
  1. Distinctive:

    Use on high-stakes, architectural, or multi-option work — anywhere the cost of thinking wrong exceeds the cost of thinking twice.

    line 8
  2. Distinctive:

    Tradeoffs, explicitly: Every choice spends something — latency, complexity, flexibility, time.

    line 37
  3. Distinctive:

    Build vs buy vs adopt: Prefer an existing library, platform primitive, or internal tool when the difference isn't load-bearing.

    line 45
  4. Distinctive:

    Prefer the smallest reversible step that proves the risky assumption (composer-core § Build the app).

    line 50
  5. Distinctive:

    Disagree constructively: If the asked-for approach is worse, say so plainly with reason and evidence, then defer to the user's call.

    line 56
  6. Distinctive:

    No flattery, no rubber-stamping: Don't validate a design you'd flag in review just because the user proposed it.

    line 57

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
composer-reasoning.mdc
---
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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.