brain-ingest-gate
What it does
This skill sets a quality gate for adding content to a shared knowledge brain. It is for teams that maintain a company wiki or brain and want clean, non-duplicate pages.
When to use it
- βWhen you are importing a batch of documents into the brain.
- βWhen you want to add a new page about a person, company or project.
- βWhen an agent is about to write new content and you want to check for an existing page first.
Skill link
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/brain-ingest-gate/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βBefore adding these meeting notes to the brain, can you check whether the same topic already has a page?β
5 new skills a week. 1 minute to read.
How it works
The agent looks up named entities first, then checks for duplicates, and decides whether to write a new page, link to an existing one or skip.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
What does the gate decide?
It decides whether content should be written, linked to an existing page or skipped.
Does it copy files directly?
No. The skill says a raw copy into the brain repository is a bug, so all content must pass the gate.
Who handles enrichment?
The gate owns duplicate checks, and the shipped ingestion skills handle enrichment.
Details
Original description by the author
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
Popularity
- GitHub stars
- 31k
- Ranking position
- #9248
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
gbrain
31kLets your agent search a shared company knowledge brain for facts about people, projects and decisions, and save durable notes to it.
brain-link-discipline
31kMakes sure your agent includes a working link to each brain page it reports, in the same message, so you can open it right away.
brain-ops
31kGives your agent the core routine for a knowledge brain: check existing context first, save explicit notes with their source, and link related pages.
concept-synthesis
31kTurns a large set of scattered concept pages into a tiered, de-duplicated map of ideas, showing how each idea evolved over time.
Similar skills
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
notcrawl
394kLets your agent search a saved copy of your Notion workspace, look up pages and databases, and export pages to Markdown files.
knowledge-entities
394kHelps your agent identify people, companies, and projects, then write sourced profile pages for them in your Knowledge vault.