C Clean — Documentation skill for Claude Code
Find and remove dead code and stale documentation.
How to install C Clean
Installs to ~/.claude/commands/falkicon-mechanic-c-clean.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Falkicon/Mechanic/HEAD/.claude/commands/c-clean.md -o ~/.claude/commands/falkicon-mechanic-c-clean.md Restart Claude Code, or start a new session, for it to be picked up.
What C Clean does
Find and remove dead code and stale documentation.
**Skill**: [s-clean](../skills/s-clean/SKILL.md)
- Analyze Code: Run
addon.deadcodeto find unused functions, orphaned files, dead exports. - Analyze Docs: Run
docs.staleto find broken links, outdated references, version drift. - Triage: Review findings by confidence level (definite → likely → suspicious).
- Clean: Remove or update identified cruft.
- Verify: Re-run analysis to confirm cleanup is complete.
Alternatives in Documentation
- Doc Co-authoring — Guide users through structured workflow for co-authoring documentation 94.1k ★
- Context7 — claude-plugins-official Up-to-date library documentation lookup 50.1k ★
- Notion Research Documentation — Research Notion content and synthesize findings into structured briefs 14.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Entropy Check.Skill
Scan the codebase for doc drift, dead references, layer violations, and stale features; commit a clean-up and
Cfn Detect Stale Docs
Find documentation that's out of sync with code
Doc Janitor
Clean up stale plan files, session summaries, backups, and other documentation artifacts before merging
Improve Markdowns
Rewrite the project's markdown files for clarity, fix stale references, remove tables, redistribute off-topic
Find Stale References
Find references that point at nothing — doc links and paths to moved files, backticked symbols that were renam
Simplify Code Comments
Remove noise comments from code — delete restatements, keep documentation and "why" comments.
Related Agents
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Branch Hygiene
MUST be used whenever the user asks to find stale, merged, or orphaned git branches, or asks to review/clean u
Doc Janitor
Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session su