api-docs-writer

api-docs-writer is a skill for Claude Code, Codex from zhuyansen/agent-skills-hub. It costs 24 tokens per session (176 once invoked), scanned A, original, MIT.

A skill for writing reference documentation for an HTTP endpoint from its handler code. An HTTP endpoint is a server URL that accepts requests and returns responses.

In plain words
What is it for?
Use it to document API routes and show a short summary of the changes or findings.
Why use it?
It turns implementation details into documentation for parameters, responses, and errors without guessing when source material is missing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to document API routes and show a short summary of the changes or findings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhuyansen/agent-skills-hub/api-docs-writer
Install

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.

Any agent
npx skills add zhuyansen/agent-skills-hub --skill api-docs-writer
Clone the repo
git clone --depth 1 https://github.com/zhuyansen/agent-skills-hub

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for api-docs-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/api-docs-writer/github.svg)](https://agentmods.dev/skills/zhuyansen/agent-skills-hub/api-docs-writer)
Your own site
<a href="https://agentmods.dev/skills/zhuyansen/agent-skills-hub/api-docs-writer"><img src="https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/api-docs-writer/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.

agentmods 80×15 button for api-docs-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhuyansen/agent-skills-hub/api-docs-writer"><img src="https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/api-docs-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 176 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00176
Opus 5.5 $0.00010 $0.00070
Sonnet 5.5 $0.00005 $0.00035
Haiku 4.5 $0.00002 $0.00018

Measured 5d ago against content hash 3c73bba75fad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-docs-writer 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 5d 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.

ops/skillmgr-runs/in/input/library/api-docs-writer/SKILL.md · 21 lines

What it actually says

Api Docs Writer

Write reference documentation for an HTTP endpoint from its handler code: parameters, responses, errors.

When to use

Use this skill when the user asks for it by name or describes this task. Do not use it for unrelated work.

Steps

  1. Read the input the user points to. If none is given, ask for the file or text.
  2. Do the task described above, step by step, and keep the user's own wording where it matters.
  3. Show the result, then a short list of what you changed or found, so the user can check it.

Notes

  • Keep changes small and reversible.
  • Say plainly when the input is incomplete instead of guessing.
Changes

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.

  1. 5d ago First seen · 21 lines · 24 tokens per session scan A 3c73bba75fad

Subscribe to this mod's changes

api-docs-writer is a skill published in the GitHub repository zhuyansen/agent-skills-hub (452 stars, last pushed today), licensed MIT. It adds 24 tokens to every session and 176 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-10-11.

Related

Other skills, from other repositories

convex-create-component

Builds reusable Convex components with isolated tables and app-facing APIs. Use for new components, reusable backend modules, integrations, or component boundary work.

openclaw/clawhub · 35 tokens

clawhub-convex

Apply ClawHub-specific Convex conventions and route to the right managed Convex skill. Use for any change under convex/, Convex commands or deployment targeting, query performance, migrations, retention, runtime validation, or skill stat reads and writes in the ClawHub repository.

openclaw/clawhub · 62 tokens

convex-setup-auth

Sets up Convex auth, identity mapping, and access control. Use for login, auth providers, users tables, protected functions, or roles in a Convex app.

openclaw/clawhub · 40 tokens

convex-billing

Add Stripe billing/payments to the Convex app via @convex-dev/stripe (checkout + webhook + gating).

openclaw/clawhub · 29 tokens

graphql-audit

GraphQL security hunting — introspection abuse, field suggestion enumeration (clairvoyance), batching DoS, IDOR via aliasing, auth bypass, injection via arguments, subscription abuse, depth/complexity bombs, and WAF bypass. Covers graphw00f fingerprinting, gqlmap, graphql-cop, and inql. Use when a target exposes a…

Awarexone/Agentic-Bug-Hunter · 92 tokens

hunt-api-misconfig

Hunt API security misconfiguration — mass assignment, prototype pollution, HTTP verb tampering. Mass assignment: send {isadmin:true, role:admin, verified:true} on profile/account/reset endpoints — server blindly applies. JWT signature/crypto forging (alg:none, key confusion, kid/jku) is owned by hunt-jwt-crypto; this…

elementalsouls/Claude-BugHunter · 207 tokens