Analyzes repository documentation and suggests improvements for better organization and maintenance.

Install

mkdir -p .claude/skills/doc-tidy && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11705" && unzip -o skill.zip -d .claude/skills/doc-tidy && rm skill.zip

Installs to .claude/skills/doc-tidy

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.

Scan the repo for scattered documentation files, analyze organization issues, and output cleanup recommendations. Analysis only — no changes made.
146 charsno explicit “when” trigger
Beginner

Key capabilities

  • Scan for all Markdown files in the repository
  • Categorize documents by purpose (design, in-code, temporary, etc.)
  • Identify organization issues like root pollution and unorganized accumulation
  • Detect duplicate or orphaned documentation files
  • Output a cleanup plan with specific actions and target structure

How it works

The skill dispatches subagents to scan for documentation files, then categorizes them and identifies organizational issues. It then outputs a structured cleanup plan.

Inputs & outputs

You give it
Repository containing documentation files
You get back
Cleanup plan with recommendations for documentation organization

When to use doc-tidy

  • Audit repository documentation
  • Organize readme and reference files
  • Clean up temporary doc files
  • Find missing architecture docs

About this skill

Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).

Scan the repo for scattered documentation files, analyze organization issues, and output cleanup recommendations. Analysis only — no changes made.

Execution Steps

1. Full Scan

Dispatch 3 parallel Explore subagents (model: haiku) to collect a documentation inventory:

Subagent A — Root + Docs/

  • All .md files in root directory (except CLAUDE.md, AGENTS.md)
  • All files and directory structure under Docs/ (recursive)
  • For each file: path, first line content, line count

Subagent B — In-code documentation under Assets/

  • All .md files under Assets/ (recursive)
  • Including README, ARCHITECTURE, API_REFERENCE, CHANGELOG, AGENTS.md, etc.
  • For each file: path, first line content, line count

Subagent C — Config & tool documentation

  • .claude/ directory structure
  • Documentation under scripts/
  • Templates under .github/
  • Root config files (.mcp.json, opencode.json, etc.)

2. Classify

Categorize all documents by:

CategoryDescription
Long-term designSystem architecture, module design, data config (should be centrally managed)
In-code docsREADME, API reference, dev guides (should live with the code)
Branch artifactsReview outputs, spec files, timelines (should be archived after merge)
Temporary filestmp-*, one-off bug reports, old prompts (should be cleaned or archived)
Project entry pointsCLAUDE.md, AGENTS.md, PR templates (should stay in root)
Tool configSkills, hooks, script docs (each has its place, don't move)

3. Find Issues

Check and report:

  • Root pollution: files in root that shouldn't be there
  • Unorganized accumulation: directories with >10 files and no subdirectory structure
  • Temporal mixing: long-term docs and temporary artifacts in the same directory
  • Duplicate docs: files with highly similar names or content across directories
  • Orphaned docs: documents referencing deleted modules or outdated code
  • Missing docs: Service modules with code but no documentation at all

4. Output Cleanup Plan

Format:

## Current State Summary
- X documentation files across Y locations
- Main issues: 1, 2, 3 (one sentence each)

## Issue List
For each issue: location, description, number of files affected

## Recommended Plan
### Target Directory Structure
(tree diagram)

### Specific Actions
Priority ordered:
1. Delete (temporary files, confirmed unused)
2. Move (archive, categorize)
3. Merge (eliminate duplicates)
4. Fill gaps (important modules missing docs — flag but don't rush)

### Leave Alone
Explicitly list locations that are well-organized and need no changes

Important Notes

  • Analysis only — do not execute — output the plan and wait for user confirmation
  • Do not touch design docs synced from external sources (e.g., Notion exports) — their structure is managed externally
  • Do not touch skill files — they are not ordinary documentation
  • Do not touch in-code READMEs — unless duplicates are found, keep them in place
  • For docs where staleness is uncertain, mark as "needs confirmation" rather than suggesting deletion

When not to use it

  • When changes to documentation files are to be executed directly
  • When dealing with design docs synced from external sources
  • When skill files or in-code READMEs are to be modified without specific issues

Limitations

  • The skill only performs analysis and outputs recommendations; no changes are made
  • Does not touch design docs synced from external sources
  • Does not touch skill files or in-code READMEs unless duplicates are found

How it compares

This skill provides an automated analysis and structured cleanup plan for documentation organization, unlike manually reviewing and organizing files.

Compared to similar skills

doc-tidy side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
doc-tidy (this skill)04moNo 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