documentation-validation
БесплатноБез исполняемых скриптовНе проверенUse when the user wants to validate documentation quality, check for broken links, lint prose or Markdown, test code examples, verify setup instructions, or…
от uw-ssec★ 33 звезды на GitHubОб этом скилле
Documentation Validation
Treat documentation as a tested, linted, CI-checked deliverable — not an afterthought.
Resources in This Skill
References (detailed guides — use the table of contents in each file):
| File | Contents |
|---|---|
references/vale-configuration.md |
Vale .vale.ini options, style packages (proselint, write-good, Google, alex), custom rules, vocabulary files, editor/CI integration, configuration recipes |
references/validation-tools.md |
markdownlint, HTMLProofer, doc8, link checkers (lychee, markdown-link-check), language-specific doc testing (Python/Rust/R/Go/Julia), notebook validation, CI pipeline assembly, pre-commit hooks, container-based instruction testing |
references/documentation-standards.md |
Diataxis framework, completeness criteria (4 maturity levels), README standards, API doc coverage, readability metrics, documentation debt, definition of "documentation complete" |
Assets (ready-to-use):
| File | Contents |
|---|---|
assets/vale-config.ini |
Annotated Vale config template for scientific documentation |
assets/validation-checklist.md |
Completeness checklist for project handoff (Essential Files, User Docs, Developer Docs, Project Health, Scientific-specific, Onboarding) |
Quick Reference Card
Tool Decision Tree
What do you need to validate?
│
├── Prose quality (grammar, style, passive voice, jargon)?
│ └── Vale → see references/vale-configuration.md
│
├── Markdown syntax and formatting?
│ └── markdownlint-cli2 → see references/validation-tools.md#markdownlint
│
├── reStructuredText syntax?
│ └── doc8 → see references/validation-tools.md#doc8
│
├── Broken links?
│ ├── In Markdown files → markdown-link-check or lychee
│ ├── In HTML docs → HTMLProofer
│ └── In Sphinx projects → sphinx-build -b linkcheck
│
├── Code examples actually work?
│ ├── Python (>>> blocks) → pytest --doctest-glob
│ ├── Rust (/// comments) → cargo test --doc
│ ├── Go (// Output: blocks) → go test -run Example
│ └── Julia (jldoctest) → julia Documenter.jl doctests
│
├── Jupyter notebooks execute correctly?
│ └── nbval / pytest-notebook → see references/validation-tools.md#notebook-validation
│
├── Setup instructions work in a clean environment?
│ └── Container-based testing → see references/validation-tools.md#container-based-instruction-testing
│
└── Overall documentation completeness?
└── assets/validation-checklist.md
Essential Commands
# Prose linting
vale docs/ # lint all docs
vale --minAlertLevel=error docs/ # errors only
# Markdown linting
markdownlint-cli2 "docs/**/*.md" # lint
markdownlint-cli2 --fix "docs/**/*.md" # auto-fix
# RST linting
doc8 docs/
# Link checking
lychee "**/*.md" # Markdown files
sphinx-build -b linkcheck docs docs/_build/linkcheck # Sphinx
htmlproofer docs/_build/html --ignore-status-codes "403,429" # HTML output
# Code examples
pytest --doctest-glob="*.md" --doctest-glob="*.rst" docs/
cargo test --doc
go test -run Example ./...
# Notebook validation
pytest --nbval-lax docs/notebooks/
# Container-based instruction testing
docker build -f Dockerfile.test-docs -t docs-test .
Setup Workflow for a New Project
Follow these steps in order, verifying each checkpoint before proceeding.
1. Prose linting (Vale)
# Install Vale (macOS/Linux)
brew install vale # macOS
snap install vale # Linux
# Copy the template config and sync packages
cp path/to/assets/vale-config.ini .vale.ini
vale sync
# Checkpoint: Vale runs locally without errors
vale docs/
For full configuration options (style packages, custom rules, vocabulary), see references/vale-configuration.md.
2. Markdown / RST linting
npm install -g markdownlint-cli2
pip install doc8
# Checkpoint: linters run cleanly
markdownlint-cli2 "docs/**/*.md"
doc8 docs/
For .markdownlint-cli2.yaml and .doc8.ini config examples, see references/validation-tools.md.
3. Link checking
brew install lychee # or: cargo install lychee
# Checkpoint: no broken internal links
lychee --exclude "example\.com" "**/*.md"
Set up a scheduled CI job for external links (external links are slow and flaky — avoid blocking PRs on them). See references/validation-tools.md#ci-pipeline-assembly for a ready-to-use GitHub Actions workflow.
4. Code example testing
# Python
pytest --doctest-glob="*.md" docs/
# Checkpoint: all >>> blocks pass
Other languages: see references/validation-tools.md#language-specific-doc-testing.
5. Pre-commit hooks
Add Vale and markdownlint to .pre-commit-config.yaml so every commit is checked locally. See references/validation-tools.md#pre-commit-integration for the full hook config.
6. CI integration
Add a GitHub Actions
Установить documentation-validation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл documentation-validation?
Use when the user wants to validate documentation quality, check for broken links, lint prose or Markdown, test code examples, verify setup instructions, or set up CI for documentation testing. Covers prose linting with Vale, Markdown/RST syntax checking (markdownlint, doc8), link validation (HTMLProofer, lychee, markdown-link-check), code example testing (pytest doctest, cargo test --doc), notebook validation (nbval), container-based instruction testing, and GitHub Actions CI integration for research software projects. Trigger phrases: check my docs, broken links, doc quality, documentation errors, spelling/grammar in docs, test documentation, validate README, link check, prose linting, doc CI.
Как установить скилл documentation-validation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл documentation-validation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic