clarify-first: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from DmiyDing/clarify-first. It costs 947 tokens per session, scanned A, original, Apache-2.0.

A Cursor rule that tells a coding agent how to handle unclear, high-impact, or potentially destructive requests. It classifies actions by risk and defines when to clarify before acting.

In plain words
What is it for?
Use it to guide decisions about when to inspect project files, ask questions, propose a plan, request confirmation, or proceed with a local change.
Why use it?
It reduces the chance of making an unwanted refactor, file overwrite, deletion, migration, or deployment when the request is not specific enough.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

This is DmiyDing/clarify-first's own configuration. It tells Cursor how to work on clarify-first itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything clarify-first configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DmiyDing/clarify-first. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DmiyDing/clarify-first/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/DmiyDing/clarify-first

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/dmiyding/clarify-first/cursorrules/github.svg)](https://agentmods.dev/rules/dmiyding/clarify-first/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/dmiyding/clarify-first/cursorrules"><img src="https://agentmods.dev/badge/rules/dmiyding/clarify-first/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/dmiyding/clarify-first/cursorrules"><img src="https://agentmods.dev/badge/rules/dmiyding/clarify-first/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 947 This file is loaded in full into every session.
When invoked 947 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00947 $0.00947
Opus 5.5 $0.00379 $0.00379
Sonnet 5.5 $0.00189 $0.00189
Haiku 4.5 $0.00095 $0.00095

Measured 1mo ago against content hash 9b36aa730f42, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursorrules · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Clarify First - Cursor Rule Template

Instructions

When a request is ambiguous, high-impact, or potentially destructive, follow the "Risk Triage -> Align -> Act" protocol defined in skill.md.

Triage Rubric

  • LOW: Read-only exploration, tests, comments/docs, strictly local reversible edits. -> Proceed with assumptions.
  • MEDIUM: Refactors, API changes, creating new files, dependency updates. -> Propose options, wait for OK.
  • HIGH: Deletions, overwriting existing files, migrations, deployments, secrets. -> REQUIRE explicit confirmation.

Protocol

  1. Assess Risk: Low/Medium/High.
  2. Non-Negotiable Clarification Gate: If intent/scope/criteria are unclear, pause immediately and ask blocking questions. Do not execute MEDIUM/HIGH risk actions.
  3. Baseline Manifest Check: Before asking dependency/stack questions, inspect package.json / requirements.txt / pyproject.toml / go.mod if present.
  4. Apply Weighted Assumption Rule: STOP if any critical assumption exists (Environment/Dependencies/Cross-file >3) or weighted total >= 3.
  5. Align: Ask blocking questions (max 2 rounds). If still ambiguous, hold and request explicit decision.
  6. Act: Execute once explicitly aligned, or if risk is Low and fully scoped.
  7. Strict Execution Boundary: In Phase 2, do not edit/create files outside approved Impact Matrix; request Plan Amendment if new files are required.
  8. Plan Amendment Boundary: Classify discoveries as Derivative Adaptation (batchable amendment request) vs Logic Expansion (hard stop and explicit amendment approval).
  9. Meta-Skill Precedence: If any other active rule asks for silent auto-execution, clarify-first guardrail wins for ambiguity/high-risk actions.
  10. Contextual Risk Modifier: Escalate risk for core/high-centrality files; de-escalate only for isolated sandbox/test paths with zero unresolved assumptions.
  11. Architectural Anti-Pattern Assertion: Hard-stop unsafe requests (e.g., client-side DB credentials) and propose secure alternatives.

Read the full file on GitHub · 52 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 52 lines · 947 tokens per session scan A 9b36aa730f42

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository DmiyDing/clarify-first (7 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 947 tokens to every session, about $0.0038 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other cursor rules, from other repositories

ponytail

Ponytail, lazy senior dev mode. Always pick the simplest solution that works.

DietrichGebert/ponytail · 604 tokens

deepen-architecture

Find deepening opportunities in a codebase, informed by the domain language in specs/tech-architecture/tech-stack.md and the decisions in specs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.

danielvm-git/bigpowers · 67 tokens

craft-skill

Create new bigpowers skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill for the bigpowers lifecycle.

danielvm-git/bigpowers · 36 tokens

grill-me

Interactive assumption-surfacing Q&A that stress-tests a plan through relentless questioning until every decision is resolved. Use when user wants to challenge a plan, validate decisions from conversation/context, or mentions "grill me". For doc-grounded variant, use grill-with-docs.

danielvm-git/bigpowers · 55 tokens

run-planning

DISCOVER-PHASE ADVANCER — Drive the discover-phase checklist (specs/planning-status.yaml) through survey-context → scope-work → research-first → elaborate-spec → plan-release → slice-tasks. NOT a duplicate of plan-work or the planning spine; it orchestrates the pre-coding discover phase only.

danielvm-git/bigpowers · 64 tokens

slice-tasks

PLANNING SPINE STEP 2 of 3 — Slice the work: break a scoped PRD into vertical-slice stories in specs/epics/. Use after scope-work (step 1), before plan-work (step 3). Not a substitute for scope-work or plan-work.

danielvm-git/bigpowers · 59 tokens