[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75KYM1ZYYFCT9DYWEMQWWWP":3,"skill-same:01M75KYM1ZYYFCT9DYWEMQWWWP":73},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":14,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":72},"01M75KYM1ZYYFCT9DYWEMQWWWP","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.","cheRoma\u002Fgbrain-link-chat","cheRoma","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F265356812?v=4","01M75JVGAJEZK04E1THSDHYVNK","Roman Cherepanov","01M75JVGB5SWY40H959C3QXRAQ",0,"MIT","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Fskills\u002Fmedia-ingest\u002FSKILL.md",[],[],"2026-11-12 13:55:43",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\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":24,"version":32,"mutating":33,"triggers":34,"upstream":45,"writes_to":46,"description":51,"writes_pages":33},[25,26,27,28,29,30,31],"search","query","get_page","put_page","add_link","add_timeline_entry","file_upload","1.1.0",true,[35,36,37,38,39,40,41,42,43,44],"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",[47,48,49,50],"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","feat\u002Flink-chat-distiller","b7935e119783c2f35d6d182ede452faf32de675c","skills\u002Fmedia-ingest","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat","https:\u002F\u002Fgithub.com\u002FcheRoma","https:\u002F\u002Fostov.dev","Engineer and founder of Ostov. Websites, Telegram apps, business automation and ERP\u002FCRM integrations.","2026-11-12 20:40:42",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":33},[62,65,68],{"tool":63,"command":64},"npx","npx skills add cheRoma\u002Fgbrain-link-chat --skill media-ingest",{"tool":66,"command":67},"bunx","bunx skills add cheRoma\u002Fgbrain-link-chat --skill media-ingest",{"tool":69,"command":70},"pnpm","pnpm dlx skills add cheRoma\u002Fgbrain-link-chat --skill media-ingest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Fskills\u002Fmedia-ingest\u002FSKILL.md",[],[74,80,86,93,100,107],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75M5HR90P229V66Q4Q1GM0W","query-helper","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fquery-helper\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75M5GZ1WQB7NHR07QV38YB8","broken","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbroken\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M75M5FDJV3M4GP71SKD31P33","brain-ops","Read, enrich, and write brain pages with source attribution.","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog\u002Fskills\u002Fbrain-ops\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M75M5DYW3WBGDC6M90YMC843","meeting-prep","Build a briefing before you meet someone, from their recent threads, open loops and what they care about.","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog-query\u002Fskills\u002Fmeeting-prep\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M75M5CJZX22MV7XKJQYEMC9Y","inbox-zero","Triage the inbox into replies, delegations and archives.","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog-query\u002Fskills\u002Finbox-zero\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M75M5B953478ACM9X3MPAX3P","deal-memo","Draft an investment memo from the deal pages and the founder history already in the brain.","https:\u002F\u002Fgithub.com\u002FcheRoma\u002Fgbrain-link-chat\u002Fblob\u002Ffeat\u002Flink-chat-distiller\u002Ftest\u002Ffixtures\u002Fskill-catalog-query\u002Fskills\u002Fdeal-memo\u002FSKILL.md",[],[]]