agentleFS
madebyarismadebyaris/cursor-composer-rules/.cursor/rules/clarify-first.mdc

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

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

    If the answer is in the codebase, find it.

    line 23
  2. Distinctive:

    Constraints already given → proceed: Don't bounce a detailed prompt back as questions.

    line 25
  3. Distinctive:

    Use the Low / Medium / High table in composer-core § Confusion weight — keep that table authoritative.

    line 32
  4. Distinctive:

    High: only when at least one is true:

    line 34
  5. Distinctive:

    If none apply, do not ask — decide or assume-and-act.

    line 41
  6. Distinctive:

    Ask 1–2 questions, in one round, when all are true:

    line 45
  7. Distinctive:

    If you have a strong default supported by the code, state it and proceed:

    line 65
  8. Distinctive:

    If after inspection you still can't choose and weight is high:

    line 81

≈ “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
clarify-first.mdc
---
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.

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.