brain-ingest-gate
O que ela faz
Esta skill define um portão de qualidade para adicionar conteúdo a um cérebro de conhecimento compartilhado. É voltada para equipes que mantêm uma wiki ou cérebro da empresa e querem páginas limpas, sem duplicatas.
Quando usar
- ✓Quando você está importando um lote de documentos para o cérebro.
- ✓Quando quer adicionar uma nova página sobre uma pessoa, empresa ou projeto.
- ✓Quando um agente está prestes a escrever um conteúdo novo e você quer verificar antes se já existe uma página.
Link da skill
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/brain-ingest-gate/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Antes de adicionar estas notas de reunião ao cérebro, você pode verificar se o mesmo tema já tem uma página?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente procura primeiro as entidades nomeadas, depois verifica duplicatas e decide se escreve uma página nova, liga a uma existente ou ignora.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
O que o portão decide?
Ele decide se o conteúdo deve ser escrito, ligado a uma página existente ou ignorado.
Ele copia arquivos diretamente?
Não. A skill diz que uma cópia direta para o repositório do cérebro é um bug, então todo conteúdo deve passar pelo portão.
Quem cuida do enriquecimento?
O portão cuida das verificações de duplicatas, e as skills de ingestão incluídas cuidam do enriquecimento.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 31 mil
- Posição no ranking
- #9248
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
gbrain
31 milPermite que seu agente pesquise em um cérebro de conhecimento compartilhado da empresa, buscando fatos sobre pessoas, projetos e decisões, e salve notas duráveis nele.
brain-link-discipline
31 milGarante que seu agente inclua um link funcional para cada página do cérebro que relatar, na mesma mensagem, para que você possa abri-la logo.
brain-ops
31 milOferece ao seu agente a rotina básica de um cérebro de conhecimento: consultar o contexto, salvar notas com a fonte e ligar páginas relacionadas.
concept-synthesis
31 milTransforma um grande conjunto de páginas de conceitos dispersas em um mapa de ideias organizado em níveis, sem duplicatas, mostrando como cada ideia evoluiu.
Skills parecidas
graincrawl
394 milPermite que seu agente pesquise suas anotações e transcrições salvas de reuniões do Granola, verifique quão atualizadas elas estão e as conte em um período.
notcrawl
394 milPermite que seu agente pesquise uma cópia salva do seu workspace do Notion, consulte páginas e bancos de dados e exporte páginas para arquivos Markdown.
knowledge-entities
394 milAjuda seu agente a identificar pessoas, empresas e projetos e a escrever páginas de perfil com fontes no seu Knowledge vault.