Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

brain-ingest-gate

Skill by garrytan

Pre-write gate that resolves named entities and checks for duplicates before content enters a gbrain brain. Use it for file migrations, bulk imports and manual writes. Duplicates are linked, not cloned.

  • Score 94
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install brain-ingest-gate

Built from the published package, never by AI.

git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/brain-ingest-gate ~/.claude/skills/brain-ingest-gate

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install brain-ingest-gate in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

brain-ingest-gate is a pre-write quality gate for content entering a gbrain brain. It runs before any new page is written, whether from a file migration, bulk import, manual gbrain put or capture, or subagent output. The skill states that a bare cp or mv into the brain repo is a bug.

The gate first resolves named entities through the gbrain entity registry, expanding aliases and reading candidate pages instead of trusting vector scores. It then runs a dedup decision tree: it searches the core claim, reads the top hit, and assigns a clear-dup, plausible-dup or clear band. Duplicates are linked instead of cloned. Enrichment is delegated to shipped ingestion skills. It is written for people maintaining a gbrain knowledge base.

Written from the project's SKILL.md and checked against it.

What it can do

  • Named-entity resolutionResolves named things through gbrain entity and alias-expanded searches before any write.
  • Dedup decision treeSearches the core claim and assigns a clear-dup, plausible-dup or clear band by reading the top hit.
  • Duplicate linkingLinks to the existing page with a timeline entry instead of writing a duplicate page.
  • Cross-linked new anglesWrites plausible-dup content that adds a new angle, with a cross-link to the existing page.
  • Alias frontmatterCreates new named pages with an aliases list in the same write that creates them.
  • Enrichment delegationHands enrichment to the ingest, enrich, signal-detector and concept-synthesis skills.
  • Backlink verificationRuns gbrain check-backlinks check and backlinks after a batch to confirm links.
  • Batch testing guidanceAdvises gating 3 to 5 items and inspecting the decisions before running the rest.

What you need

  • gbrain CLI with entity, query, search, get, link and check-backlinks commands
  • Shipped ingest, enrich, signal-detector and concept-synthesis skills

Try asking

  • Is this meeting note already in the brain? Check before writing it.
  • Move these files into the brain, resolving named entities first.
  • Run the dedup gate on this article and tell me if it is a duplicate.

Good to know

  • Routing convention, not an operation-boundary enforcement.
  • Nothing in the gbrain runtime blocks a write if the skill never loads.
  • No numeric similarity thresholds are used against gbrain's fused scores.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/brain-ingest-gate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md15 KB
  • routing-eval.jsonl2 KB

Alternatives to brain-ingest-gate

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

brain-ingest-gate: common questions

Does this stop raw copies into a brain repo?

The skill states that a bare cp or mv into the brain repo is a bug and that content must pass the gate first. The source describes this as a routing convention that a well-behaved agent follows, not a runtime block.

Why not rely on gbrain's built-in dedup?

The source says gbrain import and sync skip only matching frontmatter IDs, and capture dedups only identical content within 24 hours. Semantic dedup is left to this skill.

Does it use a similarity score cutoff?

No. The source says dedup bands come from reading the top hit, because gbrain search returns fused hybrid rank scores that do not map to cosine cutoffs.

How do I install brain-ingest-gate?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is brain-ingest-gate free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is brain-ingest-gate safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to brain-ingest-gate?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

brain-ingest-gate Install

Add to stack

Loading.