/agentheim:quick-capturefrom agentheim
Captures ideas, bugs, or features into the backlog with zero conversation or refinement. Routes each item to the best-fit bounded context and writes one task per idea, then exits. For when the user wants to offload a thought fast, not think it through.
Ships in agentheim. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
quick-capture is the low-friction sibling of modeling. Its entire job is to take an idea
out of the user's head and into a backlog task as fast as possible, so they can keep
their train of thought going. No Socratic dialogue, no clarifying questions, no
refinement — just route, write, report, done.
The user reached for quick-capture (not modeling) because they want to offload, not
think. Honour that. Every question you ask is friction that defeats the point. If an
idea genuinely needs thinking through, that's what modeling is for — and these captured
tasks will get exactly that treatment later (see "Handoff to modeling" below).
Both create backlog tasks, so the trigger phrases overlap. Disambiguate by intent:
quick-capture — the user is dumping and moving on. Signals: "just", "quick", "don't
ask", "for later", rapid-fire lists, terse one-liners, an explicit BC ("stick this in
infrastructure"). They do not want a conversation.modeling — the user wants to work the idea: explore it, refine acceptance
criteria, decide where it lives, talk it through. Signals: questions back to you,
"let's think about", "help me model", "what should this look like".When it's genuinely ambiguous, default to quick-capture — it's the cheaper mistake. A
too-thin task gets refined later; a too-heavy conversation the user didn't want wastes
their time and can't be undone. If you capture and the user clearly wanted to model, they
will tell you, and you can pick up the task in modeling from there.
migrate verb per references/lib-bootstrap.md §7 before the reads below — it moves a legacy .agentheim/ tree to the two-root layout (or is a zero-write noop on an already-board tree). Stop and surface reason verbatim on mixed-layout / worktree-active / lock-timeout.You need just enough context to route. Read, in this order, and stop as soon as you can route:
README.md under .agentheim/knowledge/contexts/ — the BCs that exist and their ubiquitous language.
This is the one read you always need. (Prefer the ## Purpose and ## Ubiquitous language sections.).agentheim/knowledge/context-map.md (if it exists) — only if routing is unclear from READMEs.Do not read the whole backlog, every INDEX, or the protocol just to capture. Capture is meant to be cheap. You only touch the target BC's INDEX (to append) and the protocol (to log) — see below.
If no bounded contexts exist yet: the project hasn't been brainstormed. Don't invent a
BC. Tell the user in one line and offer to run brainstorm first (or, for a throwaway
one-liner in a greenfield repo, offer a default main BC). Don't block on it
silently.
For each idea in the user's message:
Split, if needed. If the message contains several distinct ideas ("three things: …", a bulleted list, "and also…"), treat each as its own capture and produce one task per idea. Keep genuinely-coupled thoughts together; split only what's independently workable. When unsure whether two lines are one idea or two, prefer one task — a refiner can split it, but merging two scattered tasks is harder.
Route to a bounded context (no question — pick the best fit and file it):
contexts/infrastructure/. No → it's BC-local → the originating
BC. In genuine doubt, prefer the originating BC.monitoring/, deploy/, etc.). If an idea
seems to want its own BC, file it in the closest existing one and note in the task
that it may warrant a brainstorm extension. infrastructure/ and design-system/
are the homes for cross-cutting tech and UI concerns respectively.Pick the type. Infer type from the idea with a quick heuristic — bug if it
describes something broken, decision if it's a "should we / which way" question,
chore for maintenance, spike for "investigate", else feature. Don't agonize;
refinement can correct it. If the type lands on spike, the task body must carry
the stop-loss clause (ADR-0065): "if, mid-spike, the mitigation is already known and
cheap, record it and stop." Include it verbatim or in substance — the literal word
"stop-loss," or the clause's own "record it and stop" wording, satisfies
lib/spike-stop-loss.mjs's live-tree lint. Add it to the ## Notes section of the
template below when minting a spike.
Write the task to backlog/. Always backlog, never todo — captured tasks are raw
by definition and must pass through refinement before a worker sees them. Use the
format below. Fill Why/What from the user's words (lightly cleaned up, not
expanded — don't invent scope they didn't state). Leave acceptance criteria as a single
"to be refined" placeholder; capture's job is not to manufacture criteria the user
didn't give.
Register the task with the mechanized capture verb. Once the task file is written,
run:
node -e "const fs=require('node:fs'),os=require('node:os'),p=require('node:path'),u=require('node:url');const sv=/^(\d+)\.(\d+)\.(\d+)$/;const c=p.join(os.homedir(),'.claude','plugins','cache','agentheim','agentheim');const cand=[p.join(process.cwd(),'lib','task-lifecycle-cli.mjs')];let vs=[];try{vs=fs.readdirSync(c).filter(n=>sv.test(n)).sort((a,b)=>{const A=a.match(sv),B=b.match(sv);for(let i=1;i<4;i++){const d=+B[i]-+A[i];if(d)return d}return 0})}catch{}for(const v of vs)cand.push(p.join(c,v,'lib','task-lifecycle-cli.mjs'));const r=cand.find(fs.existsSync);if(!r){console.error('no task-lifecycle CLI found under '+c+' (is the plugin installed?)');process.exit(1)}import(u.pathToFileURL(r).href).then(m=>m.main(process.argv.slice(1))).catch(e=>{console.error(e.message);process.exit(1)});" capture <id> '{"source":"quick-capture","summary":"<1 line — the idea as captured>"}'
(The same env-free homedir→cache→semver-max bootstrap modeling/SKILL.md's PROMOTE flow
uses, targeting the same CLI's capture verb.) It performs the INDEX marker insert +
count delta and prepends the Capture / Captured protocol entry, in one mechanized step
(ADR-0038, ADR-0073) — not optional: the dashboard and the other skills find tasks through
the index, so a task that isn't registered is effectively invisible. It acquires the
lifecycle lock itself (agentic-workflow-pt0gy) — a concurrent modeling session's own
capture/promote/dismiss/log/index-add waits rather than racing it, so two quick-captures
(or a quick-capture and a modeling CAPTURE) landing on the same BC at the same moment both
still register. It backfills a missing BC task-half INDEX.md from references/task-index-template.md
when the BC holds nothing but this task; otherwise a {ok:false, code:'index-missing'}
rejection means something is off (a mis-typed BC name is the usual cause) — fix it and
re-run rather than hand-editing the index.
Commit — via scoped-commit (see "Committing" below), with exactly the manifest's
changed paths from step 5 plus the new task file itself, under the manifest's message
(already chore(<bc>): capture <task-id> — <title> [<task-id>]). This is what keeps the
working tree clean after a capture (ADR-0026) — the old behavior left the new task file,
INDEX, and protocol all uncommitted.
Report and stop. One line per task: ✓ <id> → backlog · "<title>" (<bc>). If you
had to guess the BC, say so and invite a re-route in the same breath — e.g. "routed to
agentic-workflow on a guess; reply with a BC to move it." Then stop. Don't ask "want me
to refine it?" — if they do, they'll say so.
Files live at board/<bc>/backlog/<id>-<slug>.md. Same shape every other skill reads:
---
id: <bc>-<token>
title: <short imperative title>
status: backlog
type: feature
context: <bc>
created: <YYYY-MM-DD>
completed:
depends_on: []
blocks: []
tags: [captured]
related_adrs: []
related_research: []
prior_art: []
---
## Why
<the user's reason, in their words — or "Not stated at capture." if they gave none>
## What
<the idea, lightly cleaned up. Do not expand scope the user didn't state.>
## Acceptance criteria
- [ ] To be defined during refinement.
## Notes
Captured via `quick-capture` on <date> — raw, unrefined. Needs a `modeling` refine pass before
it can be promoted. <Any verbatim extra context the user gave that didn't fit above.>
Keep the frontmatter values clean — no inline # … comments; the dashboard
parses the whole line as the value. type is one of
feature | bug | refactor | chore | spike | decision, and the captured tag
marks the item a raw dump so modeling's REFINE knows it still needs a pass.
Keep related_adrs / related_research / prior_art empty. Capture deliberately
skips the prior-art matcher — running it is a read-heavy step whose payoff is an
interactive "is this a duplicate?" conversation, and capture doesn't converse. modeling's
REFINE re-runs that matcher from scratch anyway, so nothing is lost by deferring it. (If
you happen to know from the BC README that an obviously-identical done task exists, you
may mention it in one line when reporting — but never block the capture on it.)
Emit a fresh id <bc>-<token> per the id grammar in references/id-grammar.md (ADR-0028 §1) — generate the token randomly, never scan existing files for a "next number". When capturing several tasks into the same BC at once, mint an independent fresh token for each. Legacy <bc>-NNN ids already on disk are kept as-is — never rewrite them.
After minting, verify each new id with classifyTaskId from lib/id-grammar.mjs: if classifyTaskId(newId) !== 'token' (e.g. it leads with a digit), discard it and mint a fresh one — no need to ask the user, a random token is free and non-interactive (ADR-0044). Runnable in a consumer install via the resolve-plugin-file-convention bootstrap in references/lib-bootstrap.md §6.
Mechanized (ADR-0038, ADR-0073) — the capture verb run in step 5 of "The flow" above
performs both the INDEX marker insert and the protocol prepend in one call; there is
nothing to hand-edit here. Its line format always carries (type):
- **<id>** — <title> (<type>) — `backlog/<id>-<slug>.md`
(This retires the older, (type)-less line format quick-capture used to hand-type.) If
the BC has no INDEX.md yet, capture backfills one from references/task-index-template.md
automatically, but only when the BC holds nothing but the task just captured — otherwise it
refuses index-missing rather than seed a template's zero counts over real pre-existing
tasks; build the index by hand from the template in that case.
Mechanized (ADR-0038, ADR-0073) — the same capture call prepends the entry, keyed by
"source":"quick-capture":
## <YYYY-MM-DD HH:MM> -- Capture / Captured: <task-id> - <title>
**Type:** Capture
**BC:** <bc-name>
**Filed to:** backlog
**Summary:** <1 line — the idea as captured>
---
Nothing to hand-format here — the shape above is the script's actual output, kept as the
human-readable contract. For a multi-idea dump, one capture call (and therefore one
entry) per task is correct — the protocol is a diary, not a transcript.
Quick-capture commits its own markdown so the working tree is clean after a capture, via the scoped-commit helper (lib/scoped-commit.mjs's runScopedCommit(cwd, paths, message)), not a hand-composed git add + git commit. Commit doctrine lives in references/commit-doctrine.md (ADR-0026) — scoped add is mandatory here too, and scoped-commit now enforces the never--A/./glob half of it ({ok:false, code:'invalid-path'}) rather than leaving it prose-only: quick-capture can run while a work or modeling session has its own in-flight files on the working tree, so a blanket add would bundle or race them. After writing the task file(s) and running capture for each:
scoped-commit with an explicit, enumerated list of only this capture's artifacts: the new
task file(s) plus each capture call's manifest changed paths (the target BC's
INDEX.md and .agentheim/board/protocol.md).chore(<bc>): capture <task-id> — <title> [<task-id>]
[<task-id>] trailer), which the later refine/work passes rely on. Commit each
task with its own scoped scoped-commit call as you write it.scoped-commit retries git add and git commit independently, with a bounded backoff, when
either step collides with a sibling session's own .git/index.lock (agentic-workflow-pt0gy) —
never delete .git/index.lock by hand on a {ok:false, code:'git-index-lock-exhausted'}; a
live sibling may still hold it. Runnable through the same env-free homedir→cache→semver-max
bootstrap used above (targeting lib/scoped-commit.mjs's runScopedCommit instead of the
task-lifecycle CLI's main) — see modeling/SKILL.md's "Committing" section for the full
one-liner.
If the project isn't a git repo, skip the commit silently — write the files as before and report; the working-tree-clean guarantee only applies under git.
If the user corrects the BC after you report ("no, that's infrastructure"), run the
mechanized reroute verb (ADR-0077, agentic-workflow-qd24q/fn59c) — never a hand file
move, never a hand INDEX edit:
node -e "<same env-free bootstrap 'The flow' step 5's capture call uses>" reroute <task-id> '{"to": "<new-bc>"}'
It relocates the task across bounded contexts, minting a fresh <new-bc>-<token> id and
retiring the old one — reroute never keeps the original id, since captureTask's own
context-mismatch guard would otherwise permanently disagree with a task whose id and BC
disagree. The new file carries rerouted_from: <old-task-id> as its crash-retry
idempotence marker. It re-points (never strips) every project-wide depends_on/blocks/
prior_art/related_tasks backlink and every ADR's related_tasks that named the old id,
removes the old BC's backlog-list line and count, inserts the new BC's, and prepends one
Modeling / Re-routed: <old-task-id> → <new-task-id> protocol entry — all under the one
project-wide lifecycle lock, in one locked call.
It returns one manifest — {ok:true, changed:[newTaskPath, oldTaskPath, oldIndexPath, newIndexPath, protocolPath, ...everyBacklinkFileTouched], message:'chore(<new-bc>): re-route <old-task-id> → <new-task-id> [<new-task-id>]', verb:'reroute', id:<old-task-id>, newId} —
changed is open-ended: it names every backlink file reroute actually touched, not a
fixed count, so commit the manifest's full changed array, exactly as returned, via
scoped-commit with the manifest's message verbatim. Report the manifest's newId to
the builder — the old id is gone, so the one-line report in step 7 of "The flow" above
names the new id, not the one the builder originally saw.
Rejections, fail-closed, nothing written:
missing-to — no target BC named; ask which BC before retrying (lib/task-lifecycle-capture-dismiss.mjs).same-bc — the named BC is the task's own; nothing to re-route.not-in-backlog — the task isn't in its BC's backlog/ (already promoted, or already re-routed) — re-check where it actually is.unknown-bc — no contexts/<bc>/ directory for the named target — confirm the BC name.index-missing — the target BC has no INDEX.md and holds more than just this task — the builder decides how to backfill it; never hand-build one to force the call through.lock-timeout — a sibling session holds the lifecycle lock; retry once it clears — never delete .agentheim/state/lifecycle.lock by hand.Captured tasks are intentionally thin, and that's the design, not a defect. When the user
later runs modeling on one, REFINE reads the captured Why/What and treats it as if
it were the user's first description of the idea — the same starting point a fresh
modeling CAPTURE would have. So capture's only obligations are: get the idea down
faithfully, route it to a plausible BC, and make it discoverable (index + protocol).
Everything else — acceptance criteria, dependencies, prior-art links, ADRs, the styleguide
gate, splitting into sub-tasks — is refinement's job, and capture must not pre-empt it.
These are not omissions to fix later — they're the point of having a separate skill:
modeling. File what you have and let refinement surface the gaps.modeling and brainstorm, where conversation is the
point.)todo/. Captured work is unrefined by definition; promoting it would
skip the human-in-the-loop refinement gate.design-system-001-styleguide dependency added during refinement, not at capture.What SKILL.md sets; muted values are Claude Code's defaults
haikuThree short reads, in order
10 skills in this plugin
/brainstormUse whenever the user wants to start a new project, create a vision, do a Socratic modeling or discovery session, explore a problem space from scratch, or set up an initial context map and bounded contexts. Triggers on phrases like "let's brainstorm", "start a new project", "create a vision", "I want to build X", "model this out from scratch", "help me think through", "what should the shape of this be". Produces .agentheim/knowledge/vision.md (and context-map.md if the domain is complex enough to warrant bounded contexts), and closes with an architecture foundation pass that unconditionally creates an `infrastructure/` BC (the standing home for globally-true tech concerns), emits decision tasks (globally-true → infrastructure BC, BC-local → originating BC), a walking-skeleton spike, and (when the vision implies frontend) a styleguide task. Deliberately produces no code — every output is markdown the user can review before `work` runs. Supports six switchable conversational modes (Interrogator [default], Suggestor, Challenger, Storyteller, Facilitator, Synthesizer) — see references/modes.md./inquireAnswer a question about the codebase of an Agentheim-managed project — how a feature works, where something lives, what was decided and why, or whether something is built yet — by reading the project's own structure (the index, the bounded-context READMEs, the ADRs, the task boards) and verifying against the actual source. Read-only. Invoke it directly when you want a thorough, code-grounded answer that separates what's decided from what's actually implemented.npx claudepluginhub heimeshoff/agentheim --plugin agentheimOther plugins' skills for the same job