Skip to main content
BuildReviewed Jul 21, 2026

Api Docs Quality Report

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install api-docs-quality-report

What this does: Audits any API documentation site by crawling every endpoint page and scoring each one across 5 checks: description quality, OpenAPI spec presence, body param descriptions, response codes, and response schema completeness. Produces a polished interactive HTML report with a summary scorecard, site-wide pattern analysis, ranked top issues, and per-endpoint findings with specific fix guidance. Trigger this skill whenever a user provides a documentation URL and asks to audit, review, analyse, or check their API docs. Also trigger for: "do the same audit for X", "audit docs.company.com", "check the API docs at X", "run the API docs audit on X", "review the docs for Y API", or pastes a URL alongside words like audit, review, crawl, check, analyse, quality, completeness, or gaps. Always use this skill — do not attempt the audit without following this structured crawl-score-report workflow.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/api-docs-quality-report/SKILL.md

Setup guide →
0Save

Instructions

API Docs Audit Skill

Crawls every API reference endpoint page on a documentation site, scores each against
5 quality checks, detects site-wide patterns, and outputs an interactive HTML report
matching the style of previously-generated audits in this session.


STEP 0 — COLLECT INPUT

You need exactly one input: the docs URL.

If the user hasn't provided it, ask:

Which API docs URL should I audit?

If the URL is provided, strip trailing slashes and confirm it before proceeding.

Special case — "do the same for X":
If the user says "do the same" or "same audit for X", they want the identical workflow
and HTML report format applied to the new URL. Proceed directly to Step 1.


STEP 1 — DISCOVER ALL ENDPOINT PAGES

1a. Try llms.txt first

Fetch <docs_url>/llms.txt.

If found:

  • Extract every line matching the pattern - [Page Title](URL): description
  • Filter to API reference pages only — look for paths containing any of:
    api-reference, api-reference/, /api/, /endpoints/, /rest/, /docs/, /reference/ or versioned paths (e.g., /v1/)
  • Exclude: overview/index pages (no HTTP method implied), SDK docs, CLI docs,
    Terraform docs, guides, quickstart pages
  • Store as ENDPOINT_PAGES[] — list of {title, url, description}

If not found or returns 404:

  • Fetch the docs homepage
  • Look for a nav sidebar or sitemap link referencing API/endpoints
  • Extract all API reference page URLs from the nav structure
  • Note in the report that llms.txt was unavailable

1b. Identify categories

Group discovered pages by their URL path prefix or nav section:

  • e.g. /api-reference/agents/ → Agents category
  • e.g. /api-reference/executions/ → Executions category
  • Pages at the root level of api-reference → Uncategorized or infer from title

Store CATEGORIES[] — list of {name, page_count, pages[]}.

Report discovery summary:

Found N endpoint pages across K categories. Fetching now...


STEP 2 — CHECK OPENAPI SPEC AVAILABILITY

Before fetching individual pages, check if a standalone OpenAPI spec exists.

Try these discovery methods in order (stop at first success):

  1. Inspect the Link HTTP header (RFC 8288) on the homepage or docs root for rel="openapi" or rel="describedby" — this is the standard discovery mechanism for API specifications
  2. <docs_url>/openapi.json
  3. <docs_url>/openapi.yaml
  4. <docs_url>/api/openapi.json
  5. Any URL referenced in llms.txt under "## OpenAPI Specs"

Result:

  • If accessible: SPEC_AVAILABLE = true, store the URL
  • If 404 on all attempts and no Link header found: SPEC_AVAILABLE = false

A missing spec is itself a top-priority finding — record it as Issue #1.


STEP 3 — FETCH AND PARSE ALL ENDPOINT PAGES

Fetch each URL in ENDPOINT_PAGES[]. For each page, extract:

3a. Page-level prose description

