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.
npx skills add avanturer/claude-bestpractice --skill scope-rulesgit clone --depth 1 https://github.com/avanturer/claude-bestpracticeWrote 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.
[](https://agentmods.dev/skills/avanturer/claude-bestpractice/scope-rules)<a href="https://agentmods.dev/skills/avanturer/claude-bestpractice/scope-rules"><img src="https://agentmods.dev/badge/skills/avanturer/claude-bestpractice/scope-rules/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.
<a href="https://agentmods.dev/skills/avanturer/claude-bestpractice/scope-rules"><img src="https://agentmods.dev/badge/skills/avanturer/claude-bestpractice/scope-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00053 | $0.01334 |
| Opus 5.5 | $0.00021 | $0.00534 |
| Sonnet 5.5 | $0.00011 | $0.00267 |
| Haiku 4.5 | $0.00005 | $0.00133 |
Grade A, and why
scope-rules 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scope the instruction layer
The founder asked for this by running it: that ask is the consent decision 0114 requires before their instruction files are touched. Nothing else in this plugin rewrites them.
What is being fixed. CLAUDE.md and every rule without paths: load into every turn of every
session. A rule that only matters beside some files (design beside screens, releasing beside the
store config) costs the same in a backend session as in a UI one, and every rule loaded at once
is followed less. A rule with paths: loads when a session reads, writes or edits a matching
file; this plugin's gate (decision 0113) asks for it before a new file or a command it governs.
0. Baseline
- A card for this on the ledger, then a branch and a worktree, as for any change.
BASE=$(git rev-parse HEAD), and keep it: every later check is against it.claude-bp rules. Note the always-on total and the files largest first. Fix every PROBLEM it lists that is not about to be moved anyway, and say what it was.
1. Plan, before writing
For each always-on file, and for each section of the large ones (##/###), decide one of.
Past 8,000 tokens claude-bp rules lists the largest sections of the largest files with their
tokens: start from the top of that list, where one decision moves the most.
- stays — needed before any file is opened, in every session, or must survive compaction: prohibitions (secrets, production, pushes), how work is done (worktrees, PR flow, parallel sessions), how to search, how memory is used.
- scoped — about one area of the code:
paths:naming that area's files, from where the rule's own text points and fromgit log --format= --name-onlyof the commits that changed the rule. Prefer a directory glob (mobile/**) to a list of files. - command — about an act on no file (a release, a deploy, SQL on production):
paths:for the files it does have, pluscommands:with regular expressions of those commands (make mobile-ota,eas (build|submit),ssh .*prod). Claude Code ignorescommands:; this plugin asks for the rule before such a command. - skill — a long procedure read only while doing it (deploy steps, a release checklist):
.claude/skills/<name>/SKILL.md, with a description that says when.
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.
- yesterday Changed · +2 lines b8a554c40701
- 6d ago First seen · 101 lines · 53 tokens per session scan A a28851c19c53
scope-rules is a skill published in the GitHub repository avanturer/claude-bestpractice (2 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 1,334 once invoked, about $0.0002 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-11-24.
scope-rules compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| scope-rulesavanturer/claude-bestpractice | Skill | 2 | yesterday | MIT | A | 53 | Claude Code |
| request-progressthedotmack/claude-mem | Skill | 121k | today | Apache-2.0 | A | 97 | Claude Code |
| handoffthedotmack/claude-mem | Skill | 121k | today | Apache-2.0 | A | 66 | Claude Code |
| smart-exploreFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | yesterday | CC-BY-SA-4.0 | A | 75 | Claude Code |
| rtk-optimizerFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | yesterday | CC-BY-SA-4.0 | A | 44 | Claude Code |
| session-saveFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | yesterday | CC-BY-SA-4.0 | A | 31 | Claude Code |
| handoff-createFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | yesterday | CC-BY-SA-4.0 | A | 53 | Claude Code |