api-documentation
Skill4 starsChanged 4 months agoMITView on GitHub
Documents an interface others will call — endpoints, SDK methods, CLI commands, and their parameters, errors, and limits. Use this whenever the user needs API docs, an OpenAPI spec, reference documentation, docstrings for a public library, or has an interface that people keep asking questions about. For designing the interface itself, use api-design; for prose guides and READMEs, use markdown-docs.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- 5throck/ai-workspace-standardstheir own version, first seen Sep 26, 2026
- irahardianto/awesome-agvtheir own version, first seen Aug 21, 2026
- leaf76/agent-skillstheir own version, first seen Aug 17, 2026
- drvoss/everything-copilot-clitheir own version, first seen Aug 9, 2026
- yiweiwan/skillstheir own version, first seen May 12, 2026
- YepAPI/skillstheir own version, first seen Apr 12, 2026
Used with
Projects with it also use security-audit.
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.
CloudflareSkillsecurity-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
Also in 4 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- irahardianto/awesome-agv★ 157same name
- drvoss/everything-copilot-cli★ 47same name
- 5throck/ai-workspace-standards★ 16same name
- autohandai/community-skills★ 11same name
- troykelly/claude-skills★ 11same name
- YepAPI/skills★ 8same name
- onejaejae/skills★ 2same name
- ronrefael/sonde★ 2same name
- OpenBun/Skills★ 1same name
- yiweiwan/skills★ 1same name
1 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 repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- infrastructure-as-codeSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- commit-messagesSkill
- diagrammingSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- integration-testingSkill
- load-testingSkill
- test-dataSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- security-analysisSkill
- threat-modelingSkill
- capacity-planningSkill
- disaster-recoverySkill
- incident-responseSkill
- monitoring-setupSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
6
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 25
Done when: no fact appears in both the code and the docs, maintained separately.
- Distinctive: line 51
Document the error *body* shape, not just the status code.
- Distinctive: line 53
Done when: every error a caller can encounter is listed with a recommended response.
- Distinctive: line 64
Done when: every example runs as written.
- Distinctive: line 85
Keep a single canonical page per operation — duplicated docs diverge
- Distinctive: line 94
Test the examples. Where the ecosystem allows it, run them in CI — an example that stops working is a bug report from every reader.
“Common” is measured: kept by at least 6 in 10 of the 10 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
Reference documentation is not read; it is searched. Someone arrives mid-task with a specific question — what does this return, what happens when it fails, is this required, and leaves as soon as they have the answer.
Optimise for that. Completeness beats narrative, and the questions people actually have are rarely the ones the happy-path example answers.
1. Generate the mechanical parts
Signatures, types, parameter lists, and status codes should come from the code — OpenAPI from annotations, docstrings extracted, CLI help generated. Anything hand-maintained drifts, and wrong reference documentation is worse than none because it is believed.
Hand-write only what cannot be derived: why, when, what happens on failure, and the constraints the type system does not express.
Done when: no fact appears in both the code and the docs, maintained separately.
2. Document each parameter properly
A name and a type are not documentation. For each parameter:
- What it means, in domain terms
- Required or optional, and the default if optional — the default is the most frequently looked up fact and the most frequently missing
- Valid values or range. For an enum, all of them
- Format, where ambiguous — is a date a Unix timestamp, ISO 8601, or a date-only string?
- What happens at the boundary: maximum length, what happens above it
The unstated constraint is the classic support ticket: a field that silently truncates at 255 characters, documented nowhere.
Done when: a caller could construct a valid request without experimenting.
3. Document errors as thoroughly as successes
This is the half that gets skipped and the half people need most, because the success case is usually guessable.
For each operation, list what can go wrong: the code, what causes it, and what the caller should do. Distinguish retryable from terminal — a caller cannot write correct retry logic otherwise.
Document the error body shape, not just the status code. Callers parse it.
Done when: every error a caller can encounter is listed with a recommended response.
4. Show real, complete, runnable examples
- Real values, not
fooandstring. A plausible example teaches the format for free - Complete: a request someone can copy, paste, and run, including auth
- Show the response too, in full, so the shape is unambiguous
- Include an error example, not only the happy path
One good example per operation beats a prose paragraph describing the same thing.
Done when: every example runs as written.
5. Cover the operational contract
Routinely undocumented, routinely the cause of production problems:
- Authentication: how, what scopes, how tokens expire
- Rate limits: the numbers, the headers, what a caller should do on 429
- Pagination: the mechanism, defaults, and maximums
- Idempotency: which operations are safe to retry, and how to signal a retry
- Ordering and consistency: say plainly if there are no guarantees
- Size and timeout limits
- Deprecation: what is going away, when, and what replaces it
Done when: someone could write a well-behaved client from the docs alone.
6. Organise for search, not for reading
- Group by what the user is trying to do, not by internal module structure
- Name sections as the questions people arrive with
- Make everything linkable, so support answers can point at an anchor
- Keep a single canonical page per operation — duplicated docs diverge
Version the documentation alongside the API, and keep the old version available. Someone is still on it.
Done when: a search for the operation name lands on the right page.
Keeping it true
Test the examples. Where the ecosystem allows it, run them in CI — an example that stops working is a bug report from every reader.
Where documentation contradicts behaviour, the documentation is not always the thing to change. Sometimes you have found a bug, and that is worth checking before editing the page.
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.

