This consolidates API documentation patterns into reusable guidance so you're not explaining docstring formats and REST conventions in every project prompt. It covers the standard stuff: Python docstrings, JSDoc, Godoc, OpenAPI specs, and README structures with actual examples you can pattern match against. The core principles are solid (document why not what, keep docs near code, show examples). Worth noting it includes anti-patterns too, which is helpful when you're trying to avoid redundant comments or outdated docs. If you're spinning up agents that touch APIs or write libraries, this saves you from copy-pasting the same documentation standards repeatedly. The 100-150 lines saved per agent claim seems about right.

skills.sh installs
389
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill api-documentation --agent claude-code

Installs into .claude/skills of the current project.

Files

API Documentation

Best practices for documenting APIs and code interfaces. Eliminates ~100-150 lines of redundant documentation guidance per agent.

Core Documentation Principles

  1. Document the why, not just the what - Explain intent and rationale
  2. Keep docs close to code - Inline documentation stays synchronized
  3. Document contracts, not implementation - Focus on behavior
  4. Examples are essential - Show real usage
  5. 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

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Backend & APIs, Documentation, AI & Agent Building
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158
1firebase avatarfirebase-firestore-standardfirebase/skillsfirebase firestore standard358skills.sh installs
2letta-ai avatarletta-api-clientletta-ai/skillsBuild applications with the Letta API — a model-agnostic, stateful API for building persistent agents with memory and long-term learning. Covers SDK patterns fo355skills.sh installs
3pedronauck avatarevolution-apipedronauck/skillsEvolution API integration for WhatsApp messaging, instance management, webhooks, and chatbot orchestration. Use when: (1) Creating or managing WhatsApp instance344skills.sh installs
4aradotso avatarcli-to-js-api-wrapperaradotso/trending-skillscli to js api wrapper336skills.sh installs
5secondsky avatarbun-redissecondsky/claude-skillsUse when working with Redis in Bun (ioredis, Upstash), caching, pub/sub, session storage, or key-value operations.328skills.sh installs
6automattic avatarwp-interactivity-apiautomattic/agent-skillswp interactivity api327skills.sh installs