Receber por email
← Voltar para o catálogo

review-docs

Verify Phase D doc updates are accurate. Binary pass/fail gate — checks stat accuracy, file path validity, code-doc sync, completeness. Runs after /update-docs.

0estrelas
Atualizado há 5 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add cloverink/shipwright

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/review-docs/svg)](https://www.skillteca.com.br/skills/review-docs)
#ai

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

/review-docs

Quality gate for documentation. Catches stale stats, dead links, and drift between code and docs.

When to use: Verify doc accuracy after [/update-docs](../update-docs/SKILL.md), or as a standalone doc audit.
Use [/review-full](../review-full/SKILL.md) instead if: your diff is mixed (code + docs) — it'll detect scope and dispatch.
Called by: /ship Phase D (after [/update-docs](../update-docs/SKILL.md)), [/review-full](../review-full/SKILL.md) (docs-only diffs).

Why opus?

Docs are a trust surface. Sonnet misses cross-file inconsistencies (e.g., README says "30 modules" but modules/ has 32 files). Opus catches these.

<!-- CONFIGURE: Downgrade to sonnet if your docs are simple or stats aren't tracked -->

When to run

Phase D pipeline:
  /update-docs  → stage doc changes
  /review-docs  → verify them    ← you are here
  (if fail)     → fix in-place, re-stage, re-review (max 2 rounds)
  (if pass)     → continue to Phase S (ship)

Always run after /update-docs — even if it reports "came back clean." Verify the claim.

Bundling behavior

When called from /ship:

  • Read-only review of staged doc changes
  • If issues found: fix in-place, re-stage, re-review
  • Do NOT commit — /ship commits per phase

Step 1: Gather doc changes

git diff --cached --stat -- '*.md'
git diff --cached -- '*.md'

If no staged doc changes AND /update-docs reported "clean" → report "Phase D clean — no doc changes to review" and pass.

Step 2: Review focus areas

| Risk | What to check | |------|---------------| | Stat accuracy | Counts (components, endpoints, tests, modules) match reality | | File path validity | All [link](path) references point to files that exist | | Code-doc sync | Function names, prop signatures, route paths match source | | Frontmatter | Updated docs have valid title/description metadata | | Completeness | All relevant tiers updated (core, arch, journey, config) | | Stale dates | Dates that should have been updated are current |

<!-- CONFIGURE: Add project-specific risks (e.g., versioned API docs, i18n strings) -->

Step 3: Automated checks

Run any doc-drift tools your project has:

# Example — replace with your project's tools
bun run tools/doc-drift.ts        # dead file refs + stale dates
bun run tools/stats-sync.ts       # stat accuracy (check-only mode)

<!-- CONFIGURE: Replace with your tools, or remove if you don't have them -->

Any non-zero output = automatic fail.

If you don't have tools, manually spot-check (assumes repo-root-relative links; relative paths like ../foo.md will need adjustment):

# Find dead doc links (root-relative only)
grep -roE '\[.*\]\([^)]+\.md\)' --include='*.md' . | \
  awk -F'[()]' '{print $2}' | sort -u | \
  while read f; do [ -f "$f" ] || echo "DEAD: $f"; done

Step 4: Scoring

Binary pass/fail. No numeric score.

| Result | Meaning | |--------|---------| | Pass | All docs accurate, no stale references, stats match reality | | Fail | One or more issues found — list per issue with file path |

Why binary? Either docs are accurate or they're not. "Mostly accurate" docs are a trap — users trust them, then hit the inaccurate part.

Step 5: Report

## Review Docs — Report

Files reviewed: X docs changed
Tiers covered: 1 (core) / 2 (arch) / 3 (journey) / 4 (config)

| Check | Status |
|-------|--------|
| Stat accuracy | pass / fail |
| File path validity | pass / fail |
| Code-doc sync | pass / fail |
| Frontmatter | pass / fail |
| Completeness | pass / fail |

Issues: (if any, with file path + description)

Result: PASS / FAIL
Ready for Phase S: Yes / No

Guidelines

  • Binary pass/fail — no numeric score
  • Scope to doc diff only — don't review impl code (that's Phase R's job)
  • Fix in-place — if issues found, fix immediately, re-stage, re-review
  • Reviewer is read-only — agent reports, never edits in review pass
  • Max 2 fix rounds — if still failing after 2 rounds, flag to user

Exit conditions

  • PASS → return "Ready for Phase S", OR
  • FAIL after 2 fix rounds → return remaining issues, stop pipeline
Compartilhar X LinkedIn