audit-encapsulation

audit-encapsulation is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 99 tokens per session (4,773 once invoked), scanned A, original, MIT.

An audit tool for checking whether agent skills expose or depend on private files outside their public interface.

In plain words
What is it for?
Use it to find and fix boundary violations across skills, plugins, rules, agents, and documentation.
Why use it?
It catches hidden dependencies that can break when a skill's internal files are reorganized.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

Part of the docs-hygiene plugin — 9 skills, 1 agent shipped together

Good fit Use it to find and fix boundary violations across skills, plugins, rules, agents, and documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/melodic-software/claude-code-plugins/audit-encapsulation
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.

Any agent
npx skills add melodic-software/claude-code-plugins --skill audit-encapsulation
Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code.

Or install docs-hygiene, the plugin that ships this one along with the rest of its 9 skills, 1 agent.

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 audit-encapsulation

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-encapsulation/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-encapsulation)
Your own site
<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.

agentmods 80×15 button for audit-encapsulation

Your own site · 80×15
<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>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,773 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00099 $0.04773
Opus 5.5 $0.00040 $0.01909
Sonnet 5.5 $0.00020 $0.00955
Haiku 4.5 $0.00010 $0.00477

Measured today against content hash c0201525b6b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/detect.sh, scripts/detect.test.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/docs-hygiene/skills/audit-encapsulation/SKILL.md · 239 lines

How it starts

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

Why this skill exists

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. Editing the private body must not break external consumers because no external consumer is allowed to depend on it.

Without enforcement, private bodies leak. A rule file cites a path inside <skill>/<some-subdir>/ because the content is convenient. The skill author refactors that subdir and the citation breaks silently. Nothing fails the build, nothing greps red. The skill cannot evolve without coordinating with every leaker.

This skill provides the detection + classification + remediation discipline that closes that gap. Distinct concern from /docs-hygiene:extract-ssot (which detects 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, 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), is defined by context/public-surface-contract.md, including the data-file and scripts/ entry-surface carve-outs and the rip-and-paste-portability rationale. This skill audits cites against two more 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

Read the full file on GitHub · 239 lines

Files

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.

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. today Changed · +15 lines c0201525b6b1
  2. 7d ago Changed 94d7d77def81
  3. 16d ago Changed · -5 tokens per session 992e40534c96
  4. 17d ago Changed · +12 tokens per session 09b44399d584
  5. 26d ago Changed bab59c1395f1
  6. 1mo ago First seen · 224 lines · 92 tokens per session scan A 7914ec7d5056

Subscribe to this mod's changes

audit-encapsulation is a skill published in the GitHub repository melodic-software/claude-code-plugins (26 stars, last pushed today), licensed MIT. It adds 99 tokens to every session and 4,773 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.

Related

Other skills, from other repositories

parallel-orchestrator

Manage parallel Claude Code workstreams using git worktrees. Use when: splitting large tasks across multiple workers, coordinating parallel development, monitoring worker progress, integrating completed work, analyzing work item documents (code reviews, issue lists). Triggers: parallel, orchestrator, worktrees…

jimmc414/claude-code-plugin-marketplace · 78 tokens

parallel-worker

Execute focused implementation tasks in a parallel workflow. Use when: working on assigned files in a worktree, making checkpoint commits, signaling dependencies or blockers, completing orchestrator-assigned tasks. Triggers: worker, checkpoint, worktree, assigned scope, commit prefix, parallel task.

jimmc414/claude-code-plugin-marketplace · 59 tokens

optimize-local-search

For NP-hard optimization: TSP, scheduling, assignment problems. Uses greedy construction + local improvement (2-opt, hill climbing).

jimmc414/claude-code-plugin-marketplace · 31 tokens

solve-constraint-puzzle

For constraint satisfaction: Sudoku, scheduling, N-queens, logic puzzles, SAT-like problems, assignment problems. Uses propagate-then-search pattern.

jimmc414/claude-code-plugin-marketplace · 36 tokens

test-with-examples

For example-driven development: test cases as specifications, input/output pairs, documentation through examples.

jimmc414/claude-code-plugin-marketplace · 23 tokens

validate-before-process

For input validation: check format and constraints before processing, fail fast with clear errors, defensive parsing.

jimmc414/claude-code-plugin-marketplace · 24 tokens