/loom:loom-revise-plan <slug> [--flavor=mechanical|research] [--mode=auto]from loom
Revise an existing PLAN.md via a flavor-routed grill-me interview. First question is always "mechanical or research-flavored?" — mechanical revisions go through evaluators-only and shell `bin/loom revise-plan`; research-flavored revisions auto-spawn `/loom-research` (focused on the revision question) before the evaluator pass and commit. Supports human-paired and `--mode=auto` with the substrate two-budget(3 rounds × 10 decisions). Auto-mode callers supply the flavor up front via `--flavor=`.
Ships in loom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Revise an existing PLAN.md via a flavor-routed interview. The skill
is the symmetric cousin of /loom-plan (the outer-RPI birth path):
where /loom-plan decides "do we need research first?" by detecting
RESEARCH.md, /loom-revise-plan asks the user (or the caller, in
auto-mode) "is this revision mechanical or research-flavored?" and
branches accordingly.
/loom-research focused on the revision question, attaches the
resulting research, then runs the evaluator pass and commits.Format references:
docs/AGENT-CONVENTIONS.md § Auto-mode and the two-budget shape
(convergence rule + the 3 × 10 default for /loom-revise-plan).docs/AGENT-CONVENTIONS.md § Recovery from sub-agent failures
(RECOVERY-STATUS.json shape + lifecycle).docs/SUBSTRATE-COMPOSITIONS.md § Derive panel.skills/loom-research/SKILL.md (the sub-agent target for the
research-flavored branch).skills/loom-plan/SKILL.md (the sibling skill — birth path; this
skill is the amend path).<slug> — required positional. The project to revise.--flavor=mechanical|research (optional) — explicit flavor. In
auto-mode, the caller MUST supply this; otherwise the skill cannot
resolve the first question without human input.--mode=auto (optional) — run without human input. Requires
--flavor= to be supplied.project-not-found (surface verbatim
from bin/loom's shape).plan-revise-started with detail {slug} after pre-flight
succeeds.projects/<slug>/RECOVERY-STATUS.json:
parent_skill === '/loom-revise-plan': surface
context + offer to resume (auto-accept in auto-mode). Resume
from resume_from.parent_skill !== '/loom-revise-plan': stop with
error pointing the user at the named parent skill.In human-paired mode: ask the user via AskUserQuestion (2-
option structured form):
mechanical — "this revision is a plan rewrite without new
research" (phase shuffle / scope tighten / verification update /
dependency adjustment).research — "this revision introduces a load-bearing claim
needing grounding."In auto-mode: read --flavor= from the argv. If absent, stop
with a structured error pointing at the missing flag — auto-mode
cannot resolve this question without explicit input.
Emit plan-revise-flavor-selected with detail {slug, flavor: 'mechanical' | 'research'}.
If flavor is mechanical:
PLAN.md. Run a grill-me interview tightly
scoped to the revision (e.g. "which phase needs the scope
change?", "what's the new verification command?"). One question
at a time, opinionated recommendation each turn, mirrors
/loom-plan's posture.If flavor is research:
plan-revise-research-spawned with detail {slug, revision_question: <the crystallized question>}./loom-research as a fresh-context sub-agent via the
Agent tool with subagent_type=loom-research and a brief
carrying the revision question + --mode=auto. Wait.RESEARCH.md (or its
appended dossier — for project-level research already present,
the sub-agent should append to that file; this is one of the
open questions in the substrate that Phase 4 surfaces but doesn't
fully resolve — see Notes for the PR). Proceed to step 4.RECOVERY-STATUS.json with
parent_skill=/loom-revise-plan, failed_step=research-spawn,
context.sub_agent_recovery_path=<path>, exit non-zero. Same
pattern as /loom-plan's outer-RPI failure.Read the new research dossier. Read the current PLAN.md. Run a short grill-me on how the new research changes the plan. Synthesize the candidate revised PLAN.md.
For mechanical revisions, step 3a synthesized the candidate directly. Either way, the candidate is ready for the evaluator pass.
Same shape as /loom-plan step 6:
/tmp/loom-revise-plan-<slug>.md.plan-revise-panel-spawned with the derived agent list./guild-validate. Audit rubric is plan-shape coherence
(same rubric as /loom-plan's panel) PLUS revision-specific
checks: every changed section names what changed and why; the
Revision log section is updated.plan-revise-panel-verdict with verdict + counts.Iteration cap is 3 rounds per flag. Persistent flags go to
UNRESOLVED.md.
A rationale is required for bin/loom revise-plan (it goes into
the git commit message AND the Revision log entry). The skill
synthesizes a one-sentence rationale from the grill-me trail (or
takes a user-supplied override in interactive mode).
Write the candidate to a temp path:
/tmp/loom-revise-plan-<slug>.md
Invoke:
Bash("loom revise-plan <slug> \
--revision-file=/tmp/loom-revise-plan-<slug>.md \
--rationale=<the synthesized rationale>")
Emit plan-revised with detail {slug, plan_path, rationale}
after the CLI commit succeeds.
If the CLI errors (project-not-found, plan-not-found,
missing-args), surface verbatim and stop.
Revised plan: <title>
Flavor: <mechanical | research>
Research spawned: <yes — path to new RESEARCH.md / no>
Rationale: <one line>
Evaluator panel: <verdict>, <blocking_count> blocking, <advisory_count> advisory
Next: continue with /ev-loop-interactive <slug> <phase>, or re-run this skill if the revision didn't land cleanly.
Per docs/AGENT-CONVENTIONS.md:
In auto-mode, the flavor MUST be supplied via --flavor= (the skill
cannot answer the first question without human input). For
research-flavored auto-mode invocations, the revision question MUST
also be supplied in the invocation message.
Budget exhaust emits plan-revise-budget-exhausted with reason: 'decision-budget' | 'round-budget' and writes the standard three
artifacts (partial revised PLAN.md + UNRESOLVED.md +
RECOVERY-STATUS.json).
This skill's RECOVERY-STATUS.json use follows the canonical shape
documented in docs/AGENT-CONVENTIONS.md § Recovery from sub-agent
failures verbatim. Skill-specific field usage:
parent_skill: /loom-revise-plan.failed_step and resume_from: research-spawn,
interview-<question-id>, evaluator-iteration, cli-commit.context: carries the flavor decision (so resume doesn't re-ask
the first question), the revision question (research-flavored
only), the partial revised PLAN.md path, and optionally
sub_agent_recovery_path pointing at the sub-agent's recovery
file when the research-flavored branch's sub-agent failed.On re-invocation against a slug with RECOVERY-STATUS.json whose
parent_skill is /loom-revise-plan, the skill reads the file,
surfaces context, and resumes. Successful re-invocation that
produces a committed revised PLAN.md deletes the file per the
convention.
--flavor= and (for research) a revision
question in the topic. No default flavor — defaults silently
hide the routing decision./loom-plan. Agent tool
for fresh-context spawn; parent owns recovery writes on sub-agent
failure.bin/loom revise-plan rejects empty
rationale (missing-args) per the CLI shape.projects/<slug>/PLAN.md. All
revision IO goes through bin/loom revise-plan.--flavor=: stop with structured error.RECOVERY-STATUS.json, emit
plan-revise-budget-exhausted with appropriate reason, exit
non-zero.RECOVERY-STATUS.json exists with different parent_skill: stop
with error.UNRESOLVED.md, removed from committed PLAN.md, commit proceeds.bin/loom revise-plan returns project-not-found or
plan-not-found: surface verbatim, stop.missing-args; surface verbatim.RESEARCH.md: does the sub-agent append to the existing dossier
under a new ## Shift N — <revision question> heading, or does it
produce a separate RESEARCH-<revision-slug>.md file? PLAN.md
Phase 3 doesn't fully specify the append-vs-separate behavior;
/loom-research today writes RESEARCH.md fresh and would refuse
on research-exists-committed. Phase 4 punts this to operator
judgment: the skill description says "the sub-agent should append
to that file" but the CLI doesn't yet support the append path.
Future work: the loom research append subverb (the research
verb-family's append-with-provenance path) is the intended home for
this — append a provenance-stamped block to the existing RESEARCH.md
rather than refusing or overwriting.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub krambuhl/agents --plugin loom7 skills in this plugin
/loom-adrRecord an Architectural Decision Record (ADR) to the workspace-level adr-log. Use when an architectural decision worth being durable — visible to other engineers and to future agents — surfaces in conversation: a chosen tradeoff, a deliberate constraint, a deferred alternative, a load-bearing invariant. Composes `loom adr` (the CLI verb) which writes `projects/adr-log/NNNN-<title-slug>.md` with permanent sequential numbering. ADRs are append-only; revise by writing a NEW ADR with `--status=superseded` body-linking to the prior number, never edit the old file./loom-archiveClose out a loom-managed project. Interview the user for color, synthesize a project-type retrospective from the corpus, write the retro via `bin/loom retro write --type=project`, then relocate the project to `archive/` via `bin/loom project archive`. Stops there — composing the archive PR is a separate concern./loom-migrateExecute a runbook migration — pluck a bounded batch of annotated work sites, apply each site's runbook (migration dictionary) transform, verify, and open one PR for the batch. The execution half of the decentralized work-distribution axis (project 2026-06-30-distributed-project-store, Phases 6-8): /loom-runbook authors the inventory in the code, this skill works it off a batch at a time, and /ev-goal repeats until the dict-id scans clean. Use to run a migration authored by /loom-runbook./loom-planBirth a PLAN.md via relentless grill-me interview, grounded in a prior RESEARCH.md (attached if present; auto-spawned via /loom-research if missing). Evaluator panel runs against the proposed PLAN.md via bin/guild derive-panel + /guild-validate before commit. Supports human-paired and `--mode=auto` flows with the substrate two-budget(3 rounds × 10 decisions). Use when the user wants a plan grounded in research; for lighter "I know what I want" scaffolding, just answer the interview questions tersely and the loop closes fast. Dispatches deterministic file IO through `bin/loom plan`./loom-researchBirth a fact-anchored RESEARCH.md via relentless grill-me interview, with domain-shift detection that spawns a research panel per shift and an evaluator-contract-fit fact-check pass before commit. Composes /guild-plan for panel rounds and /guild-validate for the fact-check gate; dispatches the deterministic file IO through `bin/loom research`. Supports human-paired and `--mode=auto` flows with the substrate two-budget(3 rounds × 5 shifts). Use when the user wants a research dossier whose every claim cites a source or observable./loom-runbookBirth a decentralized work inventory — a runbook (migration dictionary) plus in-code site annotations and the execution wiring — from a topic or a prior RESEARCH.md. The decentralized sibling of /loom-plan: where /loom-plan emits a central PLAN.md + phases, /loom-runbook emits MIGRATE:<dict-id> annotations at the work sites + a small shared runbook they reference, so /ev-goal can fan out massively with no central inventory to contend on. Use for large mechanical work (migrations, codemods, sweeps) where the partition is the site. Dispatches site scanning through `loom runbook scan`.