Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
infrasity-labs avatar

Sdk Docs Auditor

  • 77 installs
  • 93 repo stars
  • Updated June 28, 2026
  • infrasity-labs/dev-gtm-claude-skills

SDK Docs Auditor is an agent skill that crawls an SDK docs site and delivers a scored, cross-referenced HTML quality report.

About

SDK Docs Auditor is a Dev GTM agent skill for solo founders and small teams shipping SDKs or developer products who need an objective documentation quality pass without hiring a technical writer first. Given a documentation URL, the agent follows a fixed pipeline: discover pages via llms.txt, sitemap.xml, or nav crawl; read relevant SDK content; evaluate six canonical sections; and cross-reference every alleged gap against the rest of the site so duplicates and buried coverage are not mislabeled missing. Each section receives a 0–100 score and tier, rolled into a polished HTML report users can download and share with eng or marketing. Triggers are explicit—audit, review, analyse, score, completeness, gaps alongside a URL—and the skill insists you never skip the workflow. Use in Ship before launch, in Build while refactoring docs, or in Grow when comparing your docs to a competitor’s developer experience.

  • Three-tier page discovery: llms.txt, then sitemap.xml via curl, then homepage nav crawl
  • Audits six fixed sections: Installation, Quick Start, Error Handling, Troubleshooting, Examples, Best Practices
  • Cross-references gaps across all SDK pages so missing-on-one-page does not false-flag content elsewhere
  • Scores each section 0–100 with rating tiers in a self-contained downloadable HTML report
  • Mandatory structured workflow: crawl → analyse → cross-reference → report (do not ad-hoc audit)

Sdk Docs Auditor by the numbers

  • 77 all-time installs (skills.sh)
  • +4 installs in the week ending Jul 25, 2026 (Skillselion tracking)
  • Ranked #696 of 1,901 Documentation skills by installs in the Skillselion catalog
  • Data as of Jul 26, 2026 (Skillselion catalog sync)
npx skills add https://github.com/infrasity-labs/dev-gtm-claude-skills --skill sdk-docs-auditor

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs77
repo stars93
Last updatedJune 28, 2026
Repositoryinfrasity-labs/dev-gtm-claude-skills

What it does

Crawl an SDK documentation site, score six standard sections, cross-reference gaps, and download a styled HTML audit report before launch or GTM.

Who is it for?

API/SDK makers, dev-tool GTM leads, or agents asked to audit a competitor or own docs URL with a repeatable crawl-and-score method.

Skip if: Writing net-new tutorial content from scratch, or legal/compliance reviews unrelated to developer documentation structure.

When should I use this skill?

User provides a documentation URL and asks to audit, review, analyse, score, check quality, completeness, gaps, or crawl SDK docs (always use structured workflow).

What you get

You receive section scores 0–100, gap notes validated site-wide, and a downloadable HTML report suitable for prioritizing doc fixes before developers hit integration friction.

  • Self-contained downloadable HTML audit report
  • Per-section 0–100 scores and tier ratings
  • Cross-referenced gap list across all crawled SDK pages

By the numbers

  • 6 fixed audit sections
  • Per-section scores from 0–100 with rating tiers
  • 3-tier discovery: llms.txt, sitemap.xml, homepage nav

Files

SKILL.mdMarkdownGitHub ↗

SDK Docs Auditor

Produces a comprehensive, cross-referenced audit of any SDK documentation site with a fully styled downloadable HTML report.

What this skill does

1. Discovers all SDK pages via llms.txt first, falling back to sitemap.xml (using curl), then homepage nav crawl 2. Fetches and reads every relevant SDK page 3. Audits six fixed sections: Installation, Quick Start, Error Handling, Troubleshooting, Examples, Best Practices 4. Cross-references every gap across ALL other SDK pages — never flag something as missing if it exists elsewhere 5. Scores each section 0–100 and assigns a rating tier 6. Generates a beautiful, self-contained, downloadable HTML report

---

Step 1 — Discover all SDK pages

Use a three-tier discovery strategy, trying each method in order until one succeeds.

1a. Try llms.txt first (preferred)

Run a bash curl command to fetch llms.txt:

curl -s <docs_url>/llms.txt

If found:

  • Extract every URL from lines matching the pattern - [Page Title](URL): description
  • Filter to SDK-relevant pages only — keep URLs whose path contains any of:

sdk, installation, quickstart, quick-start, error, troubleshoot, example, best-practice, getting-started, reference, api-reference, overview, client, service, memory, search, worker, job, policy, agent, team

  • Exclude: marketing pages, changelog, blog, legal, community/forum pages
  • Store as SDK_PAGES[] — list of {title, url, description}
  • Note in the report: "Discovery method: llms.txt"

1b. Fallback — Try sitemap.xml

If llms.txt is unavailable or returns no useful URLs, run a bash curl command to fetch the sitemap:

curl -s <docs_url>/sitemap.xml | python3 -c "import sys, re; print('\n'.join(re.findall(r'<loc>(.*?)</loc>', sys.stdin.read())))"

If the sitemap returns URLs:

  • Parse every <loc> entry to get the full URL list
  • Filter using the same keyword list above
  • Store as SDK_PAGES[] — list of {title, url}
  • Note in the report: "Discovery method: sitemap.xml — N total URLs found, M SDK-relevant kept"

Also check for a sitemap index (multiple sitemaps) by looking for <sitemapindex> in the response. If found, curl each child sitemap and aggregate all URLs before filtering.

1c. Final fallback — Homepage nav crawl

If both llms.txt and sitemap.xml fail, fetch the docs homepage (<docs_url>) and extract all links from the nav sidebar or sitemap structure, filtering using the same keyword list.

  • Note in the report: "Discovery method: homepage nav crawl (llms.txt and sitemap.xml unavailable)"

1d. Identify section mapping

From the discovered pages, identify which pages map to the six audit targets:

Audit sectionLook for paths/titles containing
Installationinstall, setup, getting-started
Quick Startquick-start, quickstart, tutorial
Error Handlingerror, exception, errors
Troubleshootingtroubleshoot, faq, debug
Examplesexample, sample, cookbook, tutorial
Best Practicesbest-practice, guide, pattern

If a dedicated page is not found for a section, note it — the absence itself is a finding.

Build the corpus

All discovered pages form the page corpus used for both section auditing and cross-referencing.

Report discovery summary:

Found N pages via [sitemap.xml / llms.txt / nav crawl]. Kept M SDK-relevant pages. Fetching now...

---

Step 2 — Fetch every page in the corpus

Fetch each page using bash_tool with curl, stripping HTML tags via Python to extract plain text. Do NOT use web_fetch for corpus pages — curl is more reliable and avoids permission errors.

Use this pattern for each page URL:

curl -s "https://docs.example.com/sdk/some-page" -L | python3 -c "
import sys, re, html
content = sys.stdin.read()
content = re.sub(r'<script[^>]*>.*?</script>', '', content, flags=re.DOTALL)
content = re.sub(r'<style[^>]*>.*?</style>', '', content, flags=re.DOTALL)
text = re.sub(r'<[^>]+>', ' ', content)
text = html.unescape(text)
text = re.sub(r'\s+', ' ', text).strip()
print(text[:6000])
"

Batch multiple pages in a single bash call using a loop to minimise round-trips:

for page in installation quick-start error-handling troubleshooting examples best-practices overview api-reference; do echo "=== PAGE: $page ===" curl -s "https://docs.example.com/sdk/$page" -L | python3 -c " import sys, re, html content = sys.stdin.read() content = re.sub(r'<script[^>]>.?</script>', '', content, flags=re.DOTALL) content = re.sub(r'<style[^>]>.?</style>', '', content, flags=re.DOTALL) text = re.sub(r'<[^>]+>', ' ', content) text = html.unescape(text) text = re.sub(r'\s+', ' ', text).strip() print(text[:6000]) " echo "" done


