brain-ingest-gate
Fungsinya
Skill ini menetapkan gerbang kualitas untuk menambahkan konten ke basis pengetahuan bersama. Ini untuk tim yang memelihara wiki atau basis perusahaan dan menginginkan halaman yang bersih dan tidak duplikat.
Kapan dipakai
- โSaat Anda mengimpor sekumpulan dokumen ke dalam basis pengetahuan.
- โSaat Anda ingin menambahkan halaman baru tentang seseorang, perusahaan, atau proyek.
- โSaat agent akan menulis konten baru dan Anda ingin memeriksa halaman yang sudah ada terlebih dahulu.
Link skill
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/brain-ingest-gate/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSebelum menambahkan catatan rapat ini ke basis pengetahuan, bisakah Anda memeriksa apakah topik yang sama sudah punya halaman?โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mencari entitas bernama lebih dulu, lalu memeriksa duplikat, dan memutuskan apakah akan menulis halaman baru, menautkan ke yang sudah ada, atau melewatinya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Brain Ingest Gate โ Resolve and Dedup Before Anything Enters the Brain
Convention: see conventions/brain-first.md โ the lookup chain (
gbrain entityโsearchโqueryโget) is the same chain this gate runs before every write.Convention: see _brain-filing-rules.md โ when the gate's verdict is "write", the primary subject picks the directory.
Convention:
skills/conventions/quality.mdowns the cross-cutting page rules (citations, Iron Law back-linking, notability) โ every page the gate lets through follows them. Gate-specific delta: the gate only decides write/link/skip; the admitting skill applies the quality rules on write.
The Rule
No content enters the brain without passing this gate. A raw cp or mv
into the brain repo is a bug.
One insight, one place. If it already exists, link to it โ don't clone it.
Before any new page is written (file migration, bulk import, manual
gbrain put, subagent output), two checks run in order:
- Named-Entity Resolution Gate โ is this about a named thing that already has a page under its chosen name?
- Dedup Gate โ does the brain already state this insight somewhere?
Scope honesty: this gate is a routing convention โ the harness resolves it into context when an ingest-shaped intent matches, and a well-behaved agent follows it. Nothing in the gbrain runtime mechanically blocks an unenriched or duplicate write if the skill never loads.
Why gbrain needs this gate
The native pipeline does NOT do semantic dedup for you:
gbrain import/gbrain syncskip only matching frontmatter IDs. Identical content under a different slug or ID indexes twice โ every duplicate becomes a second search hit competing with the canonical page.gbrain capture's dedup is a 24-hour exact content-hash โ it catches re-captures of identical bytes, not the same insight reworded.- The
rememberverb dedupes facts, not pages.
Semantic dedup and named-entity resolution are this skill's job, in full.
When This Gate Fires
- File migration โ moving files already in the workspace into the brain repo ("move this to brain").
- Bulk imports โ batch moves of any kind into brain directories, BEFORE
gbrain syncorgbrain importindexes them. For batches, also read conventions/test-before-bulk.md: gate 3-5 items and inspect the decisions before running the rest. - Manual writes โ
gbrain putorgbrain captureof rich content, or direct file writes into the brain repo. - Subagent output โ background agents writing notes or pages into the brain.
What This Gate Owns vs Delegates
This skill is a gate, not a pipeline. It owns the pre-write checks below. Everything downstream of a "write" verdict is delegated to shipped skills โ do not restate their steps here or inline:
| Concern | Delegate to |
|---|---|
| Routing new external content (meetings, articles, media) | ingest |
| Entity detection + notability on inbound content | signal-detector |
| Creating/updating person + company pages, tiered effort, backlinks | enrich |
| Concept pages, tiering, cluster synthesis | concept-synthesis |
| Back-link enforcement (Iron Law) | conventions/quality.md |
| Which directory the page lands in | _brain-filing-rules.md |
Named-Entity Resolution Gate (runs FIRST)
Fires whenever the content is about a NAMED project, place, company, person, or anything someone "wants to build / found / make."
Vector similarity alone cannot be trusted to catch named-entity dupes: a page stored under its chosen NAME will not embed close to the generic English phrase someone happens to describe it with. The classic failure: a search for a descriptive phrase scores the canonical named page below the prose floor, so a duplicate stub gets written on top of a years-old page. Stored by named meaning; retrieval attempted by literal generic phrase.
The rules
Resolve registry-first, not by the generic phrase. gbrain's native registry is the entity surface:
gbrain entity "<name>" # zero-LLM card: page, aka list, near-miss suggestionsA card hit means the page exists โ STOP, link, don't cl
Pertanyaan umum
Apa yang diputuskan gerbang ini?
Gerbang ini memutuskan apakah konten sebaiknya ditulis, ditautkan ke halaman yang sudah ada, atau dilewati.
Apakah menyalin file langsung?
Tidak. Skill ini menyatakan salinan mentah ke dalam repositori basis pengetahuan adalah bug, sehingga semua konten harus melewati gerbang.
Siapa yang menangani pengayaan?
Gerbang mengelola pemeriksaan duplikat, dan skill ingesti yang disertakan menangani pengayaan.
Detail
Deskripsi asli dari pembuat
Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new page lands, resolve named entities registry-first (a vector score is a floor for prose, never a gate for named things), then run the read-the-top-hit dedup decision tree (clear-dup / plausible-dup / clear). Owns dedup; delegates enrichment to the shipped ingestion skills. Routing convention, not an operation-boundary enforcement.
repo: garrytan/gbrain
Popularitas
- Bintang GitHub
- 31k
- Peringkat
- #9248
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
gbrain
31kMemungkinkan agent Anda mencari fakta tentang orang, proyek, dan keputusan di basis pengetahuan bersama perusahaan, serta menyimpan catatan penting.
brain-link-discipline
31kMemastikan agent Anda menyertakan tautan yang berfungsi ke setiap halaman basis pengetahuan yang dilaporkannya, dalam pesan yang sama, agar Anda bisa langsung membukanya.
brain-ops
31kMemberi agent Anda rutinitas inti untuk basis pengetahuan: memeriksa konteks yang ada terlebih dahulu, menyimpan catatan eksplisit beserta sumbernya, dan menautkan halaman terkait.
concept-synthesis
31kMengubah banyak halaman konsep yang tersebar menjadi peta ide berjenjang tanpa duplikat, yang menunjukkan perkembangan setiap ide dari waktu ke waktu.
Skill serupa
graincrawl
394kMemungkinkan agent Anda mencari catatan dan transkrip rapat Granola yang tersimpan, memeriksa seberapa baru datanya, dan menghitungnya dalam periode tertentu.
notcrawl
394kMemungkinkan agent Anda mencari salinan tersimpan dari ruang kerja Notion, mencari halaman dan database, serta mengekspor halaman ke file Markdown.
knowledge-entities
394kMembantu agent Anda mengidentifikasi orang, perusahaan, dan proyek, lalu menulis halaman profil berisi sumber untuk mereka di Knowledge vault Anda.