Skip to content
Back to skills

Doc Compact

ASecurity

Audit and compress bloated documentation sets — duplicated or redundant docs, broken indexes and navigation, oversized files, malformed CLAUDE.md, missing global documentation governance — while preserving adopted behavior. Use when the user says docs are bloated, redundant, scattered or hard to navigate, asks for a full documentation cleanup or compaction, or reports broken indexes. Not for capturing a single new finding (→ doc-update), setting up docs for a new project (→ doc-init), or AGEN...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 25, 2026
ai-agentspythongodocumentation

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add x0c/agent-doc-skills --skill doc-compact --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Compact?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doc Compact
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/x0c-doc-compact-agent-doc-skills/badge)](https://www.skillsdirectory.com/skills/x0c-doc-compact-agent-doc-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doc-compact
description: "Audit and compress bloated documentation sets — duplicated or redundant docs, broken indexes and navigation, oversized files, malformed CLAUDE.md, missing global documentation governance — while preserving adopted behavior. Use when the user says docs are bloated, redundant, scattered or hard to navigate, asks for a full documentation cleanup or compaction, or reports broken indexes. Not for capturing a single new finding (→ doc-update), setting up docs for a new project (→ doc-init), or AGENTS.md edits, which are handed to agents-md-edit."
---

# Documentation compaction

Audit and compress documentation while preserving adopted behavior, evidence and discoverability. Follow the installed lifecycle and environment policies; use `agents-md-edit` for AGENTS.md edits. Delegate only under current user authorization.

## Choose the work

- **Read-only audit:** run `python3 scripts/audit.py PROJECT_ROOT` and inspect actual coverage, misplaced/repeated content and relevant authority. Use the audit sections of [maintenance workflow](references/maintenance-workflow.md#step-2--read-only-audit). Do not install presets, stamp or repair files.
- **Bounded cleanup:** inspect the affected domain and overlapping references, then use the relevant structure/compression/verification sections of that workflow. Do not expand a small request into a repository census.
- **Whole-project cleanup:** read [maintenance workflow](references/maintenance-workflow.md). Discover effective global instructions, audit each actual documentation host, decide structure by readability, compress content and verify the full requested scope.

## Preservation and verification

Change generated or inherited rules through their actual source; preserve managed markers and valid coverage. Use concise content summaries with the shared relevance instruction, without arbitrary reading quotas. Compression does not drop scope, exceptions, timing, evidence or machine-parsed literals.

Read [compression guide](references/compression-guide.md) before substantive compression. Distinguish a smaller file from preserved behavior. Check navigation, source/path liveness, ordinary and exceptional scenarios, and required compact-stamp coverage. Report per-domain results and unresolved factual contradictions; a successful script or stamp is limited coverage evidence.

## Migration completion and stop rule

An authorized knowledge migration is complete when the shared authority preserves the reusable knowledge's applicability and exceptions, local product contracts and evidence remain intact, generic duplication is replaced where safe, and content rereading plus navigation checks reveal no unresolved material defect. For multi-file work, reuse one concise source → authority → local retention/outcome table when useful; a small edit needs no extra ledger.

After accepted changes pass the scoped checks, close out rather than starting another harvest or wording pass. Reopen for a concrete defect, contradiction, missed authorized item, or new user direction. Additional reviews need a specific unresolved question; optional polish alone does not require another cycle.

Files in this skill

  • SKILL.md16.6 KB
  • references/compression-guide.md14.9 KB
  • references/standard.md4.9 KB
  • scripts/audit.py18.4 KB
  • scripts/plan_shards.py9.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.