원클릭으로
weave-capture
Capture the current discussion into a structured session note for a Weave change, optionally updating the active change artifact.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Capture the current discussion into a structured session note for a Weave change, optionally updating the active change artifact.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Execute selected local Weave tasks for an active change by preparing branches, implementing tasks, running verification, and updating tasks.md evidence without committing, pushing, or opening PRs.
Chat-driven bug-fix entry point that creates a fix-type change, writes findings.md, and scaffolds a single task-slice folder.
Scaffold task-slices folders from upstream artifacts using tracer-bullet vertical slices, per-slice tasks, and slice-level technical contracts.
Execute selected local Weave tasks for an active change by preparing branches, implementing tasks, running verification, and updating tasks.md evidence without committing, pushing, or opening PRs.
Chat-driven bug-fix entry point that creates a fix-type change, writes findings.md, and scaffolds a single task-slice folder.
Scaffold task-slices folders from upstream artifacts using tracer-bullet vertical slices, per-slice tasks, and slice-level technical contracts.
| name | weave-capture |
| description | Capture the current discussion into a structured session note for a Weave change, optionally updating the active change artifact. |
| last_changed_in | 0.1.9 |
Capture the current discussion into the active Weave change context.
Use this when the user wants to preserve discussion rationale, decisions, options considered, unresolved points, user preferences, agent recommendations, and the next resume point without storing a raw transcript.
There are two capture modes:
weave-capture creates a structured session note, promotes pending session context for the selected lane, and updates the selected live artifact.weave-capture session [exploration|prd|findings|architecture] creates a lane-aware structured session note and does not create or update any live artifact.The session file is a continuation aid. Live artifacts remain the durable current truth.
weave workspace --json
weave change current --json
If the user invoked session-only mode, such as:
weave-capture session
weave-capture session exploration
weave-capture session prd
weave-capture session architecture
use session-only behavior for this invocation.
In session-only mode, an explicit lane wins for this invocation:
exploration
prd
findings
architecture
If the user invoked weave-capture session without a lane, stop before writing and ask:
Which lane should I capture this session under: exploration, prd, findings, or architecture?
If the user did not invoke session-only mode, use artifact capture behavior.
If the user explicitly named an artifact target, use it for this invocation. Supported targets are:
exploration
prd
findings
architecture
If the user did not name a target, stop before writing and ask:
Which artifact should I capture this into: exploration, prd, findings, or architecture?
Before writing any session note or artifact, defensively verify that the resolved lane matches the substance of the conversation being captured.
Compare:
weave-capture session <lane>)If the resolved lane and the dominant subject clearly disagree (for example, the user explicitly selected prd but the conversation is heavily architectural; or the user invoked weave-capture session exploration after a long architectural discussion), do not write. Stop and ask:
Selected lane is <lane>, but the conversation reads as <observed-lane>.
Capture this into: <lane>, <observed-lane>, or another lane?
Wait for the user's choice. Use the user's reply as the resolved lane for the rest of this invocation. Do not silently override the explicit selection.
If the lane and the conversation substance are aligned (or if the conversation is too short or mixed to judge), proceed with the resolved lane without asking.
wiki/changes/<change-id>/
wiki/changes/<change-id>/sessions/
If it is missing in an older change, create it before writing the session note.
wiki/changes/<change-id>/sessions/YYYYMMDD-HHMMSS-<4-char-id>-<artifact>.md
Use the local timestamp for YYYYMMDD-HHMMSS. Use a 4-character lowercase alphanumeric id and retry if the filename already exists.
Existing session files using yyyy-mm-dd-<4-char-id>-<artifact>.md remain valid historical notes.
---
artifact: <exploration|prd|architecture>
capture_mode: <artifact|session>
captured_at: <YYYY-MM-DDTHH:mm:ss.sssZ>
facets: []
---
# Session Capture: <Artifact> - <YYYY-MM-DD>
## Summary
## Decisions Made
## Options Considered
## Rejected Approaches
## User Preferences
## Agent Recommendations
## Unresolved Points
## Live Artifact Updates Applied
## Next Resume Point
Do not copy or store the raw transcript. Summarize and structure the discussion.
Set capture_mode: session for session-only capture. Set capture_mode: artifact for regular artifact capture.
For architecture captures, set facets: [...] to the architecture concerns discussed, such as index, schema, api-contract, frontend-backend, or user-named facet slugs. For non-architecture captures, use facets: [].
For session-only capture, write None; session-only capture or equivalent under Live Artifact Updates Applied.
Do not create or update:
wiki/changes/<change-id>/exploration.md
wiki/changes/<change-id>/prd.md
wiki/changes/<change-id>/architecture.md
wiki/changes/<change-id>/architecture/
Session-only capture is resume context only. It is not canonical artifact truth. It does not require the lane's live artifact to exist and does not require upstream prerequisite artifacts.
exploration -> wiki/changes/<change-id>/exploration.md
prd -> wiki/changes/<change-id>/prd.md
architecture -> wiki/changes/<change-id>/architecture.md or wiki/changes/<change-id>/architecture/index.md plus facets
For architecture targets, resolve artifact shape before writing:
architecture.md exists, preserve legacy file mode unless the user explicitly asks to move to folder mode or create a separate facet.architecture/ exists, use folder mode. Treat architecture/index.md as the canonical entry point and direct child architecture/*.md files as facets.architecture/index.md by default.architecture.md and architecture/ exist, stop before writing and ask whether to keep legacy file mode, migrate to folder mode, or reconcile the conflict with weave-clarify.index.md when useful.Before writing the live artifact, inspect pending session notes for the selected lane:
wiki/changes/<change-id>/sessions/*-<artifact>.md
Pending session notes are session captures that may contain durable discoveries, decisions, constraints, rejected approaches, unresolved questions, risks, preferences, or next-resume context that has not yet been reflected in the live artifact.
Selection rules:
updated_at timestamp.captured_at first. If missing, derive it from the timestamped filename. For legacy yyyy-mm-dd-<id>-<artifact>.md notes or ambiguous session time, include the note conservatively when it might be newer than the artifact.updated_at cutoff.Only merge artifact-relevant current truth:
When the live artifact already exists, preserve its template structure and lifecycle frontmatter. When the live artifact is missing but allowed by the target rules below, create it with appropriate lifecycle frontmatter and the normal artifact structure for that lane.
For folder-mode architecture, discover direct child template resources in the installed skill directory:
<agent-skills-dir>/weave-architect/*-template.md
Use templates by convention only. index-template.md is for architecture/index.md; <facet>-template.md is for architecture/<facet>.md. If no relevant template exists, fit content into existing architecture docs wherever it belongs. Create a new no-template facet only when the user explicitly asks for a separate facet file or the current capture cannot be represented honestly in existing docs.
Do not add transcript-style discussion to the live artifact.
weave change progress exploration --source discussion --json
weave change progress prd --source exploration --source sessions --json
weave change progress architecture --source prd --source codebase --json
Run only the command matching the selected artifact and pass only sources that actually informed the live artifact. If lifecycle progress fails, do not rewrite the session note or live artifact just to recover. Report the progress failure in the completion response.
weave-capture session, weave-capture session exploration, weave-capture session prd, or weave-capture session architecture.exploration, prd, and architecture.weave-capture session without an explicit lane asks which lane to use before writing.exploration.md, prd.md, architecture.md, or architecture/.weave-explore maps to exploration.weave-prd maps to prd.weave-architect maps to architecture.exploration.md: create it for the valid active changeprd.md: create it from current discussion, PRD sessions, and useful exploration context when enough product truth existsarchitecture/index.md from current discussion, architecture sessions, useful PRD context, and codebase/technical context when enough engineering truth existsCreating a missing live artifact is allowed only for the selected capture target. The captured discussion supplies the current lane context, and upstream artifacts supply optional product or technical context when they exist and are useful.
exploration.md, synthesize the artifact from the current discussion and mark unresolved discovery points clearly.prd.md, synthesize the artifact from current discussion, PRD sessions, and useful exploration context. Do not require exploration.md.architecture/index.md and any explicit or template-backed facet files from current discussion, architecture sessions, useful PRD context, and codebase/technical context. A just-completed Plan Mode weave-architect discussion is valid source material for the first architecture draft.weave-capture is the only v1 flow that promotes pending session-only context into live artifacts.exploration.md, prd.md, architecture.md, or architecture/ in session-only mode.exploration.md, prd.md, architecture.md, or architecture/ in artifact capture mode without a valid active change, valid target context, and enough selected-lane context.status.yml; use weave change progress <lane> --json after successful artifact capture.reviewed_at, approved_at, or approved_by unless a future approval flow defines that behavior.For artifact capture, report both outputs:
Captured session: wiki/changes/<change-id>/sessions/<filename>.md
Updated artifact: wiki/changes/<change-id>/<artifact-path>
For session-only capture, report the session and explicitly state that no live artifact was updated:
Captured session: wiki/changes/<change-id>/sessions/<filename>.md
Updated artifact: none (session-only capture)
Weave skills run Weave CLI commands silently by default. Use command results as internal context, not response content.
Do not show raw stdout, JSON payloads, command echoes, lifecycle payloads, internal state-write confirmations, or verbatim notice text unless the user explicitly asks for diagnostic output.
Surface only information that changes what the user or agent should do next: blockers, failures, missing relevant repos, branch or task outcomes, lifecycle failures, package-outdated notices, relevant outdated or modified skills, and user-required actions.
Notice handling:
package_outdated: show only when present. Say exactly:
A newer Weave version is available. Run \weave status` for details, then upgrade Weave when convenient.`skills_outdated: suppress unrelated skills. If the invoked skill is outdated, say:
The installed \` skill appears older than the bundled template. Run `weave status` for details, then `weave agent update --all` when you want to refresh installed skills.`skills_outdated: if multiple skills used in this workflow are outdated, say:
Some installed skills used in this workflow appear older than the bundled templates: \`, ``. Run `weave status` for details, then `weave agent update --all` when you want to refresh them.`skills_modified: suppress unless the invoked skill is modified locally or the user is asking about skill updates. If the invoked skill is modified, say:
The installed \` skill has local edits, so its behavior may differ from the bundled template. Run `weave status` or `weave agent diff` if you want to inspect the difference.`skills_modified: if the user asks to update skills and installed skills have local edits, say:
Some installed skills have local edits. \weave agent update` may skip or protect them; run `weave status` or `weave agent diff` before updating.`Do not say Notices: ..., The command returned notices, raw
notices[].message, full notice JSON, or full skill lists unless the user
asks for diagnostics.
Before calling weave change progress, verify content-sync of every artifact
that would otherwise be marked stale by the default pessimistic propagation.
The --source arguments of weave change progress declare causal influence,
not strict-DAG dependency. Pessimistic staleness propagation is the safe default,
not the only correct answer. When the clarification this skill just performed is
narrowly contained (a typo fix, a sentence rewording, an open-question
resolution), dependents may already be in content sync; flagging them stale
creates churn the user did not ask for.
Procedure:
Identify the set of structural dependents of the lane being progressed. Read
wiki/changes/<change-id>/status.yml and compute which lanes list this
lane in their artifacts.<lane>.sources.
For each dependent lane, read both the dependent artifact and the artifact just being progressed. Decide whether the change you just made invalidates the dependent's content. The judgement is binary per lane: invalidates, or does not invalidate.
Select the appropriate progress invocation:
weave change progress <lane> --source <list> --json (default, no new flags)weave change progress <lane> --source <list> --no-invalidate --jsonweave change progress <lane> --source <list> --invalidate=<comma-list> --jsonIf a previously-stale dependent is now in content sync (because the upstream change has been absorbed but the stale flag still lingers from an earlier pessimistic propagation), clear it explicitly:
weave change clear-stale <lane> --reason "<one-sentence verification>" --json
Always pass --reason so the audit entry in stale_history carries the
verification rationale. Do not clear flags without reading both artifacts.
Never edit status.yml by hand to manipulate stale state. Use the CLI.
Failure mode: if you are uncertain whether a dependent is in content sync,
prefer the pessimistic default (omit --no-invalidate and --invalidate).
The user can always run weave-clarify <lane> later. A false-positive stale
flag is recoverable; silently leaving a real downstream artifact mismatched is
not.