progressive-disclosure:analyze
This skill should be used when the user asks to "analyze documentation structure", "audit progressive disclosure", "map documentation references", "find…
от florianbuetow★ 22 звезды на GitHub
Установить progressive-disclosure:analyze в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Analyze Progressive Disclosure
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.
Concepts
Progressive disclosure for AI agents operates on three layers:
- Layer 1 — Discovery: Lightweight metadata always loaded at session start (root configuration file names, one-line descriptions, file indexes). Consumes minimal instruction budget.
- Layer 2 — Activation: Specific instructional files fetched on-demand when the agent identifies a relevant task phase. Loaded via conversational links from root configuration files.
- Layer 3 — Deep Dive: Dense reference material, source code, API docs. Loaded only when the agent must execute against detailed content.
Root configuration files are the Layer 1 entry points. Their quality determines whether the rest of the repository is discoverable.
Git Visibility
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).
Symbolic Links
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.
Default File List
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.md
Workflow
Step 0: Resolve Target File
Check whether the user explicitly named a target file in their prompt (e.g. "analyze docs/CONTRIBUTING.md", "audit README.md").
- If a file was named: scope the analysis to that file only. Skip root configuration file precedence resolution — treat the named file as the subject of Steps 2–5.
- If no file was named: analyze all root configuration files found by the discovery script as normal.
Step 1: Run Discovery Script
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:
- Git tracking — whether the target is inside a git work tree (determines visibility, above)
- Root configuration files — entry points found
- Documentation files — visible
.mdfiles (tracked-only inside a git repo) - Symlinks —
SYMLINK:lines andSAME-CONTENT:groups (do not treat grouped files as duplicates) - Untracked references —
UNTRACKED-REF:phantom references from config files to invisible files - Reference graph — each reference marked
[EXISTS],[UNTRACKED], or[MISSING] - Orphan detection — visible docs not reachable from any config file
- Metrics — counts and budget figures
Step 2: Classify Disclosure Layers
For each root configuration file found, classify its contents against the three-layer model:
- Layer 1 content (belongs in root configuration file): project description, build commands, file indexes, conversational links to specialized docs
- Layer 2 content (should be linked, not inlined): coding conventions, architecture decisions, testing strategies, workflow instructions
- Layer 3 content (should never be in a root configuration file): full API references, schema dumps, extensive code examples, raw data
Flag any Layer 2 or Layer 3 content found inlined in root configuration files.
Step 3: Detect Anti-Patterns
Check for these documented failure modes:
| Anti-Pattern | Detection | Severity |
|---|---|---|
| Monolithic root configuration file | CLAUDE.md >300 lines or AGENTS.md |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/discover.sh
FAQ
Что делает скилл progressive-disclosure:analyze?
This skill should be used when the user asks to "analyze documentation structure", "audit progressive disclosure", "map documentation references", "find orphaned docs", "check context rot risk", "audit CLAUDE.md", "audit AGENTS.md", or wants to understand how a repository's documentation is structured for AI agent consumption. Produces a disclosure map, orphan report, and anti-pattern findings.
Как установить скилл progressive-disclosure:analyze?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл progressive-disclosure:analyze запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…