Skip to content
Skillpedia
Research31k Β· #9248

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

Copy 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

Use this skill to help me: https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/brain-ingest-gate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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.md owns 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:

  1. Named-Entity Resolution Gate β€” is this about a named thing that already has a page under its chosen name?
  2. 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 sync skip 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 remember verb dedupes facts, not pages.

Semantic dedup and named-entity resolution are this skill's job, in full.

When This Gate Fires

  1. File migration β€” moving files already in the workspace into the brain repo ("move this to brain").
  2. Bulk imports β€” batch moves of any kind into brain directories, BEFORE gbrain sync or gbrain import indexes them. For batches, also read conventions/test-before-bulk.md: gate 3-5 items and inspect the decisions before running the rest.
  3. Manual writes β€” gbrain put or gbrain capture of rich content, or direct file writes into the brain repo.
  4. 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

  1. 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 suggestions
    

    A 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills