Docs Cleaner
Audit project documentation, keep one useful source for each topic, and make
the repository easier for users and contributors to understand. Do not change
application behavior or invent project facts.
Contract
- Inspect the repository and run its available checks before editing.
- Establish documentation facts from source code, manifests, scripts, CI, and
existing docs. Treat unverified claims as findings, not facts.
- Produce a findings list with evidence, severity, and one action: update,
merge, remove, add, or ask.
- Ask before creating optional community files. For an explicit project
request, apply the selected baseline directly.
- Remove a document only when it is obsolete, duplicated, or replaced; update
every reference and preserve the useful information first.
- Keep legal notices, security instructions, and historical release information,
and platform-required files unless the owner explicitly approves removal.
- Apply one logical documentation change at a time, then rerun the relevant
checks. Stop on the first unexplained failure.
Workflow
Assess
- Run
scripts/audit_docs.py --json PROJECT_ROOT to inventory documentation,
check standard files, inspect README headings, and find broken local links.
- Read the README, license, and contributor-facing files in full.
- Search the repository for documentation paths, commands, install instructions,
feature names, URLs, and claims that may be stale.
- Identify canonical sources and generated copies. Do not treat generated
platform bundles as redundant files; update their source and regenerate them.
Propose
Rank findings by user or maintainer impact:
- Incorrect commands, broken links, and security or legal gaps.
- Missing onboarding and contribution information.
- Contradictory or stale descriptions and examples.
- Duplicated, overly verbose, or low-value documentation.
For each finding, state the path, evidence, proposed change, and whether it
needs owner approval. Read references/oss-checklist.md for the detailed
community-file rubric.
Apply
- Update claims from repository evidence; never guess versions, support
channels, contacts, or deployment behavior.
- Prefer concise sections and links to one canonical document over repetition.
- Add standard community files only after the requested baseline is confirmed.
- When removing or merging docs, update inbound links, navigation, templates,
and references before deleting the obsolete copy.
- Keep generated integration outputs synchronized through the repository's
converter instead of hand-editing them.
Verify
- Rerun the narrowest relevant project checks after each logical edit.
- Rerun the audit and confirm local links resolve.
- Check that commands, file paths, skill names, and install instructions match
the repository.
- Run the full project checks before reporting completion.
- Summarize every change and any findings intentionally left for the owner.
Boundaries
Do not refactor production code, alter package or CI behavior, rewrite legal
terms, remove security guidance, or create documentation merely to increase
file count. Route code cleanup to cleaner and structural code or directory
changes to manager.
1---2name: docs-cleaner3description: Audit and improve project documentation and open-source repository readiness: README files, guides, contribution policies, security and conduct files, support guidance, and GitHub issue or pull-request templates. Use when documentation is stale, redundant, incomplete, inconsistent, or needs a conservative open-source standards review. Documentation-only changes.4---56# Docs Cleaner78Audit project documentation, keep one useful source for each topic, and make9the repository easier for users and contributors to understand. Do not change10application behavior or invent project facts.1112## Contract13141. Inspect the repository and run its available checks before editing.152. Establish documentation facts from source code, manifests, scripts, CI, and16 existing docs. Treat unverified claims as findings, not facts.173. Produce a findings list with evidence, severity, and one action: update,18 merge, remove, add, or ask.194. Ask before creating optional community files. For an explicit project20 request, apply the selected baseline directly.215. Remove a document only when it is obsolete, duplicated, or replaced; update22 every reference and preserve the useful information first.236. Keep legal notices, security instructions, and historical release information,24 and platform-required files unless the owner explicitly approves removal.257. Apply one logical documentation change at a time, then rerun the relevant26 checks. Stop on the first unexplained failure.2728## Workflow2930### Assess3132- Run `scripts/audit_docs.py --json PROJECT_ROOT` to inventory documentation,33 check standard files, inspect README headings, and find broken local links.34- Read the README, license, and contributor-facing files in full.35- Search the repository for documentation paths, commands, install instructions,36 feature names, URLs, and claims that may be stale.37- Identify canonical sources and generated copies. Do not treat generated38 platform bundles as redundant files; update their source and regenerate them.3940### Propose4142Rank findings by user or maintainer impact:43441. Incorrect commands, broken links, and security or legal gaps.452. Missing onboarding and contribution information.463. Contradictory or stale descriptions and examples.474. Duplicated, overly verbose, or low-value documentation.4849For each finding, state the path, evidence, proposed change, and whether it50needs owner approval. Read `references/oss-checklist.md` for the detailed51community-file rubric.5253### Apply5455- Update claims from repository evidence; never guess versions, support56 channels, contacts, or deployment behavior.57- Prefer concise sections and links to one canonical document over repetition.58- Add standard community files only after the requested baseline is confirmed.59- When removing or merging docs, update inbound links, navigation, templates,60 and references before deleting the obsolete copy.61- Keep generated integration outputs synchronized through the repository's62 converter instead of hand-editing them.6364### Verify6566- Rerun the narrowest relevant project checks after each logical edit.67- Rerun the audit and confirm local links resolve.68- Check that commands, file paths, skill names, and install instructions match69 the repository.70- Run the full project checks before reporting completion.71- Summarize every change and any findings intentionally left for the owner.7273## Boundaries7475Do not refactor production code, alter package or CI behavior, rewrite legal76terms, remove security guidance, or create documentation merely to increase77file count. Route code cleanup to `cleaner` and structural code or directory78changes to `manager`.