Skip to content
Agentmart
Submit a tool

generate-api-docs

Generate API reference documentation from existing route definitions, controllers, and schemas.

Skill by superMLdev

IndexedMIT★ 8
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/supermldev-generate-api-docs

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate API reference documentation from existing route definitions, controllers, and schemas. Produces a markdown API reference or OpenAPI YAML spec. Use when the API has no docs, outdated Swagger, or the team wants a readable markdown reference.

Use cases: documents, backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/generate-api-docs

What's inside

Skill name
generate-api-docs
Description
Generate API reference documentation from existing route definitions, controllers, and schemas. Produces a markdown API reference or OpenAPI YAML spec. Use when the API has no docs, outdated Swagger, or the team wants a readable markdown reference.
License
MIT
Instructions
258 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Generate API Documentation

Produce complete, accurate API documentation by reading route files, controllers, and schema definitions directly.

## When to Use

- API has no documentation
- Swagger/OpenAPI spec is missing or outdated
- Team wants a human-readable markdown API reference
- Preparing docs to push to Confluence or a developer portal

## Step 1: Locate API Definitions

Search for route/endpoint definitions in this priority order:

**Express/Node.js:**
- Router files: `src/routes/`, `src/api/routes/`, `app/routes/`
- Controller files: `src/controllers/`, `src/api/controllers/`
- Main app file where routes are registered

**FastAPI/Python:**
- Router files: `app/routers/`, `src/api/`
- `main.py` or `app.py` where routes are registered
- Pydantic models for request/response schemas

**NestJS:**
- `*.controller.ts` files
- `*.module.ts` for route grouping
- DTO files: `*.dto.ts`

**Spring Boot:**
- `@RestController` annotated classes
- `@RequestMapping`, `@GetMapping`, etc.
- Request/response DTO classes

**Other:**
- OpenAPI spec files: `openapi.yaml`, `swagger.json`, `api-spec.yaml`
- `.proto` files (gRPC)
- GraphQL schema files: `schema.graphql`, `typeDefs.ts`

## Step 2: Extract Endpoint Information

For each endpoint, capture:

```
Method:    GET / POST / PUT / PATCH / DELETE
Path:      /api/v1/users/:id
Auth:      required (JWT) | optional | none
Summary:   Get user by ID
Handler:   UserController.getById (file:line)

Path params:
  id  UUID  User's unique identifier

Query params:
  include  string (optional)  Comma-separated relations to include (e.g., "posts,sessions")

Request body: (if applicable)
  {JSON schema or TypeScript interface}

Response 200:
  {shape found in controller return statement or serializer}

Response codes:
  200  Success
  400  Validation error
  401  Unauthenticated
  403  Unauthorized
  404  Not found
  500  Internal error
```

## Step 3: Extract Auth Requirements

Document globally:
- What auth scheme is used (JWT, API Key, Session, OAuth2)
- How to obtain credentials (if visible in auth routes)
- Where to pass them (Authorization header, query param, cookie)
- Which endpoints are public vs protected

## Step 4: Extract Common Error Formats

Find the error response shape (look at error middleware or existing 4xx/5xx responses):

```json
{
  "message": "string",
  "code": "string",
  "details": {}
}
```

## Step 5: Output Format Choice

Ask: "Which format do you need?"
- **A** — Markdown API reference (human-readable, good for Confluence/GitHub)
- **B** — OpenAPI 3.0 YAML (machine-readable, Swagger UI compatible)
- **C** — Both

---

## Output A: API_REFERENCE.md

Write to: `{project-root}/docs/API_REFERENCE.md`

```markdown
# API Reference — {project_name}

> Generated by Scout on {date}. Source: route files in `{src/api/}`.

## Base URL

`{/api/v1}` (configure via {BASE_URL} env var)

## Authentication

**Type:** {JWT Bearer Token}

Include token in all authenticated requests:

From superMLdev/smart-sdlc, MIT.

More from superMLdev/smart-sdlc

Signals

Stars
8
Forks
1
Open issues
0
Last commit (this folder)
Apr 20, 2026 (6 months ago)
Last release
Apr 28, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from superMLdev

Cite this page

generate-api-docs skill. Agent Mart. https://agentmart.dev/skills/supermldev-generate-api-docs (last updated 2026-10-24)