Skills api-documentation-generator
📚

api-documentation-generator

Safe

Generate Professional API Documentation

Also available from: CrazyDubya

Stop writing API docs manually and keep them outdated. This skill automatically generates comprehensive, developer-friendly documentation from your codebase with working examples.

Supports: Claude Codex Code(CC)
📊 70 Adequate
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "api-documentation-generator". Document a POST /users endpoint that creates user accounts

Expected outcome:

  • ## Create User
  • Creates a new user account.
  • Endpoint: POST /api/v1/users
  • Authentication: Required (Bearer token)
  • Request Body: email (required), password (required, min 8 chars), name (required)
  • Success Response: 201 Created with user object including id, email, name, createdAt
  • Error Responses: 400 Validation Error, 409 Email Exists, 401 Unauthorized
  • Examples provided in cURL, JavaScript fetch, and Python requests

Using "api-documentation-generator". Document GraphQL GetUser query with ID parameter

Expected outcome:

  • ## User Query
  • Fetch user information by ID.
  • Query: GetUser($id: ID!) returns user object with id, email, name, role, posts
  • Variables: id (required, ID type)
  • Response: Data object containing user with nested posts array
  • Errors: USER_NOT_FOUND with extension code and userId

Security Audit

Safe
v1 • 2/24/2026

This skill is a documentation generator that produces API documentation from codebases. Static analysis flagged 65 external_commands and 12 network patterns, but all are FALSE POSITIVES. The SKILL.md file contains only instructional markdown with code examples formatted using markdown backticks (not shell execution). URLs are documentation examples (api.example.com), not actual network calls. No executable code, no cryptographic implementations, and no system commands exist. Safe for publication.

1
Files scanned
487
Lines analyzed
0
findings
1
Total audits
No security issues found
Audited by: claude

Quality Score

38
Architecture
100
Maintainability
87
Content
21
Community
100
Security
91
Spec Compliance

What You Can Build

REST API Documentation

Generate complete endpoint documentation for REST APIs with request/response examples, authentication details, and error codes

GraphQL Schema Documentation

Create query and mutation documentation with variable specifications, response structures, and error formats

Developer Portal Content

Produce comprehensive API reference docs including getting started guides, authentication setup, and usage guidelines

Try These Prompts

Basic Endpoint Documentation
Document this API endpoint: [paste code]. Include the HTTP method, URL path, request parameters, response format, and one code example.
Full API Reference
Generate complete API documentation for this codebase: [paste files]. Include all endpoints, authentication requirements, request/response schemas, error codes, and code examples in cURL, JavaScript, and Python.
OpenAPI Specification Generation
Convert this API code into an OpenAPI 3.0 specification: [paste code]. Include all paths, components, security schemes, and example values.
Documentation Update from Code Changes
Update the API documentation based on these code changes: [show diff]. Identify new endpoints, modified parameters, and changed response formats. Provide updated documentation sections.

Best Practices

  • Keep documentation close to code using comments or annotations to ensure they stay in sync
  • Include working code examples tested against a sandbox or staging environment
  • Document all error codes and edge cases, not just success scenarios

Avoid

  • Writing documentation examples with placeholder data like foo and bar instead of realistic values
  • Documenting only happy path scenarios without covering error handling
  • Creating documentation as a separate artifact that gets forgotten when code changes

Frequently Asked Questions

What programming languages does this skill support?
This skill can document APIs written in any language. It generates documentation examples in cURL, JavaScript, Python, and other languages as needed.
Can this generate OpenAPI/Swagger specifications?
Yes. Provide your API code and this skill will generate a valid OpenAPI 3.0 specification file that can be used with Swagger UI or similar tools.
Does this skill test the documented endpoints?
No. This skill generates documentation from code analysis but does not execute or validate endpoints. Test examples in your staging environment.
Can this document GraphQL APIs?
Yes. This skill documents GraphQL queries, mutations, and subscriptions with variable specifications, response structures, and error formats.
How do I keep documentation updated when my API changes?
Run this skill again with your updated code. For best results, integrate documentation generation into your CI/CD pipeline.
Can this create Postman collections?
Yes. This skill can generate Postman collection JSON files that include all documented endpoints with example requests.

Developer Details

File structure

📄 SKILL.md