/progressive-disclosure:analyzefrom progressive-disclosure
Audits a repository's documentation structure for AI agent consumption, producing a disclosure map, orphan report, and anti-pattern findings. Detects phantom references and symlink duplications.
Ships in progressive-disclosure. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Audit how a repository progressively discloses its documentation through root configuration files. Produce a structured report covering the disclosure hierarchy, reference graph, orphaned documents, anti-patterns, and actionable recommendations.
Progressive disclosure for AI agents operates on three layers:
Root configuration files are the Layer 1 entry points. Their quality determines whether the rest of the repository is discoverable.
When the target is inside a git repository, only git-tracked files are part of the repository. Untracked files and gitignored files are treated as invisible — they do not appear in the documentation pool, the orphan report, or the metrics, because an agent cloning the repo will never see them. Git never ignores an already-tracked file, so a single "is it tracked?" test enforces both conditions (tracked and not ignored).
The one exception is root configuration entry points themselves (AGENTS.md, CLAUDE.md, GEMINI.md, …): these are detected by existence, since they are often audited before being committed. In its indexed-documentation role, README.md follows the visibility rule like any other doc.
If a root configuration file references an invisible file, that is a phantom reference — the link points at content no one else can load. Flag it and recommend either removing the reference or adding the file to git.
When the target is not a git repository, every matching file is included (filesystem walk with standard excludes).
Two paths can be the same underlying file via a symbolic link — most commonly CLAUDE.md symlinked to AGENTS.md. The discovery script reports these as SYMLINK: lines and SAME-CONTENT: groups. Files in a SAME-CONTENT group are one file under several names; never report them as duplicate content.
When no target is explicitly specified, scan for the following files (in order):
README.md — human-facing documentation about the project; treat as indexed content, not a configuration entry pointAGENTS.mdCLAUDE.mdGEMINI.mdUSER.mdTOOLS.mdBOOTSTRAP.mdDESIGN.mdNOTICE.mdCheck whether the user explicitly named a target file in their prompt (e.g. "analyze docs/CONTRIBUTING.md", "audit README.md").
Execute the discovery script to gather raw data:
"${CLAUDE_PLUGIN_ROOT}/skills/analyze/scripts/discover.sh" "$(pwd)"
The CLAUDE_PLUGIN_ROOT variable resolves to the plugin's installed location. The script produces these sections:
.md files (tracked-only inside a git repo)SYMLINK: lines and SAME-CONTENT: groups (do not treat grouped files as duplicates)UNTRACKED-REF: phantom references from config files to invisible files[EXISTS], [UNTRACKED], or [MISSING]For each root configuration file found, classify its contents against the three-layer model:
Flag any Layer 2 or Layer 3 content found inlined in root configuration files.
Check for these documented failure modes:
| Anti-Pattern | Detection | Severity |
|---|---|---|
| Monolithic root configuration file | CLAUDE.md >300 lines or AGENTS.md >1500 words | High |
| Missing index | Root configuration file has no links to other docs | High |
| Generic instructions | Phrases like "write clean code", "follow best practices", "think step by step" | Medium |
| Style rules in root configuration file | Formatting/linting rules that belong in tool config (eslint, prettier) | Medium |
| Orphaned documentation | .md files not referenced from any root configuration file | Medium |
| Broken references | Links in root configuration files pointing to non-existent files ([MISSING]) | Critical |
| Phantom references | Links to files that exist on disk but are untracked or gitignored (UNTRACKED-REF: / [UNTRACKED]) | Critical |
| Duplicate content | Same instructions in multiple root configuration files — but first exclude SAME-CONTENT: symlink groups, which are one file, not duplicates | Medium |
| No root configuration files at all | Repository has zero root configuration files | Critical |
Provide a rough assessment:
Present findings inline (never hide behind a file path). Structure the report as:
Visual tree showing root configuration files → referenced docs → their sub-references. Mark each node with its disclosure layer (L1/L2/L3).
Per-file assessment: word count, line count, instruction estimate, layer violations found.
What links to what. Highlight broken links ([MISSING]), phantom links to untracked/gitignored files ([UNTRACKED]), and circular references. For each phantom reference, recommend removing the reference or adding the target to git.
Documentation files not reachable from any root configuration file. Group by directory.
Each finding with severity, location, and specific remediation.
Prioritized list of changes to improve progressive disclosure. Lead with highest-impact, lowest-effort items. When restructuring would help, suggest running progressive-disclosure:restructure.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub florianbuetow/claude-code --plugin progressive-disclosure3 skills in this plugin
/progressive-disclosureThis skill should be used when the user asks to "analyze documentation structure", "audit progressive disclosure", "restructure CLAUDE.md", "restructure AGENTS.md", "create a documentation index", "organize project docs", "find orphaned docs", "map documentation references", "improve context loading", or mentions progressive disclosure, documentation hierarchy, root configuration file organization, or context rot prevention. Analyzes or restructures how a repository discloses documentation through root configuration files./restructureprogressive-disclosure:restructureThis skill should be used when the user asks to "restructure CLAUDE.md", "restructure AGENTS.md", "create a documentation index", "add a table of contents to CLAUDE.md", "organize project docs", "refactor root configuration file", "build a doc index", or wants to restructure how a repository's root configuration file references its documentation. Generates a thematic, book-style index in the highest-precedence root configuration file.Other plugins' skills for the same job