ingest
它能做什么
这项技能是一个路由器,接收会议、文章、媒体、文档或对话。它会把每项内容交给合适的专门技能处理,并让人名与其页面保持链接。
适用场景
- ✓当你把会议记录、文章或文档交给智能体存入知识库的时候。
- ✓当你希望新内容中出现的人或公司链接到他们的页面时。
- ✓当你不确定哪项摄入技能适合某段内容时。
技能链接
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/ingest/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“这是我今天的会议记录,请把它归档到我的知识库,并链接其中提到的每个人。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会识别内容的类型,然后交给对应的技能处理。每个事实都与其来源关联,每个被提及的人或公司都会链接到其页面。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Ingest Skill
Ingest meetings, articles, media, documents, and conversations into the brain.
Filing rule: Read
skills/_brain-filing-rules.mdbefore creating any new page.
Contract
- Every fact written to a brain page carries an inline
[Source: ...]citation with date and provenance. - Every entity mention creates a back-link from the entity's page to the page mentioning them (Iron Law).
- Raw sources are preserved for provenance via
gbrain files upload-rawwith automatic size routing. - State sections are rewritten with current best understanding, never appended to.
- After the user's explicit automatic-capture opt-in (see
skills/signal-detector/SKILL.md), entity detection fires on every substantive inbound message; notable entities get pages or updates. Without that opt-in, capture only what the user asks to save. - Notability gate before any new entity page: existing pages are updated, and a NEW page is created only for a notable entity and only with meaningful content from web search or existing brain context — no stubs. A non-notable mention stays an inline reference on the page that mentions it.
Convention: See
skills/conventions/quality.mdfor Iron Law back-linking.
Every mention of a person or company with a brain page MUST create a back-link
FROM that entity's page TO the page mentioning them. An unlinked mention is a
broken brain. See skills/_brain-filing-rules.md for format.
Citation Requirements (MANDATORY)
Every fact written to a brain page must carry an inline [Source: ...] citation.
- User's statements:
[Source: User, {context}, YYYY-MM-DD] - Meeting data:
[Source: Meeting "{title}", YYYY-MM-DD] - Email/message:
[Source: email from {name} re: {subject}, YYYY-MM-DD] - Web content:
[Source: {publication}, {URL}, YYYY-MM-DD] - Social media:
[Source: X/@handle, YYYY-MM-DD](URL)(include link) - Synthesis:
[Source: compiled from {sources}]
Phases
Router note: This skill is a router. For specialized ingestion, see: idea-ingest, media-ingest, meeting-ingestion.
- Parse the source. Extract people, companies, dates, and events from the input.
- For each entity mentioned:
- Read the entity's page from gbrain to check if it exists
- If exists: update compiled_truth (rewrite State section with new info, don't append)
- If new: check notability gate, then store the page in gbrain with the appropriate type and slug
- Append to timeline. Add a timeline entry in gbrain for each event, with date, summary, and source citation.
- Create cross-reference links. Link entities in gbrain for every entity pair mentioned together, using the appropriate relationship type.
- Back-link all entities. Update EVERY mentioned entity's page with a back-link to this page (Iron Law).
- Timeline merge. The same event appears on ALL mentioned entities' timelines. If Alice met Bob at Acme Corp, the event goes on Alice's page, Bob's page, and Acme Corp's page.
Entity Detection on Every Message (after opt-in)
Automatic capture is off by default. Once the user has explicitly opted in to
automatic capture for this brain (the stored choice skills/signal-detector/SKILL.md
checks before writing), production agents detect entity mentions on every
substantive inbound message. This is the signal detection loop that makes the
brain compound over time. Without the opt-in, write only what the user asks to save.
Protocol
- Scan the message for entity mentions: people, companies, concepts, original thinking. With the opt-in recorded, fire on every substantive message (skip purely operational ones and honor narrower per-message instructions).
- For each entity detected:
gbrain search "name"-- does a page already exist?- If yes: load context with
gbrain get <slug>. Use the compiled truth to inform your response. Update the page if the message contains new information. - If no: assess notability (see
skills/_brain-filing-rules.md). If the entity is worth tracking, create a new page withgbrain put <type/slug>and populate with what you know.
- After creating or updating pages: sync to gbrain:
gbrain sync --no-pull --no-embed - Don't block the conversation. Entity detection and enrichment should happen alongside the response, not before it. The user shouldn't wait for brain writes to get an answer.
What counts as n
常见问题
它会为看到的每个名字都创建页面吗?
不会。只有知名的人或公司才会创建新页面,其他提及只作为普通引用保留。
原始文件会被保留吗?
会。原始素材会被保存,方便你核对每个事实的来源。
它会自动记录我的消息吗?
只有在你开启自动记录之后才会。没有这项设置,它只保存你要求保存的内容。
详情
作者的原始描述
Route content to specialized ingestion skills. Detects input type and delegates.
repo: garrytan/gbrain
热度
- GitHub 星标
- 31k
- 排名
- #9260
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …