Community编程与开发github.com

知识源摄取

增量式摄取可枚举的外部来源进入知识库,具有规范的源身份、保留的快照清单、重叠感知差异比较以及变更或删除项目的协调功能。包含一个通用清单工具和一个只读的 Discrawl 适配器。

知识源摄取 是什么?

知识源摄取技能旨在处理有边界的集合(如聊天频道、问题流、订阅源或邮箱),支持后续运行与先前覆盖范围重叠的场景。其核心是维护规范化的源身份和快照清单:每次运行解析稳定的提供者/源键,保留一个规范的源页面,并为每次有界观测生成清单作为附件。清单记录稳定的项目 ID 和内容哈希,通过 `source-manifest.mjs plan` 命令与先前的快照进行差异比较,识别新增、变更、删除和未变化的项目。该技能遵守严格的契约:重用未变更的数据,协调变更的项目,并将删除视为观察到的源状态而非知识删除许可。支持的平台包括 Discord(通过 Discrawl 适配器)等,工作流程包含状态检查、数据获取、清单生成、计划制定、内容摄入(通过 `knowledge-ingest` 或 `knowledge-meeting-ingest`)以及验证。

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

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

源摄取技能

用于有边界集合,例如聊天频道、问题流、订阅源或邮箱,后续运行可能与先前覆盖范围重叠。请阅读共享约定、发布和清单协议。获取后,通过 knowledge-ingest 路由文档和对话,该工具使用 knowledge-entities 进行实体丰富。会议则通过 knowledge-meeting-ingest 路由。此技能拥有源身份和覆盖范围;摄入工作流将保留的内容转化为有用的关联知识。如需创建定期摄取任务,请先使用 knowledge-automation。

契约

  • 在读取内容之前,先解析一个稳定的提供者/源键。显示名称只是标签,而非身份标识。
  • 维护一个规范的 source 页面,包含 source_role: canonical、provider 和 source_key。每次运行都复用该页面。
  • 对于每次有界观测,将生成的清单作为附件保留在 source 页面上,该页面应具有 source_role: snapshot、精确覆盖范围、观测时间、清单哈希、数量、完整性、水印以及对规范源页面的依赖关系。
  • 清单保留稳定的项目 ID 和内容哈希,而非源文本。在授权情况下,将原始/导出的内容作为证据单独保存。
  • 在计划之前,查询同一提供者/源键的先前的快照页面。下载其清单,验证附件哈希,并将所有重叠的快照传递给计划器。不要依赖对话记忆。
  • 重用未更改的源字节和现有记录。继续执行先前未完成的丰富化操作,如果请求了保留源;清单未更改并不代表实体丰富化已经完成。摄取新增项目。协调变更项目与现有页面/声明。将删除视为观察到的源状态,而非删除知识的许可;仅在证据支持时进行更正或撤回。
  • 完整的快照可以在其精确覆盖范围内建立不存在性。部分或未知的快照则不能;未解决的缺失 ID 仍将保持未解决状态。

流程

  1. 检查 knowledge_status 和 knowledge_ontology 以了解预期的库作用域和 source 字段,然后按提供者/源键在知识库中搜索规范源和先前的快照。如果所有者私有摄取在重启后意外解析为对话作用域或空库,请在写入前停止并恢复预期的授权作用域;切勿推断先前覆盖范围位于错误的作用域中。
  2. 使用批准的读取器获取有界导出。对于 Discrawl,运行 scripts/discrawl-normalize.mjs,使用其配置的只读归档、已知的确切频道 ID 以及 [since,before) RFC3339 范围。标准化后的载荷包括稳定的作者 ID 以及归档观察到的显示字段。保留原始 JSONL,并在需要人类审查或行引用时创建单独的行稳定可读转录。
  3. 使用 scripts/source-manifest.mjs snapshot 生成确定性清单。在发布快照页面之前附加该清单;记录返回的 SHA-256。
  4. 下载所有重叠的先前清单并运行 scripts/source-manifest.mjs plan。检查已覆盖/未覆盖的间隔以及新增/变更/删除/未变化/未解决的项目列表。
  5. 测试 3-5 个实质性项目或讨论,然后通过 knowledge-ingest(或针对会议的 knowledge-meeting-ingest)进行摄取。对于聊天,将相关消息与其回复上下文分组;使用 knowledge-entities 从其贡献中丰富相关人员、公司、项目和概念。将支持的发展内容纳入状态、日期时间线和上下文反向链接,而不仅仅是频道摘要。在源引用中使用稳定的外部 ID,并将保留的快照作为依赖项。复用其原始内容,而不是为每个讨论上传一份副本。
  6. 发布或更新派生记录,然后发布快照页面。仅当获取和清单创建覆盖了声明的时间间隔时,快照才是 complete 的;派生提取可能仍是部分的,并且必须如此报告。
  7. 回读规范页面、快照页面、附件、派生记录和源依赖的连接。验证哈希和精确覆盖范围。

Discrawl 示例

node scripts/discrawl-normalize.mjs --config /approved/discrawl.yaml \
  --channel 1234567890 --since 2026-09-21T00:00:00-07:00 \
  --before 2026-09-28T00:00:00-07:00 --output messages.jsonl
node scripts/source-manifest.mjs snapshot --provider discord \
  --source-key discord:GUILD_ID:1234567890 \
  --coverage-start 2026-09-21T00:00:00-07:00 \
  --coverage-end 2026-09-28T00:00:00-07:00 \
  --input messages.jsonl --output manifest.jsonl.gz --summary snapshot.json
node scripts/source-manifest.mjs plan --current manifest.jsonl.gz \
  --previous prior-1.jsonl.gz --previous prior-2.jsonl.gz --output plan.json

请勿在知识库页面正文中包含凭据、归档路径或原始私有内容。不会创建调度程序、连接守护进程或插件拥有的摄取任务;技能和脚本支持授权的代理运行工作流。

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.

相关技能