[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6N00D0MBAQJ1G37QCAZ6Q9D":3,"skill-same:01M6N00D0MBAQJ1G37QCAZ6Q9D":102},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":80,"commitSha":81,"skillDirectory":82,"forksCount":83,"repositoryHtmlUrl":84,"repositoryHomepageUrl":6,"ownerHtmlUrl":85,"ownerBlogUrl":86,"ownerDescription":87,"updatedAt":88,"install":89,"resources":101},"01M6N00D0MBAQJ1G37QCAZ6Q9D","media-ingest",null,"Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain.\nMulti-format handling with entity extraction and backlink propagation. Covers\nvideo-ingest, youtube-ingest, and book-ingest subtypes.","garrytan\u002Fgbrain","garrytan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19957?v=4","01M6DJCCDDG53MTYYRTXAXFG17","Garry Tan","01M6MZQZCEN3RRMD33E1X9ZZR9",32977,"MIT","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Fplugin-variants\u002Fgbrain-daily\u002Fskills\u002Fmedia-ingest\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"media ingest","Media","ingest","query","when","my","concepts","people","add","sources","watch","brain","get","PDF","youtube","page","save","Audio","Video","search","screenshot","2026-11-10 10:12:30",false,"---\nname: media-ingest\nversion: 1.1.0\ndescription: |\n  Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain.\n  Multi-format handling with entity extraction and backlink propagation. Covers\n  video-ingest, youtube-ingest, and book-ingest subtypes.\ntriggers:\n  - \"watch this video\"\n  - \"process this YouTube link\"\n  - \"ingest this PDF\"\n  - \"save this podcast\"\n  - \"process this book\"\n  - \"PDF book\"\n  - \"summarize this book\"\n  - \"ingest it into my brain\"\n  - \"what's in this screenshot\"\n  - \"check out this repo\"\ntools:\n  - search\n  - query\n  - get_page\n  - put_page\n  - add_link\n  - add_timeline_entry\n  - file_upload\nmutating: true\nwrites_pages: true\nwrites_to:\n  - concepts\u002F\n  - people\u002F\n  - companies\u002F\n  - sources\u002F\nupstream: media-ingest@fc834ee\nwhen_to_use: \"Use when the user asks: \\\"watch this video\\\", \\\"process this YouTube link\\\", \\\"ingest this PDF\\\", \\\"save this podcast\\\", \\\"process this book\\\".\"\n---\n\n# Media Ingest Skill\n\nIngest video, audio, PDF, book, screenshot, and GitHub repo content into the brain.\n\n> **Filing rule:** Read `skills\u002F_brain-filing-rules.md` before creating any new page.\n\n## Input\n\n| Parameter | Required | Description |\n|-----------|----------|-------------|\n| source | yes | URL, file path, or uploaded file reference |\n| title | no | Override title (auto-detected if omitted) |\n| target_slug | no | Override page slug (auto-generated if omitted) |\n\n## Contract\n\nThis skill guarantees:\n- Every ingested media item has a brain page with analysis (not just a transcript dump)\n- Transcripts (video\u002Faudio) saved in raw and human-readable formats\n- Entity extraction: every person and company mentioned gets back-linked\n- Raw source files preserved via `gbrain files upload-raw`\n- Filing by primary subject, not by media format\n\n> **Convention:** See `skills\u002Fconventions\u002Fquality.md` for Iron Law back-linking.\n\nEvery mention of a person or company with a brain page MUST create a back-link.\n\n## Phases\n\n### Phase 1: Identify format and fetch\n\n| Format | Action |\n|--------|--------|\n| YouTube\u002Fvideo URL | Fetch transcript (Whisper, transcription service, or captions) |\n| Audio file | Transcribe with available STT service |\n| PDF | Extract text (OCR if needed) |\n| Book PDF | Extract text, identify chapters\u002Fsections |\n| Screenshot\u002Fimage | OCR via vision model, extract text and entities |\n| GitHub repo | Clone, read README + key files, summarize architecture |\n\n### Phase 2: Upload raw source\n\nSave the original file for provenance: `gbrain files upload-raw \u003Cfile> --page \u003Cslug>`\n\n### Phase 3: Create brain page\n\nFile by primary subject (not format). Use this template:\n\n```markdown\n# {Title}\n\n**Source:** {URL or file path}\n**Format:** {video\u002Faudio\u002FPDF\u002Fbook\u002Fscreenshot\u002Frepo}\n**Created:** {date}\n\n## Summary\n{Key points, not a transcript dump}\n\n## Key Segments \u002F Highlights\n{For video\u002Faudio: timestamped highlights. For books: chapter summaries.}\n\n## People Mentioned\n{List with links to brain pages}\n\n## Companies Mentioned\n{List with links to brain pages}\n```\n\n### Phase 4: Entity extraction and propagation\n\nFor every person and company mentioned:\n1. Check brain for existing page\n2. Create\u002Fenrich if needed (delegate to enrich skill)\n3. Add back-link from entity page to this media page\n4. Add timeline entry on entity page\n\nA media item is NOT fully ingested until entity propagation is complete.\n\n### Phase 5: Sync\n\n`gbrain sync` to update the index.\n\n## Output Format\n\nBrain page created with summary, highlights, and entity cross-links. Report to user:\n\"Ingested {title}: {N} entities detected, {N} pages updated.\"\n\n## Error Handling\n\n- **Transcription failure:** If STT or captions are unavailable, note `[transcript unavailable]` in the page and proceed with whatever metadata is available. Do NOT fabricate content.\n- **Duplicate detection:** Before creating a page, search the brain for the source URL or file hash. If found, ask the user whether to update the existing page or skip.\n- **Partial OCR \u002F audio:** Mark unclear segments with `[inaudible]` or `[illegible]`. Never guess at proper nouns.\n- **Large content (books > 500 pages):** Summarize by chapter; do not attempt to inline the full text. Link to the raw upload.\n- **Retry policy:** On transient API failures (network, timeout), retry once. On auth failures, abort immediately.\n\n## Known Pitfalls\n\n1. **YouTube auto-captions misidentify proper nouns.** Always cross-reference entity names against existing brain pages before creating new ones. A caption that garbles a name (e.g. \"Alise\" when the speakers are discussing alice-example) should match the existing `alice-example` page, not create a new one.\n2. **Re-running ingest on same source creates duplicates.** Always check brain for existing source URL match before Phase 3.\n3. **Book OCR quality varies wildly.** Scanned PDFs often have garbled text. If OCR quality is \u003C80% readable, flag to user rather than ingesting garbage.\n4. **Video transcript without speaker diarization is low-value.** If multiple speakers are present but no diarization is available, note this limitation prominently rather than attributing all speech to one person.\n5. **Large audio files (>2hr) can timeout transcription services.** Split into chunks before transcription if needed.\n\n## When it fails\n\nFollow the [agent operator protocol](..\u002Fconventions\u002Fagent-operator-protocol.md) for any gbrain error `code`, exit code, `[AGENT]` block or notice block. Specific to this skill:\n\n- Transcription fails: write `[transcript unavailable]` and continue with metadata; never fabricate content.\n- A transient API failure (network, `timeout`, `rate_limited`): retry once. On an auth failure, abort and tell the user which provider key is missing.\n- `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.\n\n## Anti-Patterns\n\n- Dumping raw transcripts without analysis\n- Skipping entity extraction (\"I'll do that separately\")\n- Filing **raw ingest** by format (all videos in `media\u002Fvideos\u002F`) instead of by subject. Note: format-prefixed paths under `media\u002F\u003Cformat>\u002F\u003Cslug>` ARE sanctioned for **synthesized one-of-one output** like book-mirror's `media\u002Fbooks\u002F\u003Cslug>-personalized.md`. The anti-pattern is for raw ingest, not for sui generis synthesis. See `skills\u002F_brain-filing-rules.md` \"Sanctioned exception: synthesis output is sui generis.\"\n- Not preserving raw source files\n- Creating stub pages without meaningful content\n","# Media Ingest Skill\n\nIngest video, audio, PDF, book, screenshot, and GitHub repo content into the brain.\n\n> **Filing rule:** Read `skills\u002F_brain-filing-rules.md` before creating any new page.\n\n## Input\n\n| Parameter | Required | Description |\n|-----------|----------|-------------|\n| source | yes | URL, file path, or uploaded file reference |\n| title | no | Override title (auto-detected if omitted) |\n| target_slug | no | Override page slug (auto-generated if omitted) |\n\n## Contract\n\nThis skill guarantees:\n- Every ingested media item has a brain page with analysis (not just a transcript dump)\n- Transcripts (video\u002Faudio) saved in raw and human-readable formats\n- Entity extraction: every person and company mentioned gets back-linked\n- Raw source files preserved via `gbrain files upload-raw`\n- Filing by primary subject, not by media format\n\n> **Convention:** See `skills\u002Fconventions\u002Fquality.md` for Iron Law back-linking.\n\nEvery mention of a person or company with a brain page MUST create a back-link.\n\n## Phases\n\n### Phase 1: Identify format and fetch\n\n| Format | Action |\n|--------|--------|\n| YouTube\u002Fvideo URL | Fetch transcript (Whisper, transcription service, or captions) |\n| Audio file | Transcribe with available STT service |\n| PDF | Extract text (OCR if needed) |\n| Book PDF | Extract text, identify chapters\u002Fsections |\n| Screenshot\u002Fimage | OCR via vision model, extract text and entities |\n| GitHub repo | Clone, read README + key files, summarize architecture |\n\n### Phase 2: Upload raw source\n\nSave the original file for provenance: `gbrain files upload-raw \u003Cfile> --page \u003Cslug>`\n\n### Phase 3: Create brain page\n\nFile by primary subject (not format). Use this template:\n\n```markdown\n# {Title}\n\n**Source:** {URL or file path}\n**Format:** {video\u002Faudio\u002FPDF\u002Fbook\u002Fscreenshot\u002Frepo}\n**Created:** {date}\n\n## Summary\n{Key points, not a transcript dump}\n\n## Key Segments \u002F Highlights\n{For video\u002Faudio: timestamped highlights. For books: chapter summaries.}\n\n## People Mentioned\n{List with links to brain pages}\n\n## Companies Mentioned\n{List with links to brain pages}\n```\n\n### Phase 4: Entity extraction and propagation\n\nFor every person and company mentioned:\n1. Check brain for existing page\n2. Create\u002Fenrich if needed (delegate to enrich skill)\n3. Add back-link from entity page to this media page\n4. Add timeline entry on entity page\n\nA media item is NOT fully ingested until entity propagation is complete.\n\n### Phase 5: Sync\n\n`gbrain sync` to update the index.\n\n## Output Format\n\nBrain page created with summary, highlights, and entity cross-links. Report to user:\n\"Ingested {title}: {N} entities detected, {N} pages updated.\"\n\n## Error Handling\n\n- **Transcription failure:** If STT or captions are unavailable, note `[transcript unavailable]` in the page and proceed with whatever metadata is available. Do NOT fabricate content.\n- **Duplicate detection:** Before creating a page, search the brain for the source URL or file hash. If found, ask the user whether to update the existing page or skip.\n- **Partial OCR \u002F audio:** Mark unclear segments with `[inaudible]` or `[illegible]`. Never guess at proper nouns.\n- **Large content (books > 500 pages):** Summarize by chapter; do not attempt to inline the full text. Link to the raw upload.\n- **Retry policy:** On transient API failures (network, timeout), retry once. On auth failures, abort immediately.\n\n## Known Pitfalls\n\n1. **YouTube auto-captions misidentify proper nouns.** Always cross-reference entity names against existing brain pages before creating new ones. A caption that garbles a name (e.g. \"Alise\" when the speakers are discussing alice-example) should match the existing `alice-example` page, not create a new one.\n2. **Re-running ingest on same source creates duplicates.** Always check brain for existing source URL match before Phase 3.\n3. **Book OCR quality varies wildly.** Scanned PDFs often have garbled text. If OCR quality is \u003C80% readable, flag to user rather than ingesting garbage.\n4. **Video transcript without speaker diarization is low-value.** If multiple speakers are present but no diarization is available, note this limitation prominently rather than attributing all speech to one person.\n5. **Large audio files (>2hr) can timeout transcription services.** Split into chunks before transcription if needed.\n\n## When it fails\n\nFollow the [agent operator protocol](..\u002Fconventions\u002Fagent-operator-protocol.md) for any gbrain error `code`, exit code, `[AGENT]` block or notice block. Specific to this skill:\n\n- Transcription fails: write `[transcript unavailable]` and continue with metadata; never fabricate content.\n- A transient API failure (network, `timeout`, `rate_limited`): retry once. On an auth failure, abort and tell the user which provider key is missing.\n- `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.\n\n## Anti-Patterns\n\n- Dumping raw transcripts without analysis\n- Skipping entity extraction (\"I'll do that separately\")\n- Filing **raw ingest** by format (all videos in `media\u002Fvideos\u002F`) instead of by subject. Note: format-prefixed paths under `media\u002F\u003Cformat>\u002F\u003Cslug>` ARE sanctioned for **synthesized one-of-one output** like book-mirror's `media\u002Fbooks\u002F\u003Cslug>-personalized.md`. The anti-pattern is for raw ingest, not for sui generis synthesis. See `skills\u002F_brain-filing-rules.md` \"Sanctioned exception: synthesis output is sui generis.\"\n- Not preserving raw source files\n- Creating stub pages without meaningful content\n",{"name":5,"tools":53,"version":59,"mutating":60,"triggers":61,"upstream":72,"writes_to":73,"description":78,"when_to_use":79,"writes_pages":60},[46,30,54,55,56,57,58],"get_page","put_page","add_link","add_timeline_entry","file_upload","1.1.0",true,[62,63,64,65,66,67,68,69,70,71],"watch this video","process this YouTube link","ingest this PDF","save this podcast","process this book","PDF book","summarize this book","ingest it into my brain","what's in this screenshot","check out this repo","media-ingest@fc834ee",[74,75,76,77],"concepts\u002F","people\u002F","companies\u002F","sources\u002F","Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain.\nMulti-format handling with entity extraction and backlink propagation. Covers\nvideo-ingest, youtube-ingest, and book-ingest subtypes.\n","Use when the user asks: \"watch this video\", \"process this YouTube link\", \"ingest this PDF\", \"save this podcast\", \"process this book\".","master","074ec301549ded4930f04d2c3b22d709a6c095cc","plugin-variants\u002Fgbrain-daily\u002Fskills\u002Fmedia-ingest",4929,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain","https:\u002F\u002Fgithub.com\u002Fgarrytan","https:\u002F\u002Fblog.garrytan.com","Writes software, dreams. ","2026-11-15 03:57:03",{"source":8,"skillName":5,"commands":90,"prompt":100,"zipAvailable":60},[91,94,97],{"tool":92,"command":93},"npx","npx skills add garrytan\u002Fgbrain --skill media-ingest",{"tool":95,"command":96},"bunx","bunx skills add garrytan\u002Fgbrain --skill media-ingest",{"tool":98,"command":99},"pnpm","pnpm dlx skills add garrytan\u002Fgbrain --skill media-ingest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Fplugin-variants\u002Fgbrain-daily\u002Fskills\u002Fmedia-ingest\u002FSKILL.md",[],[103,111,117,122,127,132],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":110},"01M7DVD1SVD1CK2S6M5MR0NKVH","beta","Synthetic fixture skill.","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fgood\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":112,"name":113,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":110},"01M7DVD0T1465DP7CGPVNGK5XH","alpha","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fgood\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":118,"name":113,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":110},"01M7DVCZWYBFRTE76082QMZCK8","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":123,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":110},"01M7DVCYYGRM05Z2MWH37CYGHH","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-undeclared\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":128,"name":113,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":110},"01M7DVCXRT85704NBBZ73F59KP","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-undeclared\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":133,"name":113,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":110},"01M7DVCWR4M8HWJVM1CXB7K1VN","https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Ftest\u002Ffixtures\u002Fguards\u002Fcheck-skill-health.ts\u002Fbad-tool\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]