scoped-audit

scoped-audit is a command for Claude Code, Cursor from emaraschio/cursor-commands. It costs 31 tokens per session (638 once invoked), scanned A, original, MIT.

A command for auditing a large set of items through a staged workflow: define the scope, make a plan, get approval, inspect a sample, delegate limited parallel checks, verify findings, and report them.

In plain words
What is it for?
Use it for large audits, inventories, or migrations that need sampling, parallel review, verified findings, and an approval step before edits.
Why use it?
It prevents an audit from expanding without control and keeps changes separate until they are explicitly approved.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit Use it for large audits, inventories, or migrations that need sampling, parallel review, verified findings, and an approval step before edits.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/emaraschio/cursor-commands/scoped-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/emaraschio/cursor-commands

Made for: Claude Code, 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 scoped-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/emaraschio/cursor-commands/scoped-audit.svg)](https://agentmods.dev/commands/emaraschio/cursor-commands/scoped-audit)
Your own site
<a href="https://agentmods.dev/commands/emaraschio/cursor-commands/scoped-audit"><img src="https://agentmods.dev/badge/commands/emaraschio/cursor-commands/scoped-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 638 The whole file, excluding the scripts and references it only reads on demand.
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.00031 $0.00638
Opus 5 $0.00015 $0.00319
Sonnet 5 $0.00006 $0.00128
Haiku 4.5 $0.00003 $0.00064

Measured 8d ago against content hash b79bae614be7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

scoped-audit 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 8d 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.

.cursor/commands/scoped-audit.md · 44 lines

How it starts

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

Overview

Run a large "check-N-things" task (audit, inventory, or migration) as a scoped, plan-first workflow: decompose the surface, fan out capped parallel subagents, verify findings before reporting, and make changes only after explicit approval. Full workflow: .cursor/skill-contracts/scoped-audit/SKILL.md (user install: ~/.cursor/skill-contracts/scoped-audit/SKILL.md).

Defaults

Setting Default
First pass Scoped sample only (never the full surface)
Concurrent subagents Capped (≤ 6)
Changes None until the plan is approved

Steps

  1. Read .cursor/skill-contracts/scoped-audit/SKILL.md for the full agent contract; if that file is missing, read ~/.cursor/skill-contracts/scoped-audit/SKILL.md.
  2. Execute phases in order (Scope → Plan → Approval gate → Scoped sample → Parallel fan-out → Verify → Report → optional gated changes); do not skip the approval gate or the verification step.
  3. Report the catalog of verified findings; propose changes separately and wait for approval before editing.

Anti-patterns

  • Sample before you fan out. Trigger: starting a large check-N-things pass. Wrong: running the full surface before the approach is validated. Correct: run a scoped sample first to confirm the finding shape and verification method. Reason: an unvalidated full run across a large surface burns tokens and compounds mistakes.
  • Verify findings before reporting. Trigger: assembling the catalog from subagent results. Wrong: reporting a subagent summary as fact without rechecking. Correct: re-check each finding against the source and flag what cannot be confirmed. Reason: large parallel passes are where agents hallucinate, so an unverified catalog is worse than none.
  • Make no changes until the plan is approved. Trigger: the user asks to audit and fix in one pass. Wrong: editing or migrating across the surface before approval. Correct: present proposed changes separately and wait for an explicit approval gate. Reason: bulk edits before review are hard to unwind across a large surface.

Read the full file on GitHub · 44 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. 8d ago First seen · 44 lines · 31 tokens per session scan A b79bae614be7

Subscribe to this mod's changes

scoped-audit is a command published in the GitHub repository emaraschio/cursor-commands (9 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 638 once invoked, about $0.0002 per session on Opus 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.