agents-progressive-disclosure skill
A skill that turns a bloated AGENTS.md or CLAUDE.md into a short router plus focused reference files under docs.
- 77 ★ on the repository
- Last commit
Extended access
Why this level
- The skill rewrites and moves project instruction files.
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add skills/agents-progressive-disclosureDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewExtended accessThe tool runs code or makes network calls and only reads external data.
- The skill rewrites and moves project instruction files.
This is third-party code. Review the repository files before installing.
What it does
The skill applies progressive disclosure to agent instruction files. The root file stays compact: it keeps only always-on rules and a "read this document when..." index. Detailed regulations, technical descriptions and task-specific flows move to `docs/`, and the agent loads them as needed. The agent first reads the file in full, looks for contradictions between rules, then separates permanent rules from narrow ones. The root file is rewritten as a router, long sections move to focused files, and the skill then checks that the intent of the original rules survived. It also handles files other than `AGENTS.md`, such as `CLAUDE.md` and `GEMINI.md`.
Who it is for. Developers whose agent instruction file has grown to hundreds of lines and mixes project rules with process descriptions.
Good fit when
- The project `AGENTS.md` has grown and the agent loses important rules.
- Build, test and code style descriptions need to be split into separate documents.
- The root file should tell the agent which document to read for a task.
- Before editing, rules are checked for contradictions.
Not a fit when
- The instruction file is short and clear, so the skill may leave it unchanged.
- The file is global: the context gain is close to zero and the value is only easier maintenance.
- The file must be kept verbatim, with no rearrangement of rules.
Example request
Use $agents-progressive-disclosure to turn the current AGENTS.md into a compact entrypoint plus focused documents in docs.Limitations
The skill edits project files, so it checks for backups before editing, and the result deserves your own review. The author suggests asking the agent whether the split became too fine and whether frequent procedures moved into `docs/` needlessly. The value for a global `AGENTS.md` is small because such instructions hit the cache anyway. The documentation is in Chinese and English, and the repository has no license file.
How to disable. Delete the skill folder from the agent skills directory. A backup or git history restores the previous instruction file.
FAQ
What does progressive disclosure mean?
The root file keeps only permanent rules and a document index. Everything else lives in `docs/` and is read when a task needs it.
Which files does the skill handle?
`AGENTS.md`, `CLAUDE.md`, `GEMINI.md` and similar files. With several candidates the agent reports them and picks the most widely used one.
Which steps does the agent follow?
It reads the file, checks contradictions, classifies rules, rewrites the root as a router, moves long sections and verifies that the intent was preserved.
Should a global AGENTS.md be split?
Not necessarily. Context savings are close to zero because such instructions hit the cache, and the point is easier maintenance.
How do I install the skill?
With `npx skills add Caph-dev/agents-progressive-disclosure`, or send the agent the repository link and it installs the skill itself.
Discussion
No questions or reviews yet.
Related
SkillsA skill that creates and updates AGENTS.md files per the agents.md spec: a thin root file plus separate files for each subsystem
A library of 30-plus instruction skills for coding agents: planning, building, testing, hallucination guards and shipping
Two skills for Codex and Claude Code: prd keeps a living implementation checklist and review audits designs from the user's side
The author's personal set: shared agent rules and dozens of skills for GitHub, the browser, macOS, messaging and releases, plus a sync script
Agent rules from programming books
AI agents Rules / Skills from Programming Books
Skills and AGENTS.md rules distilled from classic books: Clean Code, Refactoring, DDD, Clean Architecture, DDIA and more
agent-toolkit offers generic skills for engineering tasks: from a ticket to a plan, tasks and a handover for review.
README in short
The repository is tiny: the skill itself, interface metadata in `agents/openai.yaml` and a README in two languages. The author stresses that the skill need not split a file and may leave it as is or reorganize it in place.
README badge
Original SKILL.md
--- name: agents-progressive-disclosure description: Refactor bloated AGENTS.md/CLAUDE.md-style instruction files into a compact router plus focused on-demand docs. Use when users ask to apply progressive disclosure, split agent rules into docs, reduce instruction bloat, or turn one large rule file into an entrypoint. --- # Agents Progressive Disclosure Use this skill to assess a long agent instruction file and choose the smallest useful change: leave it unchanged, reorganize it in place, or split it into a high-signal entrypoint and focused docs. Preserve rules while avoiding unnecessary always-loaded context. ## Core Model Treat the root instruction file as a router, not a rule warehouse. - The entry file keeps always-on rules and short, frequently used facts or commands that prevent common mistakes. - Lengthy task-specific guidance can move into `docs/` files when it has an independent trigger and is needed only for some tasks. - The entry file includes a clear “read this doc when...” index. - The agent should load only the docs relevant to the current task. ## Workflow 1. Identify the target instruction file. - Prefer the current directory's `AGENTS.md` unless the user names another file. - Also support `CLAUDE.md`, `GEMINI.md`, or project-specific equivalents. - If multiple candidates exist and the user did not specify one, report the candidates and choose the file most broadly used by the current agent setup; ask only when that choice is unclear or risky. 2. Inspect existing structure. - Read the target file fully. - List existing `docs/` files, if any. - Check for backups before editing. 3. Detect contradictions before classification. - Scan for conflicting style rules, package-manager choices, test commands, safety boundaries, precedence statements, or duplicated rules with different wording. - Resolve contradictions from explicit user instructions, nearest instruction-file priority, or clear local evidence when possible. - Ask the user only when a contradiction affects the refactor and cannot be resolved from available evidence. 4. Choose the smallest useful change. - Unless the user explicitly requires a split, assess whether splitting solves a concrete problem. If the file is already compact, its rules are usually needed together, or the benefit of splitting is unclear, keep it unchanged or reorganize it in place. - If no change is justified, explain why and stop without creating backups or new docs. For local reorganization, skip the docs-map step and limit edits and validation to what changed. 5. Classify rules by their actual content and use. - Keep always-on and safety-critical rules in the entrypoint. Short, frequently used facts and commands that prevent common mistakes can stay there too, such as the package manager and the normal test command. - Move lengthy explanations, procedures, or examples into docs when they have an independent trigger and are needed only for some tasks. - Consider frequency of use and the consequences of missing a rule. Do not move content solely because its topic is testing, Git, environment setup, or another category. 6. Design the docs map. - Prefer the project's existing agent-doc convention; otherwise default to `docs/` for cross-agent portability. - Existing conventions may include `.claude/`, `.claude/rules/`, `.cursor/rules/`, or another agent-doc directory. - Use existing document names when they already fit; otherwise derive focused names from the source rule clusters. - Preserve platform-specific file formats, required frontmatter, imports, path globs, and file extensions. - Create `docs/README.md` only when it helps navigate multiple docs.