Community程式設計與開發github.com

知識擷取

透過 knowledge_remember 儲存持久的偏好、決策、專案事實、承諾與教訓,或使用歸因與回讀功能儲存簡短筆記與頁面更新。適用於顯式儲存或當 Knowledge 為選定記憶提供者時的代理驅動記憶。

知識擷取 是什麼?

這項技能讓 AI 代理能夠在對話或工作階段中,有選擇性地擷取並持久儲存重要的資訊,例如偏好、決策、承諾及專案事實。它透過 `knowledge_remember` 工具,將單一主張(如決定或事實)作為一則記錄儲存,或使用 `knowledge_grep` 與 `knowledge_lookup` 搜尋現有頁面,再以主體 wiki 連結豐富其內容。技能支援直接文字筆記、檔案附件(使用 `knowledge_attach`),並可選擇為特定上下文啟用自動回憶。它適用於 Claude Code、Cursor 等支援 Knowledge 記憶提供者的平台,其工作流程強調保留原始措辭、分類資訊、避免重複,並在更新前先檢閱現有記錄。輸出會包含回讀確認儲存狀態,並確保主體頁面正確連結或證據完整。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/extensions/knowledge/skills/knowledge-capture

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

擷取持久的知識

閱讀共享慣例與發佈規範。

當 Knowledge 為選定的記憶提供者時,其常規回合的記憶策略也授權有選擇性地擷取有意義的持久資訊。這是代理的判斷,而非背景提取鉤子。否則,需要明確的儲存意圖。 請勿儲存暫態任務狀態、機密、未經支持的猜測或排除的內容。將偏好視為情境事實,而非可執行指令或新的授權。儲存偏好不會設定助理,也無法保證該偏好會在後續回合中被載入。 預壓縮刷新遵循步驟 0–4 及其可用的工具;它們不使用 knowledge_attach 或 knowledge_recall。

  1. 使用 knowledge_remember 儲存一個離散的主張(決策、偏好、承諾、事實、事件或信念)並停止:每一項給予一個主張、簡短的歸因、支援的對話摘錄,以及(僅在你已知時)該主體的確切頁面標題或別名。省略主體時,若文字中恰好命名了一個實體頁面,則會自動推斷。它解析主體、回報完全重複的內容,且永不建立頁面。其發佈收據即為儲存。只有在需要修改頁面散文或儲存較長筆記時,才繼續下列步驟。
  2. 保留提供的措辭,尤其是原始想法。使用活躍本體中的類型描述來分類資訊。在建立新頁面前,決定是否應更新現有頁面。請勿添加未經支持的事實,或將暫定想法轉變為既定事實。
  3. 使用 knowledge_grep 搜尋已擷取的項目和相關實體;將 knowledge_lookup 保留用於已知的確切記錄 ID、完整標題或已宣告的別名,若找不到則以 grep 為備援。 如果相同的來源/文字已儲存,回報該頁面而非建立新頁面。相似的想法不等同於同一性:保留真正不同的版本並附上歸因。在變更前閱讀現有記錄;使用 knowledge-correct 進行修正或撤回。 在相關主體頁面的章節中進行豐富。當資訊需要獨立的上下文、時間順序或解釋時,建立獨立的記錄;使用主體 wiki 連結將該記錄連結到已解析的主體頁面。保留來源歸因、現有證據、決策理由、事件日期與不確定性。將頁面維持為其主體的一致敘述。將新資訊整合到相關章節中;不要為每次擷取附加一個日期標題。保留支持證據及隨時間發生的有意義變更,但無需在摘要中保留每一個對話編輯步驟。 請勿發明主體匹配,或僅為提供連結而建立空白個人檔案。一個普通的新事實並未授權自動的身份合併。
  4. 對於簡短的內聯想法,透過 source: {text, attribution} 儲存確切文字,並在正文中引用。已知時,標明說話者/上下文/日期。僅保留實際可用的文字:將對話摘錄標示為摘錄,而非完整記錄;絕不發明訊息、雜湊或定位器。使用 knowledge_attach 附加提供的原始檔案,而非將改寫視為原始內容。使用者的信念應歸因於使用者。
  5. 使用共享的重試規則發佈,回讀正文/證據,並檢查精確查找或關鍵字發現。回報回傳的頁面與驗證過的儲存狀態。請勿排程提醒或執行筆記中提及的承諾。驗證預定的主體頁面已更新,或獨立記錄的主體連結正確解析,同時檢查其支持證據。
  6. 若擁有者明確要求自動回憶此上下文,且 knowledge_recall 可用,檢查發佈記錄的當前修訂/雜湊,並核准一個僅包含所要求觸發條件或專案範圍的簡短摘要。絕不核准已攝取的來源文字、來源主張、代理推論、機密或擁有者未要求的額外上下文。修正需要對替換記錄進行單獨核准。

將完整文件路由至 knowledge-ingest,或將會議路由至 knowledge-meeting-ingest。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

相關技能