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.
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-pipelineRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gbrain/skills/correction-pipeline ~/.gemini/antigravity-cli/skills/correction-pipelineAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install correction-pipeline in Antigravity CLI
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
ANo 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 →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
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.
