Documentation Quality Analyzer

VerifiedSafe

Analyze documentation for duplicates, outdated content, and discrepancies with the codebase. It scans source code and documentation, then generates a structured blame report highlighting critical issues, warnings, and recommendations. Useful for maintaining accurate and consistent documentation.

Sby Skills Guide Bot
DocumentationIntermediate
3/1/2026
Claude CodeCursorWindsurfCodex
#documentation-audit#code-doc-sync#duplicate-detection#mdx#technical-writing

Recommended for

Automated summary

Analyzes an MDX documentation set and the source code to produce a report flagging duplicates, outdated content, documentation-code discrepancies, undocumented features, and inconsistent terminology.

Strengths

  • Generates a structured report with critical, warning, and good-practice sections plus recommendation tables
  • Cross-checks code exports, API routes, and configuration options against what is actually documented
  • Finds duplicate content, stale examples, and terminology drift with file and line references
  • Prioritizes fixes into high, medium, and low priority actions

Limitations

  • Assumes MDX documentation organized via docs.json, which limits use with other doc formats
  • Duplicate and discrepancy detection is heuristic and may require manual verification
  • Does not fix documentation; it only audits and recommends changes
When to use it

Use it to audit a documentation site before a release or after major API changes.

When not to use it

Do not use it when the goal is to write or automatically fix documentation rather than diagnose its issues.

Security analysis

Safe
Quality score90/100

The skill only instructs the agent to read local documentation and source files and generate a report; it declares no tools and contains no destructive commands, credential exfiltration, obfuscated payloads, or safety-disabling instructions.

No concerns found

How this analysis is made

Examples

Full docs audit
Run blame-doc against the docs/ folder and the current API routes, then list the critical issues first.
Pre-release cleanup
Audit our MDX docs for duplicate authentication setup guides, outdated v1 references, and stale code examples before the v2 release.
Find undocumented exports
Check which exported utilities and endpoints in src/ are missing documentation, and flag any code examples that no longer match the implementation.

name: blame-doc description: Analyze documentation for duplicates, outdated content, and discrepancies with codebase

Instructions

Perform a deep analysis of documentation quality, finding issues that need attention.

Step 0: Read Context

Read .devdoc/context.json if it exists for product info and terminology.

Read docs.json to understand documentation structure.

Step 1: Scan Codebase

Analyze the source code to understand:

  • Exported functions, classes, types
  • API endpoints and routes
  • Configuration options
  • Feature flags and capabilities

Step 2: Analyze Documentation

Scan all MDX files for:

  • Topics covered
  • Code examples used
  • Features documented
  • API references

Step 3: Generate Blame Report

Documentation Blame Report
==========================

Generated: [date]
Files analyzed: X docs, Y source files

## πŸ”΄ Critical Issues

### Duplicate Content (count)

Content that appears in multiple places, causing maintenance burden:

| Topic | Files | Recommendation |
|-------|-------|----------------|
| Authentication setup | auth.mdx, quickstart.mdx, api/overview.mdx | Consolidate to auth.mdx, link from others |
| Error handling | errors.mdx, troubleshooting.mdx | Merge into single page |

**Details:**
- `auth.mdx:15-45` and `quickstart.mdx:80-110` contain nearly identical OAuth setup instructions
- `errors.mdx` and `troubleshooting.mdx` both list the same error codes

### Outdated Documentation (count)

Docs that don't match current codebase:

| File | Issue | Current State |
|------|-------|---------------|
| api/users.mdx | Wrong signature | `getUser(id)` is now `getUser(id, options)` |
| config.mdx | Missing options | `timeout` and `retries` not documented |
| quickstart.mdx | Old version | References v1.x, current is v2.x |

**Details:**
- `api/users.mdx:23` shows `getUser(id: string)` but code has `getUser(id: string, options?: UserOptions)`
- `config.mdx` missing 3 new configuration options added in v2.0

### Code-Doc Discrepancies (count)

Mismatches between documented and actual behavior:

