api-documentation-verify
Verifies API documentation against source code to eliminate fabricated claims, ensure accuracy, and validate examples. Zero tolerance for unverified claims, marketing language, or non-runnable code examples. Use before committing API docs or during documentation reviews.
Best use case
api-documentation-verify is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Verifies API documentation against source code to eliminate fabricated claims, ensure accuracy, and validate examples. Zero tolerance for unverified claims, marketing language, or non-runnable code examples. Use before committing API docs or during documentation reviews.
Teams using api-documentation-verify should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/api-documentation-verify/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How api-documentation-verify Compares
| Feature / Agent | api-documentation-verify | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Verifies API documentation against source code to eliminate fabricated claims, ensure accuracy, and validate examples. Zero tolerance for unverified claims, marketing language, or non-runnable code examples. Use before committing API docs or during documentation reviews.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# API Documentation Verification Skill
## Purpose
Verify API documentation accuracy against source code. This skill eliminates fabricated API methods, unverified performance claims, non-runnable code examples, and marketing language. Every documented feature must exist in the codebase.
## Quick Start
Use this skill to verify:
- **API methods** exist with correct signatures
- **Code examples** are runnable and accurate
- **Performance claims** have benchmark support
- **Configuration options** match source code
- **Error documentation** matches thrown errors
- **Marketing language** is removed
- **Dependencies** match package.json
## Verification Categories (Summary)
### CRITICAL (Must Fix Before Commit)
- **API Method Existence**: Every documented method must exist in source with exact signature
- **Parameter/Return Types**: Types must exactly match implementation (no guessing)
- **Code Examples**: All examples must be runnable with proper imports and error handling
- **Performance Claims**: ZERO tolerance for unverified claims - require benchmarks
### HIGH (Should Fix Soon)
- **Configuration**: Documented options must exist with correct field names
- **Error Documentation**: All thrown errors must be documented
### MEDIUM (Nice to Have)
- **Marketing Language**: Remove buzzwords (blazing-fast, revolutionary, enterprise-grade)
- **Dependency Versions**: Match package.json exactly
**For detailed checks with examples and verification patterns:**
```
Read `~/.claude/skills/api-documentation-verify/references/VERIFICATION-CHECKS.md`
```
Use when: Need specific verification patterns, examples of good/bad documentation, or detailed check descriptions
---
## Execution Process (Summary)
### Core Steps
1. **Identify Documentation**: Find all .md files, README, DOCS, API files
2. **Extract Claims**: Methods, examples, config, performance claims
3. **Verify Against Source**: Compare documented vs actual (read source files)
4. **Check Marketing Language**: Scan for banned words/phrases
5. **Generate Report**: CRITICAL/HIGH/MEDIUM issues with line numbers
6. **Provide Corrections**: Show correct versions for critical issues
7. **Summary Statistics**: Count issues, verified items
**For detailed execution steps with bash commands and report formats:**
```
Read `~/.claude/skills/api-documentation-verify/references/EXECUTION-STEPS.md`
```
Use when: Performing verification, need bash commands, or want detailed report format templates
---
## LEGACY CONTENT TO REMOVE
## Integration Points
This skill can be invoked:
- **Manually** when reviewing documentation
- **Before commits** that modify documentation
- **In CI/CD** as documentation linting step
- **Before releases** to ensure doc accuracy
## Exit Criteria
- All API methods verified against source code
- All code examples validated for runnability
- All performance claims checked for benchmark support
- All configuration options verified
- All errors documented
- Marketing language flagged
- Report generated with specific line numbers
- CRITICAL issues should block documentation commits
## Example Usage
```bash
# Manual invocation
/skill api-documentation-verify
# Verify specific doc file
/skill api-documentation-verify README.md
# Verify all docs in directory
/skill api-documentation-verify docs/
```
## Automation Opportunities
This skill can be automated in CI/CD:
```yaml
# .github/workflows/docs-verify.yml
name: Verify Documentation
on:
pull_request:
paths:
- "**.md"
- "docs/**"
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Verify API Documentation
run: |
# Run skill via Claude Code API
claude-code skill api-documentation-verify
```
## References
- Diátaxis Framework: https://diataxis.fr/
- Technical Documentation Expert Agent
- Good Docs Project: https://thegooddocsproject.dev/
- API Documentation Best Practices: https://swagger.io/resources/articles/best-practices-in-api-documentation/
---
## Related Agent
For comprehensive documentation guidance that coordinates this and other documentation skills, use the **`documentation-coordinator`** agent.Related Skills
documentation-templates
Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation.
documentation-structure-validator
Validate documentation structure, check for missing sections, verify markdown syntax, ensure consistency with templates. Use when user mentions docs validation, structure check, README review, documentation quality, or wants to verify documentation completeness.
documentation-standards
Clear technical documentation with JSDoc, READMEs, Mermaid diagrams, ISMS policy references, and comprehensive code examples
documentation-specialist
文档专家。专注于技术文档编写、API 文档生成、README 优化和文档维护。提供清晰的文档结构、规范的格式和用户友好的内容。
documentation-research
Enforces documentation research before implementation. Auto-loads when implementing features to ensure current best practices are followed. Researches official docs first.
documentation
Technical writing, API docs, and documentation best practices
Documentation Hygiene
This skill should be used when the user asks to perform "documentation hygiene", "update docs for change", "mark historical docs", "add deprecation headers", "documentation migration", or when making significant changes that affect multiple documentation files (like license migrations, tier changes, or API changes).
documentation-guidelines
Write or update backend feature documentation that follows a repo's DOCUMENTATION_GUIDELINES.md (or equivalent) across any project. Use when asked to create/update module docs, API contracts, or backend documentation that must include architecture, endpoints, payloads, Mermaid diagrams, and seeding instructions.
documentation-generation-doc-generate
You are a documentation expert specializing in creating comprehensive, maintainable documentation from code. Generate API docs, architecture diagrams, user guides, and technical references using AI...
docs-verify
Validates documentation quality and freshness — checks for broken links, stale content, llms.txt sync, image issues, heading hierarchy, and badge URLs. Runs locally or in CI. Use to catch documentation decay before it reaches users.
create-oo-component-documentation
Create comprehensive, standardized documentation for object-oriented components following industry best practices and architectural documentation standards.
code-documentation
Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.