agentleFS
okeefecookeefeco/pyeye-mcp/.claude/skills/docs-review/SKILL.md

docs-review

Skill1 starsChanged 11 days agoMITView on GitHub

Use when reviewing pyeye's own documentation for usability and honesty — "review the docs", "docs review", "check the pages bound to the facts this PR changed", "work down the uncovered-fact ledger", "/docs-review". Reviews registered pages over a caller-supplied scope with a fresh-context reviewer, and returns findings that each name their anchor and give a way forward. Nothing is ever applied automatically. Internal to this repo (not shipped). Does NOT check facts (that is `docs_facts check`), and does NOT audit code conventions (architecture-review) or copies (duplication-review).

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pr-review, code-review and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    pr-review

    Verify the technical accuracy of a vscode-docs pull request against the VS Code source code in microsoft/vscode. Use when reviewing a docs PR for factual correctness: setting names, command IDs, default values, API shapes, keybindings, versioned availability, and described behavior.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 4 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All mechanics are in scripts/docs_review.py (logic in pyeye.docs_facts.review).

    line 49
  2. Very specific:

    Scope: Run lift-blocked first (a code_bug finding whose issue has closed comes back for review), then scope, and read the packets.

    line 68

“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docs Review (internal)

Review the hand-written documentation for what a fact check can't see: prose that misleads, overclaims, or doesn't serve its audience. This is the presentation layer of #818: facts come from the code and docs_facts check keeps them right, while this review keeps the prose usable. It sits beside architecture-review and duplication-review and reuses their state machinery (D7).

The Review Principle — Read First

  • The tool never decides. A finding is a recommendation or a set of options, never an edit. Nothing is applied, codified or dismissed without the human.
  • Every finding names its anchor: the fact ID, the code symbol (its canonical pyeye handle, for prose the code contradicts), the D12 clause, the audience rule or the style rule it rests on.
  • Every finding gives a way forward:
    • a clear fix (plain fact drift, a broken link) carries one proposed replacement text, and no options;
    • genuine ambiguity carries needs_decision, the question it needs answered, and two or three options, each with its cost. It recommends one and names the recommendation's anchor whenever an anchor exists. When none exists it still gives an assessment, labelled unanchored: judgment only, never presented as settled.

architecture-review uses the same validator, with its own outcomes (#1179). scripts/docs_review.py validate enforces the shape; a finding that fails it is never shown.

Scope Is Required

There is no default scope. Pick one of:

  • Change-triggered: scope --base origin/main. It selects every page that binds or covers a fact added or changed since the base, plus the ledger's new uncovered facts. Run it for a PR that changed facts.
  • On demand: scope <pages or globs> and/or scope --audience human|claude|both.

The release-time full pass with task scoring is not part of this internal skill yet (#830).

Running It

All mechanics are in scripts/docs_review.py (logic in pyeye.docs_facts.review). Every command prints JSON.

CommandDoes
scope [PAGES…] [--audience A] [--base REF]Reviewer packets: per page, its audience, kind, facts and sections, each section marked needs_review or not.
validate FINDINGS.json [--today D]Rejects any finding without its anchor or a way forward (exit 1); otherwise gives each one's status.
mark-fine PAGE SECTION --date DRecords a section as reviewed and fine.
dismiss FINDINGS.json --index N --reason R --date D [--review-after D]Records one finding as dismissed.
dismiss-uncovered FACT --reason TEXT --date DRecords a fact as deliberately not covered.
move KEY NEWCarries an orphaned or lapsed dismissal over to its anchor's new form: the new fact ID, the new canonical handle, or the reworded subject.
forget KEYDeletes a dismissal, e.g. one whose fact was removed.
lift-blockedLifts every code_bug dismissal whose blocking issue is now closed (needs gh; offline it changes nothing).

State lives in docs/facts/review-state.json. Commit it, so the whole team shares the verdicts. Dates are always supplied by the caller; nothing reads a clock.

The Review Loop

  1. Scope. Run lift-blocked first (a code_bug finding whose issue has closed comes back for review), then scope, and read the packets. Skip sections whose needs_review is false: they were marked fine and neither their text nor their facts have changed since.
  2. Dispatch the reviewer, one fresh subagent per page, with reviewer.md and that page's packet. It reads the page with targeted reads and returns a JSON array of findings, nothing else.
  3. Validate. You run it, never the reviewer. Write the findings to a scratch file and run validate. A finding with problems goes back to the reviewer with the problems quoted; never fix it up yourself.
    • "page … changed since scope": the page changed under the review. Re-run scope for that page and send the reviewer its fresh packet.
    • A repeated finding (same page, section, category, anchor and, for a rule anchor, subject) is rejected: there is one finding per identity, the same identity dismissals use.
    • Proposed wording is checked against the rules too: an unbacked claim, or a hand-written value of the anchor fact, is rejected.
  4. Present each shown finding to the human verbatim, with its status:

    • new: not seen before;
    • resurfaced: dismissed before, but its anchor fact's value changed;
    • review-due: a dismissal whose review_after date has come.

    Lead with fact_drift, code_contradiction and honest_claims findings, then audience, then style.

  5. The human decides, per finding:
    • accept: the human edits the page, or tells you to apply the proposed text. Only on that explicit instruction, and only that text;
    • dismiss: dismiss with a reason (fine, deliberate, other);
    • choose an option, for a needs-decision finding.
  6. Mark sections fine with mark-fine, only for sections the human agrees need nothing.
  7. Uncovered facts (from the scope's uncovered list): for each, either propose where prose should explain it (an uncovered_fact finding with a replacement, anchored on the fact), or, if the human says it deliberately needs no prose, dismiss-uncovered with their reason. Then run uv run python scripts/docs_facts.py generate, which moves the fact to the ledger's read-only dismissed section.

Dismissals

  • A dismissed finding stays dismissed when it is reworded: identity is the page, section, category and anchor, never the prose. For a rule anchor (claims, audience, style) its quoted subject is part of the identity too, so dismissing one broken link doesn't hide a different one added later.
  • It returns as resurfaced when what it rests on changes: the anchor fact's value, or the anchored symbol's signature or docstring as pyeye reports them (a body edit doesn't count).
  • A "deliberately not covered" fact returns to the ledger when its value changes.
  • A heading rename resets that section: its "fine" verdict and its dismissals are pruned on the next state write (the command output lists them), so its findings come back for review rather than staying hidden.
  • A dismissal whose quoted subject no longer occurs in its section has lapsed: check stays green, the next command here prunes it (the output lists it), and its finding may come back. Editing prose never means touching the state.
  • docs_facts check fails on a dismissal whose fact no longer exists or whose symbol no longer resolves. The PR that made the change fixes it: move KEY NEW for a rename, forget KEY otherwise. The failure message gives both commands with the key.

Honest Limits

  • The review is judgment, not verification. Its findings say what they rest on so the human can check them.
  • It sees only registered pages (the doc registry) and never generated reference pages.
  • Fact values are checked mechanically elsewhere. A reviewer that "finds" a wrong value in a fact block has found a docs_facts bug: report it as an issue, not a finding.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.