| File | Documented | Actual |
|------|------------|--------|
| api/auth.mdx | Returns `{ token }` | Returns `{ token, expiresAt }` |
| guides/setup.mdx | Requires Node 14+ | package.json requires Node 18+ |
| api/errors.mdx | Error code 401 | Code throws 403 for this case |

## 🟑 Warnings

### Undocumented Features (count)

Code exists but no documentation:

- `src/utils/retry.ts` - Retry utility with backoff (exported, no docs)
- `src/api/webhooks.ts` - Webhook handlers (3 endpoints, no docs)
- `src/config/advanced.ts` - Advanced options (12 options, not in config.mdx)

### Stale Examples (count)

Code examples that may not work:

| File | Line | Issue |
|------|------|-------|
| quickstart.mdx | 45 | Uses deprecated `init()`, should be `initialize()` |
| api/fetch.mdx | 23 | Import path changed from `pkg` to `pkg/client` |

### Inconsistent Terminology

Terms used differently across docs:

| Term | Variations Found | Recommended |
|------|------------------|-------------|
| API key | "api key", "API Key", "apiKey", "api-key" | "API key" |
| endpoint | "endpoint", "route", "URL", "path" | "endpoint" |

## 🟒 Good Practices Found

βœ“ All public exports have corresponding docs
βœ“ Code examples have language tags
βœ“ Consistent use of components (Note, Warning, etc.)

## Recommendations

### High Priority
1. **Consolidate auth docs** - Merge duplicate OAuth content into single source
2. **Update API signatures** - 5 files have outdated function signatures
3. **Document webhooks** - Major feature with zero documentation

### Medium Priority
4. **Version bump** - Update all version references to v2.x
5. **Standardize terminology** - Create glossary in context.json

### Low Priority
6. **Add missing options** - Document 12 config options
7. **Fix stale examples** - Update deprecated imports

Analysis Techniques

Finding Duplicates

Look for:

  1. Exact matches - Same paragraphs in multiple files
  2. Similar code blocks - Nearly identical examples
  3. Repeated explanations - Same concept explained multiple times
  4. Copy-paste patterns - Setup instructions repeated

Finding Outdated Content

Compare:

  1. Function signatures - Params, return types
  2. Import paths - Package structure changes
  3. Version numbers - In code vs docs
  4. Default values - Changed defaults
  5. Error messages - Updated error text

Finding Discrepancies

Check:

  1. Return types - What docs say vs code returns
  2. Required fields - Optional vs required mismatches
  3. Behavior descriptions - Edge cases documented incorrectly
  4. Prerequisites - Wrong versions, missing dependencies

Output Actions

After generating report, suggest:

"Found X issues. Would you like me to:

  1. Fix outdated docs - Update signatures and versions
  2. Consolidate duplicates - Merge redundant content
  3. Create missing docs - Stub pages for undocumented features
  4. Update terminology - Standardize across all files"

Integration with Other Skills

  • After blame analysis β†’ /update-doc to fix issues
  • For new undocumented features β†’ /create-doc
  • When ready to save β†’ /commit-doc

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/documentation-quality-analyzer-mm78no5f' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/documentation-quality-analyzer-mm78no5f/download' --output '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md.part' && mv '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md.part' '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md' && test -s '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/blame-doc' && cp -R '.skill-downloads/documentation-quality-analyzer-mm78no5f' '.claude/skills/blame-doc'

Cursor
test -f '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md' && test -s '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/blame-doc' && cp -R '.skill-downloads/documentation-quality-analyzer-mm78no5f' '.cursor/skills/blame-doc'

Codex
test -f '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md' && test -s '.skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/blame-doc' && cp -R '.skill-downloads/documentation-quality-analyzer-mm78no5f' '.agents/skills/blame-doc'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js β‰₯ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/documentation-quality-analyzer-mm78no5f'

openskills read 'documentation-quality-analyzer-mm78no5f'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/documentation-quality-analyzer-mm78no5f/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills