claude-docs-validate — скилл для Claude Code
Скилл проверяет локальную копию документации Claude: свежесть, битые ссылки, состояние кэша. Пригодится, когда нужно понять, не устарели ли справки в ~/.claude-code-docs/.
npx skills add costiash/claude-code-docs --skill claude-docs-validate -a claude-codeЧто делает claude-docs-validate
Скилл работает с локальным клоном документации в ~/.claude-code-docs/. Сначала он смотрит, есть ли файл paths_manifest.json. Если его нет, значит плагин не установлен или документация не склонирована — скилл подскажет команды установки.
Дальше проверяется свежесть по двум сигналам: когда собрали манифест и когда клон последний раз обновлялся через git. Если манифест старше примерно суток, его обычно обновляет SessionStart-хук на следующей сессии. Вручную это делается через git fetch origin main и git reset --hard origin/main в каталоге документации. Затем скилл смотрит статус кэша скриптом fetch-docs.sh status — сколько страниц в манифесте, сколько закэшировано, сколько в ожидании.
Отдельный шаг — валидация URL скриптом validate-paths.sh. Есть быстрый режим с флагом --quick и полный скан, который занимает 1-2 минуты. Скрипт берёт адреса прямо из манифеста и выдаёт сводку: доступные, битые, с таймаутом. Если битые ссылки не пропадают после git pull, страница могла переехать — об этом стоит написать в issues репозитория. Для статистики есть jq по манифесту: общее число страниц и разбивка по категориям.
Какие задачи решает
- проверить, не устарела ли локальная копия документации Claude
- найти битые и недоступные ссылки в манифесте документации
- посмотреть, сколько страниц закэшировано и сколько ждёт синхронизации
- обновить клон документации вручную, если хук не сработал
- посчитать страницы документации по категориям
Примеры запросов агенту
- Проверь, актуальна ли моя локальная документация Claude
- Найди битые ссылки в документации
- Покажи статистику по страницам документации
Как установить claude-docs-validate
1Через Skills CLI (Vercel)
npx skills add costiash/claude-code-docs --skill claude-docs-validate -a claude-code2Вручную: положить файлы
~/.claude/skills/claude-docs-validate/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/claude-docs-validate/
1Через Skills CLI (Vercel)
npx skills add costiash/claude-code-docs --skill claude-docs-validate -a codex2Вручную: положить файлы
.agents/skills/claude-docs-validate/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add costiash/claude-code-docs --skill claude-docs-validate -a cursor2Вручную: положить файлы
.cursor/skills/claude-docs-validate/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install costiash/claude-code-docs claude-docs-validate2Вручную: положить файлы
.github/skills/claude-docs-validate/SKILL.md1Через Skills CLI (Vercel)
npx skills add costiash/claude-code-docs --skill claude-docs-validate -a gemini-cli2Командой платформы
gemini skills install https://github.com/costiash/claude-code-docs --path plugin/skills/claude-docs-validateВручную: положить файлы
.devin/skills/claude-docs-validate/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add costiash/claude-code-docs --skill claude-docs-validate -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о claude-docs-validate
Как установить claude-docs-validate в Claude Code?
Через маркетплейс плагинов: сначала /plugin marketplace add costiash/claude-code-docs, потом /plugin install claude-docs@claude-code-docs. После установки скилл лежит в ~/.claude/skills/claude-docs-validate/SKILL.md.
Что делает claude-docs-validate?
Проверяет состояние локального клона документации в ~/.claude-code-docs/: свежесть манифеста и клона, статус кэша, доступность URL. Плюс считает страницы по категориям, если попросить.
Что делать, если ссылок битых много?
Скорее всего поменялся sitemap. Сначала обновите клон через git pull, потом запустите валидацию заново. Если ссылки всё равно не открываются, страница могла переехать — сообщите в issues репозитория.
Исходный текст
SKILL.md · MIT
--- name: claude-docs-validate description: > Check the health and freshness of locally-stored Claude documentation. Use this skill when the user asks about documentation health, broken links, stale docs, freshness checks, or wants to validate that their local install is up-to-date and all URLs are reachable. Triggers on: "are my docs current", "check doc health", "validate documentation", "broken links", "stale docs". --- # Claude Documentation Validation Skill Check whether the local documentation clone at `~/.claude-code-docs/` is healthy and up-to-date. ## When to Use This Skill Activate when the user asks about: - Documentation freshness or staleness - Broken links or unreachable docs - Health checks on their local install - Whether docs need updating ## Validation Workflow ### Step 1: Check if the metadata is installed Verify `~/.claude-code-docs/paths_manifest.json` exists. 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 > ``` ### Step 2: Check freshness Two signals — when the manifest was last generated (server-side), and when the clone last pulled: ```bash jq -r '.generated_at' ~/.claude-code-docs/paths_manifest.json # manifest build time cd ~/.claude-code-docs && git log -1 --format="%ci %s" # clone last updated ``` If the manifest is older than ~24h, the SessionStart hook normally refreshes it on the next session; a manual refresh is `cd ~/.claude-code-docs && git fetch origin main && git reset --hard origin/main`. ### Step 3: Check the cache status ```bash ~/.claude-code-docs/plugin/scripts/fetch-docs.sh status ``` Reports manifest pages / cached / pending / stale. If pending > 0, suggest `/docs sync`. ### Step 4: Run URL validation (if user asks for it) Quick spot-check (recommended first), or full scan (1-2 min): ```bash bash ~/.claude-code-docs/plugin/skills/claude-docs-validate/scripts/validate-paths.sh --quick bash ~/.claude-code-docs/plugin/skills/claude-docs-validate/scripts/validate-paths.sh ``` These read URLs directly from the manifest. Report the summary (reachable / broken / timed out). For persistent broken URLs, the upstream page may have moved — report at https://github.com/costiash/claude-code-docs/issues. ### Step 5: Doc statistics (if user asks for stats/count) ```bash jq '.pages | length' ~/.claude-code-docs/paths_manifest.json # total jq -r '.pages[].category' ~/.claude-code-docs/paths_manifest.json | sort | uniq -c | sort -rn # by category ``` ## Troubleshooting | 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 | ## Reference Files - `examples/validate-docs.md` — Example validation workflow
© costiash · MIT · costiash/claude-code-docs