knowledge-correct
What it does
It guides an AI agent through correcting or withdrawing particular facts, relationships, or pages in a Knowledge vault when you say they are wrong. It is for people who want to fix mistakes in their saved knowledge.
When to use it
- ✓When you tell your agent that a saved fact in your Knowledge vault is wrong.
- ✓When you want to withdraw a specific claim or link from the vault.
- ✓When a page in your vault contains a statement that has since changed and needs replacing.
Skill link
https://github.com/openclaw/openclaw/blob/main/extensions/knowledge/skills/knowledge-correct/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“The claim about our launch date in my Knowledge vault is wrong, so please correct it to next Monday.”
5 new skills a week. 1 minute to read.
How it works
The skill finds the exact saved record, checks its current version, and applies the correction while keeping the original source. It then looks at anything that depends on the record so nothing is left inconsistent.
Technical content (original SKILL.md)
Original text by the author, straight from 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_correctwith the exact ID, observedexpectedRevisionandexpectedHash, reason, observed vault UUID and ontology fingerprint, and a completereplacementof the samekind. 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_supersedewith the existing claim asbyand the earlier claims' fences insupersededinstead 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 andundo: true. - Withdrawal without a replacement: call
knowledge_withdrawwith 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_mergewith 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; passtitleto rename it andbodywhen 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 withknowledge_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
FAQ
Does it erase the old record?
No. It corrects or withdraws the record while keeping its history, and it does not physically erase it.
Will it fix contradictions on its own?
No. Contradictions alone do not trigger a change, and it acts only on the correction you request.
What if the record changed since I last looked?
The skill rereads the record and reconciles your request before acting, rather than changing something that has moved.
Details
Original description by the author
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
Popularity
- GitHub stars
- 394k
- Ranking position
- #28
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
Similar skills
brainstorming
311kHelps your agent work out what you really want before building anything new, by asking focused questions and laying out clear options.
to-spec
310kWrites up what you have already discussed as a structured spec and posts it to your issue tracker, without a long list of questions first.
to-tickets
310kSplits a plan into small, separate tasks, and notes which tasks must be finished before others can start.