cursorrules — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited cursorrules (Rules) and scored it 96/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 1 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Stop your AI from guessing. Clarify First is a deterministic state-machine and safety middleware that forces agents to ask before acting on ambiguous or high-risk tasks.
Clarify First is a protocol-first skill focused on one thing: alignment before execution. It blocks silent assumptions, enforces explicit confirmation, and keeps plan vs execution auditable.
中文 · License: Apache-2.0
Most coding agents optimize for immediacy, not certainty. In ambiguous or high-impact requests, this creates hidden assumptions and expensive mistakes.
Clarify First flips the default to: Clarify First, Code Second.
With Clarify First, the agent is much more likely to:
| Without Clarify First | With Clarify First |
|---|---|
| User: "Delete old files." | User: "Delete old files." |
| Agent runs destructive command with assumptions. | Agent emits risk header, asks target scope + rollback, waits for confirmation. |
| Result: Wrong scope / hard recovery. | Result: Intent-aligned, reversible execution path. |
| Capability | Included |
|---|---|
| Non-bypass clarification gate | ✅ |
| Weighted assumption triage | ✅ |
| Two-phase plan lock (Plan -> Confirm -> Execute) | ✅ |
| Strict execution boundary + amendment protocol | ✅ |
| Progressive execution for dependent high-risk actions | ✅ |
| Plan-ID anchoring + long-thread checkpoint recall | ✅ |
| Security redaction in audit outputs | ✅ |
| Architectural anti-pattern hard stop | ✅ |
| Contextual risk modifier (file centrality aware) | ✅ |
| Final reconciliation (plan vs actual) | ✅ |
| Multi-agent handoff payload (scoped pointers) | ✅ |
| Adversarial trigger tests in tooling | ✅ |
Official-style eval assets (evals/evals.json) | ✅ |
| Official-style trigger benchmark wrapper | ✅ |
| Blind Execution (Standard) | Clarified Execution (With This Skill) |
|---|---|
| You: "Optimize the app." | You: "Optimize the app." |
| Agent starts massive refactors. | Agent: "Risk: Medium. I need to clarify: are we optimizing for runtime speed, bundle size, or code readability?" |
| Result: Broken code, wrong focus. | Result: The AI does exactly what you needed. |
/.cursorrules into your project root (or merge into your existing rules file).npx -y skills add DmiyDing/clarify-firstRestart your client after installation. If auto-trigger is weak, explicitly invoke: "Use the clarify-first skill."
AGENTS.override.md or AGENTS.md.clarify-first/SKILL.md.references/*) as on-demand context files, not always-on prompt payload.After install, the skill activates when the agent detects ambiguous or high-impact requests. You can also invoke it explicitly:
The agent will then align on scope, ask 1–5 targeted questions (with choices when possible), and wait for your confirmation before making changes or running commands.
Default confirmation shape:
Version and reference consistency can be checked with:
Skill validation and trigger measurement can be checked with:
skills-ref validate ./clarify-firstnpm run validate:skillnpm run benchmark:triggerThe npm-based commands auto-discover a local Anthropic skill-creator install from:
SKILL_CREATOR_ROOTSKILL_CREATOR_SCRIPTS~/.claude/skills/skill-creator~/.codex/skills/.system/skill-creatorThe repository also ships starter eval cases in:
clarify-first/evals/evals.jsonclarify-first/evals/README.mdbenchmarks/trigger-evals/clarify-first.jsonbenchmarks/README.mdCI runs validation on every push and pull request.
Local CI rehearsal (same steps as GitHub Actions, before your first push):
git clone --depth=1 https://github.com/anthropics/skills.git /tmp/anthropic-skills
export SKILL_CREATOR_ROOT=/tmp/anthropic-skills/skills/skill-creator
npm run verify-version
npm run validate:skillIf both commands pass, the workflow is very likely to pass on the remote.
Details and workflows are in clarify-first/SKILL.md.
Clarify First is opinionated about the format of clarification, not only the trigger logic.
The default user-facing confirmation format is intentionally simple:
For Chinese prompts, headings should stay in Chinese. For English prompts, headings should stay in English. The full protocol can still expand for HIGH-risk or multi-step cases, but the default experience should remain readable.
Reference examples live here:
clarify-first/references/CONFIRMATION_FORMATS.mdclarify-first/references/EXAMPLES.mdclarify-first/references/QUESTION_BANK.mdReferences overview:
clarify-first/references/CONFIRMATION_FORMATS.md - compact clarification output patterns and language variantsclarify-first/references/EXAMPLES.md - end-to-end example interactions across risk levelsclarify-first/references/QUESTION_BANK.md - blocking-question toolkit for common ambiguity typesclarify-first/references/SCENARIOS.md - scenario coverage and trigger guidanceclarify-first/references/zh-CN.md - Chinese phrasing and response style notesclarify-first/references/NFR.md - non-functional requirements for maintainability and safetyclarify-first/ directory: clarify-first/SKILL.md (YAML frontmatter + Markdown).For Codex, paste this into AGENTS.override.md or AGENTS.md (repo or ~/.codex/):
# Clarify First (risk-based)
When a request is ambiguous, underspecified, conflicting, or high-impact, do not guess.
Risk triage:
- Low: proceed with explicit assumptions and minimal reversible steps; stop if new ambiguity appears.
- Medium: inspect read-only first; propose 2–3 options; ask only blocking questions; wait for confirmation before larger edits or running commands.
- High: require explicit confirmation ("Yes, proceed") before any irreversible action (side-effect commands, deletion/overwrite, migrations, deploy/publish, secrets/config changes, spending money, contacting people).
If you see a better approach than requested, present it as an option and ask the user to choose..
├── clarify-first/
│ ├── SKILL.md # Core skill definition (Markdown)
│ ├── evals/ # Behavioral eval prompts and schema notes
│ └── references/ # Context files loaded on demand
├── benchmarks/ # Trigger benchmark sets and benchmark notes
├── tooling/ # Maintenance scripts
├── .github/workflows/ # CI validation workflow
├── .cursorrules # Cursor rule template (condensed)
├── CHANGELOG.md # Version history
└── CONTRIBUTING.md # Contribution guideThis skill follows the Agent Skills specification and is compatible with:
The skill uses progressive disclosure: the agent loads clarify-first/SKILL.md when the skill triggers, and only opens references/* when needed.
For the official test/measure/refine workflow behind this repo's benchmark and eval setup, see Improving skill creator: test, measure, and refine agent skills.
Contributions are welcome. This project is licensed under Apache-2.0.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.