agentsclimarketplace

Revision ladder

Skill Kiibou-chan/academic-writing/skills/revision-ladder

Top-down, hierarchical method for revising academic text in response to reviewer comments or annotations. Use whenever applying a reviewer's comments to a section or chapter, working an extracted-comments batch, planning a revision pass, deciding whether a comment needs a rewrite versus a copy-edit, or reconciling several comments on one paragraph. Revise the highest-broken level first, derive the ideal from purpose then diff the existing text against it, gate the change through show-then-discuss checkpoints, and fan a verification tail out to agents. Complements academic-prose (register and house style) and each project's always-on CLAUDE.md invariants. Reach for this skill for reviewer-driven or structural revision even when the user does not name it; use academic-prose instead for fresh drafting with no comment to resolve.From its SKILL.md

Install
npx -y skills add Kiibou-chan/academic-writing --skill revision-ladder

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

25.0 KB, as published. Nobody here has run it

Revision Ladder

You are revising an existing academic document (Svenja Kernig) in response to reviewer comments. The concrete project is described in the current repo's CLAUDE.md. This skill is the method for that revision: how to classify a comment, how far up to work, how to derive the fix, and how to verify it. The ladder method is stand-alone and lives here; the contract core it builds on — the purpose contract, derive-ideal-then-diff, and the three portable checks (fact-gate on load-bearing claims, referent audit, define-before-use) — is defined once in the shared writing-contract reference (skills/shared/writing-contract.md, a sibling of this skill's directory), which academic-prose also uses. This skill applies that core; it does not re-define it.

Use it alongside, not instead of, the two style authorities: academic-prose carries the register, the prose-style checks, and the colon/semicolon rules; CLAUDE.md carries the always-on invariants (British English, no em-dashes, one sentence per line, LaTeX macros, no acronyms in headings). This skill governs what to change and in what order; those govern how the prose reads. The collaboration workflow (show-then-discuss, tasklist, Ask-between-steps) in CLAUDE.md and academic-prose applies throughout: the whole method is interactive, with the user in the loop at every gate.

Core idea

Revise top-down, descending a hierarchy of levels, so you never polish a sentence you are about to cut. Work the highest level that is wrong first; descend only once the level above holds. For each unit, derive the ideal independently from the unit's purpose, then diff the existing text against that ideal, rather than nudging what is already there. Derive-then-diff is the anti-anchoring engine and the highest-leverage move over "read it and improve it": the current text is a candidate to reconcile, not the baseline you tweak.

The single organising principle: the level and scope a change targets is the sorting key. It sets where you enter the ladder, whether you batch the change or discuss it, which checks fire, and how it is recorded.

Two axes

Locate every piece of work on two axes, and pick the coordinates before you start.

Level (what kind of thing is wrong):

  • L0: Purpose & context. Why this unit exists, and its pre/postconditions: what the reader knows walking in, what they must know walking out, what the next unit assumes. Purpose is not self-contained; it is defined by the neighbours.
  • L1: Structure. The ordering that serves L0: define-before-use, problem-before-solution, given-before-new, introduce-before-evaluating.
  • L2: Claims. What propositions must appear, plus a minimal fact-gate: are the load-bearing claims even true? A false claim can change the structure, so fact-checking cannot all wait for the end.
  • L3: Sentences. The subtractive test: every sentence or clause justifies its existence or is cut; if the reason exists but is unclear, sharpen it.
  • L4: Surface. Text smells, register, house style, British spelling, colon/semicolon, builds green.

Scope (how big the thing is): section → subsection → paragraph → sentence.

Pick scope before level. A comment pinned to a paragraph often has its real cause one scope up. The axes interlock and the model is recursive: a unit's L0/L1 is set by its parent's L1, so you cannot finalise a paragraph's purpose until the section's structure is settled.

The triage bucket is a different axis from the level. A reviewer's severity tag (🔴 defect · 🟡 substantive · 🟢 copy-edit · ⚪ none) is a severity/action judgment, orthogonal to L0–L4 (a kind-of-change judgment). A 🟢 item can be L3, or even L2, without being "mislabelled"; giving it a level is coordinate-assignment, not escalation. Only evidence surfaced at a gate raises an item's cost (a fact-gate finding the claim false), never a re-reading preference.

The pop rule

