brain-ingest-gate
Что он делает
Этот скилл задаёт фильтр качества для добавления содержимого в общую базу знаний. Он нужен командам, которые ведут корпоративную вики или базу знаний и хотят чистые страницы без дублей.
Когда использовать
- ✓Когда вы импортируете пакет документов в базу знаний.
- ✓Когда вы хотите добавить новую страницу о человеке, компании или проекте.
- ✓Когда агент собирается написать новое содержимое, и вы хотите сначала проверить наличие существующей страницы.
Ссылка на скилл
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/brain-ingest-gate/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Перед тем как добавить эти заметки со встречи в базу знаний, можешь проверить, есть ли уже страница по этой теме?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент сначала ищет именованные сущности, затем проверяет дубликаты и решает, написать ли новую страницу, сослаться на существующую или пропустить.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
Частые вопросы
Что решает фильтр?
Он решает, нужно ли записать содержимое, сослаться на существующую страницу или пропустить его.
Копирует ли он файлы напрямую?
Нет. В скилле сказано, что простое копирование в репозиторий базы знаний — это ошибка, поэтому всё содержимое должно пройти фильтр.
Кто занимается обогащением?
Фильтр отвечает за проверку дубликатов, а за обогащение отвечают входящие в комплект скиллы загрузки.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 31k
- Место в рейтинге
- #9248
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
gbrain
31kПозволяет агенту искать в общей базе знаний компании факты о людях, проектах и решениях и сохранять в ней долговременные заметки.
brain-link-discipline
31kСледит, чтобы агент в том же сообщении приложил рабочую ссылку на каждую страницу базы знаний, о которой он сообщает, чтобы вы сразу могли её открыть.
brain-ops
31kДаёт агенту базовую рутину для базы знаний: сначала проверить имеющийся контекст, сохранять явные заметки с источником и связывать родственные страницы.
concept-synthesis
31kПревращает большой набор разрозненных страниц с понятиями в ранжированную карту идей без дубликатов, показывая, как каждая идея менялась со временем.
Похожие скиллы
graincrawl
394kПозволяет агенту искать в сохраненных заметках и расшифровках встреч Granola, проверять их свежесть и считать за период.
notcrawl
394kПозволяет агенту искать в сохраненной копии рабочего пространства Notion, находить страницы и базы данных и экспортировать страницы в файлы Markdown.
knowledge-entities
394kПомогает агенту определять людей, компании и проекты, а затем писать для них профили с источниками в вашем хранилище Knowledge.