From cf85ab358c2c8cff60f7a296cd3e6ab1437f744e Mon Sep 17 00:00:00 2001 From: Brian MacDonald Date: Mon, 9 Nov 2026 12:20:43 -0500 Subject: [PATCH 1/5] Add docs-guide-review skill (pipeline orchestrator) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A thin orchestrator that runs a guide through the full review pipeline in order — structure (docs-guide-revision) -> accuracy (docs-guide-test) -> developmental (docs-guide-develop) -> copyedit (Vale) — by delegating to each stage skill and consolidating their output into one report. It owns only the sequencing, the gating between stages, and the report; it makes no edits or judgments of its own. Design: - Threads the artifact through the stages: stage 1 produces a revised draft, and stages 2-4 operate on that draft, not the original. - Tests the revised (Code Sandwich) draft, which docs-guide-test reconstructs with its concat-header default. - Runs every stage in one pass, tagging findings by severity: broken code blocks publish, Vale CI findings block merge, static-check and developmental findings are advisory, silent-guidance structural choices are author decisions. Hard-stops only on not-a-guide or a stage-2 harness failure. Committed on the integration branch, which also carries docs-guide-test and docs-guide-develop so the full chain is runnable for development. The orchestrator's own PR should be cut from main after its dependencies merge. Co-Authored-By: Claude Opus 4.8 --- .claude/skills/docs-guide-review/SKILL.md | 70 +++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .claude/skills/docs-guide-review/SKILL.md diff --git a/.claude/skills/docs-guide-review/SKILL.md b/.claude/skills/docs-guide-review/SKILL.md new file mode 100644 index 0000000000..00eb3be0e7 --- /dev/null +++ b/.claude/skills/docs-guide-review/SKILL.md @@ -0,0 +1,70 @@ +--- +name: docs-guide-review +description: Run a Temporal guide (a docs.temporal.io/guides tutorial) through the full review pipeline in order — structure, then technical accuracy, then developmental edit, then copyedit — by delegating to the stage skills and consolidating their output into one report. Use this skill when someone wants a complete, end-to-end review of a new or revised guide before it ships: "review this guide", "take this guide through the whole pipeline", "run the full guide review", "structure/test/dev-edit/copyedit this guide", or "is this guide ready to publish". For a single concern, invoke that stage's skill directly instead: docs-guide-revision (structure), docs-guide-test (does the code run), docs-guide-develop (does it teach well), or Vale (copyedit). This skill owns only the sequencing, the gating between stages, and the consolidated report; it makes no edits or judgments of its own. +--- + +# Review a guide end to end + +You take one guide and run it through all four review stages in order, delegating each stage to the skill (or tool) that owns it, threading the guide from one stage to the next, and returning a single consolidated report. You don't re-implement any stage and you don't make structural, accuracy, developmental, or style judgments yourself — each belongs to its stage. + +## The pipeline + +| # | Stage | Owned by | What it does | Modifies the guide? | +| --- | --- | --- | --- | --- | +| 1 | Structure | `docs-guide-revision` | Applies the template: intro, prerequisites, `Step N` sections, Code Sandwich, transitions, Outcomes. | Yes — produces a revised draft | +| 2 | Accuracy | `docs-guide-test` | Reconstructs the project from the code blocks and runs it against a local Temporal server; runs the static checks. | No — a check | +| 3 | Developmental | `docs-guide-develop` | Judges whether it teaches well (verbs not nouns, verb choice, step completeness/order, lead with the action, audience fit). | Prose only, on request | +| 4 | Copyedit | Vale + `AGENTS.md` | Mechanical style and terminology. | No — a check | + +## Order, and why it's this order + +Run the stages in sequence; each depends on the one before it: + +- **Structure first** so every later stage edits or checks stable content instead of a moving target. +- **Accuracy on the revised draft.** The structural pass preserves code exactly but reorganizes it into the Code Sandwich (one file across a header block plus header-less continuation blocks). `docs-guide-test` defaults to `concat-header` extraction, which reconstructs exactly that shape — so test the stage-1 output, not the original. +- **Developmental after accuracy** so you're improving prose over code that actually works, inside a settled structure. +- **Copyedit last** so Vale runs over the final prose, after structural and developmental edits have landed. + +Thread the artifact through: stage 1 produces a revised draft; stages 2–4 operate on that draft (and on stage 3's edits, if applied), never the original. + +## Workflow + +1. **Establish the working copy.** Take the guide as a file (a draft, or a published page fetched to a local `.mdx`/`.md`). Keep it as a file so the stages can revise and check it. +2. **Stage 1 — structure.** Invoke `docs-guide-revision`. Keep its revised draft (saved to a file) and its editor's notes. +3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft. If no manifest exists for this guide, follow that skill's "Adding a new guide" steps to write one (or point it at the revised file). If the skill classifies the guide as external-dependency or cloud-bound, record its skip reason instead of a run. Keep the run result and the static-check findings. +4. **Stage 3 — developmental.** Invoke `docs-guide-develop` on the revised draft. Keep its developmental review; apply its edits into the draft only if the author asked for an applied revision. +5. **Stage 4 — copyedit.** Run the CI-scoped Vale over the final draft: + ```bash + vale --config .vale-ci.ini + ``` + Keep the results. (This is the bar PRs must hit; see `AGENTS.md`. Don't run the full style set to judge done-ness.) +6. **Consolidate.** Produce the single report described in Output. + +## Gating + +- **Run every stage in one pass** so the author gets the whole picture at once — don't stop at the first stage that finds problems. The two exceptions: + - If stage 1 finds the document isn't a tutorial-style guide at all, or is too incomplete to restructure, stop and say so; the later stages have nothing to work on. + - If stage 2 can't stand up a server or reconstruct the project (a harness problem, not a guide problem), fix or report that before trusting stages 3–4, which read the same reconstructed code. +- **Severity, carried into the report:** + - Code that doesn't assemble or run (stage 2) is **blocking for publish**. + - Vale findings under `.vale-ci.ini` (stage 4) are **blocking for merge** — they gate PRs. + - Static-check findings (stage 2) and developmental findings (stage 3) are **advisory** — real notes for the author, but they don't block. + - Structural choices the guidance was silent on (stage 1) are **author decisions**. +- **Respect each stage's own deferrals.** If a stage skips or defers (test skip for cloud/external, develop deferring a structural point back to stage 1), record the reason rather than redoing it here. + +## Boundaries + +This skill owns sequencing, gating, and the consolidated report — nothing else. + +- **Don't re-implement or second-guess a stage.** Report what the stage skill produced. If you disagree with a stage's output, that's feedback for that skill, not a judgment to make here. +- **Don't change code or technical claims** at any point; the stages that touch the guide (1 and 3) already forbid it, and this skill forbids it too. +- **Don't merge stages.** Each finding keeps its stage's identity in the report, so the author knows which concern it is and which skill to re-run. + +## Output + +A single consolidated report: + +1. **Readiness line** up top: `Ready to publish`, `Needs author decisions`, or `Blocked` — with the one-line reason (for `Blocked`, the broken code or the Vale gate). +2. **One section per stage**, each summarizing that stage's result and pointing to its detail: stage 1 → revised draft path + count of editor's notes; stage 2 → PASS/FAIL/SKIP and the static-check count; stage 3 → the developmental findings; stage 4 → the Vale results. +3. **Consolidated action list**, prioritized across all stages: blocking items first (broken code, Vale gate), then author decisions, then advisory findings. Each item keeps its stage label. +4. **The revised guide** (file path), plus a note of whether stage 3's developmental edits were applied or left as suggestions. From 743f48e760f5c906423a04fb9ee5c71c92302190 Mon Sep 17 00:00:00 2001 From: Brian MacDonald Date: Mon, 30 Nov 2026 14:59:17 -0500 Subject: [PATCH 2/5] Move the Tone pass to stage 4 and refine gating in docs-guide-review - Skip docs-guide-revision's Tone pass during an orchestrated run and run it once in stage 4, before Vale, so prose changed in stage 3 is reviewed. Tone findings are suggestions, applied only on request. - A stage 2 harness failure marks the code untested but no longer holds back stages 3 and 4, which read the draft. - A skipped stage 2 run still runs and reports its static checks. - Describe stage 3's Code Sandwich quality and global-audience checks. Co-Authored-By: Claude Opus 5.5 --- .claude/skills/docs-guide-review/SKILL.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.claude/skills/docs-guide-review/SKILL.md b/.claude/skills/docs-guide-review/SKILL.md index 00eb3be0e7..f23805c5e8 100644 --- a/.claude/skills/docs-guide-review/SKILL.md +++ b/.claude/skills/docs-guide-review/SKILL.md @@ -13,8 +13,8 @@ You take one guide and run it through all four review stages in order, delegatin | --- | --- | --- | --- | --- | | 1 | Structure | `docs-guide-revision` | Applies the template: intro, prerequisites, `Step N` sections, Code Sandwich, transitions, Outcomes. | Yes — produces a revised draft | | 2 | Accuracy | `docs-guide-test` | Reconstructs the project from the code blocks and runs it against a local Temporal server; runs the static checks. | No — a check | -| 3 | Developmental | `docs-guide-develop` | Judges whether it teaches well (verbs not nouns, verb choice, step completeness/order, lead with the action, audience fit). | Prose only, on request | -| 4 | Copyedit | Vale + `AGENTS.md` | Mechanical style and terminology. | No — a check | +| 3 | Developmental | `docs-guide-develop` | Judges whether it teaches well (verbs not nouns, verb choice, step completeness/order, lead with the action, Code Sandwich quality, audience fit including global-audience readability). | Prose only, on request | +| 4 | Copyedit | `AGENTS.md` Tone pass + Vale | A no-context tone review of the final prose, then mechanical style and terminology. | Prose only, on request (Tone pass findings); Vale is a check | ## Order, and why it's this order @@ -23,17 +23,17 @@ Run the stages in sequence; each depends on the one before it: - **Structure first** so every later stage edits or checks stable content instead of a moving target. - **Accuracy on the revised draft.** The structural pass preserves code exactly but reorganizes it into the Code Sandwich (one file across a header block plus header-less continuation blocks). `docs-guide-test` defaults to `concat-header` extraction, which reconstructs exactly that shape — so test the stage-1 output, not the original. - **Developmental after accuracy** so you're improving prose over code that actually works, inside a settled structure. -- **Copyedit last** so Vale runs over the final prose, after structural and developmental edits have landed. +- **Copyedit last** so the Tone pass and Vale run over the final prose, after structural and developmental edits have landed. `docs-guide-revision` runs the Tone pass as its own last step when used alone. In this pipeline, skip it there and run it once in stage 4, so prose that stage 3 changes still gets a tone review. Thread the artifact through: stage 1 produces a revised draft; stages 2–4 operate on that draft (and on stage 3's edits, if applied), never the original. ## Workflow 1. **Establish the working copy.** Take the guide as a file (a draft, or a published page fetched to a local `.mdx`/`.md`). Keep it as a file so the stages can revise and check it. -2. **Stage 1 — structure.** Invoke `docs-guide-revision`. Keep its revised draft (saved to a file) and its editor's notes. -3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft. If no manifest exists for this guide, follow that skill's "Adding a new guide" steps to write one (or point it at the revised file). If the skill classifies the guide as external-dependency or cloud-bound, record its skip reason instead of a run. Keep the run result and the static-check findings. +2. **Stage 1 — structure.** Invoke `docs-guide-revision`, and tell it to skip its Tone pass step; stage 4 runs it. Keep its revised draft (saved to a file) and its editor's notes. +3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft. If no manifest exists for this guide, follow that skill's "Adding a new guide" steps to write one (or point it at the revised file). If the skill classifies the guide as external-dependency or cloud-bound, record its skip reason in place of a run result, and still run and keep the static checks: they read the extracted source and don't need a server. Keep the run result (or skip reason) and the static-check findings. 4. **Stage 3 — developmental.** Invoke `docs-guide-develop` on the revised draft. Keep its developmental review; apply its edits into the draft only if the author asked for an applied revision. -5. **Stage 4 — copyedit.** Run the CI-scoped Vale over the final draft: +5. **Stage 4 — copyedit.** Run the [Tone pass](../../../AGENTS.md#tone-pass) from `AGENTS.md` on the final draft, giving the reviewing agent the draft's file path. Keep its findings as suggestions. This differs from the Tone pass's own step 2, which applies them. Apply them only if the author asked for an applied revision, and never change code or a technical claim to fix tone. Then run the CI-scoped Vale over the draft: ```bash vale --config .vale-ci.ini ``` @@ -44,11 +44,11 @@ Thread the artifact through: stage 1 produces a revised draft; stages 2–4 oper - **Run every stage in one pass** so the author gets the whole picture at once — don't stop at the first stage that finds problems. The two exceptions: - If stage 1 finds the document isn't a tutorial-style guide at all, or is too incomplete to restructure, stop and say so; the later stages have nothing to work on. - - If stage 2 can't stand up a server or reconstruct the project (a harness problem, not a guide problem), fix or report that before trusting stages 3–4, which read the same reconstructed code. + - If stage 2 can't stand up a server or reconstruct the project (a harness problem, not a guide problem), report it as a harness problem, not a guide failure, and mark the guide's code as untested. Continue with stages 3 and 4; they read the draft, not the reconstructed project. - **Severity, carried into the report:** - Code that doesn't assemble or run (stage 2) is **blocking for publish**. - Vale findings under `.vale-ci.ini` (stage 4) are **blocking for merge** — they gate PRs. - - Static-check findings (stage 2) and developmental findings (stage 3) are **advisory** — real notes for the author, but they don't block. + - Static-check findings (stage 2, including those from a skipped run), developmental findings (stage 3), and Tone pass findings (stage 4) are **advisory** — real notes for the author, but they don't block. - Structural choices the guidance was silent on (stage 1) are **author decisions**. - **Respect each stage's own deferrals.** If a stage skips or defers (test skip for cloud/external, develop deferring a structural point back to stage 1), record the reason rather than redoing it here. @@ -57,7 +57,7 @@ Thread the artifact through: stage 1 produces a revised draft; stages 2–4 oper This skill owns sequencing, gating, and the consolidated report — nothing else. - **Don't re-implement or second-guess a stage.** Report what the stage skill produced. If you disagree with a stage's output, that's feedback for that skill, not a judgment to make here. -- **Don't change code or technical claims** at any point; the stages that touch the guide (1 and 3) already forbid it, and this skill forbids it too. +- **Don't change code or technical claims** at any point; the stages that touch the guide (1, 3, and the stage 4 Tone pass) already forbid it, and this skill forbids it too. - **Don't merge stages.** Each finding keeps its stage's identity in the report, so the author knows which concern it is and which skill to re-run. ## Output @@ -65,6 +65,6 @@ This skill owns sequencing, gating, and the consolidated report — nothing else A single consolidated report: 1. **Readiness line** up top: `Ready to publish`, `Needs author decisions`, or `Blocked` — with the one-line reason (for `Blocked`, the broken code or the Vale gate). -2. **One section per stage**, each summarizing that stage's result and pointing to its detail: stage 1 → revised draft path + count of editor's notes; stage 2 → PASS/FAIL/SKIP and the static-check count; stage 3 → the developmental findings; stage 4 → the Vale results. +2. **One section per stage**, each summarizing that stage's result and pointing to its detail: stage 1 → revised draft path + count of editor's notes; stage 2 → PASS/FAIL/SKIP (with the skip reason, or "untested" for a harness problem) and the static-check count; stage 3 → the developmental findings; stage 4 → the Tone pass findings and the Vale results. 3. **Consolidated action list**, prioritized across all stages: blocking items first (broken code, Vale gate), then author decisions, then advisory findings. Each item keeps its stage label. -4. **The revised guide** (file path), plus a note of whether stage 3's developmental edits were applied or left as suggestions. +4. **The revised guide** (file path), plus a note of whether stage 3's developmental edits and stage 4's Tone pass findings were applied or left as suggestions. From dd44325338158eadd94be0e9d9ede5ea07fabac4 Mon Sep 17 00:00:00 2001 From: Brian MacDonald Date: Mon, 30 Nov 2026 16:57:53 -0500 Subject: [PATCH 3/5] Add a prose claims check to stage 2 of docs-guide-review Stage 2 now reports whether each claim the prose makes about the code's behavior is true, false, or can't be verified. A false claim blocks publish; an unverifiable one is advisory. Until docs-guide-test has a claims check, the orchestrator reports it as not run. Co-Authored-By: Claude Opus 5.5 --- .claude/skills/docs-guide-review/SKILL.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.claude/skills/docs-guide-review/SKILL.md b/.claude/skills/docs-guide-review/SKILL.md index f23805c5e8..483bc50a80 100644 --- a/.claude/skills/docs-guide-review/SKILL.md +++ b/.claude/skills/docs-guide-review/SKILL.md @@ -12,7 +12,7 @@ You take one guide and run it through all four review stages in order, delegatin | # | Stage | Owned by | What it does | Modifies the guide? | | --- | --- | --- | --- | --- | | 1 | Structure | `docs-guide-revision` | Applies the template: intro, prerequisites, `Step N` sections, Code Sandwich, transitions, Outcomes. | Yes — produces a revised draft | -| 2 | Accuracy | `docs-guide-test` | Reconstructs the project from the code blocks and runs it against a local Temporal server; runs the static checks. | No — a check | +| 2 | Accuracy | `docs-guide-test` | Reconstructs the project from the code blocks and runs it against a local Temporal server; runs the static checks; checks the prose's claims about what the code does against the code and the run output. | No — a check | | 3 | Developmental | `docs-guide-develop` | Judges whether it teaches well (verbs not nouns, verb choice, step completeness/order, lead with the action, Code Sandwich quality, audience fit including global-audience readability). | Prose only, on request | | 4 | Copyedit | `AGENTS.md` Tone pass + Vale | A no-context tone review of the final prose, then mechanical style and terminology. | Prose only, on request (Tone pass findings); Vale is a check | @@ -31,7 +31,7 @@ Thread the artifact through: stage 1 produces a revised draft; stages 2–4 oper 1. **Establish the working copy.** Take the guide as a file (a draft, or a published page fetched to a local `.mdx`/`.md`). Keep it as a file so the stages can revise and check it. 2. **Stage 1 — structure.** Invoke `docs-guide-revision`, and tell it to skip its Tone pass step; stage 4 runs it. Keep its revised draft (saved to a file) and its editor's notes. -3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft. If no manifest exists for this guide, follow that skill's "Adding a new guide" steps to write one (or point it at the revised file). If the skill classifies the guide as external-dependency or cloud-bound, record its skip reason in place of a run result, and still run and keep the static checks: they read the extracted source and don't need a server. Keep the run result (or skip reason) and the static-check findings. +3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft. If no manifest exists for this guide, follow that skill's "Adding a new guide" steps to write one (or point it at the revised file). If the skill classifies the guide as external-dependency or cloud-bound, record its skip reason in place of a run result, and still run and keep the static checks: they read the extracted source and don't need a server. Keep the run result (or skip reason), the static-check findings, and the claims check: each claim the prose makes about what the code does (counts, timeouts, ordering, output, failure behavior), marked true, false, or can't verify. If the `docs-guide-test` version in use has no claims check, report it as not run; don't do it here. 4. **Stage 3 — developmental.** Invoke `docs-guide-develop` on the revised draft. Keep its developmental review; apply its edits into the draft only if the author asked for an applied revision. 5. **Stage 4 — copyedit.** Run the [Tone pass](../../../AGENTS.md#tone-pass) from `AGENTS.md` on the final draft, giving the reviewing agent the draft's file path. Keep its findings as suggestions. This differs from the Tone pass's own step 2, which applies them. Apply them only if the author asked for an applied revision, and never change code or a technical claim to fix tone. Then run the CI-scoped Vale over the draft: ```bash @@ -47,10 +47,11 @@ Thread the artifact through: stage 1 produces a revised draft; stages 2–4 oper - If stage 2 can't stand up a server or reconstruct the project (a harness problem, not a guide problem), report it as a harness problem, not a guide failure, and mark the guide's code as untested. Continue with stages 3 and 4; they read the draft, not the reconstructed project. - **Severity, carried into the report:** - Code that doesn't assemble or run (stage 2) is **blocking for publish**. + - A prose claim the code contradicts (stage 2) is **blocking for publish**. It misleads the reader as much as broken code does. A claim stage 2 couldn't verify is **advisory**. - Vale findings under `.vale-ci.ini` (stage 4) are **blocking for merge** — they gate PRs. - Static-check findings (stage 2, including those from a skipped run), developmental findings (stage 3), and Tone pass findings (stage 4) are **advisory** — real notes for the author, but they don't block. - Structural choices the guidance was silent on (stage 1) are **author decisions**. -- **Respect each stage's own deferrals.** If a stage skips or defers (test skip for cloud/external, develop deferring a structural point back to stage 1), record the reason rather than redoing it here. +- **Respect each stage's own deferrals.** If a stage skips or defers (test skip for cloud/external, develop deferring a structural point back to stage 1, or a claim that doesn't match the code back to stage 2), record the reason rather than redoing it here. ## Boundaries @@ -64,7 +65,7 @@ This skill owns sequencing, gating, and the consolidated report — nothing else A single consolidated report: -1. **Readiness line** up top: `Ready to publish`, `Needs author decisions`, or `Blocked` — with the one-line reason (for `Blocked`, the broken code or the Vale gate). -2. **One section per stage**, each summarizing that stage's result and pointing to its detail: stage 1 → revised draft path + count of editor's notes; stage 2 → PASS/FAIL/SKIP (with the skip reason, or "untested" for a harness problem) and the static-check count; stage 3 → the developmental findings; stage 4 → the Tone pass findings and the Vale results. -3. **Consolidated action list**, prioritized across all stages: blocking items first (broken code, Vale gate), then author decisions, then advisory findings. Each item keeps its stage label. +1. **Readiness line** up top: `Ready to publish`, `Needs author decisions`, or `Blocked` — with the one-line reason (for `Blocked`, the broken code, the false claim, or the Vale gate). +2. **One section per stage**, each summarizing that stage's result and pointing to its detail: stage 1 → revised draft path + count of editor's notes; stage 2 → PASS/FAIL/SKIP (with the skip reason, or "untested" for a harness problem) the static-check count, and the claims check counts (true, false, can't verify, or not run); stage 3 → the developmental findings; stage 4 → the Tone pass findings and the Vale results. +3. **Consolidated action list**, prioritized across all stages: blocking items first (broken code, false claims, Vale gate), then author decisions, then advisory findings. Each item keeps its stage label. 4. **The revised guide** (file path), plus a note of whether stage 3's developmental edits and stage 4's Tone pass findings were applied or left as suggestions. From f0f7b16c7112c6059c5c6d095e7f376fb152e883 Mon Sep 17 00:00:00 2001 From: Brian MacDonald Date: Wed, 2 Dec 2026 17:44:58 -0500 Subject: [PATCH 4/5] Name the stage 2 command for testing the revised draft Stage 2 runs the guide's manifest with --guide --mode concat-header, so the manifest supplies dependencies, setup, driver, and assertions while the code comes from stage 1's draft. Co-Authored-By: Claude Opus 5.5 --- .claude/skills/docs-guide-review/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/skills/docs-guide-review/SKILL.md b/.claude/skills/docs-guide-review/SKILL.md index 483bc50a80..1e993b7fb1 100644 --- a/.claude/skills/docs-guide-review/SKILL.md +++ b/.claude/skills/docs-guide-review/SKILL.md @@ -31,7 +31,7 @@ Thread the artifact through: stage 1 produces a revised draft; stages 2–4 oper 1. **Establish the working copy.** Take the guide as a file (a draft, or a published page fetched to a local `.mdx`/`.md`). Keep it as a file so the stages can revise and check it. 2. **Stage 1 — structure.** Invoke `docs-guide-revision`, and tell it to skip its Tone pass step; stage 4 runs it. Keep its revised draft (saved to a file) and its editor's notes. -3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft. If no manifest exists for this guide, follow that skill's "Adding a new guide" steps to write one (or point it at the revised file). If the skill classifies the guide as external-dependency or cloud-bound, record its skip reason in place of a run result, and still run and keep the static checks: they read the extracted source and don't need a server. Keep the run result (or skip reason), the static-check findings, and the claims check: each claim the prose makes about what the code does (counts, timeouts, ordering, output, failure behavior), marked true, false, or can't verify. If the `docs-guide-test` version in use has no claims check, report it as not run; don't do it here. +3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft: run the guide's manifest with `--guide --mode concat-header`. The manifest supplies dependencies, setup, driver, and assertions, and the code comes from the draft, which stage 1 laid out as a Code Sandwich. If no manifest exists for this guide, follow that skill's "Adding a new guide" steps to write one first. If the skill classifies the guide as external-dependency or cloud-bound, record its skip reason in place of a run result, and still run and keep the static checks: they read the extracted source and don't need a server. Keep the run result (or skip reason), the static-check findings, and the claims check: each claim the prose makes about what the code does (counts, timeouts, ordering, output, failure behavior), marked true, false, or can't verify. If the `docs-guide-test` version in use has no claims check, report it as not run; don't do it here. 4. **Stage 3 — developmental.** Invoke `docs-guide-develop` on the revised draft. Keep its developmental review; apply its edits into the draft only if the author asked for an applied revision. 5. **Stage 4 — copyedit.** Run the [Tone pass](../../../AGENTS.md#tone-pass) from `AGENTS.md` on the final draft, giving the reviewing agent the draft's file path. Keep its findings as suggestions. This differs from the Tone pass's own step 2, which applies them. Apply them only if the author asked for an applied revision, and never change code or a technical claim to fix tone. Then run the CI-scoped Vale over the draft: ```bash From 9aabc48eb60f3f7cc7795c9fe1c9b52878a48f6a Mon Sep 17 00:00:00 2001 From: Brian MacDonald Date: Thu, 3 Dec 2026 15:22:17 -0500 Subject: [PATCH 5/5] Update docs-guide-review stage 2 for the merged claims check The claims check is on main now, so stage 2 reads its CLAIMS results (true, false, can't verify, stale, not run) instead of reporting the check as not run. A missing claims ledger is written with the test skill's "Adding a new guide" steps. The harness runs static checks and claims for skipped guides itself. Stale claims are expected on a revised draft and are advisory. Co-Authored-By: Claude Opus 5.5 --- .claude/skills/docs-guide-review/SKILL.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.claude/skills/docs-guide-review/SKILL.md b/.claude/skills/docs-guide-review/SKILL.md index 1e993b7fb1..fc0633aaba 100644 --- a/.claude/skills/docs-guide-review/SKILL.md +++ b/.claude/skills/docs-guide-review/SKILL.md @@ -31,7 +31,7 @@ Thread the artifact through: stage 1 produces a revised draft; stages 2–4 oper 1. **Establish the working copy.** Take the guide as a file (a draft, or a published page fetched to a local `.mdx`/`.md`). Keep it as a file so the stages can revise and check it. 2. **Stage 1 — structure.** Invoke `docs-guide-revision`, and tell it to skip its Tone pass step; stage 4 runs it. Keep its revised draft (saved to a file) and its editor's notes. -3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft: run the guide's manifest with `--guide --mode concat-header`. The manifest supplies dependencies, setup, driver, and assertions, and the code comes from the draft, which stage 1 laid out as a Code Sandwich. If no manifest exists for this guide, follow that skill's "Adding a new guide" steps to write one first. If the skill classifies the guide as external-dependency or cloud-bound, record its skip reason in place of a run result, and still run and keep the static checks: they read the extracted source and don't need a server. Keep the run result (or skip reason), the static-check findings, and the claims check: each claim the prose makes about what the code does (counts, timeouts, ordering, output, failure behavior), marked true, false, or can't verify. If the `docs-guide-test` version in use has no claims check, report it as not run; don't do it here. +3. **Stage 2 — accuracy.** Invoke `docs-guide-test` against the revised draft: run the guide's manifest with `--guide --mode concat-header`. The manifest supplies dependencies, setup, driver, and assertions, and the code comes from the draft, which stage 1 laid out as a Code Sandwich. If no manifest or claims ledger exists for this guide, follow that skill's "Adding a new guide" steps to write them first. If the manifest skips the run (an external-dependency or cloud-bound guide), record the skip reason in place of a run result; the harness still runs the static checks and the claims it can check without a server. Keep the run result (or skip reason), the static-check findings, and the claims results from the run's CLAIMS section: true, false, can't verify, stale, and not run. Expect some stale claims here: stage 1 rewords prose, so some quoted sentences no longer appear in the draft. Report them as stale rather than re-judging them here; re-reading them belongs to `docs-guide-test`. 4. **Stage 3 — developmental.** Invoke `docs-guide-develop` on the revised draft. Keep its developmental review; apply its edits into the draft only if the author asked for an applied revision. 5. **Stage 4 — copyedit.** Run the [Tone pass](../../../AGENTS.md#tone-pass) from `AGENTS.md` on the final draft, giving the reviewing agent the draft's file path. Keep its findings as suggestions. This differs from the Tone pass's own step 2, which applies them. Apply them only if the author asked for an applied revision, and never change code or a technical claim to fix tone. Then run the CI-scoped Vale over the draft: ```bash @@ -47,7 +47,7 @@ Thread the artifact through: stage 1 produces a revised draft; stages 2–4 oper - If stage 2 can't stand up a server or reconstruct the project (a harness problem, not a guide problem), report it as a harness problem, not a guide failure, and mark the guide's code as untested. Continue with stages 3 and 4; they read the draft, not the reconstructed project. - **Severity, carried into the report:** - Code that doesn't assemble or run (stage 2) is **blocking for publish**. - - A prose claim the code contradicts (stage 2) is **blocking for publish**. It misleads the reader as much as broken code does. A claim stage 2 couldn't verify is **advisory**. + - A prose claim the code contradicts (stage 2) is **blocking for publish**. It misleads the reader as much as broken code does. Claims stage 2 couldn't verify, stale claims, and claims the run didn't reach are **advisory**. - Vale findings under `.vale-ci.ini` (stage 4) are **blocking for merge** — they gate PRs. - Static-check findings (stage 2, including those from a skipped run), developmental findings (stage 3), and Tone pass findings (stage 4) are **advisory** — real notes for the author, but they don't block. - Structural choices the guidance was silent on (stage 1) are **author decisions**. @@ -66,6 +66,6 @@ This skill owns sequencing, gating, and the consolidated report — nothing else A single consolidated report: 1. **Readiness line** up top: `Ready to publish`, `Needs author decisions`, or `Blocked` — with the one-line reason (for `Blocked`, the broken code, the false claim, or the Vale gate). -2. **One section per stage**, each summarizing that stage's result and pointing to its detail: stage 1 → revised draft path + count of editor's notes; stage 2 → PASS/FAIL/SKIP (with the skip reason, or "untested" for a harness problem) the static-check count, and the claims check counts (true, false, can't verify, or not run); stage 3 → the developmental findings; stage 4 → the Tone pass findings and the Vale results. +2. **One section per stage**, each summarizing that stage's result and pointing to its detail: stage 1 → revised draft path + count of editor's notes; stage 2 → PASS/FAIL/SKIP (with the skip reason, or "untested" for a harness problem), the static-check count, and the claims counts (true, false, can't verify, stale, not run), or "no claims ledger"; stage 3 → the developmental findings; stage 4 → the Tone pass findings and the Vale results. 3. **Consolidated action list**, prioritized across all stages: blocking items first (broken code, false claims, Vale gate), then author decisions, then advisory findings. Each item keeps its stage label. 4. **The revised guide** (file path), plus a note of whether stage 3's developmental edits and stage 4's Tone pass findings were applied or left as suggestions.