capture-intent
Capture and confirm a change intent. Use for any software request to add a feature or fix a bug, before editing files, even when loom is not named or the repo has no loom folder. Skip a typo or a rename that changes no behaviour (unless loom is asked for), skip non-software work, and skip a request inside an active change (its station continues it).
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- capture-intent
- version
- 1.0.0
- description
- Capture and confirm a change intent. Use for any software request to add a feature or fix a bug, before editing files, even when loom is not named or the repo has no loom folder. Skip a typo or a rename that changes no behaviour (unless loom is asked for), skip non-software work, and skip a request inside an active change (its station continues it).
02 资源文件 8
- 参考文档README.md1.8 KB
- 参考文档references/confirmation-ready-template.md1.2 KB
- 参考文档references/interview.md4.3 KB
- 参考文档references/second-vendor.md4.5 KB
- 参考文档templates/intent.md1.4 KB
- 参考文档templates/KICKOFF-DEFAULTS.md1.3 KB
- 参考文档templates/PRINCIPLES-interview.md1.2 KB
- 参考文档test-prompts.json2.2 KB
03 SKILL.md 正文
What this station does
Relative paths use this skill's directory.
Deliver local documents with actual absolute paths from the active worktree or
external location, including in copyable instructions. For known local Markdown
support, use the document's project-relative path as link text (external files:
basename) and absolute targets; otherwise show full absolute paths. Enclose
targets with spaces in angle brackets: [doc.md](</worktree name/doc.md>). Preserve bundled references, stored
relative paths, quoted examples and incidental filenames.
Ask only until the wanted outcome is clear, write
docs/loom/intent/<change-id>.md, restate it in the user's words, then hand a
confirmed intent onward. Do not design, plan, or ask the user to judge quality.
Artifact vocabulary
kind: product changes what a user reads, types, or sees happen;
kind: engineering covers internal work, tooling, tests, and docs.
<change-id> is <start-date YYYY-MM-DD>-<title-in-kebab-case>.
loom-code's stations consume this output and check its format, so
preserve the required shapes.
Station summary
| station | artifact | who decides | checker | checkpoint |
|---|---|---|---|---|
| capture-intent | intent — docs/loom/intent/<change-id>.md; PRINCIPLES.md and DESIGN.md at the repo root are side outputs of the tools it calls |
user — decision point ① | intent.schema, intent.product-no-identifiers, intent.needs-design-reason, intent.needs-design-recompute |
N/A |
| write-spec | spec — docs/loom/<change-id>/spec.md |
user — decision point ②, product only; agent declares pre-build risk | intake.confirmed, standing.product-principles-reject |
required: one independent spec+adversarial reviewer, no independent acceptance testing; not-required: none |
| write-plan | plan — docs/loom/<change-id>/plan.md |
agent-decided (runs ① itself when loom-design is absent) | intake.confirmed, intake.confirmed-behavior, intake.spec-ready, intake.test-case-pair |
a fresh plan-lens reviewer checks for a simpler shape before Build; invokes the required spec review only when it authored the spec |
| build | diff — commits on the change branch | agent-decided | task and integration tests; at the end of Build, an independent adversary's committed adversarial programs and the complete package suite, which must pass before hand-off | no formal review during Build; one closing review follows completed functional work |
| closing-review | generated docs/loom/<change-id>/attestation.json, plus an acceptance test report when needed |
fresh-context reviewers; reviewer count comes from the installed Review policy | reviewers see only content that passed Build's checks; finalize-review executes the package suite and adversarial programs again on committed content |
branch end, or again only after functional content changes |
| ship | diff / PR — the pushed change branch and its pull request | automatic for canonical intent authorization; one user decision for a legacy intent; merge is separate | push.contextual-body and publish.preconditions; the verification status is disclosed, not a refusal; no functional replay |
before push; publication-only fixes reuse matching evidence |
| maintain | intent — a fresh docs/loom/intent/<change-id>.md |
agent (dedupe is mechanical) | intent.schema, intent.needs-design-reason, intent.needs-design-recompute, intent.product-no-identifiers on a new intent |
before hand-off to write-plan |
What you will be asked, in plain words
Give the user this list if they ask what is coming. These are the decision points, and a legacy intent at ship or changed requirements can add a stop.
- Here: one message confirms the restated intent, for an engineering
change every expensive-to-undo choice in consequence form (a product
change's wait for item 2, unless no spec will be written), a product's new
principles when needed, and —
only for
second-vendor: askwithout a direct user request naming the outside agent and an unambiguous active target — whether to use another vendor.suggestadds no question at capture-intent; write-plan owns its post-plan notice. - Where the product spec is written: confirm visible behaviour and any
carried details ("you type ___ and see ___"), and the product's one-way
doors in consequence form — at
write-spec, or atloom-code:write-planwhenneeds-design: noand carried details force a spec. Engineering changes skip this; a product change with no spec has consequences disclosed at item 1, with questions there only for unresolved outcomes or authorization. - At the end: accept or reject the report showing how each Acceptance line was tried and what happened.
Nothing about task splitting, review mechanics, or verification is put to the
user. With loom-code alone, write-plan performs this station's questions;
Codex may also need one authorisation stop when the plugin is newly installed
or updated.
Step 1 — Interview
For consequential evidence gaps, use loom-design:design-research; resume this interview.
Read references/interview.md; ask only for missing required fields, otherwise
draft. No question quota; problems/outcomes may precede features or implementation.
Decision points remain unchanged.
Cover affected people, workaround, clean-environment observable outcomes,
fixed constraints, and exclusions. For product also cover urgency, existing
alternatives, and displaced work. End with GO or NO-GO plus one reason; write
NO-GO as status: withdrawn — <reason> and stop.
Every question you ask must be of type what — what do you want, what
happens today, what would you be able to do. Nothing about how it should
be built. The test is concrete: if the user would have to read code to
answer, it is not a question for them — decide it yourself later and write
down why. Keep going until Problem, Proposed outcome, Acceptance,
Constraints and Out of scope can all be filled in without guessing.
Keep every field at intent altitude:
- Problem — present pain, affected people, and consequence; no diagnosis, file list, or fix. Put missing current behaviour, workaround, or consequence in Open questions; do not infer it.
- Proposed outcome — wanted capability or state; no complete scenarios, UI reactions, state transitions, or implementation design.
- Acceptance — numbered observable delivery outcomes with external pass/fail evidence acceptance testing can produce; no value claim, scenario, test step, UI placement, architecture, or task split.
- Constraints — already-fixed boundaries; no agent preference or speculative guardrail.
- Value case — for a product intent: beneficiary, urgency, existing alternative, displaced work, and GO/NO-GO. Count each missing answer separately; confirmation of other fields is not evidence. Omit for an engineering intent with obvious value.
- Out of scope — excluded capabilities, actors, systems, or data; no deferred implementation list.
- Open questions — only unresolved outcome/scope choices or missing required content; both block confirmation. Carry downstream spec/engineering questions in the hand-off, not this section.
Any section may use a Markdown table or a Mermaid flowchart when it reads more easily —
for example current versus wanted, or who is affected. Acceptance stays a
numbered list, a diagram stays at intent altitude (no UI reactions or state
transitions), and a product Problem still holds no identifiers, Mermaid node
ids included. When restating in chat, show text tables or text diagrams, not
Mermaid: a terminal shows it as raw code.
Step 2 — Write the intent
Write the intent and decision-point dialogue in the user's language; plans, specs, reviews, evidence, tests, and commits are English; acceptance test reports and PR bodies use the user's language.
Write docs/loom/intent/<change-id>.md from templates/intent.md. Fill in:
-
originator: <the user's name>— ormap:<id>when a decision map raised it. -
kind:—productwhen the product's user-visible behaviour changes,engineeringotherwise. -
needs-design:—yeswhen either holds, and the line always carries the reason:- (a) the change touches a surface the user reads or types into — a
GUI, a TUI, CLI arguments and output, an external API, or a file artifact a
user or external system depends on — and no
DESIGN.mdor ui-flows document already covers that surface; or - (b) the behaviour is multi-state or multi-object and there is no spec for it.
Otherwise
no — <reason>. This applies to both kinds. The checker recomputesno(intent.needs-design-recompute) against the repo's interface-surface globs and blocks a mismatch.Example: a new uncovered CLI due-date surface is
needs-design: yes — CLI surface changes, no ui-flows cover due dates. - (a) the change touches a surface the user reads or types into — a
GUI, a TUI, CLI arguments and output, an external API, or a file artifact a
user or external system depends on — and no
-
status: openfor now; step 4 turns it intoconfirmed. -
## Open questions— the checker requires the section to be non-empty, so when the interview left nothing open write exactly- noneunder the heading. An empty section is a schema failure, not a statement that there are no questions.
The confirmation gate below performs the altitude pass after this list has been filled.
<!-- gate: capture-intent.product-problem-plain-words -->
<!-- The gate: markers in this file are prose gates: rules this station must follow, registered in the mechanism population and checked by cold-read evals — not checker rule ids. The checker rules are the intent.* / standing.* / contract.* ids named in this file. -->
A product Problem section is written in plain words only. No file
paths, no function or class identifiers, no script filenames — the section
is what the user reads to recognise their own problem, and the checker
rule intent.product-no-identifiers rejects the file otherwise.
Engineering intents may name paths freely.
<!-- /gate -->
Step 3 — Standing documents
For kind: product only, read PRINCIPLES.md at the repo root. It is
ratified when it carries a ratified-by: <name> <date> line and a
## Non-negotiables section with at least three items. When it is missing
or not ratified, run the interview in templates/PRINCIPLES-interview.md
now, in this same conversation — not as a separate stop and not as a question about
whether to do it. Open with the template's opening line, translated into
the user's language — the template's current English sentence is:
"Before building a product feature, this repo needs a set of product principles first. I'll ask you a few questions to produce it (about ten minutes), then confirm it together with the intent."
Ask its questions until the answers are clear, write PRINCIPLES.md with
its ratified-by: line left pending, and restate it together with the
intent in step 4.
Step 4 — Decision point ①: restate and confirm
Compose one message. Everything below goes into it; you do not stop twice, and this is the only stop this station makes.
-
The restatement. Once required facts are settled and this existing confirmation step is ready, read
references/confirmation-ready-template.md.For the current contract, automatic publication is the default. This same restatement explicitly says that answering yes authorizes a later non-forced push and Ready PR after
closing-reviewand publication checks pass, while merge remains a separate decision. Say that the user may explicitly opt out before publication. Do not hide that consequence in mechanism language or add it after the user has answered. Writepublication: automatic — authorized <date> by <name>only after that informed yes; an opt-out leaves the field absent. -
The engineering one-way doors found so far, in consequence form. A product change's one-way doors, class (e) actions included, are handled at decision point ② of the station writing its spec —
write-spec, orloom-code:write-planwhen it writes the spec — when a spec will be written. Their consequences are disclosed in this message instead when no spec will be written; a spec written later does not ask a settled question again at ②. The five classes are: (a) Hard to swap later; (b) Creates money or a standing obligation; (c) Limits what the user can do in future; (d) Sets the ceiling on output quality; and (e) An irreversible action on the user's existing state. These classes flag a consequence to disclose, not an automatic choice for the user. Hard to swap later alone does not require a user question. Three or more trade-offs alone do not require a user question. Class (e) counts without a fork: rewriting, deleting, or sending the user's existing data off their machine requires explicit consent. If Constraints orPRINCIPLES.mdalready pinned the choice or authorized the action, do not ask again; restate the pinned handling and consequence so the user still sees it.Four gates, in order: check the intent's Acceptance and Constraints and
PRINCIPLES.mdfirst — an axis already pinned there is not asked, you pick what complies and say which line pinned it; measure first when the candidates can be compared quickly on the user's own samples, then make the technical choiceagent-decidedand record the reason; threshold — for class (d), any axis differing by at least 20%, or the presence versus absence of money, privacy or coverage flags a consequence, not a question; merge — ask here only when alternatives materially change the user's outcome and the user's preference remains unresolved after checking, or when an action requires authorization. Fold that question into this message. Never open an extra stop.Disclose the user-relevant consequence of a major choice and the reason for an agent-decided option. When a user outcome remains unresolved, state the options as consequences and recommend one with a reason. With no fork, state the irreversible consequence and safeguard (for example, what is rewritten, what stops reading it, and where the backup is kept).
-
The cross-model review question, only for
second-vendor: askwithout a qualifying direct user request. Readreferences/second-vendor.mdfor mode routing. A missing line issecond-vendor: suggestand adds no question. When defaults carrysecond-vendor: ask, use the reference's host-aware native question or fallback only if the user hasn't named an outside coding agent and unambiguous review target. That request supplies one review's authorization; disclose cost, egress and local execution before dispatch. A fixed CLI adds no question. -
The principles confirmation, if step 3 ran the interview — restated in the same message, confirmed by the same yes.
-
The carried details,
kind: engineeringonly. Show them as a table, one row per detail in the user's language, confirmed by the same yes; no extra stop. With an empty list, no table appears. Every product change shows them at decision point ② of the station that writes its spec —write-spec, orloom-code:write-planwhen the list forces a spec for a change that skips design. A product change's carried details never appear in this message. -
The complexity check, when the scope adds cost. When the user's request or an option under discussion would add a mechanism, field, rule or step, run
loom-workflow:critiquein complexity mode before you compose this message. Carry only its verdict and its smaller alternative into this message, in the user's plain words; this adds no stop, and the user still chooses. Never paste critique's full response, its mindset or its question-by-question shape. Answer critique's own questions from the draft intent; never put them to the user. A request that adds no such cost, such as a bug fix or a wording change, does not run it. A wording change that adds a mechanism, field, rule or step still runs it. When loom-workflow is not installed, skip this item; the rest of this message is unchanged.
Questions may only ask what the user wants, what they will see (reserved for
decision point ②, where the product spec is written), whether acceptance worked (decision point ③
at ship), or state one-way-door consequences. Decide implementation choices
from repo evidence and record the reason; asking the user is a
user-judgment-leak review failure.
Write down every question you asked, as {decision_point, text, type}
with type one of what / behaviour / done / consequence.
The intent has no section for this list; adding one duplicates the contract's
schema. Use the plan's ## Questions asked section: pass the list verbatim
in step 5's hand-off message and require the receiving station to write it
there. Unrecorded questions make the flow look quieter than it is.
Keep a carried-details list beside the questions: command or screen behaviour and reactions the user stated or explicitly agreed to before or during intake. Agreement requires the user's explicit yes: drop unanswered or deferred ("later") proposals and answers about something else. Never carry unagreed agent proposals or inferred details. Background and usage context, including when or where the user runs it, are not carried details. Quote the user's words for each detail; for agreed proposals, quote the proposal the user accepted. Add no explanation, implication, or inference. Keep the list and detailed flows outside the intent; its sections stay unchanged.
<!-- gate: capture-intent.no-confirmed-without-restatement -->
No intent becomes confirmed without the restatement being answered.
After drafting, make one altitude pass: Keep, neutralize, defer, reopen, or
delete. Defer behaviour to spec and method to plan; delete unsupported
detail. This self-check creates no fields, IDs, requirements, scenarios, or
product behaviour.
Publication and second-reviewer authorisation never enter Problem, Proposed
outcome, Acceptance, or Out of scope. Keep publication authorisation in the
intent's publication: frontmatter line. The sole Constraints exception is
- user-decided — second-vendor selection-confirmed: <vendor> when plan is
skipped. It records the selected family; a direct request's verbatim quote,
target and final selected_executor belong in JSON authorization_source
at dispatch, never this machine line. Keep only actual questions in the step-5
hand-off.
Visible effects with an unknown surface and no spec require
needs-design: yes with a surface-neutral reason; internal files alone do not.
Use only user-supplied product claims: add no product nouns, interfaces, states,
scope dimensions, or guarantees. Put only unresolved outcome/scope choices or
missing required content in Open questions; either keeps the intent open.
Carry downstream spec/engineering questions in the hand-off.
Complete Step 2's altitude pass before confirmation. A fork with materially
different outcomes for the user or scope needs an explicit answer; an accepted
restatement is insufficient; reopen it — move it to Open questions, stop confirmation,
and the intent must remain open. Only an explicit answer makes it
user-decided. Implementation-only choices defer as
agent-decided.
You do not write status: confirmed because the request seemed clear, and
you never confirm on the user's behalf. On "no" or a correction, rewrite
the intent and restate again; there is no limit on rounds here.
On "yes":
- Write
status: confirmed <date>into the intent. When the confirmed restatement explicitly authorizes automatic publication, also writepublication: automatic — authorized <date> by <name>; never derive it from status or prose. When step 3 ran, writeratified-by: <name> <date>intoPRINCIPLES.md. After all confirmed intent frontmatter, includingpublication:, is written, replace the template'sintent_confirmed_sha: <sha7>withintent_confirmed_sha: <computed-sha>, using the output ofgrep -v -e '^status:' -e '^intent_confirmed_sha:' <intent> | git hash-object --stdin. This hashes the confirmed intent excluding its status and pin lines. Changes require reconfirmation with matching pin; byte-based confirmation does not establish a substantive requirements change;loom-code:closing-review'sreview.bounded-episodeowns episode/task continuity. - Branch before the first commit. Before the confirmation commit, make
HEAD the change's branch with
git switch -c <type>/<change-id>, picking<type>fromfeat,fix,docs,refactor,test,choreorci. If HEAD is already on this change's branch, reuse it. If that branch is checked out in another worktree, work in that worktree. Otherwise, on the trunk, create it, or if<type>/<change-id>already exists, switch to it withgit switch <type>/<change-id>; never re-create it or use-Cor a reset. On an unrelated branch or a detached HEAD, do not commit there: resolve that first and preserve existing work, no reset, no discard, nogit switch. Resolve it withgit worktree add <path> <type>/<change-id>when the branch already exists, elsegit worktree add -b <type>/<change-id> <path> <trunk>, and continue in that new worktree — on this or any move to another worktree, first move every uncommitted file this change produced (the intent draft, aPRINCIPLES.mdedit) there, to be committed on the change branch, so the original checkout keeps exactly its own earlier work. Carry aPRINCIPLES.mdedit as its diff, and if applying it conflicts, stop and ask the maintainer. Then commit with the messagedocs(loom): intent <change-id> confirmed. Its body must contain theneeds-design:line verbatim — the checker compares the two strings character for character.
loom-code:write-plan runs the intent check on this file before planning.
<!-- /gate -->
Step 5 — Hand off
Branch: everything after the intent lives on the change branch of Step 4.
Small and engineering-only changes retain branch/PR policy.
Observation never authorizes publication or merge. Withdrawal:
remove its publication: field immediately; commit before retrying.
Explicit local-only: --goal local. Observe
delivery --goal published --intent <absolute-intent-path> --json
via loom-code:ship before completion.
Read the needs-design: line you wrote:
yes→ hand the change toloom-design:write-spec.no→ hand it toloom-code:write-plan.
In the hand-off message, name the change-id and paste the list of
questions you asked, one per line as
<decision point> — <type> — <text>, saying it belongs in the plan's
## Questions asked section.
Next to it, paste the carried-details list verbatim, one per line, and say the
next station must record each item in the spec. When the list is non-empty and
needs-design: no, loom-code:write-plan must still write a spec
(spec-minimal) to hold them. An empty list forces no spec and adds nothing
to the hand-off.
Say two things so the next station is not re-run by accident: write-plan
will not run decision point ① again, because status: is already
confirmed — it reads the intent and starts planning. And decision point
② — "you type ___ and you see ___" — happens where the product spec is
written: at write-spec, or at write-plan when needs-design: no and
carried details force a spec. Engineering changes go from here to a plan with
no further stop until acceptance.
04 同仓库更多 Skills
using-loom-workflow
Route broad Loom workflow-tool requests to the right skill. Use when the request spans tools or the right workflow skill is unclear.
skill-retro
Review selected past or current Claude Code or Codex sessions against readable target skill sources and related integration. Produce source-linked proposals without applying changes.
recap-state
Give an in-session recap of current progress for 'where were we', '我們剛剛在幹嘛', '剛剛講到哪', '我跟丟了', 'ちょっと振り返って', '今どこだっけ', or '振り返り'. The built-in /recap is an away-summary.
project-retro
Review one current or specified coding session for source-backed project development improvements. Use for a requested retrospective, including 振り返り seeking improvements; not for current-progress recaps or recurring skill mining.
loom-visualization
Show comparisons, flows, decisions, states or reasoning chains as tables, ASCII or Mermaid in coding chat, including when a Loom station reports to the user (intent restatement, choices, acceptance test results); not Obsidian notes.
loom-memory
Record repo-wide lessons when saving to your own memory or asked to remember; recall, reconcile, or forget them when a task needs it.