Community程式設計與開發github.com

知識實體

在授權的資料攝取或實體更新過程中,解析並豐富知識庫中的人物、公司、專案與概念,提供有來源的狀態、時間軸與反向連結。唯讀的身份識別問題不會觸發寫入操作。

知識實體 是什麼?

此技能可自動化知識庫中實體的解析與豐富流程,適用於 Claude Code 等 AI 代理平台。當代理程式需要從原始資料中識別人物、公司、專案或概念時,此技能會引導其遵循六個步驟:識別實體、解析身份、收集信號、撰寫頁面、交叉引用與驗證。其核心原則是僅在確實需要時才建立頁面,每個事實都需附上內聯引用,並且絕不覆寫使用者撰寫的評估。技能透過一組共享參考文件(位於 GitHub)來運作,確保跨知識技能的流程一致性。若另一個知識技能已將代理帶至此處,則不會重新讀取已讀過的參考文件。此技能支援批量操作、證據修復,並通過發布回條確保每次寫入皆有記錄。最終會回報告解析出的 ID、建立/更新/重複使用的頁面、使用的來源、未解析或部分解析的身份、矛盾之處以及跳過的工作,讓使用者或呼叫者完全掌握狀態。

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

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

在你喜歡的 AI 中提問

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

說明文件

解析與豐富實體

在提問之前先找出實體是誰或什麼,判斷它是否值得建立一個頁面, 然後撰寫一份有來源的個人檔案並建立雙向連結。僅在需要時才讀取參考文件。 各知識技能共享相同的參考文件;如果另一個知識技能將您帶到這裡, 請不要重新讀取您已讀過的內容。

  • 設定:始終優先讀取(狀態、本體論、搜尋)
  • 身份:解析實體;判斷是否建立頁面
  • 豐富:層級、要提取的內容、外部查詢、批次執行
  • 個人檔案:頁面結構、建立或更新
  • 撰寫:撰寫頁面散文前的注意事項
  • 來源:保留來源並引用它們
  • 斷言:關於該實體的聲明與關係
  • 發布:頁面寫入與批次處理
  • 復原:任何不確定、被拒絕或衝突的寫入
  • 驗證:驗證與報告
  • 證據修復:僅用於授權的證據集修復

合約

  • 在詢問使用者或進行外部搜尋之前,先檢查知識庫。僅在有假設時才提問。
  • 無存根或佔位符:每個頁面的第一行都應說明它是誰或什麼。
  • 每個事實都附有內聯引用;每個豐富後的頁面都應連結到其來源,且來源也應連結回來。
  • 根據重要性調整投入。若不確定,就不要建立頁面。
  • 絕不覆寫使用者撰寫的評估;標記矛盾並附上雙方的引用。

步驟

1. 識別實體

列出來源中的人物、公司、專案與概念。將實際參與者與僅被提及的第三方分開。

完成條件: 每個實體都被標記為參與者、實質性或附帶性。

2. 解析每一個

按照身份中的解析鏈進行。重複使用現有頁面的 ID。根據頁面建立規則決定建立、更新或跳過,並選擇最匹配的已宣告本體類型。

完成條件: 每個實體都有現有 ID、一個帶類型的建立決定,或已被跳過;模糊身份被記錄為部分或未解析。

3. 收集信號

從來源中提取紋理,對於關鍵與顯著實體,請查找缺少的內容(豐富)。僅有支援的主張才繼續處理;推論保持在它們出現的地方並標記清楚。

完成條件: 每個實體都有其支援的事實與紋理,並附有引用,或說明為什麼沒有這些內容。

4. 撰寫

  • 建立: 引言、狀態與第一行時間軸,以及僅有證據支援的選擇性章節(個人檔案)。
  • 更新: 添加時間軸行;僅在狀態主題的意義發生變化時才編輯它;使用 knowledge_edit_body 進行局部編輯。
  • 僅使用已宣告的本體欄位;忽略未知值。
  • 為獨立有用的斷言建立聲明與有證據的關係(斷言)。Markdown 連結不會建立關係。

完成條件: 每個計劃中的寫入操作都有已發布的回條。

5. 交叉引用

使用觀察到的路徑建立來源 → 實體與實體 → 來源的連結。當新的信號對它們很重要時,更新相關頁面:來自一個人物的公司頁面,以及反向;來自一個子功能的父專案頁面。

完成條件: 對於每個已連結的實體,兩個方向的連結都存在。

6. 驗證

執行驗證,並附上雙向的計劃 expectedLinks、關聯與關係端點。根據撰寫與無佔位符規則,重新讀取每個已更改的頁面。

完成條件: 結構性檢查通過,並且每個已更改的頁面讀起來都像一份真實的簡報。

報告

向呼叫者或使用者回傳已解析的 ID、建立/更新/重複使用的頁面、使用的來源、未解析或部分的身份、矛盾之處以及跳過的工作。

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.

相關技能