Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

correction-pipeline

Skill by garrytan

Traces a user-reported factual error to its source and fixes that source. It is for users of the gbrain tooling who want errors fixed at the root, not just noted.

  • Score 94
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install correction-pipeline

Built from the published package, never by AI.

git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/correction-pipeline ~/.claude/skills/correction-pipeline

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install correction-pipeline in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The correction-pipeline skill runs when a user says something is wrong. The assistant apologises briefly, quotes the wrong claim, and states the correct fact. It then runs a fixed sequence of searches across the brain repo, memory files, SOUL.md and USER.md, and the gbrain facts table. Each error is classified as a brain, memory, identity, facts table, hallucination, stale data or cross-contamination error, and each class has its own fix surface.

After the source is fixed, the skill searches for propagation into other pages and files and reports the root cause, source and changes to the user. The source describes it as reactive: it acts on errors the user catches, while a separate contradictions probe finds conflicts proactively. It is written for people who keep a personal knowledge base with gbrain.

Written from the project's SKILL.md and checked against it.

What it can do

  • Immediate responseAcknowledges the error, quotes the wrong claim and states the correct fact without defending.
  • Brain searchSearches the brain with gbrain search and gbrain query to find where the wrong fact lives.
  • Memory and identity checksGreps memory files, SOUL.md and USER.md for the wrong claim and any misleading passage.
  • Facts table checkUses gbrain recall to find the fact id of a wrong fact held with high confidence.
  • Error classificationSorts each error as brain, memory, SOUL/USER, facts table, hallucination, stale data or cross-contamination.
  • Source fixesEdits the brain page, memory file, answer bank or facts row that holds the error, not a rendered copy.
  • Propagation checkSearches the whole brain for other copies of the wrong claim and fixes every instance.
  • Severity tiersRanks errors from S1 identity errors to S4 minor factual errors to set how urgently they are fixed.
  • Root cause reportGives the user a short report with the error, root cause, source, fix and propagation result.

What you need

  • gbrain tooling with the brain repo and facts table

Try asking

  • That's wrong. Root-cause where you got that fact from
  • You got that wrong, I never said I worked at that company
  • Where did you get that? Trace it and fix the source

Good to know

  • Routing to this skill is a harness convention, not a mechanical guarantee.
  • SOUL.md and USER.md are rendered from the bootstrap answer bank and must not be edited directly.
  • Built around gbrain commands and layout, so other setups need their own paths.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/correction-pipeline/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md14 KB
  • routing-eval.jsonl1 KB

Alternatives to correction-pipeline

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

correction-pipeline: common questions

What happens when I tell the assistant a fact is wrong?

The skill traces the error to its source, such as a brain page, memory file, identity file or facts row, and fixes it there. It then reports what was wrong, why, and what changed.

Does it only fix the one place the error appeared?

No. After fixing the source, it searches the brain, memory files and synthesis output for other copies of the wrong claim and fixes every instance.

Can I edit SOUL.md or USER.md directly to fix a mistake?

The source says no. Those files are rendered, so a hand edit is lost on the next render. Fixes go through the bootstrap answer bank and a re-render instead.

How do I install correction-pipeline?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is correction-pipeline free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is correction-pipeline safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to correction-pipeline?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

correction-pipeline Install

Add to stack

Loading.