davila7 avatar

Api Documentation Generator

Generates complete API documentation from your codebase, covering endpoints, parameters, request/response formats, authentication flows, and error codes. You get formatted docs with code examples in multiple languages (cURL, JavaScript, Python), plus OpenAPI specs and Postman collections when applicable. Works for REST, GraphQL, and WebSocket APIs. The format is thorough, maybe even verbose, with inline comments in JSON examples and separate sections for every error code. If your API is undocumented or you're onboarding external developers, this gets you from scattered route handlers to professional docs without manually writing hundreds of lines of markdown.

skills.sh installs
493
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill api-documentation-generator --agent claude-code

Installs into .claude/skills of the current project.

Files

API Documentation Generator

Overview

Automatically generate clear, comprehensive API documentation from your codebase. This skill helps you create professional documentation that includes endpoint descriptions, request/response examples, authentication details, error handling, and usage guidelines.

Perfect for REST APIs, GraphQL APIs, and WebSocket APIs.

When to Use This Skill

  • Use when you need to document a new API
  • Use when updating existing API documentation
  • Use when your API lacks clear documentation
  • Use when onboarding new developers to your API
  • Use when preparing API documentation for external users
  • Use when creating OpenAPI/Swagger specifications

How It Works

Step 1: Analyze the API Structure

First, I'll examine your API codebase to understand:

  • Available endpoints and routes
  • HTTP methods (GET, POST, PUT, DELETE, etc.)
  • Request parameters and body structure
  • Response formats and status codes
  • Authentication and authorization requirements
  • Error handling patterns

Step 2: Generate Endpoint Documentation

For each endpoint, I'll create documentation including:

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Documentation, Automation & Workflows
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1firebase avatarfirebase-ai-logicfirebase/skillsfirebase ai logic491skills.sh installs
2yoanbernabeu avatarsupabase-extract-urlyoanbernabeu/supabase-pentest-skillsExtract the Supabase project URL from client-side JavaScript code, environment variables, and configuration files.487skills.sh installs
3aj-geddes avatarapi-versioning-strategyaj-geddes/useful-ai-promptsImplement API versioning strategies including URL versioning, header versioning, backward compatibility, deprecation strategies, and migration guides. Use when 472skills.sh installs
4secondsky avatarapi-error-handlingsecondsky/claude-skillsImplements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building production APIs, implementing error455skills.sh installs
5sickn33 avatarapi-testing-observability-api-mocksickn33/antigravity-awesome-skillsapi testing observability api mock451skills.sh installs
6secondsky avatarwebsocket-implementationsecondsky/claude-skillsImplements real-time WebSocket communication with connection management, room-based messaging, and horizontal scaling. Use when building chat systems, live noti440skills.sh installs