Api Documentation
Best-practice guide for documenting APIs and code interfaces, with per-language docstring examples.
- CCM score
- 51 of 100
- skills.sh installs
- 409
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers core documentation principles, function and method docs, endpoint specs, class and module docs, and README structure
- Includes docstring and JSDoc samples for Python, JavaScript, and Go, plus OpenAPI and GraphQL schemas
- Lists documentation anti-patterns such as redundant comments and outdated docs that drift from code
- Designed for agents writing or reviewing docs alongside code changes
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill api-documentation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
API Documentation
Best practices for documenting APIs and code interfaces. Eliminates ~100-150 lines of redundant documentation guidance per agent.
Core Documentation Principles
- Document the why, not just the what - Explain intent and rationale
- Keep docs close to code - Inline documentation stays synchronized
- Document contracts, not implementation - Focus on behavior
- Examples are essential - Show real usage
- Update docs with code - Outdated docs are worse than no docs
Function/Method Documentation
Python (Docstrings)
def calculate_discount(price: float, discount_percent: float) -> float:
"""
Calculate discounted price with percentage off.
Args:
price: Original price in dollars (must be positive)
discount_percent: Discount percentage (0-100)
Returns:
Final price after discount, rounded to 2 decimals
Raises:
ValueError: If price is negative or discount > 100
Examples:
>>> calculate_discount(100.0, 20.0)
80.0
>>> calculate_discount(50.0, 50.0)
25.0
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Category
- Technical Documentation
- First seen
- Jun 3, 2026
Questions
What does the api-documentation skill do?
The api-documentation skill gives Claude Code best practices for documenting APIs and code interfaces. It covers docstrings and JSDoc comments, OpenAPI and GraphQL endpoint docs, class and module docs, and README structure, and it focuses on documenting the why and the contracts rather than the implementation.
How do I install the api-documentation skill?
Run npx -y skills add bobmatnyc/claude-mpm-skills --skill api-documentation -y in a project to install it. After that, the api-documentation skill is available to the agent in that project.
Which category does api-documentation belong to and what sets it apart?
The api-documentation skill is listed under Technical Documentation on Claude Marketplaces. Within that category it stands out by covering Python docstrings, JavaScript JSDoc, Go godoc, OpenAPI and GraphQL side by side, along with anti-pattern examples for redundant and outdated comments.
Is the api-documentation skill meant for a specific language or framework?
The api-documentation skill is not tied to one language. Its examples cover Python, JavaScript and Go, and it also covers REST and GraphQL interface documentation, so it suits API work in several stacks.
More from bobmatnyc/claude-mpm-skills
All 154- Screenshot408
- Vue408
- Software Patterns401
- Root Cause Tracing400
- Nextjs V16399
- Testing Anti Patterns398
- Vercel Deployments Builds396
- Security Scanning395
- Test Quality Inspector395
- Stacked Prs391
- Svelte5 Runes Static390
- Better Auth Core386
- Homebrew Formula Maintenance383
- Better Auth Integrations381
- Reporting Pipelines381
- Better Auth Plugins380
- Git Worktrees379
- Vb Winforms377
- Nextjs Core375
- Headlessui374
- Fastapi Local Dev373
- Sec Edgar Pipeline372
- Vb Core371
- Vercel Networking Domains371
Similar to Api Documentation
More Technical Documentationapi-design-patternsbobmatnyc/claude-mpm-skills596 installsComprehensive API design reference covering REST, GraphQL, and gRPC style selection, versioning, pagination, and authentication.
code-documentationaj-geddes/useful-ai-prompts503 installsStructured documentation guidance covering JSDoc, Python docstrings, JavaDoc, and inline comments for functions, classes, and modules.
api-reference-documentationaj-geddes/useful-ai-prompts503 installsStructured API reference documentation skill covering OpenAPI specs, endpoints, authentication, and examples.
openapi-spec-generationwshobson/agents17.6K installsStructured OpenAPI 3.1 spec generation, from code or design-first, with validation patterns for API contracts.
api-documentersickn33/agentic-awesome-skills628 installsExpert API documentation guide covering OpenAPI 3.1, interactive docs, SDK generation, and developer portals.
api-design-principleswshobson/agents32.4K installsOpinionated guide covering REST and GraphQL API design principles for building maintainable, developer-friendly interfaces.