Vibe Reflect And Compound
ash1794/vibe-engineering
Captures reusable knowledge after work is done — learnings from feedback or failures, resolved bugs (symptom, root cause, prevention), and recurring code patterns — into the project's persistent…
Traces a factual error the user points out back to its source (a brain page, a memory file, SOUL.md or USER.md, or a hallucination) and fixes that source instead of just noting the correction.
$ npx skills add garrytan/gbrain --skill correction-pipeline -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install garrytan/gbrain correction-pipeline --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/correction-pipeline .claude/skills/correction-pipeline && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "correction-pipeline" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/correction-pipeline into .claude/skills/correction-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correction-pipeline", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/garrytan/gbrain/tree/master/skills/correction-pipelineType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add garrytan/gbrain --skill correction-pipeline -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install garrytan/gbrain correction-pipeline --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/correction-pipeline .agents/skills/correction-pipeline && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "correction-pipeline" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/correction-pipeline into .agents/skills/correction-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correction-pipeline", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add garrytan/gbrain --skill correction-pipeline -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install garrytan/gbrain correction-pipeline --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/correction-pipeline .cursor/skills/correction-pipeline && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "correction-pipeline" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/correction-pipeline into .cursor/skills/correction-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correction-pipeline", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/garrytan/gbrain.git --path skills/correction-pipeline--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add garrytan/gbrain --skill correction-pipeline -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install garrytan/gbrain correction-pipeline --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/correction-pipeline .gemini/skills/correction-pipeline && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "correction-pipeline" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/correction-pipeline into .gemini/skills/correction-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correction-pipeline", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install garrytan/gbrain correction-pipelineInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add garrytan/gbrain --skill correction-pipeline -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/correction-pipeline .github/skills/correction-pipeline && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "correction-pipeline" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/correction-pipeline into .github/skills/correction-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correction-pipeline", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add garrytan/gbrain --skill correction-pipeline -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install garrytan/gbrain correction-pipeline --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/correction-pipeline .opencode/skills/correction-pipeline && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "correction-pipeline" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/correction-pipeline into .opencode/skills/correction-pipeline/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correction-pipeline", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
correction-pipelineTraces a factual error the user points out back to its source (a brain page, a memory file, SOUL.md or USER.md, or a hallucination) and fixes that source instead of just noting the correction.
Any factual error the user identifies triggers this pipeline, with no exceptions and no just noting it for later. The agent first acknowledges the error plainly, quotes the specific wrong claim and states the correct fact as given, then runs root-cause steps in order and reports what it finds at each one.
It searches the brain with gbrain search and, for concept-shaped claims, gbrain query, and greps the brain repository's people, companies and concepts folders directly for the wrong terms; if the wrong fact is there, the brain is the contamination source and gets fixed. It then greps the harness's always-loaded memory files, and checks SOUL.md and USER.md for a misleading passage, noting that on gbrain installs those files are rendered from a bootstrap answer bank rather than edited directly, so the underlying answer must be fixed instead of the rendered file. A routing-eval.jsonl file is included for evaluating this routing behavior.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit fc54831. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Correction Root-Cause Pipeline loads about 3.4k tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 1,488 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from garrytan/gbrain at commit fc54831, republished under its MIT licence (© garrytan). 1,488 words, ~3,375 tokens.
.claude/skills/correction-pipeline/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Convention: see conventions/brain-first.md — Step 1 of the root-cause chain IS the brain-first lookup chain (
searchfor exact tokens,queryfor concept-shaped questions) before anything else.Convention: see _brain-filing-rules.md — corrections edit pages in place; the page stays filed by primary subject.
ANY factual error the user identifies. No exceptions. No "I'll note that."
(Routing here is a harness convention, not a mechanical guarantee — but once this skill is in play, the no-exceptions contract above is the discipline.)
Run these steps IN ORDER. Report findings to the user.
gbrain search "<relevant terms>" --limit 10For concept-shaped or synonym-phrased claims, escalate to gbrain query "<question>" (LLM expansion recovers phrasings search misses). Also grep
the brain repo checkout directly — resolve it once from config:
BRAIN_DIR=$(gbrain config get sync.repo_path)
grep -ri "<wrong claim terms>" "$BRAIN_DIR/people/" "$BRAIN_DIR/companies/" "$BRAIN_DIR/concepts/" 2>/dev/nullQuestion: Is the wrong fact IN the brain? If yes → the brain is the contamination source. Fix the brain page (Step 6).
Grep the harness's always-loaded memory files (e.g. the workspace MEMORY.md
and any memory/*.md companions — the exact location depends on your
harness):
grep -ri "<wrong claim terms>" <memory files> 2>/dev/nullQuestion: Is the wrong fact in memory? If yes → memory is the contamination source. Fix the memory file.
grep -i "<relevant terms>" <workspace>/SOUL.md <workspace>/USER.md 2>/dev/nullQuestion: Is there a misleading passage that could have led to the wrong inference? SOUL.md and USER.md are in every context window — a vague or ambiguous line here propagates into every session.
Important: on gbrain installs these files are RENDERED from the bootstrap
answer bank (state/interview.json). Note the finding here; the fix goes
through the answer bank in Step 6, never through a direct edit.
gbrain recall <entity-slug> # facts about the subject, newest first
gbrain recall --grep "<claim terms>" # substring filter when the entity is unclearIs there a wrong fact with high confidence? Note its fact id.
| Classification | Description | Fix surface |
|---|---|---|
| BRAIN_ERROR | Wrong fact exists in a brain page | Edit the page in the brain repo, commit, re-sync |
| MEMORY_ERROR | Wrong fact exists in memory files | Fix the memory file |
| SOUL_USER_ERROR | Misleading passage in SOUL.md or USER.md | Fix the ANSWER BANK, re-render — never the rendered file |
| FACTS_TABLE_ERROR | Wrong fact in the gbrain facts table | recall → forget <fact-id> → remember the correction |
| HALLUCINATION | No source — LLM confabulated from partial signals | Name the contamination vector (what partial signals led to it), write a guard fact |
| STALE_DATA | Fact was once true but is no longer | Update the source with current truth; supersede the stale fact |
| CROSS_CONTAMINATION | Correct fact about person A attributed to person B | Fix attribution in the source — on BOTH entities |
[Source: user correction, YYYY-MM-DD] on the corrected line. Commit, then
gbrain sync so the DB reflects the fix. (Editing the DB row without the
repo file — or vice versa — leaves the two out of agreement until the next
sync overwrites one of them.)gbrain bootstrap interview --set KEY "corrected value" # verbatim, user's words
gbrain bootstrap interview --show # read back
gbrain bootstrap interview --status # get the confirm hash
gbrain bootstrap interview --confirm <hash>
gbrain bootstrap render --only SOUL.md --force # repeat per affected fileskills/soul-audit/SKILL.md — route through it for
anything beyond a single-key fix.gbrain recall <entity-slug> # find the fact id
gbrain forget <fact-id> # expire the wrong fact
gbrain remember "<correct fact>" \
--provenance "user correction, YYYY-MM-DD" --entity <entity-slug>gbrain remember "WRONG: <what was said>. RIGHT: <what is true>. Guard: <instruction to prevent recurrence>" \
--provenance "user correction, YYYY-MM-DD (hallucination guard)" --entity <entity-slug>forget + remember with the
current truth and fresh provenance).The wrong fact may have propagated into OTHER brain pages, synthesis output, or memory files.
grep -ri "<wrong claim terms>" "$BRAIN_DIR" 2>/dev/null | grep -v ".git"
gbrain search "<wrong claim terms>" --limit 20Fix ALL instances, not just the first one found. Re-sync after repo edits.
Short report:
**Error:** [what was wrong]
**Root cause:** [BRAIN_ERROR | HALLUCINATION | etc.]
**Source:** [specific file/line or fact id, or "no source — confabulated from X"]
**Fixed:** [what was changed, where]
**Propagation:** [other files fixed, or "no propagation found"]| Tier | Description | Action |
|---|---|---|
| S1 — Identity error | Wrong facts about the user's family, heritage, history, core identity | Fix immediately. These contaminate EVERYTHING — every synthesis, every book mirror, every conversation. |
| S2 — Entity error | Wrong facts about a person, company, deal in the brain | Fix brain page, check propagation |
| S3 — Context error | Wrong inference about the user's current state, feelings, situation | Guard fact via remember. Usually hallucination. |
| S4 — Minor factual | Wrong date, wrong number, wrong detail | Fix source, no propagation check needed |
| Pattern | Example | Guard |
|---|---|---|
| Projecting therapeutic narratives | "You've been avoiding the hard conversation with your cofounder" (no evidence) | Check calendar/behavior data before making claims about the user's actions or state |
| Autocorrecting names to famous people | A contact named alice-example Cho silently becomes the similarly-named celebrity | The user's people outrank world-famous people — resolve against people/ first |
| Confusing takes with facts | Dumping takes-table beliefs into facts | Takes = other people's beliefs. Facts = the user's personal knowledge. |
| Enumerative claims from session context only | "You've worked at two companies" — missing the one only recorded in the brain | NEVER make enumerative claims ("all your X," "every Y," "the three times you Z") without searching the brain first. Session context is always incomplete. |
| Missing data in always-loaded files | A core fact lives only in a brain page, not in USER.md/MEMORY.md, so every session re-derives it wrong | When a correction reveals a gap in an always-loaded file, ADD the missing data through the proper surface (answer bank for rendered files, direct edit for memory files) so it's in every future context window |
This skill is REACTIVE — it fires when the user catches an error. The shipped contradictions probe is the PROACTIVE side of the same discipline: it finds intra-brain conflicts before the user does.
gbrain eval suspected-contradictions # run the probe
gbrain find-contradictions # read the latest run's findingsIf a correction reveals a class of conflict (e.g. two pages disagreeing about a date), run the probe afterward — the same contamination pattern may exist elsewhere in the brain.
This skill guarantees:
forget/remember for facts rows; answer bank + re-render
for SOUL/USER — never a direct edit to a rendered file)gbrain search)The skill's output is the Step 8 root-cause report delivered inline during the conversation, plus all source fixes applied (brain-repo edits committed and re-synced; facts rows expired/superseded; identity files re-rendered from the answer bank).
skills/maintain/SKILL.md — PROACTIVE brain health (stale pages, orphans,
citations, doctor). This skill is REACTIVE: a specific user correction gets
traced to its contamination source. If nobody said "that's wrong," it's
maintain's territory.gbrain eval suspected-contradictions /
gbrain find-contradictions) — PROACTIVE intra-brain conflict detection.
Complementary, not overlapping: the probe finds conflicts between two brain
sources; this skill starts from a correction supplied by the user.skills/soul-audit/SKILL.md — the full identity re-interview surface. This
skill DELEGATES to it for SOUL_USER_ERROR fixes; it never re-implements the
interview or render flow.skills/citation-fixer/SKILL.md — citation FORMAT compliance. Correcting a
claim's truth is this skill; fixing how a true claim is cited is
citation-fixer.Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
forget <fact-id> / remember returns fact_not_found or fact_already_expired: re-run recall to get the current fact id; never forget by guessing an id.revision_conflict: re-read the page, apply the correction to the current text, and save with the new revision.write_pending (exit 10): the correction is accepted but not committed; poll gbrain write-request <request_id> before telling the user it is fixed.© garrytan, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/correction-pipeline of garrytan/gbrain.
Open the folder on GitHubat commit fc54831
Correction Root-Cause Pipeline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Correction Root-Cause Pipeline this skillgarrytan/gbrain | 31k | — | ~3.4k | Automated safety check: Pass | MIT | |
| Vibe Reflect And Compoundash1794/vibe-engineering | 163 | — | ~864 | Automated safety check: Pass | MIT | |
| Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills | 21k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Beads Task Memorygastownhall/beads | 28k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Compound Learning WriterEveryInc/compound-engineering-plugin | 25k | — | ~2k | Automated safety check: Pass | MIT | |
| Paseo Committeegetpaseo/paseo | 20k | 1 repos | ~496 | Automated safety check: Pass | Custom licence |
ash1794/vibe-engineering
Captures reusable knowledge after work is done — learnings from feedback or failures, resolved bugs (symptom, root cause, prevention), and recurring code patterns — into the project's persistent…
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
gastownhall/beads
Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.
EveryInc/compound-engineering-plugin
Records one solved and verified problem as a durable learning in the repository, but only when the reasoning is not already clear from the final code, tests or docs.
getpaseo/paseo
Forms a two-agent committee with contrasting profiles to analyze a stuck problem in parallel, reconcile their views and return a consensus plan without editing files.
EveryInc/compound-engineering-plugin
Audits a repo's stored learnings against the current codebase, fixes stale, overlapping or superseded docs and reports on every document.
garrytan/gbrain
Searches and writes a company-wide knowledge brain through the gbrain CLI, so durable decisions and facts about people, projects and history stay findable beyond one session.
garrytan/gbrain
Ingest links, articles, tweets, and ideas into the brain. An agent skill from garrytan/gbrain.
garrytan/gbrain
Sends what your notes already know about a topic to Perplexity, so the cited web search reports only what is new, such as entity updates or deal changes.
garrytan/gbrain
Migrate a brain from gbrain-base (or any pack) to gbrain-base-v2's 14-canonical-type taxonomy via gbrain onboard --check + the unify-types Minion handler.
garrytan/gbrain
Run gbrain skillpack-check to produce an agent-readable JSON health report for the gbrain install.
garrytan/gbrain
Lift a proven skill from a host repo (e.g. An agent skill from garrytan/gbrain.
Categories
Traces a factual error the user points out back to its source (a brain page, a memory file, SOUL.md or USER.md, or a hallucination) and fixes that source instead of just noting the correction. Any factual error the user identifies triggers this pipeline, with no exceptions and no just noting it for later. The agent first acknowledges the error plainly, quotes the specific wrong claim and states the correct fact as given, then runs root-cause steps in order and reports what it finds at each one.
Correction Root-Cause Pipeline fits situations like: the user points out that the agent stated a fact incorrectly; tracing a wrong claim back to a stale brain page or memory file; fixing the root cause of a repeated factual mistake instead of only correcting it once.
Run `npx skills add garrytan/gbrain --skill correction-pipeline -a claude-code`. Or copy the skill folder (skills/correction-pipeline in garrytan/gbrain) into .claude/skills/correction-pipeline in your project. Claude Code loads it when a task matches its description.
Run `npx skills add garrytan/gbrain --skill correction-pipeline -a codex`. Or copy the skill folder (skills/correction-pipeline in garrytan/gbrain) into .agents/skills/correction-pipeline in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add garrytan/gbrain --skill correction-pipeline -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/correction-pipeline, .gemini/skills/correction-pipeline, .github/skills/correction-pipeline and .opencode/skills/correction-pipeline in your project.
SKILL.md names no scripts, command-line tools or credentials: Correction Root-Cause Pipeline is instructions for the agent only. Our summary lists: The gbrain command line tool and its configured brain repository.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Correction Root-Cause Pipeline is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Correction Root-Cause Pipeline: Vibe Reflect And Compound (ash1794/vibe-engineering, 163 stars), Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars), Beads Task Memory (gastownhall/beads, 28k stars) and Compound Learning Writer (EveryInc/compound-engineering-plugin, 25k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
garrytan (a GitHub user) maintains it in garrytan/gbrain, which has 30,701 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on October 9, 2026.
Source: garrytan/gbrain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.