Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Notysoty/openagentskills --skill api-docs-generatorgit clone --depth 1 https://github.com/Notysoty/openagentskillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/notysoty/openagentskills/api-docs-generator)<a href="https://agentmods.dev/skills/notysoty/openagentskills/api-docs-generator"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/api-docs-generator/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/notysoty/openagentskills/api-docs-generator"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/api-docs-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.01816 |
| Opus 5.5 | $0.00008 | $0.00726 |
| Sonnet 5.5 | $0.00004 | $0.00363 |
| Haiku 4.5 | $0.00002 | $0.00182 |
Grade A, and why
API Documentation Generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Documentation Generator
What this skill does
This skill reads REST API route handlers (Express, FastAPI, Go net/http, Rails, Django, or any framework) and generates complete OpenAPI 3.0 YAML documentation. It extracts paths, HTTP methods, path/query/body parameters, response shapes, and error codes, then writes properly structured YAML with example request and response bodies. The output can be loaded directly into Swagger UI, Redoc, or any OpenAPI-compatible tool.
Use this when you have undocumented API code and need to produce accurate, usable API documentation quickly.
How to use
Claude Code / Cline
Copy this file to .agents/skills/api-docs-generator/SKILL.md in your project root.
Then point the agent at your routes file and ask:
- "Use the API Documentation Generator skill on
server/routes.ts." - "Generate OpenAPI docs for all routes in
src/api/using the API Documentation Generator skill."
The agent will read the route files and any referenced handler functions to extract parameter and response shapes.
Cursor
Add the "Prompt / Instructions" section to your .cursorrules file. Open your routes file in the editor and ask Cursor to generate the OpenAPI YAML.
Codex
Paste your route definitions and handler code into the chat along with the instructions below. Include type definitions or schema files if they exist — they help Codex produce accurate request/response schemas.
The Prompt / Instructions for the Agent
When asked to generate API documentation, follow these steps:
-
Read the route definitions. For each route, extract:
- HTTP method (GET, POST, PUT, PATCH, DELETE)
- Path, including path parameters (e.g.,
/users/:id→/users/{id}) - Router-level middleware (e.g., authentication guards — these become
securityentries) - The handler function name
-
Read the handler functions. For each handler, extract:
- Path parameters (e.g.,
req.params.id) - Query parameters (e.g.,
req.query.page,req.query.limit) - Request body shape — read from validation schema (Zod, Joi, Pydantic, etc.) if present, otherwise infer from how
req.bodyfields are used - All
res.json()/return responseshapes — enumerate every response including error paths - HTTP status codes returned (
200,201,400,401,404,500, etc.)
- Path parameters (e.g.,
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 206 lines · 20 tokens per session scan A a1644b10422c
API Documentation Generator is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 3mo ago), licensed MIT. It adds 20 tokens to every session and 1,816 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
API Documentation Generator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| API Documentation GeneratorNotysoty/openagentskills | Skill | 9 | 3mo ago | MIT | A | 20 | Claude Code, Codex |
| nestjs-documentationFilippoDeSilva/skills | Skill | 2 | 5mo ago | none | A | 48 | Claude Code, Codex |
| api-documentation-v2diegosouzapw/awesome-omni-skills | Skill | 181 | 3d ago | MIT | A | 58 | Claude Code, Codex |
| openapi-expertpersonamanagmentlayer/pcl | Skill | 47 | 1mo ago | Apache-2.0 | A | 57 | Claude Code |
| api-documentation-generatorcuriositech/windags-skills | Skill | 21 | 7d ago | none | A | 129 | Claude Code |
| api-documentationdiegosouzapw/awesome-omni-skills | Skill | 181 | 3d ago | MIT | A | 56 | Claude Code, Codex |
| api-docs-generatorchainlesschain/chainlesschain | Skill | 11 | 20d ago | none | A | 34 | Claude Code |