From claude-docs
Validates health and freshness of locally-stored Claude documentation, checking for broken links, stale content, and URL reachability.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-docs:claude-docs-validateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check whether the local documentation mirror at `~/.claude-code-docs/` is healthy and up-to-date.
Check whether the local documentation mirror at ~/.claude-code-docs/ is healthy and up-to-date.
Activate when the user asks about:
Verify ~/.claude-code-docs/docs/ exists and contains .md files. If not:
Documentation not found. Run this in Claude Code to install:
/plugin marketplace add costiash/claude-code-docs /plugin install claude-docs@claude-code-docs
cd ~/.claude-code-docs && git log -1 --format="%ci %s"
Report when docs were last updated. If older than 24 hours, suggest:
cd ~/.claude-code-docs && git pull
For a quick spot-check (recommended first):
bash ~/.claude-code-docs/plugin/skills/claude-docs-validate/scripts/validate-paths.sh --quick
For a full scan (all docs — takes 1-2 minutes):
bash ~/.claude-code-docs/plugin/skills/claude-docs-validate/scripts/validate-paths.sh
cd ~/.claude-code-docs && git pull to get latestReport documentation coverage:
# Total docs
ls ~/.claude-code-docs/docs/*.md | wc -l
# By category
echo "Claude Code: $(ls ~/.claude-code-docs/docs/claude-code__*.md 2>/dev/null | wc -l)"
echo "Agent SDK: $(ls ~/.claude-code-docs/docs/docs__en__agent-sdk__*.md 2>/dev/null | wc -l)"
echo "API Reference:$(ls ~/.claude-code-docs/docs/docs__en__api__*.md 2>/dev/null | wc -l)"
echo "Build Guides: $(ls ~/.claude-code-docs/docs/docs__en__build-with-claude__*.md 2>/dev/null | wc -l)"
echo "Tools: $(ls ~/.claude-code-docs/docs/docs__en__agents-and-tools__*.md 2>/dev/null | wc -l)"
| Issue | Solution |
|---|---|
| "Documentation not found" | Plugin not installed or docs not cloned. Re-run /plugin install claude-docs@claude-code-docs |
| Many broken URLs | Likely a sitemap change. Run git pull first, then re-validate |
| Timeout errors | Network issue or Anthropic site is slow. Try again later |
| "Permission denied" | Check that ~/.claude-code-docs/ is readable |
examples/validate-docs.md — Example validation workflownpx claudepluginhub costiash/claude-code-docs --plugin claude-docsDetects documentation drift, stale references, and cross-document inconsistencies in projects. Scans code-doc mismatches, broken links, outdated versions, and git staleness.
Optimizes CLAUDE.md hierarchies, .claude/rules, ecosystem files, and docs/ folders per Anthropic best practices. Detects redundancies, conflicts, and suggests improvements.
Audits documentation against source code using git-based staleness detection. Run with no args for smart check or specify a path. Supports full audit, auto-fix, and check-only modes.