cp-skill-revise

Type: types/instruction.md

Goal: improve, triage, or rewrite a note through commonplace-revise while keeping operator decisions, publication boundaries, and continuation stops explicit.

For a direct interactive edit, connect-report application, or an edit to a non-reviewable artifact, use cp-skill-edit instead.

What it can and cannot do

Can do: - Run simplification passes and finding fixes on one note whose claims stand (--full, --quick, --pass, --finding, --plan), triage fresh stored warnings/failures (triage), apply decided answers (apply), publish held candidates (publish), trial one edit operation without writing (try), list operator and automatic decisions (decisions), and rebuild unsettled claims from grounded sources (rewrite). - Carry over identical operator decisions across runs on the same note path (exact quote + change for proposals; exact criterion + scope + quotes + reason + level for triage findings) and feed rejected/deferred findings to later assessors and reviews. - When a missing passage would block an assessed revision, the calling agent handles the evidence-gap continuation by default. It may retain minimal quotes in the already-cited ingest. The assessor stays read-only. Report the ingest edit separately; the handoff does not authorize another revise run. - For --full, read rechecks in report.json or the continuation record. Each check names the published or held text containing the fix. Compare the original and remaining findings if the criterion still warns or fails. A worker problem leaves that check unverified. Use a separate review sweep to refresh stale shared results. - Protect concurrent edits with a per-note publication lock and start-text/write-brief hash checks. Exact flags live in commonplace-revise --help and commonplace-revise ACTION --help.

Cannot do (limitations): - Simplification passes do not change claims or rename files. Passes keep title, H1, type, brief declaration, and link targets. The built-in repair-claim-title can edit the H1 and description when the body already supports the title. After a publication with relocation, the session agent completes the move through the publication procedure below. narrow-overclaims needs operator-supplied evidence via --must-keep; split-out-a-treatment is interactive. Even rewrite keeps the title and filename; relocating a note is separate. - Direct edits publish without asking; rewrite and new-warning candidates always hold. Note-first runs and apply write directly to the working tree without whole-text approval (uncommitted; git diff shows them, git reverses them). publish writes a held candidate only after operator approval of that exact text (or a --revised copy). triage, answers, decisions, rewrite, and try never write the note. - Never commits, reverts, or edits a write brief. No command creates or updates <stem>.brief.md without the operator's word. - Never repeats or resumes a run. Every invocation opens a new run and stops at its first stop (plan-stop, triage, per-item proposal, held candidate, or failed entry), leaving continuation.json for a session agent to handle. - Refuses stale inputs and in-place edits to held candidates. apply and publish refuse if the note, write brief, or watched parts changed since the asking/holding run. Never edit artifact/final.md directly (copy it outside artifact/ and pass --revised). On per-item apply/try, code checks that unapproved proposal passages stayed unchanged, not that untouched text elsewhere in the note did. - Single-note only; does not fetch sources or compute decision stats. Every editing command targets one note; decisions is a read-only listing with no statistics. For rewrite, ground sources (cp-skill-ground) and write the commission before launching; gitignored/.snapshots/ sources are referenced by hash rather than copied, and changing one mid-run stops the run. - Use cp-skill-review for read-only review status and sweeps.

Pick the procedure

Intent Command Headless workers launched May write note
Fix one finding or run one pass/plan commonplace-revise NOTE --finding RESULT / --pass NAME / --plan FILE edit workers (no reviews) yes
Decide fresh stored warn/fail findings first commonplace-revise triage NOTE none (local only) no
Assessor picks passes from fresh stored findings commonplace-revise NOTE --quick assessor + edit workers (no reviews) yes
Review, assess, and apply simplification passes commonplace-revise NOTE --full (current bare default; name --full when required) substantive reviews and role report → stop assessment; only if continuing: remaining reviews and synthesis → full assessment, edits and targeted re-checks yes
Rebuild unsettled claims or synthesis from sources commonplace-revise rewrite NOTE --commission FILE writer + candidate review no (always holds candidate)
Trial one edit operation without writing the note commonplace-revise try OPERATION NOTE edit worker (no reviews) no
List operator and automatic decisions commonplace-revise decisions [--note NOTE] [--class NAME] none (local only) no

