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.
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-gateRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gbrain/skills/brain-ingest-gate ~/.gemini/antigravity-cli/skills/brain-ingest-gateAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
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.
