documentation-cleanup
Validate and repair documentation structure, including indexes, Mermaid diagrams, and ADRs.
Install
mkdir -p .claude/skills/documentation-cleanup && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10521" && unzip -o skill.zip -d .claude/skills/documentation-cleanup && rm skill.zipInstalls to .claude/skills/documentation-cleanup
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Validate and fix documentation integrity in SolTechnology.Core — module/doc parity, indexes, tables, Mermaid diagrams, links, ADR formatting, numbered lists.Key capabilities
- →Check module and documentation file parity
- →Validate index entries and hierarchy
- →Verify table and Mermaid diagram syntax
- →Check Architecture Decision Record (ADR) structure
- →Validate links and formatting in markdown files
- →Fix numbered lists for consistent formatting
How it works
The skill identifies markdown files, then checks for module-doc parity, index correctness, table and Mermaid diagram validity, ADR structure, link integrity, and numbered list formatting.
Inputs & outputs
When to use documentation-cleanup
- →Fixing broken doc links
- →Validating architecture decision records
- →Maintaining technical documentation health
About this skill
Documentation Cleanup
Validate and fix documentation integrity across the docs/ folder.
Process overview
- Identify files to validate
- Check module ↔ doc parity
- Check indexes
- Validate tables and Mermaid diagrams
- Validate architecture and feature records
- Check links and formatting
- Fix numbered lists
Documentation references
- README.md — top-level module index
- docs/ — per-module docs and reviews
- docs/architecture/ — current system and rationale
- docs/features/ — historical delivery records
Step-by-step procedure
1. Identify files
Collect every *.md under docs/ and the workspace root.
2. Module ↔ Doc Parity
For each folder src/SolTechnology.Core.<Module>/:
- A documentation file exists under docs/ (the file name is set by
README.md — e.g.
Tale→docs/Tale.md,MessageBus→docs/Bus.md). - The module is listed in the README table with a NuGet badge.
3. Check Indexes
For files that contain an index (README, docs/Tale.md, etc.):
- Every index entry has a matching section in the document.
- Every top-level section is listed in the index.
- Index links use angle brackets for any path containing spaces:
[Text](<path/file.md>). - Index hierarchy matches the document hierarchy.
4. Validate Tables and Mermaid Diagrams
For each table:
- Header row present, separator row matches column count, every data row matches column count.
For each Mermaid block:
- Syntax parses (no stray characters).
classDefdeclared before first use.- Node names with spaces use
<br>line breaks:Node[Name<br>With<br>Spaces].
5. Validate Architecture and Feature Records
For every file under docs/architecture/:
- It describes current behavior and rationale, verified against source and tests.
- It contains no obsolete status, implementation tracker, or historical narrative.
- It links to code and module docs instead of copying contracts.
For every durable file directly under docs/features/:
- Filename matches
YYYY-MM-DD-<kebab-name>.md. - Frontmatter contains
status,created, andcompleted. - Status is
planning | planned | in-progress | blocked | completed | abandoned. - Completed and abandoned records have a completion date and completion summary.
- The record warns that it may not describe the current system.
- No durable link points into a deleted or unrelated working folder.
Flag docs/adr/, docs/features/README.md, numbered feature filenames, or hand-maintained feature
status indexes as obsolete workflow artifacts.
6. Check Links and Formatting
- Paths with spaces use angle brackets:
[Text](<path/file.md>). - Relative paths resolve from the file's location.
- Linked files exist on disk.
- Module docs use relative links into
src/SolTechnology.Core.*only when the file is stable (interfaces,ModuleInstaller.cs, public entrypoints).
7. Fix Numbered Lists
- Use
1.for every item (markdown auto-numbers). - Nested lists indented by 4 spaces.
- Hierarchy consistent within a document.
Ignore backtick / inline-code formatting issues unless they break rendering.
Output format
Documentation Cleanup Report
Files Validated
<placeholder>List with brief status.</placeholder>
Issues Found
Module ↔ Doc Parity
<placeholder>Modules without a doc, docs without a module, README gaps.</placeholder>
Index Issues
<placeholder></placeholder>
Table / Mermaid Issues
<placeholder></placeholder>
Architecture / Feature Issues
<placeholder></placeholder>
Link Issues
<placeholder></placeholder>
Numbered List Issues
<placeholder></placeholder>
Fixes Applied
<placeholder>Per-file summary.</placeholder>
Summary
Files validated: <placeholder>count</placeholder> Issues found: <placeholder>count</placeholder> Fixes applied: <placeholder>count</placeholder>
When not to use it
- →When the documentation is not in the SolTechnology.Core structure
- →When the task involves fixing backtick or inline-code formatting issues that do not break rendering
- →When the task is to validate documentation outside the specified `docs/` folder and workspace root
Limitations
- →Does not fix backtick or inline-code formatting issues unless they break rendering
- →Limited to markdown files within the `docs/` folder and workspace root
- →Requires a specific folder structure for module-doc parity checks
How it compares
This skill automates checks for specific documentation standards and applies fixes for numbered lists, unlike manual review which requires human effort for each check.
Compared to similar skills
documentation-cleanup side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| documentation-cleanup (this skill) | 0 | 2mo | No flags | Beginner |
| documentation-review | 11 | 4mo | No flags | Beginner |
| docs-review | 10 | 7mo | No flags | Beginner |
| workthrough | 10 | 8mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
documentation-review
stacklok
Reviews documentation for factual accuracy
docs-review
metabase
Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files.
workthrough
bear2u
Automatically document all development work and code modifications in a structured workthrough format. Use this skill after completing any development task, bug fix, feature implementation, or code refactoring to create comprehensive documentation.
claude-md-improver
anthropics
Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".
anti-slop
rand
Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and design. Use when reviewing or improving content quality, preventing generic AI patterns, cleaning up existing content, or enforcing quality standards in writing, code, or design work.
agent-md-refactor
davila7
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation.