agentsclimarketplace

Api doc review

Skill yeaight7/agent-powerups/plugins/documentation-systems/skills/api-doc-review

Use when API documentation may have drifted from the implementation -- endpoints changed without a spec update, integration partners report mismatches, or a PR touches routes, params, or response shapes.From its SKILL.md

Install
npx -y skills add yeaight7/agent-powerups --skill api-doc-review

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.0 KB, 616 tokens by cl100k_base, as published. Nobody here has run it

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

Verification

  • Every changed route compared against its documented endpoint
  • Parameter names, types, and required flags match the handler's validation
  • Documented status codes match the codes actually returned or thrown
  • Auth requirements per endpoint match the route middleware
  • No mismatch deferred — fixed or explicitly escalated

Failure Modes

  • Doc-first trust — assuming the spec is right; the code is the source of truth.
  • Happy-path-only review — checking 200 responses while error codes drift unchecked.
  • Silent auth drift — an endpoint gains an auth requirement the docs never mention.
  • Deferred fixes — "will update the spec later" is how the drift started.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Gives 0 of the 12 instructions most docs writing skills give in 616 tokens

Counted across 1,637 of the 3,044 authors here whose files we hold, read 2026-08-07

  • Announce the skill at startin 54 of 1637, across 26 files
  • Convert legacy doc files before editingin 45 of 1637, across 7 files
  • Predict questions readers might askin 42 of 1637, across 4 files
  • Generate clarifying questions for initial contextin 42 of 1637, across 3 files
  • Create document scaffold with placeholder textin 42 of 1637, across 3 files
  • Brainstorm content options for each sectionin 42 of 1637, across 3 files
  • Test the document with a fresh context-less instancein 42 of 1637, across 3 files
  • Include exact file paths in every taskin 42 of 1637, across 15 files
  • Ask interview questions one at a timein 42 of 1637, across 27 files
  • Apply surgical edits during refinementin 41 of 1637, across 2 files
  • Offer structured workflow or freeformin 40 of 1637, across 1 file
  • Ask for document meta-contextin 40 of 1637, across 2 files

Said here and by no other author read

  • Inventory documented endpoints and implemented routes
  • Verify each endpoint against its route definition
  • Verify parameters against validation schemas
  • Verify response status codes against error handlers
  • Cross-check examples against API tests
  • Report per-endpoint verdict of documented versus actual

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 326,764. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.