DO

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.zip

Installs 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.
157 charsno explicit “when” trigger
Beginner

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

You give it
Markdown files under `docs/` and the workspace root
You get back
A Documentation Cleanup Report detailing issues found and fixes applied

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

  1. Identify files to validate
  2. Check module ↔ doc parity
  3. Check indexes
  4. Validate tables and Mermaid diagrams
  5. Validate architecture and feature records
  6. Check links and formatting
  7. Fix numbered lists

Documentation references

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. Taledocs/Tale.md, MessageBusdocs/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).
  • classDef declared 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, and completed.
  • 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.

SkillInstallsUpdatedSafetyDifficulty
documentation-cleanup (this skill)02moNo flagsBeginner
documentation-review114moNo flagsBeginner
docs-review107moNo flagsBeginner
workthrough108moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry