apply-progressive-disclosure
Progressive Disclosure Optimizer — Analyze and restructure Claude Code configuration files (CLAUDE.md, skills, commands, agents) to minimize token consumption.
Skill by VitorAndTxr
Chalk Labs
Need help deploying apply-progressive-disclosure?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/vitorandtxr-apply-progressive-disclosure
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, writing, finance, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/apply-progressive-disclosure
Tools it pre-approves 7
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Read,Write,Edit,Bash,Glob,Grep,AskUserQuestion
What's inside
- Skill name
apply-progressive-disclosure- Description
- Progressive Disclosure Optimizer — Analyze and restructure Claude Code configuration files (CLAUDE.md, skills, commands, agents) to minimize token consumption. Supports both project roots (CLAUDE.md) and skill directories (SKILL.md). Applies hierarchical fragmentation, content indexing, skill extraction, and script extraction to reduce startup/trigger context cost. Use when: (1) analyzing repository token budget (/apply-progressive-disclosure analyze), (2) optimizing CLAUDE.md or SKILL.md for token efficiency (/apply-progressive-disclosure optimize), (3) generating before/after token reports (/apply-progressive-disclosure report), (4) optimizing a skill directory (/apply-progressive-disclosure analyze <skill-path>), or (5) user says "optimize context", "reduce tokens", "progressive disclosure", "context bloat", "token budget", "fragment CLAUDE.md", "optimize skill".
- License
- Apache-2.0
- Allowed tools
- Read,, Write,, Edit,, Bash,, Glob,, Grep,, AskUserQuestion
- Instructions
- 124 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (3)
- SKILL.md
- fragmentation-rules.md · references/
- report-format.md · references/
SKILL.md (first lines)
# Progressive Disclosure Optimizer
Reduce tokens loaded at startup by fragmenting monolithic Claude Code configuration into hierarchical, lazy-loaded structures.
## Command Routing
Read the argument after `/apply-progressive-disclosure`. Route to the matching mode:
- `analyze` — Scan repository or skill, calculate token metrics, produce diagnostic report
- `optimize` — Apply fragmentation and restructuring (add `--dry-run` to preview without changes)
- `report` — Generate before/after comparison of token usage
If no argument: run `analyze` by default.
## Agency CLI Integration
This skill uses `agency_cli.py` for all deterministic token analysis operations:
Resolve CLI path: find this skill's own SKILL.md via Glob (`**/apply-progressive-disclosure/SKILL.md`), then the CLI is at `../shared/scripts/agency_cli.py` relative to the skill directory. Store result as `{CLI}`.
## Target Detection
Before executing any mode, determine the target type:
1. If a path argument is provided, use it. Otherwise use the working directory.
2. Check the target directory:
- **Project mode:** Directory contains `CLAUDE.md` → analyze as project root
- **Skill mode:** Directory contains `SKILL.md` → analyze as skill directory
- **Neither:** Ask the user for the correct path
Skill mode uses skill-specific thresholds and targets from `references/fragmentation-rules.md` (see "Skill Directory" section).
## Mode: Analyze
Scan the target and produce a token budget report.
**Workflow (both modes):**
Use the CLI for the entire analysis — it handles project vs skill mode automatically:
```bash
# Run full token analysis
python {CLI} tokens analyze --root <target-path>
# Returns JSON: files, total_tokens, startup_tokens, fragmentation_candidates, etc.
# Find duplicate content
python {CLI} tokens deduplicate --root <target-path>
# Returns: duplicates with locations and token counts
# Generate the analysis report
python {CLI} report context-analysis --input <analysis-json> --output <target-path>/docs/CONTEXT_ANALYSIS.md
```
Present a summary to the user with the top 3 recommendations from the analysis output.
## Mode: Optimize
Apply progressive disclosure transformations. Read `references/fragmentation-rules.md` for thresholds and rules.
**Workflow (Project mode):**
Use CLI for deterministic fragmentation:
```bash
# Fragment CLAUDE.md (Priority 1)
python {CLI} tokens fragment --file <root>/CLAUDE.md --threshold 300 --output-dir <root>/agent_docs/ [--dry-run]
# Fragment a SKILL.md (Priority 1, skill mode)
python {CLI} tokens fragment-skill --file <path>/SKILL.md --threshold 300 --output-dir <path>/references/ [--dry-run]
```
After CLI handles the mechanical extraction, apply these judgment-based steps manually:
1. **Priority 2 — Extract code to scripts:** Review CLI output for code blocks >50 lines and move to `scripts/`.
2. **Priority 3 — Convert procedures to skills:** Identify step-by-step instructions (>10 steps) and create skill files.
3. **Priority 4 — Build documentation index:** Add index table to CLAUDE.md linking extracted documents.
4. **Priority 5 — Deduplicate:** Use `python {CLI} tokens deduplicate --root <path>` to find duplicates, then resolve manually.
After applying changes:
```bash
# Generate before/after comparison report
python {CLI} tokens report --before <before-analysis.json> --after <after-analysis.json> --output <root>/docs/CONTEXT_REPORT.md
```
Present token savings summary to the user.
**Constraints (both modes):**
- Never delete original content — only move it
- Preserve Claude Code precedence hierarchy (org > project > subdir > local)
- Do not fragment security rules, environment config, or essential build commands
- In skill mode: never extract frontmatter, workflow overview, or argument declarations
- Ask user confirmation before writing if changes affect >5 files
## Mode: Report
Generate a comparison report of token usage.
**Workflow (both modes):**
1. Locate `docs/CONTEXT_ANALYSIS.md` and `docs/CONTEXT_MIGRATION.md` in the target directory (project root or skill directory). If either is missing, inform the user which step to run first.
2. Re-scan current state to get live token counts.
3. Produce a diff report:
- Before vs after token counts per file
- Startup/trigger cost reduction percentage
- Total configuration token change
- List of files created, moved, or modified
4. Write to `docs/CONTEXT_REPORT.md` in the target directory and display summary.
## Protected Content
Never fragment or move these out of CLAUDE.md root, regardless of size:
- Build/test commands (top 5 most-used)
- Environment/secret handling instructions
- Security rules
- Stack declarationFrom VitorAndTxr/omni-sw, Apache-2.0.
More from VitorAndTxr/omni-sw
- 0.414score
orchestrator
VitorAndTxr
SDLC Orchestrator — Manages the full Software Development Agency workflow end-to-end.
SkillDFreshness: DClaude Code - 0.414score
project-map
VitorAndTxr
Multi-repository project mapping orchestrator.
SkillDFreshness: DClaude Code - 0.414score
backlog
VitorAndTxr
Backlog management system — Manages user stories as structured JSON with role-based access control, replacing markdown-based BACKLOG.md.
SkillDFreshness: DClaude Code +9 - 0.414score
repo-map
VitorAndTxr
Repository discovery and mapping tool that scans a root path, catalogs every project and sub-repository, and produces a navigable inventory with Mermaid…
SkillDFreshness: DClaude Code - 0.414score
api-doc-scraper
VitorAndTxr
Agentic web scraper that reads API documentation from a URL, extracts endpoints, authentication, models, and error handling into a structured corpus, then…
SkillDFreshness: DClaude Code - 0.409score
qa
VitorAndTxr
QA Specialist — Quality guardian.
SkillDFreshness: DClaude Code +9 - 0.409score
tl
VitorAndTxr
Tech Lead — Senior technical authority.
SkillDFreshness: DClaude Code +9 - 0.409score
dev
VitorAndTxr
Developer Specialist — Execution-focused engineer.
SkillDFreshness: DClaude Code +9 - 0.409score
init-omni-sw
VitorAndTxr
Project Setup for Omni-SW Agency — Configures a project directory with all base files and hooks required by the SDLC Agency plugin before the orchestrator can…
SkillDFreshness: DClaude Code +9 - 0.409score
pm
VitorAndTxr
Product Manager — Senior business strategist and agency's primary client interface.
SkillDFreshness: DClaude Code +9 - 0.409score
po
VitorAndTxr
Product Owner — Bridge between client and technical team.
SkillDFreshness: DClaude Code +9 - 0.383score
skill-creator
VitorAndTxr
Guide for creating effective skills.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 2, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/VitorAndTxr/omni-sw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from VitorAndTxr
- 0.414score
orchestrator
VitorAndTxr
SDLC Orchestrator — Manages the full Software Development Agency workflow end-to-end.
SkillDFreshness: DClaude Code - 0.414score
project-map
VitorAndTxr
Multi-repository project mapping orchestrator.
SkillDFreshness: DClaude Code - 0.414score
backlog
VitorAndTxr
Backlog management system — Manages user stories as structured JSON with role-based access control, replacing markdown-based BACKLOG.md.
SkillDFreshness: DClaude Code +9 - 0.414score
repo-map
VitorAndTxr
Repository discovery and mapping tool that scans a root path, catalogs every project and sub-repository, and produces a navigable inventory with Mermaid…
SkillDFreshness: DClaude Code - 0.414score
api-doc-scraper
VitorAndTxr
Agentic web scraper that reads API documentation from a URL, extracts endpoints, authentication, models, and error handling into a structured corpus, then…
SkillDFreshness: DClaude Code - 0.409score
qa
VitorAndTxr
QA Specialist — Quality guardian.
SkillDFreshness: DClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get apply-progressive-disclosure running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
apply-progressive-disclosure skill. Agent Mart. https://agentmart.dev/skills/vitorandtxr-apply-progressive-disclosure (last updated 2026-10-24)