Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.
Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add anthropics/claude-plugins-official/plugin install code-modernizationWrote 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/commands/anthropics/claude-plugins-official/modernize-extract-rules)<a href="https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-extract-rules"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-extract-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/commands/anthropics/claude-plugins-official/modernize-extract-rules"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-extract-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.00023 | $0.02273 |
| Opus 5.5 | $0.00009 | $0.00909 |
| Sonnet 5.5 | $0.00005 | $0.00455 |
| Haiku 4.5 | $0.00002 | $0.00227 |
Grade A, and why
modernize-extract-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 2mo 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.
Copies of this mod
2 near-identical copies found in the catalogue:
- modernize-extract-rules — 100% identical, 0 lines differ
- modernize-extract-rules — 94% identical, 204 lines differ
How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Extract the business rules embedded in the system into a structured, testable
specification: the institutional knowledge that is locked in code and in the heads of
engineers about to retire. If a module pattern was given ($module_pattern), focus
there; otherwise cover the whole system. Prioritize calculation, validation, eligibility
and state-transition logic over plumbing.
The code is legacy/$system, often a symlink to where it really lives: say where it points (readlink legacy/$system) in one line before you start. If legacy/$system does not exist, stop and say so: nothing can run without the code, so the fix is /code-modernization:modernize $system --source <path to the code>. Run every subagent in the foreground and wait for its result: never end your turn while one is still running.
Method A — Workflow (preferred when the Workflow tool is available)
This command is your authorization to run it. Extraction is sharded per module, so
each extractor reads a small slice (whole-estate passes miss the tail and their contexts
balloon); each rule's file:line citation is verified by a referee agent; and every P0
rule is confirmed by a two-judge panel before it can anchor the behavior contract.
1. Build the shard list
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/make_shards.py" $system "$module_pattern"
It reads analysis/$system/topology.json when map has run (one shard per module, small
ones merged; the better shards) and otherwise the directory tree, and writes
analysis/$system/extract-rules.modules.json. If it reports 0 shards, stop and tell
the user: the pattern matched nothing, or no source files were found. If it says tiny
estate, omit modules (lens mode: three whole-estate extractors in rounds until two
rounds find nothing new; modulePattern narrows them). Source that is not a module (SQL,
shared includes, config-held tables) is read only when a shard references it; if the
assessment says logic lives there, add shards for those files by hand.
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.
- 2mo ago Changed · +30 lines · +9 tokens per session dfd10caadf2e
- 3mo ago First seen · 122 lines · 14 tokens per session scan A aa323b2005f9
modernize-extract-rules is a command published in the GitHub repository anthropics/claude-plugins-official (48,794 stars, last pushed today), licensed Apache-2.0. It adds 23 tokens to every session and 2,273 once invoked, about $0.0001 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-30.
modernize-extract-rules compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| modernize-extract-rulesanthropics/claude-plugins-official | Command | 49k | today | Apache-2.0 | A | 23 | Claude Code |
| constraintsvinvcn/addyosmani-agent-skills-zh | Command | 59 | 1mo ago | MIT | A | 20 | Claude Code |
| releasekomunite/kalfa | Command | 246 | 7mo ago | MIT | A | 13 | Claude Code |
| rclone_config_dumpchaunsin/agent-skills | Command | 2 | 11d ago | Apache-2.0 | A | 7 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |