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 melodic-software/claude-code-plugins/plugin install docs-hygieneWrote 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/melodic-software/claude-code-plugins/audit-encapsulation)<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-encapsulation"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-encapsulation/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/melodic-software/claude-code-plugins/audit-encapsulation"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-encapsulation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00096 | $0.04837 |
| Opus 5.5 | $0.00038 | $0.01935 |
| Sonnet 5.5 | $0.00019 | $0.00967 |
| Haiku 4.5 | $0.00010 | $0.00484 |
Grade A, and why
audit-encapsulation 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 — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Audit encapsulation
Scope
Skills have a public API and a private body; the contract is context/public-surface-contract.md (bundled with this skill). External consumers (rules, agents, other skills, prose docs) must cite the public surface only, so editing the private body never breaks them.
Distinct from /docs-hygiene:extract-ssot (content duplication via Rule of Three). Encapsulation violations are single-violation matters. Rule of Three does not gate them.
Public surface matrix
The Skill surface is defined by context/public-surface-contract.md: public = frontmatter + documented actions + args/flags + /skill-name slash invocation + the scripts/ entry surface; private = everything else inside .claude/skills/<X>/ or plugins/<plugin>/skills/<X>/ (any other subdirectory, all *.schema.json at any depth, all heading anchors). That file holds the data-file and scripts/ entry-surface carve-outs and the rip-and-paste-portability rationale. This skill also audits cites against two authoring surfaces the contract file does not enumerate:
| Surface | Public (cite externally) | Private |
|---|---|---|
Rule file (.claude/rules/*.md) |
All H2/H3 headings (entire file is shared vocabulary) | n/a |
Scheduled-automation prompt (e.g. .claude/routines/*.md, if the consumer repo keeps them) |
Top-of-file orchestration prompt | Internal exclusion lists, escape conditions |
CI / git-hook sharing. Pick a technique, not an exception
Workflows and git hooks needing logic that also lives in a skill must not reach into skill internals. Pick a sharing technique by logic size: scripts/ facade (a public scripts/<name>.sh entry delegating to a private backend; hooks/CI invoke it), intentional duplication, plugin packaging, or headless claude -p '/skill <action>' invocation, per context/public-surface-contract.md "CI / git-hook consumption. Entry surface, not internals".
The choice is per-cite. The bundled detect.sh is a candidate enumerator: exit 1 means candidates remain after mechanical filters, not adjudicated violations. Classify (filter taxonomy below) before treating a hit as illegal. Do not hard-gate CI or pre-commit on detect.sh's exit code alone.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 ef1aaa9856e6
- 4d ago Changed · +10 tokens per session fa7bc67465f6
- 5d ago Changed · -12 tokens per session b585826d3d24
- 9d ago Changed · +5 lines c108f9946587
- 12d ago Changed cf604e1be685
- 14d ago Changed · +1 lines 747657443b0e
- 18d ago Changed df3f8648e4b6
- 20d ago Changed 6c80667d8ead
- 21d ago Changed 3b5c6aa4a084
- 25d ago First seen · 239 lines · 98 tokens per session scan A 7579dcaffe77
audit-encapsulation is a skill published in the GitHub repository melodic-software/claude-code-plugins (34 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 4,837 once invoked, about $0.0004 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-09-03.
audit-encapsulation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| audit-encapsulationmelodic-software/claude-code-plugins | Skill | 34 | today | MIT | A | 96 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | yesterday | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 332k | 6d ago | MIT | A | 21 | Claude Code |