본문으로 건너뛰기
Skillpedia
리서치31k · #9253

correction-pipeline

하는 일

이 스킬은 에이전트의 메모나 지식 브레인에 있는 사실 수정을 처리하는 과정을 설정합니다. 저장된 지식에 의존하며 오류를 근원에서 고쳐야 하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트가 말한 사실을 고쳐서 모든 곳에 반영하고 싶을 때.
  • ✓브레인의 잘못된 페이지가 계속 같은 틀린 답을 만들 때.
  • ✓오류가 데이터에서 왔는지 추측에서 왔는지 에이전트가 찾기를 원할 때.

스킬 링크

https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/correction-pipeline/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/correction-pipeline/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 사무실이 리스본으로 이전했다고 하셨는데 그건 틀렸습니다. 어디에서 나왔는지 찾아서 고쳐 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 실수를 인정하고, 브레인에서 그 주장을 검색하며, 데이터 또는 모델 중 무엇이 원인인지 확인하고, 원본을 고칩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Correction Pipeline

Convention: see conventions/brain-first.md — Step 1 of the root-cause chain IS the brain-first lookup chain (search for exact tokens, query for concept-shaped questions) before anything else.

Convention: see _brain-filing-rules.md — corrections edit pages in place; the page stays filed by primary subject.

Trigger

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

Immediate Response

  1. Acknowledge the error. Don't defend. Don't explain. Just: "You're right. I got that wrong."
  2. Quote the specific wrong claim so the user can see you know exactly what was wrong.
  3. State the correct fact as the user gave it.

Root Cause Analysis (do THIS, not just a memory note)

Run these steps IN ORDER. Report findings to the user.

Step 1: Search the brain

gbrain search "<relevant terms>" --limit 10

For concept-shaped or synonym-phrased claims, escalate to gbrain query "<question>" (LLM expansion recovers phrasings search misses). To list every indexed page carrying the claim, use a keyword search (it pages every match); grep the checkout only for edits not yet synced:

gbrain search '"<wrong claim terms>"' --match keyword
BRAIN_DIR=$(gbrain config get sync.repo_path)
grep -ri "<wrong claim terms>" "$BRAIN_DIR/people/" "$BRAIN_DIR/companies/" "$BRAIN_DIR/concepts/" 2>/dev/null

Question: Is the wrong fact IN the brain? If yes → the brain is the contamination source. Fix the brain page (Step 6).

Step 2: Search memory files

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/null

Question: Is the wrong fact in memory? If yes → memory is the contamination source. Fix the memory file.

Step 3: Check SOUL.md and USER.md

grep -i "<relevant terms>" <workspace>/SOUL.md <workspace>/USER.md 2>/dev/null

Question: 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.

Step 4: Check the facts table

gbrain recall <entity-slug>            # facts about the subject, newest first
gbrain recall --grep "<claim terms>"   # substring filter when the entity is unclear

Is there a wrong fact with high confidence? Note its fact id.

Step 5: Classify the error

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

Step 6: Fix the source

  • BRAIN_ERROR: Edit the page file in the brain repo. Include [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.)
  • MEMORY_ERROR: Edit the memory file. Add a correction note with date.
  • SOUL_USER_ERROR: NEVER edit SOUL.md / USER.md directly — they are rendered files, and a hand edit is silently lost on the next render.
자주 묻는 질문

오류의 두 가지 종류는 무엇인가요?

페이지나 파일의 잘못된 데이터, 또는 부분적인 신호에서 생긴 환각 중 하나라고 스킬은 말합니다.

메모만 남기나요?

아닙니다. 스킬은 오류를 원인까지 추적해 원본에서 고치는 것을 요구합니다.

먼저 브레인을 검색하나요?

네. 첫 단계는 관련 용어로 브레인을 검색하는 것입니다.

상세 정보

작성자의 원본 설명

When the user corrects a factual error, root-cause it immediately. Don't just note the correction — trace the error to its source, fix the source, and prevent recurrence. Every factual error is either a data error (bad brain page, bad memory file, bad rendered SOUL/USER identity, bad facts row) or a hallucination (LLM confabulated from partial signals).

repo: garrytan/gbrain

인기도

GitHub 스타
31k
순위
#9253
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