brain-ingest-gate
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…
Route content to specialized ingestion skills. Detects input type and delegates.
$ npx -y skills add garrytan/gbrain --skill ingest --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ingestContext preview
The summary Claude sees to decide when to auto-load this skill.
Route content to specialized ingestion skills. Detects input type and delegates.
name: ingest description: Route content to specialized ingestion skills. Detects input type and delegates. triggers: - "ingest this" - "save this to brain" - "process this meeting" tools: - search - get_page - put_page - add_link - add_timeline_entry - sync_brain mutating: true writes_pages: true writes_to: - people/ - companies/ - concepts/ - meetings/ - sources/
Ingest meetings, articles, media, documents, and conversations into the brain.
> **Filing rule:** Read `skills/_brain-filing-rules.md` before creating any new page.
> **Convention:** See `skills/conventions/quality.md` for 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.
Every fact written to a brain page must carry an inline `[Source: ...]` citation.
> **Router note:** This skill is a router. For specialized ingestion, see: idea-ingest, media-ingest, meeting-ingestion.
1. **Parse the source.** Extract people, companies, dates, and events from the input. 2. **For each entity mentioned:**
3. **Append to timeline.** Add a timeline entry in gbrain for each event, with date, summary, and source citation. 4. **Create cross-reference links.** Link entities in gbrain for every entity pair mentioned together, using the appropriate relationship type. 5. **Back-link all entities.** Update EVERY mentioned entity's page with a back-link to this page (Iron Law). 6. **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.
Production agents should detect entity mentions on EVERY inbound message. This is the signal detection loop that makes the brain compound over time.
1. **Scan the message** for entity mentions: people, companies, concepts, original thinking. Fire on every message (no exceptions unless purely operational). 2. **For each entity detected:**
inform your response. Update the page if the message contains new information.
is worth tracking, create a new page with `gbrain put <type/slug>` and populate with what you know. 3. **After creating or updating pages:** sync to gbrain:
gbrain sync --no-pull --no-embed
4. **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.
Original thinking is the most valuable signal. Capture exact phrasing -- the user's language IS the insight. Don't paraphrase.
Content the user encounters should be captured in the brain. File by PRIMARY SUBJECT, not by format (see `skills/_brain-filing-rules.md`).
**Input:** URL shared by user, or article mentioned in conversation.
**Process:** 1. Fetch content (`web_fetch` or equivalent) 2. Extract: title, author, publication, date, full text 3. Summarize: executive summary + key arguments (not a rehash) 4. Extract entities: people, companies, concepts mentioned 5. **Save raw source** for provenance (see Raw Source Preservation below) 6. Analyze for the user: don't just summarize. What's interesting given what you know about them? Flag connections, contradictions, content opportunities.
**Write to:** appropriate directory per filing rules (about a person -> `people/`, about a company -> `companies/`, reusable framework -> `concepts/`, raw data -> `sources/`)
**Input:** URL (YouTube, podcast, etc.) or local audio/video file.
**Process:** 1. Get transcript -- speaker-diarized if possible (services like Diarize.io provide speaker-labeled, word-level timing) 2. **Save raw transcript** (both JS
Give the agent you already use a memory you control. GBrain stores explicit facts with their sources, supports corrections and withdrawal, and makes the same memory available across your agents.
Repo: garrytan/gbrain
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…
When you report a brain page to the user — created, edited, committed, or relayed from a subagent — a working link is part of the deliverable, in the SAME…
Brain knowledge base operations. The core read/write cycle: brain-first lookup, read-enrich-write loop, source attribution, ambient enrichment, back-linking.…
Deduplicate and synthesize raw concept stubs into a tiered intellectual map (T1 Canon to T4 Riff), tracing idea evolution across sources over time. Transforms…
Token-hygiene audit of the always-loaded context stack — CLAUDE.md, AGENTS.md, auto-memory MEMORY.md, and the bootstrap-rendered identity files (SOUL.md,…
When the user corrects a factual error, root-cause it immediately. Don't just note the correction — trace the error to its source, fix the source, and prevent…