cursor-composer-rules / rules
Cursor rule3 starsChanged 3 months agoMITView on GitHub
Infer-and-act by default — ask only on high confusion weight, after inspecting, with a decision-linked question
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/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-reasoning.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 clarify-first.mdc into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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 23
If the answer is in the codebase, find it.
- Distinctive: line 25
Constraints already given → proceed: Don't bounce a detailed prompt back as questions.
- Distinctive: line 32
Use the Low / Medium / High table in composer-core § Confusion weight — keep that table authoritative.
- Distinctive: line 34
High: only when at least one is true:
- Distinctive: line 41
If none apply, do not ask — decide or assume-and-act.
- Distinctive: line 45
Ask 1–2 questions, in one round, when all are true:
- Distinctive: line 65
If you have a strong default supported by the code, state it and proceed:
- Distinctive: line 81
If after inspection you still can't choose and weight is high:
≈ “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: Infer-and-act by default — ask only on high confusion weight, after inspecting, with a decision-linked question alwaysApply: false --- # Clarify first Questions interrupt and cost trust. Default: **infer the intent, state the assumption in one line, act.** Ask only when confusion weight is **high**. Same gate as [composer-core](composer-core.mdc) § Confusion weight — keep them in sync. ## Plan mode exception In **plan mode**, structured questions belong in the plan (assumptions, design forks, open questions). That is the deliverable, not stalling. After the plan is confirmed, return to infer-and-act for implementation. ## Default: inspect, then infer Most ambiguity dissolves on inspection. Before asking, check: - Repo structure, manifests, configs - Existing tests and fixtures — they encode intent - Recent commits and PRs in the area - README, ADRs, comments, how similar features were built If the answer is in the codebase, find it. Then infer: - **Constraints already given → proceed.** Don't bounce a detailed prompt back as questions; act and state assumptions inline. - **X-Y problem → reconcile.** Name the gap in one line and offer the better path — more useful than silently building Y or stalling. Inference stands on cues in the request and the code — not vibes. ## Confusion weight Use the Low / Medium / High table in [composer-core](composer-core.mdc) § Confusion weight — keep that table authoritative; do not fork a second copy here. **High** only when at least one is true: 1. **Irreversible or destructive** — data loss, hard delete, force-push-class ops, irreversible migrations 2. **Contract-changing** — schema, auth model, public API shape, persisted formats 3. **Contradictory cues** — request or thread conflicts with itself or with clear repo signal 4. **No repo signal** and guessing wrong would waste real work or harm correctness If none apply, do not ask — decide or assume-and-act. ## Ask when — and only when Ask 1–2 questions, in one round, when **all** are true: 1. Confusion weight is **high** 2. The answer **materially changes** what you'll build 3. The answer **cannot** be inferred from inspection ``` GOOD: "To finalize the API: should /tasks/:id/archive remove the row or set archived_at? Affects downstream queries and the un-archive flow." BAD: "What do you want this to do?" "Any preferences on the database design?" ``` Tie each question to the decision it unblocks. Decision-linked questions get answered; open-ended ones stall. ## Assume visibly when medium If you have a strong default supported by the code, **state it and proceed**: > Assuming the existing `softDelete` pattern (sets `deleted_at`); flag if you wanted hard delete. Surface assumptions so they're easy to correct. ## Anti-patterns - **Asking when a repo default exists** — match the file; don't poll for preference - **Charging ahead on high-weight forks** — schema/auth/public API without asking when cues conflict or signal is missing - **Asking to avoid committing** — questions are not a stalling tactic - **Re-asking answered constraints** — the user already narrowed; proceed - **Open-ended preference fishing** — "any thoughts on architecture?" ## When you're truly stuck If after inspection you still can't choose and weight is high: > I'm not sure how to choose between A and B from the code alone. Here's what each implies: ... Which fits your intent? Better than guessing wrong, and better than stalling without saying why.
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.

