api-doc-review

api-doc-review is a skill for Claude Code from yeaight7/agent-powerups. It costs 41 tokens per session (664 once invoked), scanned A, original, Apache-2.0.

A review guide for checking API documentation against the code that implements the API. An API is a set of rules that software uses to communicate, including routes, inputs, outputs, and errors.

In plain words
What is it for?
It compares documented and implemented endpoints, methods, authentication, parameters, response types, validation, and error handling, including OpenAPI or Swagger specifications.
Why use it?
It catches documentation drift, where the written API no longer matches the running service and can cause integration failures.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the documentation-systems plugin — 7 skills, 3 commands shipped together

Good fit It compares documented and implemented endpoints, methods, authentication, parameters, response types, validation, and error handling, including OpenAPI or Swagger specifications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeaight7/agent-powerups/api-doc-review
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 yeaight7/agent-powerups --skill api-doc-review
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code.

Or install documentation-systems, the plugin that ships this one along with the rest of its 7 skills, 3 commands.

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-doc-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/api-doc-review"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/api-doc-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 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.00041 $0.00664
Opus 5.5 $0.00016 $0.00266
Sonnet 5.5 $0.00008 $0.00133
Haiku 4.5 $0.00004 $0.00066

Measured 1mo ago against content hash 4b1bdcc72859, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-doc-review 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 1mo 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.

plugins/documentation-systems/skills/api-doc-review/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

Outdated API documentation causes integration failures. The code is the source of truth, and the docs must match. Review the docs against the actual route handlers and fix mismatches immediately — do not defer.

When to Use

  • A PR adds or modifies routes, request/response types, or error handling
  • Consumers report behavior that contradicts the documented API
  • Before publishing or versioning an OpenAPI/Swagger spec

Inputs

  • The API documentation (OpenAPI/Swagger spec, or inline route docs)
  • The route handler source, types/validation schemas, and API tests

Workflow

  1. Inventory both sides. List documented endpoints and implemented routes, then diff the two lists:

    rg -n "^  /" openapi.yaml                                   # documented paths
    rg -n "router\.(get|post|put|patch|delete)\(" src/          # implemented routes
    git diff --name-only origin/main...HEAD -- "src/routes/"    # what changed recently
    
  2. Verify each endpoint (e.g., POST /users) against its route definition: path, method, and auth requirements — route middleware vs the documented security scheme.

  3. Verify parameters. All required request parameters (body, query, params) must be documented with correct types. Compare against the handler's validation schema or type definitions, not against the old doc.

  4. Verify responses. All possible response status codes (200, 400, 404, 500) and their payloads must match the actual error handlers and return statements:

    rg -n "res\.status\(|throw new .*Error" src/routes/   # codes actually produced
    
  5. Cross-check examples against tests. Documented request/response examples should match what the API tests actually send and assert.

  6. Fix immediately. If there is a mismatch, update the OpenAPI spec or inline documentation now. Do not defer it.

Output

  • Per-endpoint verdict: documented vs actual (path, method, auth, params, status codes, examples)
  • Spec/doc fixes applied, or a mismatch list with file:line where fixing needs owner input

Read the full file on GitHub · 64 lines

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. 1mo ago First seen · 64 lines · 41 tokens per session scan A 4b1bdcc72859

Subscribe to this mod's changes

api-doc-review is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 19d ago), licensed Apache-2.0. It adds 41 tokens to every session and 664 once invoked, about $0.0002 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-09-14.

Related

Other skills, from other repositories

chat-sdk

Build multi-platform chat bots with Chat SDK (chat npm package). Use when developers want to (1) Build a Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, or WhatsApp bot, (2) Use Chat SDK to handle mentions, direct messages, subscribed threads, reactions, slash commands, cards, modals, files, or AI…

vercel-labs/open-agents · 191 tokens

workflow

Creates durable, resumable workflows using Vercel's Workflow DevKit. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow devkit", or…

vercel-labs/open-agents · 74 tokens

github-oauth-nango-integration

Use when implementing GitHub OAuth + GitHub App authentication with Nango - provides two-connection pattern for user login and repo access with webhook handling.

AgentWorkforce/relay · 37 tokens

ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI…

vercel-labs/open-agents · 155 tokens

api-debug

Debug REST, GraphQL, webhook, and OAuth/API-key integrations with layered request, auth, schema, and response checks.

metaspartan/cybara · 28 tokens

skill-authoring

Author SKILL.md: frontmatter, structure, writing principles.

HezaoHezao/poirot · 17 tokens