For large sites (>30 pages), prioritise in this order:
1. The six target section pages (installation, quick-start, error-handling, troubleshooting, examples, best-practices)
2. Overview / client overview pages
3. API reference
4. Service-specific pages (agents, jobs, workers, policies, memory, search, etc.)

---

## Step 3 — Audit the six target sections

For each of the six sections below, read its page carefully and evaluate against the criteria. Then check every other fetched page to see if any gap is actually addressed elsewhere.

### 3a. Installation

**Must have (deduct heavily if missing):**
- Prerequisites with exact versions (Python/Node/language version, package manager)
- At least one complete install command (pip/npm/etc.)
- Authentication setup with exact steps to obtain and configure credentials
- A working verification snippet that proves the install succeeded
- At least one expected output or confirmation of success

**Should have (deduct moderately):**
- Multiple install methods (package manager, source, Docker)
- IDE/editor setup
- Environment variable configuration with `.env` examples
- Version compatibility table
- Optional dependency explanations (what each extra includes)
- Constructor parameter reference (all params, types, defaults)

**Common gaps to check across other pages:**
- Env-var auto-detection (does the client read env vars when called with no args?) — check api-reference, overview
- Advanced constructor params (timeout, retries, org) — check api-reference
- Version pinning guidance — check any getting-started pages

### 3b. Quick Start

**Must have:**
- A minimal, numbered step-by-step path a first-time user can follow in under 5 minutes
- Complete working code from zero to first successful call
- Expected output for every code snippet
- Explanation of any prerequisite service/resource (queues, workers, etc.)

**Should have:**
- Both env-var and inline credential patterns
- Multiple install options (pip + poetry, etc.)
- Links to deeper docs for each concept introduced

**Common gaps to check:**
- Worker/queue prerequisites — check workers/environments pages
- Valid model/runtime IDs — check models/runtimes service pages
- Execute call signature accuracy — check api-reference and agents service pages

### 3c. Error Handling

**Must have:**
- Complete exception hierarchy (all exception classes, inheritance tree)
- Every exception class documented with: description, import path, code example
- At minimum: authentication, connection, timeout, rate-limit, API/HTTP errors
- HTTP status code branching (400/401/403/404/500 at minimum)
- At least one resilience pattern (retry with backoff)

**Should have:**
- Resource-specific exceptions (one per major service)
- Streaming error handling
- Context manager cleanup pattern
- Testing/pytest examples for error scenarios
- Do/don't anti-pattern examples

**Cross-reference check — critical:**
- List every exception class that appears in the api-reference or service pages
- Flag any that are missing from this page
- Check execute/method call signatures match across all pages — flag any discrepancies

### 3d. Troubleshooting

**Must have:**
- Authentication failures with diagnostic steps
- Connection / timeout issues with solutions
- At least one service-specific troubleshooting section

**Should have:**
- Troubleshooting for every major service (workers, jobs, policies, agents, etc.)
- Self-hosted / custom base_url issues
- Import errors with correct import paths
- A summary error-message lookup table
- Rate limiting with backoff references
- Actionable "getting help" checklist with actual links/commands

**Cross-reference check:**
- For every service page that has its own error handling section, check if its scenarios appear here
- Check if dataset/resource creation methods are linked when "not found" errors are described
- Check if health check API is referenced in the "verify status" step

### 3e. Examples

**Must have:**
- At least one complete, runnable end-to-end example per major service
- Expected output shown for every example
- Error handling within workflow examples

**Should have:**
- Coverage across: agent lifecycle, jobs/scheduling, memory/recall, semantic search, policy management, worker management, streaming
- No "workflow" examples that only survey resources without executing anything
- Multi-turn / session management examples where the SDK supports sessions

**Cross-reference check — this is where most gaps accumulate:**
- For every service that has its own dedicated page with examples, check if those examples are represented here
- Flag each missing service category with the source page that has the examples

### 3f. Best Practices

