一键导入
capture
Capture durable conversation or session knowledge into the Knowledge Bank. Use when the user invokes /capture or asks to save knowledge to the KB.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Capture durable conversation or session knowledge into the Knowledge Bank. Use when the user invokes /capture or asks to save knowledge to the KB.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Materialize and reconcile Knowledge Bank Infrastructure on this machine. Connect the KB provider, collect bindings, install the lookup and capture skills, and bootstrap the automations — on first run and on every later run. Use when the user runs /setup-kb-infra, says bootstrap/install/wire up kb-infra, or asks to update, sync, reconcile, or health-check the setup.
Look up scoped live Knowledge Bank context without writing. Use when a task needs KB context or asks to clarify missing, stale, or ambiguous knowledge.
| name | capture |
| description | Capture durable conversation or session knowledge into the Knowledge Bank. Use when the user invokes /capture or asks to save knowledge to the KB. |
Open an HTML approval draft before every KB write. Apply only the exact writes the user explicitly approves from the latest draft.
The KB is canonical. Use its live provider connector and schema; keep personal and provider-specific bindings out of this skill.
Apply three rules to every draft:
Keep these axes independent:
Area, Project,
Task, or Knowledge page.Canonical, Adapter, or migration-only Unresolved.Raw, Developing, or Stable. New intake starts Raw; retained
knowledge should normally become Stable.State, Direction, Decision, Rule,
Preference, Procedure, Event, Evidence, Open item, Schema, Example,
or Citation.Keep one subject per page, one dominant Kind per section, and no empty or decorative sections. State the current or actionable meaning before history. Keep qualifiers, rationale, and evidence beside the claim they affect.
Choose Type from the page's primary purpose, not body length or durable prose. An Area, Project, or Task may contain typed knowledge sections without becoming a Knowledge page. Do not infer Type from Ownership, Maturity, Status, Parent, or Kind. In a mixed provider container, keep operational views focused on Areas, Projects, Tasks, and migration-unclassified rows; expose Knowledge pages through intentional knowledge views. Do not duplicate pages for different views. When Parent/Subtasks contains both work and knowledge, require Type-aware views so knowledge does not appear as work.
Treat structured-table rows as records when their schema and fields carry the full meaning. Preserve their cell-like shape: do not add page semantic metadata to Notes or a blank body, and do not treat a repeated title as duplicate meaning when the table and hierarchy already disambiguate it. A rich body may require semantic sections without changing an operational page's Type.
Search for the subject, aliases, likely owners, adapters, and nearby examples. Fetch the target's complete affected section and live schema. Follow only relations needed to establish ownership, avoid contradiction, or make a deletion safe.
Treat local audits and previous drafts as discovery hints, never as substitutes for live reads. If the target, a plausible competing owner, or required relation cannot be read, state the gap. Block the write when the gap could hide duplication, contradiction, unsupported content, material loss, or unsafe deletion.
Completion: the owner, placement, schema, affected content, and relevant relations are grounded in current KB reads.
Extract durable knowledge only. Discard transcript framing, command noise, and unsupported claims.
For each retained meaning:
Append only genuine chronological Events or new peers in an existing set. When removing content, account for unique meaning, inbound links, its replacement, and the provider's recovery path. Retain revision evidence through provider history or the bound evidence surface.
Completion: the proposal is the smallest non-duplicative change that preserves meaning and recoverable history.
Create the HTML artifact described in HTML-DRAFT.md. Render primary KB mutations first in application order. Put bound Revision Evidence row writes in a compact final section; they remain mandatory and execute after all primary mutations. For each primary write show:
Keep raw provider IDs and request payloads collapsed unless the user needs them to decide. Treat the HTML draft as the complete approval record.
If a blocker remains, label the draft blocked and ask only for the missing decision or evidence. Otherwise open the file, report its absolute path, and ask exactly: "Should I apply these exact KB writes now?"
Completion: the user can understand and approve every write from the visible draft without decoding provider state or relying on hidden conversation context.
Accept only an explicit instruction to apply the latest named draft. Clarification, placement discussion, or approval of an older draft is not write authority. If any write changes, regenerate the draft and ask again.
When the user explicitly rejects the latest draft, it has no approval force. Retain its draft ID and the shortest factual reason supported by the user's feedback. If the reason is unstated, say only that it was rejected and what the replacement changes; do not infer dissatisfaction or intent.
Every draft generated to replace that rejected draft must have a new draft ID and
include the Previous Draft Invalidated section defined in
HTML-DRAFT.md. The replacement is the only approvable draft. The
invalidation section records approval history; it is not a KB write, a skipped
candidate, or Revision Evidence.
Immediately before writing, re-read every target and relation that determined the approved before-state. Drift invalidates approval.
Apply the approved primary operations in order through the provider connector, then append the approved Revision Evidence rows. Make no opportunistic or corrective write. Read back every affected item and compare its identity, parent, properties, relations, content, deletion result, and revision evidence with the approved result.
Report exact matches, failures, and partial results. A repair requires another draft and fresh approval.