knowledge-source-ingest
它能做什么
它指导 AI 智能体反复从外部来源拉取新内容加入 Knowledge vault,同时记录哪些内容已经收录。它适合希望 vault 中源源不断地有新材料的人。
适用场景
- ✓想定期把聊天频道的新消息或帖子添加到 vault 的时候。
- ✓只需获取上次运行之后有变化的条目的时候。
- ✓来源中的某个条目已被删除,想让 vault 与之保持一致的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/extensions/knowledge/skills/knowledge-source-ingest/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用我们团队信息流中的新帖子持续更新我的 Knowledge vault,并跳过我们已保存的内容。”
每周 5 个新技能,1 分钟读完。
工作原理
技能用稳定的键来识别来源,并记录每次运行所涵盖的内容。之后的运行会把新列表与早先的快照进行比较,只添加、更新或移除有变化的内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Source Ingest Skill
Use this for bounded collections such as chat channels, issue streams, feeds, or
mailboxes where later runs can overlap prior coverage. Read
shared conventions,
publication, and the
manifest protocol. After acquisition, route
documents and conversations through knowledge-ingest, which uses
knowledge-entities for entity enrichment. Route meetings through
knowledge-meeting-ingest. This skill owns source identity and coverage; the
ingestion workflows turn the retained content into useful connected knowledge.
For creating recurring ingestion jobs, use knowledge-automation first.
Contract
- Resolve a stable provider/source key before reading content. Display names are labels, never identity.
- Maintain one canonical
sourcepage withsource_role: canonical,provider, andsource_key. Reuse it on every run. - For each bounded observation, preserve the generated manifest as an attachment on a
sourcepage withsource_role: snapshot, exact coverage, observation time, manifest hash, count, completeness, watermark, and dependency on the canonical source page. - Manifests retain stable item IDs and content hashes, not source text. Preserve original/exported content separately as evidence where authorized.
- Query prior snapshot pages for the same provider/source key before planning. Download their manifests, verify attachment hashes, and pass all overlapping snapshots to the planner. Do not rely on conversation memory.
- Reuse unchanged source bytes and existing records. Continue previously omitted enrichment from those retained sources when requested; an unchanged manifest does not mean entity enrichment already happened. Ingest added items. Reconcile changed items against existing pages/claims. Treat deletion as observed source state, not permission to erase Knowledge; correct or withdraw only when the evidence warrants it.
- A complete snapshot can establish absence inside its exact coverage. Partial or unknown snapshots cannot; unresolved missing IDs remain unresolved.
Procedure
- Inspect
knowledge_statusandknowledge_ontologyfor the intended vault scope and thesourcefields, then search Knowledge for the canonical source and prior snapshots by provider/source key. If an owner-private ingestion unexpectedly resolves to a conversation scope or an empty vault after a restart, stop before writing and restore the intended authorized scope; never infer that prior coverage is absent from the wrong scope. - Acquire a bounded export with an approved reader. For Discrawl, run
scripts/discrawl-normalize.mjswith its configured read-only archive, exact channel ID when known, and[since,before)RFC3339 bounds. The normalized payload includes stable author IDs plus archive-observed display fields. Preserve the raw JSONL, and create a separate line-stable readable transcript when human review or line citations are needed. - Generate a deterministic manifest with
scripts/source-manifest.mjs snapshot. Attach it before publishing the snapshot page; record the returned SHA-256. - Download all overlapping prior manifests and run
scripts/source-manifest.mjs plan. Inspect covered/uncovered intervals and the added/changed/deleted/unchanged/unresolved lists. - Test 3–5 substantive items or discussions, then ingest through
knowledge-ingest(orknowledge-meeting-ingestfor meetings). For chat, group related messages with their reply context; useknowledge-entitiesto enrich relevant people, companies, projects and concepts from their contributions. Carry supported developments into State, dated claims and source notes, not only a channel digest. Use stable external IDs in source citations and the retained snapshot as a dependency. Reuse its originals rather than uploading one copy per discussion. - Publish or update derived records, then publish the snapshot page. A snapshot is
completeonly when acquisition and manifest creation covered the declared interval; derived extraction may still be partial and must be reported as such. - Read back the canonical page, snapshot page, attachment, derived records, and source-dependent connections. Verify hashes and exact coverage.
Discrawl example
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 me
常见问题
它如何避免重复添加?
它为每次运行记录稳定的条目 ID 和内容哈希,因此能分辨哪些是新增或已变化的内容。
清单中是否保存了每个条目的全部文字?
没有。清单只保存 ID 和哈希,原始内容则在允许的情况下另行保存。
显示名称能用来识别来源吗?
不能。显示名称只是标签,因此技能改用稳定的提供方键。
详情
作者的原始描述
Incrementally ingest enumerable external sources into Knowledge with canonical source identity, retained snapshot manifests, overlap-aware diffing, and reconciliation of changed or deleted items. Includes a generic manifest tool and a read-only Discrawl adapter.
repo: openclaw/openclaw
热度
- GitHub 星标
- 394k
- 排名
- #33
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。