The ladder is a descent, but real revision bounces. If a lower level will not come out clean, that is a signal, not a nuisance. Do not force-fit.

  • Pop up a level: a sentence (L3) will not come clean → the structure (L1) is probably wrong.
  • Pop out a scope: a paragraph will not come clean → the section's structure is probably wrong.

Forcing a sentence onto a broken structure is the main way revision goes bad. A tail agent can also raise a pop signal from outside the loop ("this whole change is wrong" = pop-up-a-level; "this belongs to a different section" = pop-out-a-scope); park it at the right altitude rather than forcing it into the current unit.

Comment handling

  • A comment is a symptom, not a spec. "This is confusing" tells you where the reader tripped, not what to do; surface confusion often has a structural cause. The comment locates a scope; you diagnose the real level yourself. This guards against over-fitting to a reviewer's literal suggested wording.
  • Group comments by target unit before deriving. Several comments on one paragraph, applied serially, produce Frankenstein prose. Collect every comment on a unit, derive the ideal once accounting for all of them, reconcile once.
  • Fact-gate a stale batch as a whole first. An extracted-comments list can be days and several revisions old. Before deriving level-tags, inventory each item against the current text: many will be no-ops (already resolved, the target string gone, a duplicate occurrence removed) or unlocatable without the annotated source. Triage-against-current-text is the real first pass on any old batch; deriving fixes for items that no longer exist is wasted motion.

The loop (per unit)

Start from a piece of text and, optionally, one or more comments on it.

  1. Classify. Cheaply determine the deepest level and the right scope the change plausibly touches. A typo does not trigger purpose derivation. This classification is the entry point and drives batch-vs-discuss and the required-check set.
  2. State the purpose as a written artefact. One line: "get the reader from X to Y." Write it before touching prose. This line is the acceptance test for L3.
  3. Derive the ideal structure from the purpose (L1), ideally before re-reading the existing prose closely, so you are not anchored by what is there.
  4. Diff the existing text against the ideal. Treat the current text as a candidate to reconcile, not the baseline you nudge. A "KEY / high-value" triage label predicts a change's importance, not its edit size: derive the ideal before assuming a rewrite. The surgical fix is often three sentences.
  5. If structure matches: descend to fine-grained work (L2 → L3 → L4). If not: restructure first (run the conservation check), then descend.
  6. L3: justify every part. Each sentence or clause must trace to the purpose line. No path → cut. Murky path → sharpen. Watch for defensive hedging.
  7. L4 + thorough fact-check. Text smells, house style, and the full fact-check pass, now that the text is stable and nothing is about to be cut.
  8. Goal-conformance verification (the closing acceptance test). Re-read the final text against (a) each Step-1 purpose line and (b) each originating comment, marking each resolved / partial / deferred. This is distinct from L4 (house style) and from the L3 justification audit (trace-to-purpose within the text): it closes the loop on "does the final text achieve what it set out to and fix the comments that triggered it?" It sets the ledger's disposition, records deferred items rather than dropping them, and flags any edit that landed after the last green build as "build not yet re-confirmed".

Stopping criterion (replaces "iterate until happy"): stop when a full top-to-bottom pass produces no change that improves the reader's path, each level's invariant holds, and Step 7 marks every originating comment resolved or explicitly deferred. Budget guard: L4 polish on a unit that may still move is wasted.

Checkpoints & gates

The loop says what to do; this says how to guarantee nothing intended is skipped. Every intended check is enumerated from the unit's coordinates and discharged explicitly (PASSED or WAIVED-with-reason) before a gate is passed. A per-unit checkpoint checklist travels with the unit and is the single accounting artefact.

A gate is a sign-off point (few). A check is an enumerated item enforced at a gate (many, derived). Do not turn checks into gates.

