information-hiding

information-hiding is a skill for Claude Code from codybrom/clairvoyance. It costs 69 tokens per session (1,200 once invoked), scanned A, original, MIT.

A code-review guide for checking whether modules keep design decisions inside the right component. A module is a part of a program with a defined responsibility and boundary.

In plain words
What is it for?
Use it when reviewing module or class boundaries, matching getters and setters, execution-step-based structure, or changes that require editing several modules together.
Why use it?
It helps reveal when several parts of a codebase must know the same format, protocol, or implementation detail. Finding this leakage can make future changes smaller and safer.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the clairvoyance plugin — 16 skills, 1 agent shipped together

Good fit Use it when reviewing module or class boundaries, matching getters and setters, execution-step-based structure, or changes that require editing several modules together.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codybrom/clairvoyance/information-hiding
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 codybrom/clairvoyance --skill information-hiding
Clone the repo
git clone --depth 1 https://github.com/codybrom/clairvoyance

Made for: Claude Code.

Or install clairvoyance, the plugin that ships this one along with the rest of its 16 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 information-hiding

README.md
[![agentmods](https://agentmods.dev/badge/skills/codybrom/clairvoyance/information-hiding/github.svg)](https://agentmods.dev/skills/codybrom/clairvoyance/information-hiding)
Your own site
<a href="https://agentmods.dev/skills/codybrom/clairvoyance/information-hiding"><img src="https://agentmods.dev/badge/skills/codybrom/clairvoyance/information-hiding/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 information-hiding

Your own site · 80×15
<a href="https://agentmods.dev/skills/codybrom/clairvoyance/information-hiding"><img src="https://agentmods.dev/badge/skills/codybrom/clairvoyance/information-hiding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,200 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.00069 $0.01200
Opus 5.5 $0.00028 $0.00480
Sonnet 5.5 $0.00014 $0.00240
Haiku 4.5 $0.00007 $0.00120

Measured 3mo ago against content hash 0139353faf31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

information-hiding 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 3mo 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.

skills/information-hiding/SKILL.md · 99 lines

How it starts

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

Information Hiding Review Lens

When invoked with $ARGUMENTS, focus the analysis on the specified file or module. Read the target code first, then apply the checks below.

Evaluate whether modules encapsulate design decisions effectively.

When to Apply

  • Reviewing module boundaries or class decomposition decisions
  • When multiple modules change together for single-decision changes
  • When private fields have matching getters and setters
  • When modules are organized around execution steps (read/process/write)
  • When a format, protocol, or representation appears in multiple places

Core Principles

Knowledge Ownership Test

For every design decision in the code (data format, algorithm choice, protocol, storage representation):

  1. Which module owns this decision?
  2. Is that ownership exclusive, and no other module knows this?
  3. If this decision changes, does only one module need editing?

If #3 is "no," there is information leakage.

Two Kinds of Leakage

Interface Leakage

The decision appears in parameters, return types, or exceptions. Bad, but at least visible and discoverable.

Back-Door Leakage

Two or more modules encode the decision in their implementations with nothing in the code surface making the dependency visible. This maps directly to unknown unknowns: a developer modifying one module has no signal the other must change. More pernicious than interface leakage for exactly this reason.

Signs of back-door leakage:

  • Changing an internal data structure breaks a seemingly unrelated module
  • Two modules must be updated in lockstep but have no direct API dependency
  • Shared assumptions about file formats, message ordering, or naming conventions that exist nowhere in the code or docs an agent could load into context
  • Tests that break in module B when module A's internals change

Not all dependencies are eliminable. Transforming a hidden dependency into an obvious one is often more valuable than trying to remove it. At least then the next developer knows to look.

Read the full file on GitHub · 99 lines

Files

What ships with it

1 file 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. 3mo ago First seen · 99 lines · 69 tokens per session scan A 0139353faf31

Subscribe to this mod's changes

information-hiding is a skill published in the GitHub repository codybrom/clairvoyance (22 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 1,200 once invoked, about $0.0003 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.

Related

information-hiding compared with skills from other repositories

information-hiding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
information-hidingcodybrom/clairvoyanceSkill221mo agoMITA69Claude Code
agent-cross-review-1ambda-dataops-platform-2majiayu000/claude-skill-registrySkill754yesterdayMITA0Claude Code, Codex
agent-design-best-practicesmajiayu000/claude-skill-registrySkill754yesterdayMITA0Claude Code, Codex
agent-checkmajiayu000/claude-skill-registrySkill754yesterdayMITA0Claude Code, Codex
neo-rustBenknightdark/neo-skillsSkill715d agoMITA83Claude Code, Codex
neo-code-reviewBenknightdark/neo-skillsSkill715d agoMITA87Claude Code, Codex
neo-prBenknightdark/neo-skillsSkill715d agoMITA60Claude Code, Codex