Skip to content
Agentmart
Submit a tool

review-docs

Verify Phase D doc updates are accurate.

Skill by cloverink

IndexedMIT
Write a review

Chalk Labs

Need help deploying review-docs?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/cloverink-review-docs

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Verify Phase D doc updates are accurate. Binary pass/fail gate judged by an Opus reviewer (stats, links, code-doc sync, completeness), same reviewer for both rounds. Runs after /update-docs.

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/review-docs

What's inside

Skill name
review-docs
Description
Verify Phase D doc updates are accurate. Binary pass/fail gate judged by an Opus reviewer (stats, links, code-doc sync, completeness), same reviewer for both rounds. Runs after /update-docs.
License
MIT
Instructions
156 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# /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).

## Execution: Opus judges, this session fixes

Docs are a trust surface. Sonnet misses cross-file inconsistencies (README says "30 modules" but `modules/` has 32
files), so the verdict comes from the read-only [`code-reviewer`](../../agents/code-reviewer.md) agent (Opus), lens
`docs`, named `reviewer-docs`. This session runs the automated checks, applies fixes and re-stages.

Round 2 continues the **same** reviewer via `SendMessage` with the evidence rule from
[Reviewer Continuity](../../patterns/reviewer-continuity.md). No round 3: still failing → stop and report.

<!-- CONFIGURE: skip the reviewer spawn and rely on Step 3 tools alone if your docs are simple -->

## 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, same reviewer re-checks (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 with Step 3's tools; spawn
the reviewer only when there is a staged doc diff or a tool reports drift.

## 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
- Round 2 has no SHA to cite, so the re-review prompt cites `git diff --cached --stat -- '*.md'` instead

## Step 1: Gather doc changes

```bash
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: Spawn the docs reviewer

Run Step 3's tools first. Spawn only when Step 1 found a staged doc diff or a tool reports drift. Create the findings file and pass literals
(shell variables do not survive between Bash calls):

```bash
RUN_DIR="${TMPDIR:-/tmp}/shipwright/$(git branch --show-current | tr / -)-$(date +%s)"
mkdir -p "$RUN_DIR" && printf 'STATUS: RUNNING\n' > "$RUN_DIR/docs.md" && echo "$RUN_DIR"
```

```
Agent({
  subagent_type: "code-reviewer",          // "shipwright:code-reviewer" when installed as a plugin
  name: "reviewer-docs",
  prompt: "Lens: docs. Checklist: <SKILLS_DIR>/review-docs/SKILL.md §Review focus areas.
           Staged doc diff: <git diff --cached --stat output>. Step 3 tool output: <paste>.
           Findings file: <RUN_DIR>/docs.md. Append, flip line 1 to STATUS: DONE, reply with path + verdict only."
})
```

`SKILLS_DIR` is the parent of this skill's base directory. The verdict is binary: `Result: PASS` or `Result: FAIL`.

## Review focus areas

The `docs` lens checklist. The reviewer loads this section.

| 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:

```bash
# 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):

```bash
# 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.

From cloverink/shipwright, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 24, 2026 (1 month ago)
Last release
Sep 24, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from cloverink

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get review-docs running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying review-docs?

CallGet help
Cite this page

review-docs skill. Agent Mart. https://agentmart.dev/skills/cloverink-review-docs (last updated 2026-10-24)