GatePasses only when
Plan (show-point 1)classified + grouped + fact-gated; purpose line(s) + ideal + diff done; conservation inventory if restructure → user approves
Draft (show-point 2)prose drafted; shown as a word-level diff → user approves
Close (Step 7)applied; convergence reached; goal-conformance marked; ledger disposition + rationale recorded; build green; spine reconciled (if a meaning-changing edit altered the unit's purpose/pre/post, update its docs/spine.md entry per ${CLAUDE_PLUGIN_ROOT}/skills/shared/spine.md; after the prose commit, re-stamp reconciled-at to git rev-parse HEAD and commit the spine update)
Commituser approves (yes/no)

The required-check set is derived, and re-derived after every edit

Compute the set from the unit's current coordinates (level, scope, triggers), never frozen. Re-derive it at classify and after every applied edit: an edit that escalates the unit (L3→L1, becomes reader-facing, touches a load-bearing claim) adds the newly-triggered checks as pending. Nothing is exempt because it "wasn't required before."

Mandatory floor (always in the set for any meaning-changing edit): classify + purpose · fact-gate (L2 early) · section-reviewer (L4 house-style) · referent & plain-clarity audit · build-green · goal-conformance.

Trigger-gated (added when the trigger is active):

  • devil's advocate: an L0/L1 restructure, or a comment declined or reinterpreted;
  • persona lens(es): reader-facing exposition, or a confusion/accessibility comment;
  • integrity / conservation sweep: a restructure (moved or cut content, label/cref, define-before-use);
  • L2-thorough fact-check: a load-bearing claim changed;
  • justification audit (L3): sentences added or substantially reworked.

The convergence round

The failure this stops: a check passes on an early version, later edits change the text, and the unit closes with that check never having seen the final text. So:

A convergence round = ① apply the batch of pending fixes → ② build → ③ re-derive the required-check set → ④ run every required check on the new text. Never edit mid-round (an edit mid-review strands in-flight checks on a superseded version). Repeat rounds until one produces no new edit and every required check has PASSED on the current text.

Re-run all required checks each round; do not try to prove which are unaffected, since that judgment is the very error the discipline removes. Cost is bounded because fixes are batched (one full re-run per round) and the floor is cheap.

The stop clause: terminate on the competing-lenses fixed point, not only on "no new edit". Fresh-context critics always return one-more-thing, so on a small reader-facing unit rounds shrink but never reach zero. Close instead when the originating comments are resolved and every finding a round still returns is one of: (a) cosmetic / not on the reader's path; (b) self-rated minor / leave by its own author; or (c) mutually exclusive with another required check. This competing-lenses fixed point is a legitimate Close, distinct from "no findings".

The convergence invariant (checkable): a unit may pass Close only when, for every required check C, C.status == PASSED and C.last_seen_version == current_version. Any applied edit bumps current_version and returns every required check to stale (→ pending).

The checkpoint checklist (the artefact)

One small table per unit: check | required? (from current coords) | status: pending / passed / waived+reason | last_seen_version. A gate is passable iff no required check is pending or stale. This checklist doubles as the per-unit ledger view: group-by-unit, level-tagged via the classification, disposition + rationale recorded at Close.

Waiver rules

Default is RUN. The author may propose a waiver, but only the user waives, except for the three pre-agreed spec carve-outs below. A waiver reason must state inapplicability ("pure rename, no meaning change → referent-audit N/A"), not inconvenience; it is recorded; an unrecorded or unjustified waiver counts as pending.

  1. Pure-mechanical carve-out. A rename / typo / whitespace / format edit skips the prose checks entirely, via a greppable integrity check instead. Pre-agreed; no per-case decision.
  2. Surface-swap waiver. A meaning-preserving wording change confined to one sentence may carry forward the framing-level checks (devil's advocate, justification audit, examiner persona) from their prior PASS, provided (i) it changes no claim, structure, or cross-reference, (ii) it is confined to a unit those checks did not depend on, and (iii) the carry-forward is user-approved and recorded. The floor and phrase-grain checks (referent audit, L4 lint, any persona whose sentence changed) still re-run, since those are sensitive to surface wording.
  3. Trivial-local-batch self-discharge. Resolves the collision between the mandatory floor (always-run section-reviewer + referent-audit on a meaning-changing edit) and the dispatch rule (skip the tail for L4 copy-edit batches). Skip-the-tail means skip the judgment/comprehension fan-out (advocate, persona, justification). That is what over-firing names. The floor's agent-run checks (section-reviewer, referent audit) may be self-discharged by an author read when every edit in the batch is (i) confined to a single sentence or display, (ii) introduces no cross-reference, structure, or label change, and (iii) any claim it adds already cleared the in-thread L2 fact-gate; the self-read is recorded and the build still runs. Any edit failing (i)–(iii) re-triggers the full floor.

Two-tier fact-check

  • Early gate (L2): are the load-bearing claims true? A false claim can change the structure, so this cannot wait. Inventory the occurrences/claims before you decide what to do, not after. This catches no-ops (an item a later sweep already resolved) before any edit, and can correct the comment's own framing (the reported problem is on a different symbol than the comment's wording implied) before a fix is chosen. Dispatch the fact-checker agent (it checks claims against the project's canonical primary sources, such as a reference manual or source code, in its own context).
  • Thorough pass (end): full verification once the text is stable, so no effort is spent checking sentences that get cut.

Conservation check (when restructuring at L0/L1)

Rewriting silently drops load-bearing things. Before and after a restructure:

  • Mechanical (greppable, → integrity-sweep agent): a deleted \label breaks a \cref elsewhere; a moved definition breaks define-before-use downstream; a cut or move can drop a paragraph break, a list boundary, or a sentence-per-line (a grep for labels misses these).
  • Semantic (author judgment): a caveat, a hedge doing real work, an argument step. Inventory what the old text provided (claims, defined terms, ref anchors, forward/back references); confirm everything still needed is still provided or was deliberately relocated.

Show-then-discuss mechanics

  • A restructure has two show-points, each an AskUserQuestion gate:
    1. Show-point 1 (Plan) = one bundled artefact, one gate. Bundle classification + purpose line(s) + ideal skeleton + diff-summary into a single reviewable block behind one Ask, not four separate gates.
    2. Show-point 2 (Draft) = the drafted prose as a word-level diff (strike / bold), behind its own gate.
  • Classification drives batch-vs-discuss:
    • L0/L1 (purpose/structure): always discuss, one at a time, since these change meaning.
    • L3/L4 (sentence/surface): batch-and-show, one word-level diff (the "27-edit batch" pattern).
    • L2: middle, discuss if a claim's truth or inclusion is in question, batch if it is only phrasing.

Build cadence

Build-green is an end-of-unit / end-of-section gate, not per-edit (a full latexmk per iteration is too slow). Use \includeonly{} to fast-build the single section or chapter under revision during a pass; run the full build once at end-of-section; remove the \includeonly before the commit so the committed tree builds whole. Step 7 flags any edit that landed after the last green build.

Tail dispatch: when to fan out to agents

The generative ladder (L0 → L3) stays in the main loop, with the user: it is a tight dependent chain, and the method is show-then-discuss, which a subagent running autonomously cannot do. The verification tail fans out to agents, where the value is precisely that the agent is not the author (fresh context de-anchors) and its context is separate.

The dispatch rule: greppability, not level. The predictor of whether the tail is worth spawning is the greppability of the change's effects.

  • Dispatch tail agents when the effects are non-greppable: structure, reasoning, prose echoes, define-before-use across sections or chapters. These are what an author is blind to and a grep cannot see.
  • A self-grep / self-read suffices when every effect is mechanically findable: a closed-vocabulary rename, or a trivial local copy-edit batch (see the self-discharge waiver).
  • Heuristic: run the full tail whenever the change is L1 structural, even if the diff is tiny (L1 changes have non-local effects agents check cheaply and authors miss). Skip the tail for pure L4 copy-edit batches and closed-vocabulary L2 renames. Can I find every effect with a grep? If yes, self-check; if no, spawn a critic.

Dispatch policy and model tiering (shared with the section-review workflow). The greppability rule above is the auto dispatch policy; the shared dispatch-policy reference (skills/shared/dispatch-policy.md, a sibling of this skill's directory) names the knob and its two overrides — inline (never spawn; self-check in the main loop, cheapest and anchored) and agents (always spawn; maximum de-anchoring) — settable per request or by one CLAUDE.md line. The same reference defines the model bands: the fact-gate on load-bearing claims (fact-checker) and the devil's advocate are critical-band checks. When one of them is about to dispatch and the current session model is cheaper than Opus, fire one AskUserQuestion at the dispatch point offering the pin-up scope (CRITICAL+MAJOR / CRITICAL only / off), pin that critical-band agent up to Opus per the choice, and never pin up silently. In an Opus session the pin-up is a no-op and no gate fires.

The check roster

Five roles are extracted as reusable agents. Dispatch them by agentType; each runs read-only in its own context and returns a findings list you triage L0-style with the user:

  • fact-checker: L2 verification against the project's canonical primary sources (for example a reference manual or source code). Returns VERIFIED / REFUTED / UNSUPPORTED with source lines.
  • referent-audit, phrase-grain: resolves every referring expression and flags unclear phrasing. Fires on almost any prose edit whose precision matters; skip only a pure rename or whitespace/format fix. Catches argument-inverting referent ambiguities the other checks structurally miss.
  • section-reviewer: L4 house-style / convention lint (British English, em-dashes, one-sentence-per-line, colon/semicolon, defensive writing, and the rest). Run it on reader-facing prose edits, not only structural ones.
  • integrity-sweep, mechanical conservation after a restructure or rename: dangling \cref, define-before-use, rename misses, lost structure boundaries, build-green.

Three roles stay in-loop briefings (dispatch a general-purpose agent with the briefing below): they need the ladder's own artefacts (the independently-derived ideal, the one-line purpose, the reviewer-persona pool), so extracted as generic agents they would lose the context that makes them sharp.

  • Devil's advocate (contests the decision, not the execution). Brief it to argue the single strongest case that (a) the original was better, (b) the change dropped something load-bearing, or (c) the reviewer's literal suggestion should have been honoured rather than reinterpreted. Return a verdict + the one strongest objection, not a checklist. Trigger = decision-reversibility / judgment-density, not greppability: fire on L0/L1 restructures and on any change where you declined or reinterpreted a comment; skip closed-vocabulary renames and copy-edit batches. Advisory only, resolved at the Step-7 gate (auto-applying invites revert-thrash). "Fires" means scrutinises: on a correct small deviation it returns confirmation + a bonus insight, not a manufactured objection; a quiet advocate on a sound deviation is a success.
  • Justification audit (L3, within the new text). Brief a fresh agent to ask "does every sentence trace to the purpose line?" The author is anchored, a critic is not. Trigger = sentences added or substantially reworked.
  • Persona reader lenses (comprehension, not conformance). Brief an agent to read the revised unit as a named persona from the real reviewer pool, the cold non-specialist ("I don't follow what this is for") or the formal examiner reading for precision, and report where that reader trips. Trigger = who the unit must serve: fire on reader-facing exposition (intros, motivation, worked examples, a construct's first appearance) or a confusion/accessibility comment, and pick the persona from the reader the comment came from. Skip for internal formal machinery whose audience is uniformly expert. Run both personas when a unit warrants a lens; they catch disjoint sets (comprehension vs precision). A persona also serves as a fix-validator: re-dispatch the same persona after a comprehension fix to confirm PARTIAL → CLEAR.

Re-review and the convergence clause

For a finding surfaced by a tail agent, re-dispatch to the same agent (via SendMessage, context intact) to verify the fix, rather than self-certifying: the critic that found the problem confirms it is gone, and often surfaces a new residual self-certification would have passed. But re-dispatching only each finding's author is not a pass on the converged text: when fixes cascade, the final wording can end up unseen by checks that reviewed earlier versions. So do not edit mid-review; hold edits until in-flight checks return, apply one consolidated batch, then run one final pass on the converged text, re-running every required check. Cross-lens convergence (two roles independently flagging the same spot) is a high-confidence signal; single-lens flags are adjudicated with the user and may be declined with evidence.

Per-level invariants (the checkable "happy")

  • L0: Can you state the one-line purpose? Does it fit the neighbours (pre/postconditions)?
  • L1: Does the order violate define-before-use / problem-before-solution / given-before-new / introduce-before-evaluating?
  • L2: Is every load-bearing claim true and sourced?
  • L3: Does every sentence trace to the purpose line? Any defensive/hedging prose?
  • L4: House-style clean (British English, no em-dashes, one sentence per line, macros, acronyms-not-in-headings), builds green.

Ledger

The per-unit checkpoint checklist is the ledger. Each comment is tagged with its level (L0–L4), grouped by target unit, and carries a disposition + rationale set at Step 7: not just applied/deferred, but how it was resolved and, when the fix deviated from the comment's literal wording, why. Since the method treats a comment as a symptom and often reinterprets or declines it, the deviation defence is the load-bearing part of the record: it is what the devil's advocate contests and what a reviewer would ask about later. Deferred items are recorded with their reason, not dropped. The project's extracted-comments batch (by convention reviews/extracted/*.md) and git history are derivable views, not parallel truth.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.