一键导入
weave-knowledge
Update current-state Weave knowledge specs and change-local knowledge delta for an active change.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update current-state Weave knowledge specs and change-local knowledge delta for an active change.
用 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-knowledge |
| description | Update current-state Weave knowledge specs and change-local knowledge delta for an active change. |
| last_changed_in | 0.1.0 |
Use this skill when the user wants to update the knowledge base after a completed change, bug fix, feature addition, removal, or behavior clarification.
Knowledge is current-state behavior. Historical provenance stays in wiki/changes/**.
status.yml; use weave change knowledge <status>.Start by discovering the current Weave session and active change:
weave workspace --json
weave change current --json
weave change status --json
If no active change exists, stop and say:
No active Weave change found. Knowledge updates normally need change provenance. Start or switch a change, then run `weave-knowledge` again.
For each active-change target, read:
wiki/changes/<change-id>/status.yml
wiki/changes/<change-id>/exploration.md
wiki/changes/<change-id>/prd.md
wiki/changes/<change-id>/architecture.md
wiki/changes/<change-id>/architecture/index.md
wiki/changes/<change-id>/architecture/*.md
wiki/changes/<change-id>/tasks.md
wiki/changes/<change-id>/sessions/*.md
Architecture may be legacy file mode or folder mode. If architecture/ exists, read architecture/index.md and direct child facet files as architecture context. If both architecture.md and architecture/ exist, report the conflict and avoid treating either as the sole canonical architecture source.
Read relevant knowledge files when present:
wiki/knowledge/index.md
wiki/knowledge/README.md
wiki/knowledge/domains/**/index.md
wiki/knowledge/domains/**/features/**/behavior.md
wiki/knowledge/domains/**/domain-wide/**
wiki/knowledge/shared/**/behavior.md
wiki/knowledge/**/source-map.md
Inspect source anchors, tests, config, jobs, and integrations only as needed to ground the behavior.
Use domains/ for product or system areas that users naturally name.
Use features/ for independently understandable behavior inside a domain.
Use domain-wide/ for behavior that coordinates multiple features inside one domain.
Use shared/ for behavior reused across multiple domains.
If multiple targets are plausible, summarize the candidates and ask the user to choose before writing.
Use the structures defined in knowledge-templates.md (sibling to this SKILL.md).
The template reference lives at <agent-skills-dir>/weave-knowledge/knowledge-templates.md after install. Read it as the canonical knowledge file structure when creating or revising knowledge artifacts. If the user has modified the template reference, follow the user's modified structures.
Create or update:
wiki/changes/<change-id>/knowledge-delta.md
wiki/knowledge/**
When there is durable behavior impact:
wiki/knowledge/**knowledge-delta.mdweave change knowledge updatedExample:
weave change knowledge updated --domain performance-reviews --shared approvals --file wiki/knowledge/domains/performance-reviews/domain-wide/approvals.md --delta wiki/changes/<change-id>/knowledge-delta.md --reason "Updated current review approval behavior." --json
When there is no durable knowledge impact:
knowledge-delta.mdweave change knowledge none --delta wiki/changes/<change-id>/knowledge-delta.md --reason "<reason>" --jsonWhen knowledge impact cannot be resolved yet:
weave change knowledge pending --reason "<reason>" --json when usefulReport:
Knowledge delta: wiki/changes/<change-id>/knowledge-delta.md
Knowledge files updated: <files or none>
Knowledge status: <pending|stale|updated|none>
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.