Skip to content
Skillpedia
Tasks & projects394k · #28

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.md

Copy 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

Use this skill to help me: https://github.com/openclaw/openclaw/blob/main/extensions/knowledge/skills/knowledge-correct/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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_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

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills