api-docs
Skill2 starsChanged 5 months agoMITView on GitHub
Generate API documentation for the project's HTTP endpoints — an OpenAPI spec or a readable markdown reference — by reading the route handlers. Use when the user says "document the API", "generate OpenAPI", "write API docs", "list the endpoints", "create a Swagger spec", or "document these routes".
9 other projects use a version of this.
Adopted by
Most recently taken up by
- JeffreyFerreiras/ai-skillstheir own version, first seen Oct 5, 2026
- neronain/ClaudeSkills-Neronaintheir own version, first seen Aug 9, 2026
- InovaStack-software/ClaudeSkillstheir own version, first seen Aug 4, 2026
- api-platform/skillsettheir own version, first seen Jun 11, 2026
- peopleforrester/claude-dotfilestheir own version, first seen Apr 5, 2026
- francogalfre/skillstheir own version, first seen Mar 17, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- langchain-ai/skills-benchmarks★ 118same name
- api-platform/skillset★ 26same name
- marttp/my_agent_skills_I_use★ 4same name
- francogalfre/skills★ 3same name
- neronain/ClaudeSkills-Neronain★ 3same name
- peopleforrester/claude-dotfiles★ 3same name
- JeffreyFerreiras/ai-skills★ 1same name
- iamvirul/api-docs-skill★ 0same name
- InovaStack-software/ClaudeSkills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository68 other files it gives its agents.
- a11ySkill
- audit-logSkill
- benchmarkSkill
- bisectSkill
- cacheSkill
- changelogSkill
- cherry-pickSkill
- ci-setupSkill
- codeownersSkill
- commit-messageSkill
- connection-poolSkill
- contributingSkill
- coverageSkill
- db-migrateSkill
- dead-codeSkill
- debugSkill
- depsSkill
- diagramSkill
- dockerizeSkill
- docstringSkill
- e2eSkill
- env-exampleSkill
- error-handlingSkill
- explainSkill
- feature-flagSkill
- flaky-testSkill
- gitignoreSkill
- graceful-shutdownSkill
- graphqlSkill
- healthcheckSkill
- i18nSkill
- idempotencySkill
- licenseSkill
- lint-fixSkill
- loggingSkill
- migrateSkill
- mockSkill
- onboardSkill
- optimizeSkill
- paginationSkill
- pr-descriptionSkill
- pre-commitSkill
- profileSkill
- prune-branchesSkill
- rate-limitSkill
- readmeSkill
- rebaseSkill
- refactorSkill
- regexSkill
- releaseSkill
- resolve-conflictsSkill
- retrySkill
- review-diffSkill
- scaffoldSkill
- secrets-scanSkill
- security-headersSkill
- seedSkill
- soft-deleteSkill
- sqlSkill
- squashSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Document the real contract,: not an idealized one. If validation or types define the schema (zod, pydantic, DTOs, JSON schema), reflect …
- Distinctive: line 29
Document only endpoints that exist in the code.
- Distinctive: line 32
After writing, list how many endpoints were documented and any handlers you skipped (and why).
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Route discovery
!grep -rniE "@(Get|Post|Put|Patch|Delete|RequestMapping)|app\.(get|post|put|patch|delete)|router\.(get|post|put|patch|delete)|@app\.route|@router\.(get|post|put|patch|delete)|fastapi|express|flask" --include='*.*' -l . 2>/dev/null | grep -vE 'node_modules|\.git|dist|build|vendor|test|spec' | head -30
Instructions
Generate API documentation for the endpoints in this project (use the format and scope in $ARGUMENTS; default to markdown unless an OpenAPI/Swagger spec already exists or is requested).
Method
- Find the routes. From the files above, locate every endpoint definition. Identify the framework (Express, Fastify, FastAPI, Flask, Django REST, Spring, etc.) so you read handlers correctly.
- For each endpoint, extract: HTTP method and path (including path params), purpose, request shape (path/query params, headers, body schema), response shape and status codes, auth requirement, and notable errors. Read the handler body and any validation schema/DTO/serializer — don't guess the contract.
- Document the real contract, not an idealized one. If validation or types define the schema (zod, pydantic, DTOs, JSON schema), reflect those exactly. Note required vs optional fields and defaults.
- Choose the format:
- OpenAPI (
openapi.yaml/.json) when the project already has one, uses a spec-driven tool, or the user asks. Produce valid OpenAPI 3.x with shared component schemas for reused models. - Markdown otherwise — group endpoints by resource, with a request/response example per endpoint.
- OpenAPI (
- Write to a sensible path (
docs/api.mdoropenapi.yaml) unless the user names one. If a spec already exists, update it rather than replacing it.
Rules
- Document only endpoints that exist in the code. Don't invent routes, fields, or status codes.
- Mark anything you couldn't determine from the code (e.g. a response shape built dynamically) as "TBD — verify" rather than fabricating it.
- Include at least one concrete example request and response per endpoint or resource group.
- After writing, list how many endpoints were documented and any handlers you skipped (and why).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

