api-docs
Skill0 starsChanged 6 days agoMITView on GitHub
Write reference documentation or an OpenAPI spec for a REST/HTTP API by reading its source code. Use when the user says "document the API", "write endpoint docs", "generate an OpenAPI/Swagger spec", "what endpoints do we have", or "document this route".
- Sends data out
18 other projects use a version of this.
Adopted by
Most recently taken up by
- lengrufeng2008/dsh-skill-librarytheir own version, first seen Nov 15, 2026
- ainurdev/mystical-assistanttheir own version, first seen Nov 8, 2026
- Zwin-ux/kittheir own version, first seen Oct 11, 2026
- shenjingnan/xiaozhi-clienttheir own version, first seen Oct 8, 2026
- mono/SkiaSharptheir own version, first seen Oct 8, 2026
- JeffreyFerreiras/ai-skillstheir own version, first seen Oct 5, 2026
Used with
Projects with it also use frontend-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 3 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- mono/SkiaSharp★ 5.6ksame name
- shenjingnan/xiaozhi-client★ 341same name
- langchain-ai/skills-benchmarks★ 116same name
- ainurdev/mystical-assistant★ 7same name
- marttp/my_agent_skills_I_use★ 4same name
- francogalfre/skills★ 3same name
- neronain/ClaudeSkills-Neronain★ 3same name
- peopleforrester/claude-dotfiles★ 3same name
- Pradnyeshp/Claude-Skills★ 2same name
- AstyanM/claude-am-plugin★ 1same name
8 more not listed
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 repository24 other files it gives its agents.
- changelogSkill
- ci-failure-fixSkill
- code-reviewSkill
- commit-messageSkill
- competitor-analysisSkill
- data-analystSkill
- debug-detectiveSkill
- dependency-upgradeSkill
- dockerizeSkill
- email-replierSkill
- eval-promptSkill
- incident-postmortemSkill
- meeting-notesSkill
- migration-safetySkill
- pr-descriptionSkill
- product-specSkill
- readme-writerSkill
- refactor-safelySkill
- research-briefSkill
- security-checkSkill
- seo-articleSkill
- sql-helperSkill
- support-replySkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Document what the code does, not what the endpoint name suggests.
- Very specific: line 12
Look for openapi.*, swagger.*, FastAPI (serves /openapi.json), NestJS @nestjs/swagger, drf-spectacular, springdoc, tRPC/GraphQL schemas, or …
- Distinctive: line 16
Use the framework's convention, then confirm by searching:
- Distinctive: line 25
Auth: follow the middleware chain, decorators or guards.
- Distinctive: line 27
Responses: every status the handler returns or throws, plus framework defaults (validation errors are often 400 or 422, unauthenticated …
- Distinctive: line 58
If you can run the server locally, call a couple of endpoints with the curl examples and correct any mismatch.
- Distinctive: line 65
Put real tokens, keys or customer data in examples.
“Common” is measured: kept by at least 6 in 10 of the 17 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
API documentation
Document what the code does, not what the endpoint name suggests. Anything you could not confirm is marked as such.
1. Check for existing specs or generators
Look for openapi.*, swagger.*, FastAPI (serves /openapi.json), NestJS @nestjs/swagger, drf-spectacular, springdoc, tRPC/GraphQL schemas, or zod-to-openapi. If the framework can generate the spec, prefer configuring that over writing one by hand, and say so.
2. Find every route
Use the framework's convention, then confirm by searching:
- Express/Fastify/Koa:
app.get(,router.post(, mounted prefixes fromapp.use('/prefix', router). - Next.js:
app/**/route.ts(exportedGET,POST...) andpages/api/**. - FastAPI/Flask/Django:
@app.get,@router.post,@bp.route,urls.py. - Rails
config/routes.rb, Laravelroutes/*.php, GoHandleFunc/router groups, Spring@GetMapping. Build the full path including prefixes and versioning. List the endpoints first and ask if internal or admin ones should be included.
3. For each endpoint, trace the handler
- Auth: follow the middleware chain, decorators or guards. Note the mechanism (bearer token, session cookie, API key header) and any role or ownership check.
- Input: path params, query params, headers and body from the validator (zod, joi, pydantic, class-validator, serializers). Copy exact types, required/optional, defaults, enums, min/max, formats.
- Responses: every status the handler returns or throws, plus framework defaults (validation errors are often 400 or 422, unauthenticated 401, unhandled 500). Take the response shape from the code or the response model.
- Side effects worth knowing: sends email, charges a card, is not idempotent, rate limited.
4. Write it
For Markdown docs, per endpoint:
### POST /api/v1/orders
Creates an order for the current user.
Auth: Bearer token, role "customer".
| Field | In | Type | Required | Notes |
|---|---|---|---|---|
Responses:
- 201: { example JSON with realistic values }
- 400: validation error, example body
- 401, 404 ...
Example:
curl -X POST http://localhost:3000/api/v1/orders -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"sku":"A1","qty":2}'Group endpoints by resource. Put shared things (base URL, auth, error format, pagination) once at the top.
For OpenAPI: version 3.1 YAML (3.0 if the user's tooling needs it), reusable components/schemas for shared shapes, securitySchemes for auth, an operationId per operation.
5. Verify
- If you can run the server locally, call a couple of endpoints with the curl examples and correct any mismatch.
- Validate an OpenAPI file with a linter if one is available (for example
npx @redocly/cli lint openapi.yaml); otherwise at least check it parses as YAML. - Mark anything inferred with "(unverified)" and list those points in your reply.
Do not
- Invent endpoints, fields, status codes or rate limits.
- Put real tokens, keys or customer data in examples.
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.

