/loom:loom-plan <topic or short description> [--mode=auto]from loom
Birth 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`.
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.
Birth a plan via the outer half of the RPI (Research → Plan → Implement)
loop. The skill detects whether the project has a research foundation
(RESEARCH.md at project root); if absent, it auto-spawns
/loom-research as a fresh-context sub-agent via the Agent tool, waits
for the research dossier to commit, and then proceeds with the plan
interview. If present, the research is attached as input to the
strawman draft.
This is the canonical project-birth path. There's no lighter alternative skill — when you "know what you want," just answer the interview's questions tersely and the loop closes fast.
Format references:
docs/AGENT-CONVENTIONS.md § Auto-mode and the two-budget shape
(convergence rule + the 3 × 10 default for /loom-plan).docs/AGENT-CONVENTIONS.md § Recovery from sub-agent failures
(RECOVERY-STATUS.json shape + lifecycle).docs/SUBSTRATE-COMPOSITIONS.md § Derive panel (the
bin/guild derive-panel invocation pattern).skills/loom-research/SKILL.md (the research half of the RPI loop;
this skill auto-spawns it).<topic or short description> — what the plan is about. Required.--mode=auto (optional) — run without human input. Auto-mode uses
the evaluator panel and (when needed) the plan panel to drive
resolution instead of asking the operator. See § Human / auto
duality.--research-flavor=<text> (optional, auto-mode only) — when an
auto-mode caller knows the revision flavor for the inner-RPI
callback path (Phase 5), pre-supply it here to skip the
flavor-routing grill-me question./loom-research).plan-started with detail
{slug, topic: <positional-arg if not a full slug, else null>}.
This single emit per session marks the session boundary in the
manifest's [[events]] trail.projects/<slug>/RECOVERY-STATUS.json:
parent_skill === '/loom-plan': surface the failure
context (failed_step, context.last_decision, partial
PLAN.md snippet) and offer to resume. Auto-mode auto-accepts.
Resume from resume_from (typically the next un-resolved
interview question or the evaluator-iteration step).parent_skill !== '/loom-plan': stop with an error
pointing the user at the named parent skill.Check for projects/<slug>/RESEARCH.md:
plan-research-attached event. Read the file.
The strawman draft (step 4) treats every claim in RESEARCH.md as
input — the plan answers "given this research, what's the plan"
rather than "what should we research, then plan."plan-research-auto-spawned event. Spawn
/loom-research as a fresh-context sub-agent via the Agent tool
with subagent_type=loom-research and a brief carrying the topic
--mode=auto flag (so the sub-agent runs without
human input). Wait for the sub-agent to return. Re-check for
RESEARCH.md:research-budget-exhausted:
write our own RECOVERY-STATUS.json (parent_skill=/loom-plan,
failed_step=research-auto-spawn, resume_from=research-auto-spawn,
context={topic, sub_agent_recovery_path:
projects/<slug>/RECOVERY-STATUS.json}) and exit non-zero. The
next /loom-plan invocation against the same slug resumes from
the sub-agent's own recovery file rather than re-spawning blind.Treat $ARGUMENTS as the topic. Summarize back what you heard plus
the load-bearing claims from RESEARCH.md (attached or
just-completed). Ask the user to confirm or refine before pressing
into the interview.
In auto-mode, frame by composing a one-sentence topic + a 3-sentence research summary as the strawman frame and proceed directly to step 4.
Walk the decision tree branch by branch. The grill-me posture is
one question at a time, opinionated recommendation first,
structured form via AskUserQuestion when 2-4 discrete options
apply. The substrate-decision categories — Scope, Phases,
Dependencies, Verification, PR cadence, Loop strategy, Risks,
Decisions — are the canonical interview shape; every question's
recommendation is justified against a citable claim from
RESEARCH.md where applicable.
In auto-mode, the "user" is the evaluator panel + (when needed) the plan panel (composed per step 4.5) for divergent questions. A round with zero new questions (silent panel) is convergence. See § Human / auto duality.
For each open interview question, emit no event by default (interviews are conversational at this granularity; the evaluator pass at step 6 is where panel events fire). The skill is responsible for tracking the decision count for budget purposes; one resolved interview question or one accepted recommendation = one decision.
Before synthesizing, compose a plan panel that widens and pressure-tests the strawman with multiple design perspectives. This augments — it does not replace — the solo grill-me interview: the panel's contributions feed the step 5 synthesis as design input, and the human (or, in auto-mode, the interview loop) still owns every decision. The interview tree remains the source of truth for what the plan commits to.
Bash("guild derive-panel --phase=plan") — the phase-aware participate
layer reads axes.toml's plan-phase domains and emits the plan-*
candidate set. While the registry mirror lags (no plan-* agents
registered yet), fall back to Glob(".claude/agents/plan-*.md").
derive-panel answers who may participate; engineers self-recuse
off-topic at runtime as the second gate.plan-* agents are registered (the
Glob(".claude/agents/plan-*.md") fallback is empty and derive-panel's
roster cannot be spawned), skip the plan panel with a one-line note
("no plan engineers registered — synthesizing from the interview
alone") and proceed to step 5. Do not invoke /guild-plan with an
empty roster.projects/<slug>/plans/strawman-panel.md./guild-plan via the Skill tool with
engineers=<resolved roster>, brief=<the strawman + the resolved interview tree so far>, plan=<path>. No event is emitted here — like
the interview, the design panel is conversational at this granularity;
the evaluator pass at step 6 is where panel events fire.Confirm the kebab-case slug with the user before proceeding, then
synthesize PLAN.md from the resolved interview tree (Context /
Scope / Phases / Dependencies / Verification / Risks / Open
questions / Decisions) and synthesize INTERVIEW.md as the walked
decision tree (one heading per resolved question, with the
recommendation, the user's answer, and the rationale).
The ## Context section of PLAN.md SHOULD cite RESEARCH.md as
the research input (one-line backlink) so a future reader of the
plan sees the foundation.
Before showing the proposed PLAN.md to the user (or accepting in auto-mode):
/tmp/loom-plan-<slug>.md).Bash("guild derive-panel --files=/tmp/loom-plan-<slug>.md").
For a markdown plan, the fallback rules yield
evaluator-contract-fit alone; with PANEL-COMPOSITION.md readable,
the panel may expand.plan-panel-spawned event with the derived evaluator list./guild-validate via the Skill tool with the derived
agents and a packet whose Contract section asks the panel to
audit the PLAN.md for plan-shape coherence: phases each map
to one PR, dependencies are explicit, verification is concrete,
risks are named with mitigations, scope is sharp (in/out/deferred
rather than just "what's in").plan-panel-verdict
with verdict, blocking_count?, advisory_count?.If the verdict is flagged:
A finding that persists past the round budget joins UNRESOLVED.md
and is removed from the candidate PLAN.md.
The candidate PLAN.md is already at /tmp/loom-plan-<slug>.md (from
step 6). Compose the INTERVIEW.md to
/tmp/loom-interview-<slug>.md.
Invoke:
Bash("loom plan <slug-or-topic> \
--plan-file=/tmp/loom-plan-<slug>.md \
--interview-file=/tmp/loom-interview-<slug>.md")
bin/loom plan auto-adopts the loom substrate by default (same
behavior under the loom CLI surface). The
CLI emits no events directly — the orchestration events (started /
completed) are skill-side.
Emit plan-completed after the CLI commit succeeds.
If the CLI errors (plan-exists-committed, etc.), surface verbatim
and stop. The user resolves and re-invokes (or uses
/loom-revise-plan if the intent was to update an existing plan).
One short paragraph in this shape:
Created plan: <title>
Research foundation: <path to RESEARCH.md, or "auto-spawned this session">
Location: projects/<slug>/
Files: PLAN.md, INTERVIEW.md, manifest.toml
Evaluator panel: <verdict>, <blocking_count> blocking, <advisory_count> advisory
Next: run /ev-loop-interactive <slug> <phase> to execute the first phase, or /loom-revise-plan <slug> --revision-file=... --rationale=... to amend.
The skill spawns sub-agents in two places:
/loom-research in step 2 (RESEARCH.md missing)./loom-research +
/loom-revise-plan from /ev-loop-interactive's scope-shift
path. This skill's recovery shape generalizes to that flow.)The sub-agent invocation uses the Agent tool, not the Skill
tool. The distinction matters: Agent spawns a fresh-context
sub-agent (no inherited conversation); Skill runs in the parent's
context.
On sub-agent failure (timeout, partial commit, budget-exhausted),
the parent (this skill) writes its own RECOVERY-STATUS.json to
the slug. The sub-agent may have ALSO written its own — that's
fine; the parent's recovery file references the sub-agent's by
path so a resumer can decide whether to retry the sub-agent or
escalate.
Per docs/AGENT-CONVENTIONS.md § Auto-mode and the two-budget
shape, the substrate default for this skill:
Decisions for this skill = resolved interview questions OR accepted/rejected evaluator findings during the iteration step.
Auto-mode runs until one of:
approved AND no
panel raised a new question this round.Budget exhaust writes the standard three artifacts (partial
PLAN.md + UNRESOLVED.md + RECOVERY-STATUS.json), emits
plan-budget-exhausted with reason: 'decision-budget' | 'round-budget', and exits non-zero.
This skill's RECOVERY-STATUS.json use follows the canonical shape
documented in docs/AGENT-CONVENTIONS.md § Recovery from sub-agent
failures verbatim. No extensions, no overrides. Skill-specific use
of the existing fields:
parent_skill: /loom-plan.failed_step and resume_from: one of research-auto-spawn,
interview-<question-id>, evaluator-iteration, cli-commit.context: carries the partial PLAN.md temp file path, the last
resolved interview question (for resume-from-here semantics), and
if applicable a sub_agent_recovery_path field pointing at the
research sub-agent's own recovery file.On re-invocation against a slug with RECOVERY-STATUS.json whose
parent_skill is /loom-plan, the skill reads the file, surfaces
context (or auto-accepts in auto-mode), and resumes. Successful
re-invocation that produces a committed PLAN.md deletes the file
per the convention.
/loom-research rather than
proceeding plan-only. The Implement half is downstream
(/ev-loop-interactive).projects/<slug>/PLAN.md. All file
IO goes through bin/loom plan.RECOVERY-STATUS.json when /loom-research
fails; the sub-agent may also write one. Both can coexist (the
parent's references the child's by path)./loom-research's fact-check./loom-plan vs bin/loom plan are distinct surfaces. The
skill carries the conversation + orchestration; the CLI carries
the deterministic file IO + git seam.bin/loom plan.RESEARCH.md missing AND /loom-research sub-agent fails OR
budget-exhausts: write own RECOVERY-STATUS.json, emit
plan-budget-exhausted with appropriate reason, exit non-zero.
Next invocation resumes from the sub-agent's recovery file.RECOVERY-STATUS.json exists with a different parent_skill:
stop with an error pointing the user at the named skill.UNRESOLVED.md and removed from the committed PLAN.md. The skill
does NOT block commit on per-finding budget exhaust — convergence
on most + UNRESOLVED.md for the few is the substrate's escape
hatch.bin/loom plan returns plan-exists-committed: surface verbatim,
stop. Suggest /loom-revise-plan for the update intent.What SKILL.md sets; muted values are Claude Code's defaults
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-Other plugins' skills for the same job