Execution environment

  • Worker-launching commands (--full, --quick, --pass, --finding, --plan, apply, rewrite, try) spawn the configured headless worker CLI, which needs outbound model-API network access and writable harness state outside the workspace. If your runtime runs shell commands in a sandbox that blocks network access or writes outside the workspace, run these commands outside that sandbox (requesting sandbox bypass or escalated execution up front) rather than probing inside the sandbox first.
  • Local-only commands (triage, publish, answers, decisions, commonplace-validate, git) launch no workers and need only workspace access; keep them in the default sandbox.

Procedure

Resolve relative links below from this skill's real location in the library.

  1. Confirm the procedure before launching. Tell the operator which procedure will run, whether it launches headless workers or reviews, and whether it may write the note. For worker-launching commands, apply the execution environment rule.
  2. Pass --purpose and --must-keep when the operator states them (not with --plan FILE, which carries its own). --must-keep holds only additions beyond the note's sibling write brief (brief: in frontmatter), which every assessor and pass already reads.
  3. Use commonplace-revise passes when the note's claims stand. Use commonplace-revise rewrite when claims or synthesis must be rebuilt from grounded sources; follow cp-skill-write-multistage to ground sources and write the commission.
  4. Never apply links before --quick: body edits stale the findings it consumes. Offer discovery afterward. Do not apply a report before rewrite; the rewrite clears connected:.
  5. Before --full (including the bare default), a connect report for this exact target whose source_sha256 matches commonplace-note-hash <target> can justify an offer when connected: is absent or older than the report date. Neither date proves application. Do not offer a pre-pass edit on a verified target or a missing/mismatched digest; mention the reason if a report was found. A full pass never authorizes incorporation. Only if the operator authorizes that report and target, hand back to the session agent for cp-skill-edit; finish and validate that edit before starting the full pass. Otherwise proceed without changing links.
  6. Inspect the report and diff after running. Check outcome, published, held, continuation, and guard. Exit 0 means completed or needs-continuation, 1 means failure or concurrent-edit conflict, and 2 means a command error. Always inspect guard.changed (other sessions' edits show up too; nothing is reverted) and review the actual diff rather than relying on a worker's summary.
  7. Handle publication, held candidates, and continuation.
  8. published: true: follow approve-a-text.md — report covered plan entries, note path, diff path, and that the edit is uncommitted and reversible with git.
  9. held is set (revise candidate added a validation warning, or any accepted rewrite candidate): follow approve-a-text.md — show final.diff and any new-warnings or review warnings; never edit artifact/final.md.
  10. continuation is set (outcome: needs-continuation or failed): follow continue-a-revise-pass.md. For pending answers (proposals, findings, plan-stop), follow decide-items.md.

Approval commands

Naming a file or run to these commands is the operator's approval. Run them only on the operator's stated word for that exact file or run:

Stop output Command Headless workers launched
Decided proposals of a per-item pass (plain-wording, abstractions) commonplace-revise apply FILE edit worker
Decided finding answers from triage or answers create --run commonplace-revise apply FILE [FILE ...] edit workers
Held candidate (exact text, or operator's revision outside artifact/) commonplace-revise publish RUN / commonplace-revise publish RUN --revised FILE none (local only)
Answers nothing consumes (none approved, plan stop, overtaken run) commonplace-revise answers record FILE none (local only)

Write brief and overtaken runs

  • If a role report lists relied-on terms or claims absent from the note's write brief, tell the operator and offer to add them (never edit a brief without the operator's word).
  • When a structural change (such as a split) overtakes a run's findings, record discussed decisions with commonplace-revise answers create --run RUN and answers record FILE (decide-items.md).