Harness DX
Audit developer experience artifacts -- README quality, API documentation coverage, getting-started guides, and example code validation. Produces a structured DX scorecard with specific improvements and scaffolds missing documentation.
When to Use
- When preparing a library, SDK, or open-source project for release and developer adoption matters
- When reviewing a PR that changes public API surface and documentation should match
- When onboarding friction is high and you need to identify where developers get stuck
- NOT for internal architecture documentation (use harness-docs-pipeline)
- NOT for user-facing product copy (use harness-ux-copy)
- NOT for API design decisions like REST vs GraphQL (use harness-api-design)
Process
Phase 1: AUDIT -- Evaluate Documentation Quality
Resolve project root. Use provided path or cwd.
Locate documentation artifacts. Search for:
- README files:
README.md, README.rst, readme.md
- Getting started:
GETTING_STARTED.md, QUICKSTART.md, docs/getting-started.md
- API docs:
docs/api/, API.md, generated docs in docs/, site/
- Examples:
examples/, demos/, samples/, code blocks in README
- Changelog:
CHANGELOG.md, CHANGES.md, HISTORY.md
- Contributing:
CONTRIBUTING.md, .github/CONTRIBUTING.md
Score README completeness. Check for the presence and quality of each section:
- Title and description (what is this project?) -- 0-2 points
- Installation/setup (how do I get it?) -- 0-3 points
- Quick example (show me it working in under 30 seconds) -- 0-3 points
- API reference or link (where is the full documentation?) -- 0-2 points
- Contributing guide or link -- 0-1 point
- License -- 0-1 point
- Total: score out of 12, grade A (10+), B (7-9), C (4-6), D (0-3)
Evaluate installation instructions. Check:
- Are all package managers covered? (npm, yarn, pnpm for JS; pip, poetry for Python; cargo for Rust)
- Are prerequisites listed? (Node version, OS requirements, system dependencies)
- Is there a one-liner to get started? (copy-paste friendly)
- Do the instructions work on all documented platforms?
Assess API documentation coverage. For every exported function, class, or endpoint:
- Is it documented?
- Does it have parameter descriptions?
- Does it have a usage example?
- Does it have return type documentation?
- Calculate coverage percentage:
documented / total * 100
Check for time-to-hello-world. Estimate the number of steps from git clone to seeing the project work. Fewer than 5 steps is good. More than 10 is a problem.
Phase 2: EXTRACT -- Identify and Validate Examples
Extract code examples from documentation. Parse all markdown files for fenced code blocks with language annotations. Track:
- File location and line number
- Language (js, ts, python, bash, etc.)
- Whether it is a complete runnable example or a fragment
Extract standalone examples. Scan examples/, demos/, samples/ for:
- Example projects with their own package.json/requirements.txt
- Single-file examples
- Example README files explaining what each example demonstrates
Validate example syntax. For each extracted code example:
- Check for syntax errors (missing imports, unclosed brackets, invalid syntax)
- Check for references to APIs that no longer exist (stale examples)
- Check that import paths match the actual package name and exports
Run executable examples. When --validate-examples is set:
- For JavaScript/TypeScript: attempt
node or tsx execution
- For Python: attempt
python execution
- For shell commands: validate they reference real scripts and flags
- Record pass/fail for each example with error output
Check example freshness. Compare examples against the current API surface:
- Are there deprecated APIs used in examples?
- Are there new APIs with no examples?
- When was each example file last modified relative to the source it demonstrates?
Build coverage map. Map examples to the APIs they demonstrate. Identify APIs with zero examples (documentation gaps).
Phase 3: SCAFFOLD -- Generate Missing Documentation
Generate README sections. For any missing README section identified in Phase 1:
- Draft installation instructions by reading
package.json, setup.py, Cargo.toml, or equivalent
- Draft a quick-start example using the project's main export
- Draft a features list from the project's exports and test descriptions
Generate API documentation stubs. For undocumented exports:
- Extract function signatures, parameter types, and return types from source
- Generate JSDoc/docstring stubs with parameter descriptions inferred from type names
- Include a usage example skeleton derived from test files when available
Generate example files. For APIs with no examples:
- Create a minimal working example in
examples/
- Include comments explaining each step
- Ensure the example is self-contained (includes imports, setup, and cleanup)
Generate getting-started guide. If no quickstart exists:
- Write a step-by-step guide from installation through first meaningful use
- Include expected output at each step
- Target under 5 minutes to complete
Propose documentation structure. If documentation is scattered or missing:
- Recommend a
docs/ directory structure
- Map content to sections (guides, reference, examples, tutorials)
- Suggest a documentation site generator if the project is large enough (Docusaurus, MkDocs, mdBook)
Phase 4: VALIDATE -- Verify Documentation Accuracy
Check link integrity. Verify all links in documentation:
- Internal links: do referenced files and anchors exist?
- External links: are they well-formed? (do not make HTTP requests)
- Badge URLs: are shields.io and similar badge URLs using the correct repo/package name?
Check version consistency. Verify documentation matches the current version:
- Does the installation section reference the correct package version?
- Do API examples use the current function signatures?
- Is the changelog up to date with the latest release?
Check cross-references. Verify README links to detailed docs, and detailed docs link back to the README and to each other where appropriate.
Output DX scorecard. Present the complete audit results:
DX Scorecard: [GRADE]
README: [score]/12 ([grade])
API Coverage: [N]% ([documented]/[total] exports)
Examples: [working]/[total] passing
Time to Hello World: ~[N] steps
Links: [valid]/[total] verified
GAPS:
- Missing: getting-started guide
- Missing: 12 undocumented exports
- Broken: examples/advanced.ts references removed API
GENERATED:
- docs/getting-started.md (draft)
- 4 API documentation stubs added
- examples/basic-usage.ts created
Verify scaffolded content compiles. If documentation was generated, verify:
- Generated code examples have valid syntax
- Generated markdown renders correctly (no broken formatting)
- Generated files are placed in the correct directories
Harness Integration
harness skill run harness-dx -- Primary command for running the DX audit.
harness validate -- Run after scaffolding documentation to verify project health.
Glob -- Used to locate README files, documentation directories, example folders, and API docs.
Grep -- Used to extract exported symbols, find documentation comments, and locate code examples in markdown.
Read -- Used to read documentation files, package manifests, and source files for API extraction.
Write -- Used to scaffold missing documentation, generate example files, and create getting-started guides.
Bash -- Used to run example validation, check link targets, and execute code snippets.
emit_interaction -- Used to present the DX scorecard and request confirmation before generating scaffolded files.
Success Criteria
- README is scored against all 6 completeness criteria with specific gap identification
- API documentation coverage percentage is calculated against actual exported surface
- All code examples in documentation are syntax-checked
- Executable examples pass when
--validate-examples is set
- Missing documentation is scaffolded with accurate, runnable content
- DX scorecard provides an at-a-glance quality grade
- Time-to-hello-world is estimated and actionable if too high
Examples
Example: Node.js SDK with Sparse Documentation
Phase 1: AUDIT
README score: 5/12 (C)
Present: title, description, license
Missing: installation, quick example, API reference link, contributing
API coverage: 23% (7/30 exports documented)
Time to hello world: ~14 steps (too many, target: <5)
Phase 2: EXTRACT
Code examples found: 3 (all in README)
examples/ directory: empty
Validation: 2/3 examples pass syntax check
Broken: README line 45 references `sdk.connect()` -- renamed to `sdk.init()` in v2.0
Phase 3: SCAFFOLD
Generated: docs/getting-started.md (5-step quickstart)
Generated: examples/basic-usage.ts (demonstrates init, query, cleanup)
Generated: 23 JSDoc stubs from TypeScript signatures
README patches: added installation section, updated broken example
Phase 4: VALIDATE
Links: 8/10 valid (2 broken anchors in README)
Generated examples: syntax valid
DX Scorecard: C -> B (projected after applying changes)
Example: Python Library with Comprehensive Docs (Sphinx)
Phase 1: AUDIT
README score: 11/12 (A)
Missing only: contributing guide link
API coverage: 89% (142/160 functions documented)
Sphinx docs at docs/_build/html: present, 45 pages
Time to hello world: ~4 steps (good)
Phase 2: EXTRACT
Code examples: 28 in docs, 12 in examples/
Validation: 37/40 pass (3 use deprecated pandas.append)
Stale examples: 3 files last modified 8 months ago, source changed since
Phase 3: SCAFFOLD
Generated: 18 docstring stubs for undocumented functions
Updated: 3 stale examples to use pandas.concat
Added: CONTRIBUTING.md link to README
Phase 4: VALIDATE
Links: 52/52 valid
DX Scorecard: A (maintained, minor freshness issues resolved)
Example: Rust CLI Tool Missing Getting Started
Phase 1: AUDIT
README score: 7/12 (B)
Present: title, description, installation (cargo install), license, API link
Missing: quick example showing actual CLI usage, contributing
API coverage: N/A (CLI tool, not library)
CLI help text: present via clap derive
Time to hello world: ~6 steps
Phase 2: EXTRACT
Code examples: 2 in README (both installation commands)
examples/ directory: 1 example config file, no runnable examples
Missing: actual usage examples showing command output
Phase 3: SCAFFOLD
Generated: docs/getting-started.md with:
1. cargo install myctl
2. myctl init
3. myctl run --config example.toml
(with expected output at each step)
Generated: examples/basic-config.toml with annotated comments
Generated: README quick-example section with terminal output
Phase 4: VALIDATE
CLI help flags match documented flags: YES
Config example matches current schema: YES
DX Scorecard: B -> A (projected after applying changes)
Rationalizations to Reject
| Rationalization |
Reality |
| "The README has an installation section but it only covers npm — yarn and pnpm users can figure it out. I'll mark installation as complete." |
Installation instructions must cover all package managers the project supports. If yarn.lock or pnpm-lock.yaml exists alongside package-lock.json, all three installers must be documented. Partial coverage is scored as partial, not complete. |
"This code example in the README uses the old sdk.connect() API — but it still parses syntactically, so it passes the syntax check." |
Stale API references are broken examples regardless of syntax validity. A syntactically valid example that calls a renamed or removed function fails the freshness check and must be flagged as broken in the scorecard. |
"The API function's behavior is complex, but I can infer what it does from the name parseAndValidate — I'll write the docstring stub based on that." |
Documentation must be derived from actual source code: type signatures, test files, and existing docs. Inferring behavior from function names produces fabricated documentation. Flag functions that cannot be documented from source as requiring developer-written docs. |
| "The getting-started guide already exists in the wiki — it's not in the repo, but I'll mark the quickstart as present." |
Documentation must be locatable from the repository root. A wiki link from the README satisfies the API reference link criterion only if the link is explicit. A guide that requires knowing where the wiki is does not meet the discoverability requirement. |
| "There are 18 undocumented exports — I'll generate all 18 JSDoc stubs and commit them without showing the user first." |
Scaffolded documentation must be presented for review before being written. Generated stubs may contain inaccurate parameter descriptions or wrong return type assumptions. Use emit_interaction to present scaffolded content and wait for approval. |
Gates
- No scaffolding without human confirmation. Generated documentation is always presented as a draft for review. Do not commit generated files automatically. Use
emit_interaction to present scaffolded content and wait for approval.
- No overwriting existing documentation. If a README section already exists, do not replace it. Only fill gaps. Existing content may have been carefully written and should not be clobbered.
- No fabricating API behavior. Generated documentation and examples must be derived from actual source code (type signatures, test files, existing docs). Do not guess what an undocumented function does based on its name alone.
- No marking stale examples as passing. If an example references a renamed or removed API, it is broken regardless of whether it happens to still parse syntactically.
Escalation
- When API documentation requires domain expertise: If function behavior cannot be inferred from types and tests alone, flag it: "These 5 functions need developer-written documentation -- their behavior is domain-specific and cannot be reliably inferred."
- When examples require external services: If running an example requires a database, API key, or external service, flag the dependency rather than failing: "This example requires a running PostgreSQL instance. Consider adding a Docker Compose file for example dependencies."
- When documentation tooling is broken: If Sphinx, TypeDoc, or other doc generators fail to build, report the error but do not attempt to fix the toolchain. That is outside this skill's scope.
- When README and API docs contradict each other: Flag the contradiction with both sources quoted. Do not choose which one is correct -- the developer must resolve the conflict: "README says
init() accepts a string, but the TypeDoc shows it accepts InitConfig. Which is current?"
1---2name: harness-dx3description: Harness DX4metadata:5 source: https://skillmd.com/skills/intense-visions/harness-dx6---7# Harness DX89> Audit developer experience artifacts -- README quality, API documentation coverage, getting-started guides, and example code validation. Produces a structured DX scorecard with specific improvements and scaffolds missing documentation.1011## When to Use1213- When preparing a library, SDK, or open-source project for release and developer adoption matters14- When reviewing a PR that changes public API surface and documentation should match15- When onboarding friction is high and you need to identify where developers get stuck16- NOT for internal architecture documentation (use harness-docs-pipeline)17- NOT for user-facing product copy (use harness-ux-copy)18- NOT for API design decisions like REST vs GraphQL (use harness-api-design)1920## Process2122### Phase 1: AUDIT -- Evaluate Documentation Quality23241. **Resolve project root.** Use provided path or cwd.25262. **Locate documentation artifacts.** Search for:27 - README files: `README.md`, `README.rst`, `readme.md`28 - Getting started: `GETTING_STARTED.md`, `QUICKSTART.md`, `docs/getting-started.md`29 - API docs: `docs/api/`, `API.md`, generated docs in `docs/`, `site/`30 - Examples: `examples/`, `demos/`, `samples/`, code blocks in README31 - Changelog: `CHANGELOG.md`, `CHANGES.md`, `HISTORY.md`32 - Contributing: `CONTRIBUTING.md`, `.github/CONTRIBUTING.md`33343. **Score README completeness.** Check for the presence and quality of each section:35 - **Title and description** (what is this project?) -- 0-2 points36 - **Installation/setup** (how do I get it?) -- 0-3 points37 - **Quick example** (show me it working in under 30 seconds) -- 0-3 points38 - **API reference or link** (where is the full documentation?) -- 0-2 points39 - **Contributing guide or link** -- 0-1 point40 - **License** -- 0-1 point41 - Total: score out of 12, grade A (10+), B (7-9), C (4-6), D (0-3)42434. **Evaluate installation instructions.** Check:44 - Are all package managers covered? (npm, yarn, pnpm for JS; pip, poetry for Python; cargo for Rust)45 - Are prerequisites listed? (Node version, OS requirements, system dependencies)46 - Is there a one-liner to get started? (copy-paste friendly)47 - Do the instructions work on all documented platforms?48495. **Assess API documentation coverage.** For every exported function, class, or endpoint:50 - Is it documented?51 - Does it have parameter descriptions?52 - Does it have a usage example?53 - Does it have return type documentation?54 - Calculate coverage percentage: `documented / total * 100`55566. **Check for time-to-hello-world.** Estimate the number of steps from `git clone` to seeing the project work. Fewer than 5 steps is good. More than 10 is a problem.5758---5960### Phase 2: EXTRACT -- Identify and Validate Examples61621. **Extract code examples from documentation.** Parse all markdown files for fenced code blocks with language annotations. Track:63 - File location and line number64 - Language (js, ts, python, bash, etc.)65 - Whether it is a complete runnable example or a fragment66672. **Extract standalone examples.** Scan `examples/`, `demos/`, `samples/` for:68 - Example projects with their own package.json/requirements.txt69 - Single-file examples70 - Example README files explaining what each example demonstrates71723. **Validate example syntax.** For each extracted code example:73 - Check for syntax errors (missing imports, unclosed brackets, invalid syntax)74 - Check for references to APIs that no longer exist (stale examples)75 - Check that import paths match the actual package name and exports76774. **Run executable examples.** When `--validate-examples` is set:78 - For JavaScript/TypeScript: attempt `node` or `tsx` execution79 - For Python: attempt `python` execution80 - For shell commands: validate they reference real scripts and flags81 - Record pass/fail for each example with error output82835. **Check example freshness.** Compare examples against the current API surface:84 - Are there deprecated APIs used in examples?85 - Are there new APIs with no examples?86 - When was each example file last modified relative to the source it demonstrates?87886. **Build coverage map.** Map examples to the APIs they demonstrate. Identify APIs with zero examples (documentation gaps).8990---9192### Phase 3: SCAFFOLD -- Generate Missing Documentation93941. **Generate README sections.** For any missing README section identified in Phase 1:95 - Draft installation instructions by reading `package.json`, `setup.py`, `Cargo.toml`, or equivalent96 - Draft a quick-start example using the project's main export97 - Draft a features list from the project's exports and test descriptions98992. **Generate API documentation stubs.** For undocumented exports:100 - Extract function signatures, parameter types, and return types from source101 - Generate JSDoc/docstring stubs with parameter descriptions inferred from type names102 - Include a usage example skeleton derived from test files when available1031043. **Generate example files.** For APIs with no examples:105 - Create a minimal working example in `examples/`106 - Include comments explaining each step107 - Ensure the example is self-contained (includes imports, setup, and cleanup)1081094. **Generate getting-started guide.** If no quickstart exists:110 - Write a step-by-step guide from installation through first meaningful use111 - Include expected output at each step112 - Target under 5 minutes to complete1131145. **Propose documentation structure.** If documentation is scattered or missing:115 - Recommend a `docs/` directory structure116 - Map content to sections (guides, reference, examples, tutorials)117 - Suggest a documentation site generator if the project is large enough (Docusaurus, MkDocs, mdBook)118119---120121### Phase 4: VALIDATE -- Verify Documentation Accuracy1221231. **Check link integrity.** Verify all links in documentation:124 - Internal links: do referenced files and anchors exist?125 - External links: are they well-formed? (do not make HTTP requests)126 - Badge URLs: are shields.io and similar badge URLs using the correct repo/package name?1271282. **Check version consistency.** Verify documentation matches the current version:129 - Does the installation section reference the correct package version?130 - Do API examples use the current function signatures?131 - Is the changelog up to date with the latest release?1321333. **Check cross-references.** Verify README links to detailed docs, and detailed docs link back to the README and to each other where appropriate.1341354. **Output DX scorecard.** Present the complete audit results:136137 ```138 DX Scorecard: [GRADE]139 README: [score]/12 ([grade])140 API Coverage: [N]% ([documented]/[total] exports)141 Examples: [working]/[total] passing142 Time to Hello World: ~[N] steps143 Links: [valid]/[total] verified144145 GAPS:146 - Missing: getting-started guide147 - Missing: 12 undocumented exports148 - Broken: examples/advanced.ts references removed API149150 GENERATED:151 - docs/getting-started.md (draft)152 - 4 API documentation stubs added153 - examples/basic-usage.ts created154 ```1551565. **Verify scaffolded content compiles.** If documentation was generated, verify:157 - Generated code examples have valid syntax158 - Generated markdown renders correctly (no broken formatting)159 - Generated files are placed in the correct directories160161---162163## Harness Integration164165- **`harness skill run harness-dx`** -- Primary command for running the DX audit.166- **`harness validate`** -- Run after scaffolding documentation to verify project health.167- **`Glob`** -- Used to locate README files, documentation directories, example folders, and API docs.168- **`Grep`** -- Used to extract exported symbols, find documentation comments, and locate code examples in markdown.169- **`Read`** -- Used to read documentation files, package manifests, and source files for API extraction.170- **`Write`** -- Used to scaffold missing documentation, generate example files, and create getting-started guides.171- **`Bash`** -- Used to run example validation, check link targets, and execute code snippets.172- **`emit_interaction`** -- Used to present the DX scorecard and request confirmation before generating scaffolded files.173174## Success Criteria175176- README is scored against all 6 completeness criteria with specific gap identification177- API documentation coverage percentage is calculated against actual exported surface178- All code examples in documentation are syntax-checked179- Executable examples pass when `--validate-examples` is set180- Missing documentation is scaffolded with accurate, runnable content181- DX scorecard provides an at-a-glance quality grade182- Time-to-hello-world is estimated and actionable if too high183184## Examples185186### Example: Node.js SDK with Sparse Documentation187188```189Phase 1: AUDIT190 README score: 5/12 (C)191 Present: title, description, license192 Missing: installation, quick example, API reference link, contributing193 API coverage: 23% (7/30 exports documented)194 Time to hello world: ~14 steps (too many, target: <5)195196Phase 2: EXTRACT197 Code examples found: 3 (all in README)198 examples/ directory: empty199 Validation: 2/3 examples pass syntax check200 Broken: README line 45 references `sdk.connect()` -- renamed to `sdk.init()` in v2.0201202Phase 3: SCAFFOLD203 Generated: docs/getting-started.md (5-step quickstart)204 Generated: examples/basic-usage.ts (demonstrates init, query, cleanup)205 Generated: 23 JSDoc stubs from TypeScript signatures206 README patches: added installation section, updated broken example207208Phase 4: VALIDATE209 Links: 8/10 valid (2 broken anchors in README)210 Generated examples: syntax valid211 DX Scorecard: C -> B (projected after applying changes)212```213214### Example: Python Library with Comprehensive Docs (Sphinx)215216```217Phase 1: AUDIT218 README score: 11/12 (A)219 Missing only: contributing guide link220 API coverage: 89% (142/160 functions documented)221 Sphinx docs at docs/_build/html: present, 45 pages222 Time to hello world: ~4 steps (good)223224Phase 2: EXTRACT225 Code examples: 28 in docs, 12 in examples/226 Validation: 37/40 pass (3 use deprecated pandas.append)227 Stale examples: 3 files last modified 8 months ago, source changed since228229Phase 3: SCAFFOLD230 Generated: 18 docstring stubs for undocumented functions231 Updated: 3 stale examples to use pandas.concat232 Added: CONTRIBUTING.md link to README233234Phase 4: VALIDATE235 Links: 52/52 valid236 DX Scorecard: A (maintained, minor freshness issues resolved)237```238239### Example: Rust CLI Tool Missing Getting Started240241```242Phase 1: AUDIT243 README score: 7/12 (B)244 Present: title, description, installation (cargo install), license, API link245 Missing: quick example showing actual CLI usage, contributing246 API coverage: N/A (CLI tool, not library)247 CLI help text: present via clap derive248 Time to hello world: ~6 steps249250Phase 2: EXTRACT251 Code examples: 2 in README (both installation commands)252 examples/ directory: 1 example config file, no runnable examples253 Missing: actual usage examples showing command output254255Phase 3: SCAFFOLD256 Generated: docs/getting-started.md with:257 1. cargo install myctl258 2. myctl init259 3. myctl run --config example.toml260 (with expected output at each step)261 Generated: examples/basic-config.toml with annotated comments262 Generated: README quick-example section with terminal output263264Phase 4: VALIDATE265 CLI help flags match documented flags: YES266 Config example matches current schema: YES267 DX Scorecard: B -> A (projected after applying changes)268```269270## Rationalizations to Reject271272| Rationalization | Reality |273| ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |274| "The README has an installation section but it only covers npm — yarn and pnpm users can figure it out. I'll mark installation as complete." | Installation instructions must cover all package managers the project supports. If `yarn.lock` or `pnpm-lock.yaml` exists alongside `package-lock.json`, all three installers must be documented. Partial coverage is scored as partial, not complete. |275| "This code example in the README uses the old `sdk.connect()` API — but it still parses syntactically, so it passes the syntax check." | Stale API references are broken examples regardless of syntax validity. A syntactically valid example that calls a renamed or removed function fails the freshness check and must be flagged as broken in the scorecard. |276| "The API function's behavior is complex, but I can infer what it does from the name `parseAndValidate` — I'll write the docstring stub based on that." | Documentation must be derived from actual source code: type signatures, test files, and existing docs. Inferring behavior from function names produces fabricated documentation. Flag functions that cannot be documented from source as requiring developer-written docs. |277| "The getting-started guide already exists in the wiki — it's not in the repo, but I'll mark the quickstart as present." | Documentation must be locatable from the repository root. A wiki link from the README satisfies the API reference link criterion only if the link is explicit. A guide that requires knowing where the wiki is does not meet the discoverability requirement. |278| "There are 18 undocumented exports — I'll generate all 18 JSDoc stubs and commit them without showing the user first." | Scaffolded documentation must be presented for review before being written. Generated stubs may contain inaccurate parameter descriptions or wrong return type assumptions. Use `emit_interaction` to present scaffolded content and wait for approval. |279280## Gates281282- **No scaffolding without human confirmation.** Generated documentation is always presented as a draft for review. Do not commit generated files automatically. Use `emit_interaction` to present scaffolded content and wait for approval.283- **No overwriting existing documentation.** If a README section already exists, do not replace it. Only fill gaps. Existing content may have been carefully written and should not be clobbered.284- **No fabricating API behavior.** Generated documentation and examples must be derived from actual source code (type signatures, test files, existing docs). Do not guess what an undocumented function does based on its name alone.285- **No marking stale examples as passing.** If an example references a renamed or removed API, it is broken regardless of whether it happens to still parse syntactically.286287## Escalation288289- **When API documentation requires domain expertise:** If function behavior cannot be inferred from types and tests alone, flag it: "These 5 functions need developer-written documentation -- their behavior is domain-specific and cannot be reliably inferred."290- **When examples require external services:** If running an example requires a database, API key, or external service, flag the dependency rather than failing: "This example requires a running PostgreSQL instance. Consider adding a Docker Compose file for example dependencies."291- **When documentation tooling is broken:** If Sphinx, TypeDoc, or other doc generators fail to build, report the error but do not attempt to fix the toolchain. That is outside this skill's scope.292- **When README and API docs contradict each other:** Flag the contradiction with both sources quoted. Do not choose which one is correct -- the developer must resolve the conflict: "README says `init()` accepts a string, but the TypeDoc shows it accepts `InitConfig`. Which is current?"