--- name: stream-transcript-processor description: Process Twitch/YouTube stream transcripts to identify clip-worthy moments, generate short-form script notes, draft X posts, YouTube metadata, and extract content insights. Use when given a stream transcript, VOD URL, or when asked to find clips/highlights from a techfren stream. --- # Stream Transcript Processor Process @techfren stream transcripts into actionable content assets: clips, script notes, X posts, YouTube metadata, and analytics. **This skill orchestrates existing skills and adds new capabilities:** - Uses **clipper** for clip extraction - Uses **x-post-extractor** patterns for X posts - Uses **media-fetcher** for screenshots and media - **NEW**: Fetch transcripts from URLs (auto-captions) - **NEW**: Generate script notes for short-form recording - **NEW**: YouTube metadata (title, description with timestamps, SEO tags) - **NEW**: Content analytics and insights --- ## When to Use This Skill Activate when user: - Provides a Twitch VOD or YouTube stream URL - Pastes a stream transcript - Asks to "find clips" or "find highlights" from a stream - Wants "script notes" for short-form content - Asks for X post drafts from stream content - Needs YouTube title, description, or tags - Requests stream analytics or insights --- ## Quick Commands | User Request | Action | |--------------|--------| | "Process this stream [URL]" | Full pipeline: fetch → analyze → clips → posts → YouTube metadata | | "Find clips from [transcript]" | Delegate to clipper skill | | "Generate script notes for [timestamp]" | Create recording notes | | "Draft X posts from [stream]" | Delegate to x-post-extractor or use draft script | | "Generate YouTube description" | Create title, description with timestamps, tags | | "Analyze this stream" | Content analytics report | --- ## Execution Workflow ### Full Pipeline (URL Provided) When user provides a stream URL: **Phase 1: Fetch Transcript** ```bash python .claude/skills/stream-transcript-processor/scripts/fetch_transcript.py "" transcript.txt ``` This creates: - `transcript.txt` - Timestamped text file - `transcript.json` - Structured JSON for processing **Phase 2: Parse for Clipper Compatibility** ```bash python .claude/skills/clipper/scripts/parse_transcription.py transcript.json > parsed.json ``` **Phase 3: Find Clips (Use Clipper Skill)** Follow the clipper skill workflow: 1. Analyze `parsed.json` in windows 2. Identify segments using clipper categories + voice patterns 3. Create `segments.json` 4. Report clip candidates to user **Phase 4: Generate Content Assets** For each high-priority clip: *Script Notes:* ```bash python .claude/skills/stream-transcript-processor/scripts/generate_script_notes.py parsed.json ``` *X Post Drafts:* ```bash python .claude/skills/stream-transcript-processor/scripts/draft_x_posts.py parsed.json --style discovery ``` **Phase 5: Fetch Media (Optional)** Use media-fetcher for screenshots of tools mentioned: ```bash python .claude/skills/media-fetcher/scripts/capture_screenshot.py "" --output media/ ``` --- ### Transcript Already Exists If `parsed.json` or `out.json` already exists: 1. Skip fetch_transcript step 2. Use existing files for analysis 3. Proceed with clipper workflow 4. Add script notes and X posts as needed --- ### Script Notes Only When user asks for script notes for a specific segment: ```bash python .claude/skills/stream-transcript-processor/scripts/generate_script_notes.py \ \ --output script_notes.md ``` **Output format (sentence starters for recording):** ```markdown ## HOOK - [Bold claim or result]... - This is [Tool] and it... ## VALUE STACK - Free, open source... - Runs locally... ## DEMO - Let's try it... - [React naturally] ## CLOSE - [Quick recap]... - Try it out... ``` --- ### X Posts Only When user asks to draft X posts from stream: **Option 1: Use x-post-extractor skill (recommended for full workflow)** Follow x-post-extractor SKILL.md for comprehensive extraction. **Option 2: Quick draft from timestamp** ```bash python .claude/skills/stream-transcript-processor/scripts/draft_x_posts.py \ --style