Skip to content
Back to skills

Generate Api Docs

ASecurity

Builds API reference pages from your source code in the docs format and folder your project already uses.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill generate-api-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate Api Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate Api Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-generate-api-docs-ai-agent-templates/badge)](https://www.skillsdirectory.com/skills/workspace-templates-generate-api-docs-ai-agent-templates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: generate-api-docs
description: Builds API reference pages from your source code in the docs format and folder your project already uses.
disable-model-invocation: true
---

Generate API reference documentation for: $ARGUMENTS (folder, module or route file; whole public API if empty).

1. Find the existing docs format first: look in docs/, a docs site config (mkdocs.yml, docusaurus, typedoc, sphinx), or an openapi file. Match its folder, front matter, heading levels and page layout. If nothing exists, use one Markdown page per module.
2. Enumerate the public surface. For web services: every route with method, path, auth requirement, path and query parameters, request body and response shapes. For libraries: exported functions and types with signatures.
3. Take descriptions from existing doc comments. Where there are none, write a plain description from the code and mark it `(inferred)`.
4. Document errors: status codes or exceptions and when each occurs, read from the handler code.
5. Include one runnable example per entry, such as a curl command or a short code call, using realistic values.
6. Compare with the pages already there. Update changed entries and list entries that no longer exist in code; do not delete them.

Show a summary of pages created and updated and the list of inferred items, then ask before writing files.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.