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 OKHP3/skillz --skill api-documentationgit clone --depth 1 https://github.com/OKHP3/skillzWrote 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/okhp3/skillz/api-documentation)<a href="https://agentmods.dev/skills/okhp3/skillz/api-documentation"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/api-documentation/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/okhp3/skillz/api-documentation"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/api-documentation.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.00086 | $0.00975 |
| Opus 5 | $0.00043 | $0.00487 |
| Sonnet 5 | $0.00017 | $0.00195 |
| Haiku 4.5 | $0.00009 | $0.00097 |
Grade A, and why
api-documentation 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 6d 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 — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
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.
- 6d ago First seen · 99 lines · 86 tokens per session scan A 91b53ba1261b
api-documentation is a skill published in the GitHub repository OKHP3/skillz (3 stars, last pushed today), licensed MIT. It adds 86 tokens to every session and 975 once invoked, about $0.0004 per session on Opus 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-09-03.
Other skills, from other repositories
feature-workflow
Phased workflow for delivering a Drupal feature or non-trivial change: plan, implement, review, test, finalize. Use when building a new custom module, adding a route/form/plugin, changing entity structure or schema, or any task touching more than a couple of files. Do NOT use for typo fixes, CSS tweaks, or single-line…
drupal-module-development
Use when creating or extending Drupal 11 custom modules, including scaffolding, service architecture, and dependency injection best practices.
scale-to-millions
Use this skill whenever the user is designing, reviewing, debugging, or answering interview questions about system/software architecture and scalability — e.g. "scale my app", "how do I handle more traffic", "design a URL shortener / news feed / chat system", "my API is slow under load", "should I shard my database"…
houtu-dependencies
Skill "houtu-dependencies" from lujiafa/houtu-project-skills, covering houtu framework — ai agent coding guide, core principles, code generation workflow (must be executed in order), step 1 — detect version & dependencies and step 2 — identify scenario & select module.
web-auth-integrator
Integrate authentication and authorization flows with provider-specific setup and RBAC safeguards.
web-api-tester
Test API endpoints for correctness, edge cases, auth handling, and OpenAPI contract compliance.