The text that appears above the OpenAPI block (or between the # title and the
first ## OpenAPI heading). This is the human-written description.

3b. OpenAPI block

Look for a fenced code block with language hint yaml or json that contains
an OpenAPI spec. Extract:

  • HTTP_METHOD — e.g. GET, POST, PUT, DELETE, PATCH
  • HTTP_PATH — e.g. /api/v1/agents/{agent_id}/execute
  • REQUEST_BODY_SCHEMA — the requestBody schema section (if any)
  • PARAMETERS — path + query params (if any)
  • RESPONSES — the full responses object
  • RESPONSE_200_SCHEMA — the schema under responses.200 or 201

If no OpenAPI block found, mark SPEC_INLINE = false.


STEP 4 — SCORE EACH ENDPOINT (5 CHECKS)

For every endpoint, evaluate all 5 checks. Store results as
{check_name: "pass"|"warn"|"fail", current_state: string, fix_guidance: string}.

Read references/scoring-rules.md for the exact scoring criteria per check.

Check 1 — Endpoint Description
Check 2 — OpenAPI Spec
Check 3 — Body Param Descriptions
Check 4 — Response Codes
Check 5 — Response Schema


STEP 5 — DETECT SITE-WIDE PATTERNS

After scoring all endpoints, look for patterns that repeat across many pages.

A pattern qualifies if it affects ≥ 60% of endpoints:

Pattern to detectHow to identify
Universal missing error codesAll endpoints missing 401, 429, 500 etc.
Universal empty response schemasschema: {} on most endpoints
Free-form body schemasadditionalProperties: true on most request bodies
Inline spec only / broken canonical specAll pages embed spec inline but canonical 404s
One-liner descriptions everywhereDescriptions under 10 words on most pages
422-only validation errorsOnly FastAPI's 422 documented, not business errors

For each detected pattern, write a single paragraph summarising:

  • What the pattern is
  • How many endpoints it affects
  • Root cause (e.g. FastAPI auto-generation, missing middleware docs)
  • Impact on developer experience

Store as SITE_WIDE_PATTERNS[].


STEP 6 — COMPILE TOP ISSUES

Rank the 10 most impactful issues across all findings. Prioritise by:

  1. Issues affecting the most endpoints
  2. Issues on the highest-traffic / most important endpoints
  3. Security-sensitive gaps (auth endpoints, credential endpoints with empty schemas)
  4. Deprecated endpoints with no migration path
  5. Spec availability (404 canonical spec blocks all SDK tooling)

For each issue, write:

  • A concise <strong>title</strong>
  • 1-2 sentence description with specific endpoint names or counts
  • Badge: FAIL or WARN

Store as TOP_ISSUES[] (max 10).


STEP 7 — BUILD SCORECARD

For each category, calculate:

  • total — endpoint count
  • pass_count — endpoints with all 5 checks passing
  • warn_count — endpoints with at least one WARN and no FAIL
  • fail_count — endpoints with at least one FAIL

Calculate overall totals.

Store as SCORECARD[].


STEP 8 — GENERATE HTML REPORT

Read references/html-template.md for the complete HTML structure, CSS variables,
JavaScript, and all section markup.

Substitute all {{VARIABLE}} placeholders with real audit data, ensuring all values are HTML-escaped to prevent XSS.

Key variable map:

VariableSource
{{DOCS_URL}}Input URL
{{AUDIT_DATE}}Today's date
{{TOTAL_ENDPOINTS}}Count of ENDPOINT_PAGES
{{TOTAL_PASS}}Sum of all pass_count across categories
{{TOTAL_WARN}}Sum of all warn_count
{{TOTAL_FAIL}}Sum of all fail_count
{{SPEC_COUNT}}1 if SPEC_AVAILABLE, else 0
{{SCORECARD_ROWS}}Generated <tr> rows from SCORECARD
{{PATTERN_BOX}}Pattern box HTML (if SITE_WIDE_PATTERNS found)
{{TOP_ISSUES_HTML}}Generated issue row HTML from TOP_ISSUES
{{SIDEBAR_LINKS}}Generated sidebar <div class="sbl"> links
{{SECTIONS_HTML}}All section HTML for each category

For section HTML generation rules, see references/html-template.md → Section: SECTIONS_HTML.

Output the file to:

/mnt/user-data/outputs/<slug>-api-audit-report.html

Where <slug> is the domain name with dots replaced by hyphens
(e.g. docs.kubiya.ai → kubiya-ai).

Then call present_files to deliver it.


ERROR HANDLING

SituationAction
llms.txt returns 404Crawl nav links from homepage; note in report
Individual endpoint page returns 404Skip it; add to "inaccessible pages" count in footer
Page has no OpenAPI blockScore Spec check as FAIL; still score other checks from prose
Page has no prose descriptionScore Description as FAIL with note "No prose description"
Endpoint page is robots.txt blockedNote in report; do not fetch
More than 200 endpoints foundBatch fetching — process in groups of 20, progress-report to user
Canonical spec accessibleNote as positive finding; do not flag as issue

WHAT NOT TO DO

  • ❌ Never start generating HTML before all pages are fetched and scored
  • ❌ Never skip an endpoint page — fetch every one listed in llms.txt
  • ❌ Never infer scores from page titles alone — fetch the actual page content
  • ❌ Never mark Response Codes as PASS just because 200 is documented
  • ❌ Never mark Response Schema as PASS for schema: {} — that is FAIL
  • ❌ Never mark Body Params as PASS for additionalProperties: true — that is WARN at minimum
  • ❌ Never report a pattern as site-wide unless it affects ≥ 60% of endpoints
  • ❌ Never put generic fix text — every fix_guidance must reference the specific endpoint

REFERENCE FILES

  • references/scoring-rules.md — Exact PASS/WARN/FAIL criteria for all 5 checks,
    with worked examples. Read before scoring any endpoint.

  • references/html-template.md — Complete HTML/CSS/JS template with all section
    markup, variable map, and rendering instructions.
    Read before writing any HTML.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
web-performance-auditorAI-powered web performance auditor for frontend and web developers. Use it to audit a website or web app, diagnose poor Core Web Vitals (LCP, CLS, INP) and low Lighthouse scores, review JavaScript bundle size, code splitting, lazy loading, image and font loading, hydration, React rendering, Next.js/Nuxt patterns, network waterfalls, third-party scripts, and caching. Produces a prioritized, senior-engineer performance audit with a score and concrete fixes.13 installswordpress-elementorEdit Elementor pages and manage templates on WordPress sites via browser automation (for visual / structural changes) or WP-CLI (for safe text replacements). Use whenever the user wants to edit an Elementor page, update text in Elementor widgets, apply or manage Elementor templates, or make content changes to pages built with the Elementor page builder.9 installsgoogle-apps-scriptBuild Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF export, external API. Use whenever the user wants to automate a Google Sheet, build a Sheets menu / sidebar / dialog, hit a Sheets row from email or a webhook, schedule a Sheets workflow, or asks 'how do I script this in Sheets'.7 installsresume-cover-letterWrite a resume / CV or cover letter tailored to a specific role. Handles regional format differences (AU/NZ, US, UK), ATS-friendly formatting, achievement-focused bullets, and cover letter structure. Use whenever the user mentions a job application, resume, CV, cover letter, career document, applying for a role, or needs help framing their experience for a specific job.6 installsonboarding-uxAudit and generate in-app user guidance — onboarding flows, empty states, tooltips, feature tours, contextual help, defaults, and inline hints. Browses the app to find where new users would get stuck, then produces the actual content and code to fix it. Pairs with ux-audit: audit finds problems, this skill builds the solutions. Triggers: 'onboarding', 'help content', 'empty states', 'user guidance', 'first run experience', 'feature tour', 'app is confusing', 'new user experience', 'make the app welcoming'.5 installsus-business-englishAmerican business English writing style for professional communications — direct, action-oriented, EN-US spelling (color, organize, center). Use whenever the user is writing for an American audience: emails, chat messages, proposals, client communications, blog posts, web copy, or any business writing. Apply to drafting, editing, and tone-checking professional text.4 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.653 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.553 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.365 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.266 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.185 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions149 installs

Frequently asked questions about api-docs-quality-report

What does the api-docs-quality-report skill do?

Audits any API documentation site by crawling every endpoint page and scoring each one across 5 checks: description quality, OpenAPI spec presence, body param descriptions, response codes, and response schema completeness. Produces a polished interactive HTML report with a summary scorecard, site-wide pattern analysis, ranked top issues, and per-endpoint findings with specific fix guidance. Trigger this skill whenever a user provides a documentation URL and asks to audit, review, analyse, or check their API docs. Also trigger for: "do the same audit for X", "audit docs.company.com", "check the API docs at X", "run the API docs audit on X", "review the docs for Y API", or pastes a URL alongside words like audit, review, crawl, check, analyse, quality, completeness, or gaps. Always use this skill — do not attempt the audit without following this structured crawl-score-report workflow. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the api-docs-quality-report skill?

Run `npx @skills-hub-ai/cli install api-docs-quality-report` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/api-docs-quality-report/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does api-docs-quality-report work with?

api-docs-quality-report runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the api-docs-quality-report skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use api-docs-quality-report after installing it?

In Claude Code, type `/api-docs-quality-report` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the api-docs-quality-report skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.