Skip to content

Add /ledger-review: plain-language Decision Ledger review comment for spec PRs - #64

Merged
Carr1005 merged 1 commit into
mainfrom
skill-ledger-review
Oct 20, 2026
Merged

Carr1005 merged 1 commit into
mainfrom
skill-ledger-review

Conversation

@Carr1005

Copy link
Copy Markdown
Collaborator

Adds /ledger-review <PR>. It posts one comment per spec file a PR changes, listing every Decision Ledger decision and option in plain language, so a curriculum product manager can review and comment on them. The reference is the comment on #63.

How it keeps the output consistent

Part of the comment Produced by Same every run?
Header, legend, footer; headings with line links; the 5 columns; every Ref; Labels (✅ 📘, "shown in the course, no code shipped", "never built…"); "Asked only if…"; test counts and skipped questions scripts/ledger_review.py skeleton, from the spec Yes, exactly
Wording slots: title, question, why, option, setup, what it leaves out, open points The model, following SKILL.md's writing rules and the reference example Same rules and style; word choice can vary
Rows whose spec text has not changed since the last review previous: copied from that review (hidden markers hold a hash of each row's source) Yes, exactly

check compares the draft with the skeleton line by line: every fixed part must be identical, every slot filled, and no internal term (Invariant, litmus, stand-in, R12, AC7…) may appear in a slot. The draft is shown to the owner before posting.

Experiments (Opus 5.5; files are local under experiments/ledger-review/)

Run Input Result
E1 The #63 comment, checked against the skeleton of #63's spec Matches everything except 2 cells where the comment was inconsistent with itself, which the template now standardizes: the separator before the test count, and D4b's "never built" label
E2 / E3 First prompt: loop-engineering (with example) / agent-memory (without example) Both passed check, but the wording was ~1.5–2× longer than the reference, more literal, and E3 wrote "None stated" in 25 of 34 Setup cells
E4 / E5 Revised prompt (brevity guidance, "translate into the reader's words", setup rules) E5 (no example): close to the reference (median words: why 20.5 vs 17.5, option 10 vs 10, if-chosen 11 vs 9); 3 "None stated"
E6 Final prompt, loop-engineering (with example) question 11 vs 11, why 20.5 vs 17.5, if-chosen 11.5 vs 9; option 14 vs 10, because it repeated where the course showed the option. One sentence was added for that afterwards, without a rerun
Reuse The #63 spec with markers, then one option edited Unchanged spec: 2 slots to fill (open points only). One option changed: only that row's 11 slots

The length guidance is the reference comment's typical lengths, stated as guidance, not limits (owner decision: no word limits that the reference was not written with).

Isolation

File Read by
.claude/skills/ledger-review/* (new) only /ledger-review, typed by the owner (disable-model-invocation: true); generators and build agents never see it
README.md (one tree line) humans
CLAUDE.md, AGENTS.md, guide, overlay not touched

SKILL.md's examples are invented, because every SKILL.md must stay course-agnostic (CLAUDE.md). The real #63 comment is references/example-review.md. It restates only that spec's Ledger, which a build agent of that course already reads.

Known limits

  • The wording slots are model-written, so two runs differ in word choice within the rules.
  • previous finds earlier reviews through merged PRs that touched the spec file; a review on an unmerged PR is not reused.

🤖 Generated with Claude Code

…or spec PRs

The owner runs `/ledger-review <PR>` to post one comment per changed spec
that lists every Ledger decision and option in plain language, so a
curriculum product manager can review and comment on them.

- scripts/ledger_review.py renders every fixed and factual part from the
  spec (header, legend, headings with line links, the five columns, ids,
  labels, "Asked only if", test counts, skipped questions, footer) and
  leaves slots for the wording; `check` compares a draft with that
  skeleton line by line and rejects internal terms; `previous` finds the
  last review of the same spec, so rows whose spec text is unchanged reuse
  their wording.
- SKILL.md carries the writing rules the reference comment (PR #63) was
  written with, plus the gist of the reference's typical lengths as
  guidance (no word limits). Examples in SKILL.md are invented
  (course-agnostic); the real comment is references/example-review.md.
- disable-model-invocation: true — generators and build agents never see
  it. No change to CLAUDE.md, AGENTS.md, the guide or the overlay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Carr1005
Carr1005 merged commit 0bf356a into main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant