跳到正文
Skillpedia
任务与项目394k · #28

knowledge-correct

它能做什么

当你说某些事实、关系或页面有误时,它指导 AI 智能体修正或撤回 Knowledge vault 中的特定内容。它适合希望修正已保存知识中错误的人。

适用场景

  • ✓你告诉智能体 Knowledge vault 中某条已保存的事实有误的时候。
  • ✓想从 vault 中撤回某条特定论断或链接的时候。
  • ✓vault 中某个页面的说法已经改变,需要替换的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/extensions/knowledge/skills/knowledge-correct/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/extensions/knowledge/skills/knowledge-correct/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我 Knowledge vault 中关于发布日期的论断有误,请把它改成下周一。”

每周 5 个新技能,1 分钟读完。

工作原理

技能找到准确的已保存记录,检查其当前版本,并在保留原始来源的同时应用修正。随后,它会检查所有依赖该记录的内容,确保不会留下不一致之处。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Correct saved knowledge through agent tools

Read shared conventions and publication before writes.

Identify the owning record

Use a supplied structured record/claim ID and revision as the primary target, not just its display label. Read knowledge_record with metadata and evidence; confirm its current revision/hash. A referenced revision that changed requires rereading and reconciling the request, not silently acting on a new assertion. Without an exact reference, use lookup/search, inspect candidates, and ask only when the requested target or correction remains materially ambiguous.

Distinguish an erroneous saved assertion from an unsupported answer, conflicting source statements, and a fact that changed over time. Contradiction alone does not authorize supersession; the one non-user case is a standing statement its own holder explicitly replaced, per publication. Do not manufacture a stored “guard fact” when no record exists or treat a retraction as evidence for its opposite.

Apply the right operation

  • Claim or explicit relationship correction: call knowledge_correct with the exact ID, observed expectedRevision and expectedHash, reason, observed vault UUID and ontology fingerprint, and a complete replacement of the same kind. Replacement fields use the create-claim/create-relationship contract; there is one outer request ID, not a second replacement request. Preserve supported context, attribution, precise dates and evidence; remove or revise what the correction actually changes. The operation publishes the replacement and supersedes the old assertion together, with links in both directions.
  • Replaced by a claim that already exists: call knowledge_supersede with the existing claim as by and the earlier claims' fences in superseded instead of correcting, which would write a duplicate of the replacement. The claims must share a linked page. Undo a mistaken supersession with the same call and undo: true.
  • Withdrawal without a replacement: call knowledge_withdraw with the exact ID, revision/hash, reason and vault UUID. It accepts pages, claims and explicit relationships. An edge is identified by its own ID, not its endpoint pair. It preserves original evidence/history and is not file deletion.
  • Page prose correction: use ordinary revision-fenced knowledge_save_page, preserving unrelated authored material and sources. Page corrections are revisions, not replacement entity identities.
  • Two pages for one entity: call knowledge_merge with the surviving page, the duplicate, both pages' current revision/hash and a reason. Keep the page with the fuller identity (real name, more connections) as the survivor; pass title to rename it and body when the combined page should say more than the survivor's current prose. The duplicate's ID, title, aliases, claims, relationships and links then resolve to the survivor; nothing is corrected one by one. Undo a mistaken merge with knowledge_unmerge.

An explicit user correction can supply evidence: retain their exact statement with knowledge_attach, attribute it to the user, and reference its verified locator. Use assertion_origin: user_belief to distinguish a user assertion from an independently sourced statement; do not claim documentary verification. Agent inference still needs retained premise evidence, not an invented quote.

Resolve a handle or mistaken identity

Use knowledge-entities to find and read the handle profile, the established person and their connected records. Retain the user's exact identification as evidence. Update supported aliases and identity context on the existing pages; preserve unrelated content and describe the connection to the established person. Use that person's existing ID for future enrichment. When the handle already has its own page, merge it into the established person's page with knowledge_merge instead of writing a pointer page, withdrawing it, or correcting its claims one by one. Merge only on identity evidence (the user's statement, a self-introduction, a shared stable account ID), never on name similarity; knowledge_diagnostics mergeCandidates lists pages to check, not pages to merge. Retain the identity evidence with knowledge_attach and pass it as evidence.

Inspect affected prose, claims and relationships, including source notes, within the correction scop

常见问题

它会删除旧记录吗?

不会。它会修正或撤回记录,同时保留其历史,并不会物理删除。

它会自行修复相互矛盾的内容吗?

不会。仅有矛盾不会触发修改,它只根据你提出的修正要求行动。

如果记录在我上次查看后发生了变化怎么办?

技能会重新读取记录,并在行动前核对你的请求,而不会修改已经变动的内容。

详情

作者的原始描述

Correct or withdraw specific saved Knowledge claims, explicit relationships, or pages at the user's request, preserving provenance and inspecting affected knowledge. Use for “that's wrong”, “retract that”, or a Knowledge chat reference; not automatic contradiction resolution or physical erasure.

repo: openclaw/openclaw

热度

GitHub 星标
394k
排名
#28
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能