npx skills add ...
npx skills add garrytan/gbrain --skill media-ingest
Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.
npx skills add garrytan/gbrain --skill media-ingest
Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain.
Filing rule: Read
skills/_brain-filing-rules.mdbefore creating any new page.
| Parameter | Required | Description |
|---|---|---|
| source | yes | URL, file path, or uploaded file reference |
| title | no | Override title (auto-detected if omitted) |
| target_slug | no | Override page slug (auto-generated if omitted) |
This skill guarantees:
gbrain files upload-rawConvention: 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.
| Format | Action |
|---|---|
| YouTube/video URL | Fetch transcript (Whisper, transcription service, or captions) |
| Audio file | Transcribe with available STT service |
| Extract text (OCR if needed) | |
| Book PDF | Extract text, identify chapters/sections |
| Screenshot/image | OCR via vision model, extract text and entities |
| GitHub repo | Clone, read README + key files, summarize architecture |
Save the original file for provenance: gbrain files upload-raw <file> --page <slug>
File by primary subject (not format). Use this template:
For every person and company mentioned:
A media item is NOT fully ingested until entity propagation is complete.
gbrain sync to update the index.
Brain page created with summary, highlights, and entity cross-links. Report to user: "Ingested {title}: {N} entities detected, {N} pages updated."
[transcript unavailable] in the page and proceed with whatever metadata is available. Do NOT fabricate content.[inaudible] or [illegible]. Never guess at proper nouns.alice-example page, not create a new one.Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
[transcript unavailable] and continue with metadata; never fabricate content.timeout, rate_limited): retry once. On an auth failure, abort and tell the user which provider key is missing.file_upload refused (size, path outside the allowed root): tell the user the raw file was not stored and keep a pointer in the page.media/videos/) instead of by subject. Note: format-prefixed paths under media/<format>/<slug> ARE sanctioned for synthesized one-of-one output like book-mirror's media/books/<slug>-personalized.md. The anti-pattern is for raw ingest, not for sui generis synthesis. See skills/_brain-filing-rules.md "Sanctioned exception: synthesis output is sui generis."