AgentSkillsCN

docs-check

在合并或发布前,对文档进行质量门禁——核实代码示例、链接的准确性,以及 API 接口的规范性。在审计文档或审查文档 PR 时,应运用此技能。

SKILL.md
--- frontmatter
name: docs-check
description: "Quality gate for documentation before merge or publish — verifies code examples, links, and API accuracy. Use when auditing docs or reviewing documentation PRs."
context: fork
agent: editor
metadata:
  version: "1.0.0"
  author: outfitter
  category: documentation

Documentation Check

Rigorous quality gate for documentation. Focused on correctness, completeness, and comprehensiveness — not just voice and style.

Usage

code
/docs-check [focus]

Examples

code
/docs-check                              # Full quality gate
/docs-check focus on code examples       # Verify examples run
/docs-check check API completeness       # Parameter coverage
/docs-check are all links valid?         # Link check
/docs-check just the Quick Start         # Section-specific

Arguments

Focus: $ARGUMENTS

Use arguments to narrow the scope:

Argument TypeExampleBehavior
Section namejust the Quick StartAudit only that section
Quality dimensionfocus on correctnessPrioritize that checklist
Specific questionare the code examples runnable?Answer directly with evidence
None provided(empty)Run full checklist across all dimensions

Verification Checklist

Work through each dimension. For each item, document: PASS/FAIL + evidence.

Correctness (accuracy)

CheckHow to Verify
Code examples runExtract and execute each example. Report errors verbatim.
API signatures matchCompare documented signatures against source code.
Links resolveCheck each link target exists (relative paths, anchors, URLs).
Technical claims accurateCross-reference against implementation or authoritative source.
Versions currentVerify version numbers match package.json, Cargo.toml, etc.

Completeness (nothing missing)

CheckHow to Verify
Required sections presentCompare against applicable template (README, API ref, guide).
Parameters documentedEach param has: type, purpose, constraints, default value.
Error scenarios coveredDocument what happens when things go wrong.
Edge cases addressedEmpty inputs, nulls, boundaries, concurrent access.
Success and failure examplesShow both happy path and error handling.

Comprehensiveness (depth)

CheckHow to Verify
Common use casesList 3-5 typical scenarios; verify each is addressed.
Migration pathsBreaking changes include upgrade instructions.
Cross-referencesRelated docs linked where helpful.
Agent-friendlyStructured for AI consumption (clear headers, examples).
TroubleshootingCommon issues and solutions documented.

Execution

  1. Identify target — What documentation is being checked?
  2. Run checks — Work through the checklist, executing verification steps
  3. Collect evidence — Note specific line numbers, error messages, missing items
  4. Classify issues — Blocking (must fix) vs. suggestions (nice to have)
  5. Report — Structured output per format below

Output Format

Use the report structure in TEMPLATE.md.

When to Use

  • Before merging documentation PRs
  • Before publishing READMEs to new packages
  • Quarterly documentation audits
  • After major feature changes

Relationship with docs-review

For combined voice/style and technical verification, load both this skill and the team:docs-review skill.

Dimensiondocs-reviewdocs-check
FocusVoice, style, structureCorrectness, completeness
Question"Does it sound right?""Is it accurate and complete?"
ApproachSubjective assessmentObjective verification
OutputEditorial feedbackPass/fail with evidence
SpeedQuick passThorough audit

When to use each:

  • docs-review — Polishing prose, checking tone, improving flow
  • docs-check — Quality gate before merge, verifying technical accuracy
  • Both — Full documentation audit (load both skills)