**Must have:**
- Authentication / credential security section
- Error handling / retry logic
- Performance (batching, pagination, caching)

**Should have:**
- One best-practices section per major service (workers, jobs, policies, agents)
- Resource cleanup / context managers
- Code organisation (type hints, reusable functions)
- Testing patterns
- Concurrency / thread-safety guidance
- Secret rotation / credential lifecycle

**Cross-reference check:**
- For every service page that defines its own best practices, check if those patterns appear here
- Note if concurrency/thread-safety is addressed anywhere in the entire corpus

---

## Step 4 — Score each section

Score 0–100 using this rubric:

| Score | Meaning |
|-------|---------|
| 85–100 | Strong — all must-haves present, most should-haves, few gaps |
| 70–84 | Good — all must-haves, some should-haves missing |
| 50–69 | Adequate — most must-haves but notable gaps |
| 30–49 | Weak — multiple must-haves missing |
| 0–29 | Poor — section is superficial or largely absent |

Assign a rating label: **Strong / Good / Adequate / Weak / Poor**

---

## Step 5 — Build the gap list for each section

For every gap:
- Write a clear one-sentence description of what is missing
- Tag it with where the content EXISTS in the corpus (if it does): `[covered in: page-name]`
- Or tag it: `[not covered anywhere in corpus]`

This distinction is critical — a gap that exists nowhere needs a new page; a gap that exists elsewhere just needs a cross-reference or consolidation.

---

## Step 6 — Derive top priority recommendations

Rank the top 6–8 actions by impact × effort. Prioritise:
1. Factual errors / signature mismatches (highest priority — causes user failures)
2. Must-have gaps not covered anywhere
3. Must-have gaps covered elsewhere but not linked
4. High-value should-have gaps
5. Cross-referencing and consolidation opportunities

---

## Step 7 — Generate the HTML report

Read the template at `assets/report-template.html` and inject all audit data into it.

Fill these placeholders:
- `__AUDIT_URL__` → the audited URL
- `__PAGES_FETCHED__` → total pages fetched
- `__AUDIT_DATE__` → today's date
- `__SECTION_DATA_JSON__` → JSON blob (see schema below)
- `__PRIORITIES_JSON__` → JSON blob (see schema below)
- `__OVERALL_SCORE__` → integer 0-100 (weighted average of six scores)

### Data schema

{ "sections": [ { "num": "01", "name": "Installation Guide", "rating": "Good", "score": 74, "strengths": ["string", ...], "gaps": [ { "text": "Description of the gap", "covered_in": ["page-name-1", "page-name-2"], "nowhere": false } ] } ] }


Set `"nowhere": true` and `"covered_in": []` when the gap exists nowhere in the corpus.

{ "priorities": [ { "rank": 1, "text": "Fix X in Y page. The correct form per api-reference is Z.", "type": "error" } ] }


Priority types: `"error"` (factual mistake), `"missing"` (not covered anywhere), `"xref"` (covered elsewhere, needs linking), `"improvement"` (should-have gap).

---

## Output

Save the final report to `/mnt/user-data/outputs/sdk-audit-report.html` and present it with `present_files`.

Tell the user:
- How many pages were fetched
- The overall score and what it means
- The single most critical finding

Do NOT reproduce the full report text in the chat — just present the file and give the brief summary.

Related skills

How it compares

Structured multi-page SDK doc audit with cross-links—not a single-page Lighthouse run or informal chat opinion on docs quality.

FAQ

Who is sdk-docs-auditor for?

Developers and small dev-tool teams who need a scored, shareable SDK documentation audit from a URL without building a custom crawler.

When should I use sdk-docs-auditor?

In Ship before launch to harden docs, in Build when refactoring reference sections, or in Launch when benchmarking developer experience against another SDK site.

Is sdk-docs-auditor safe to install?

Check the Security Audits panel on this Prism page; the skill fetches external URLs and may use curl—scope network use and verify the generated HTML locally.

Documentationdocsintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.