youtube-script-master
Unified YouTube script creation for cardiology channels in Hinglish. Uses the COMPLETE research-engine pipeline (channel scraping, comment analysis, narrative monitoring, gap finding, view prediction) combined with RAG + PubMed for evidence. Data-driven topic selection, 15-30 min educational videos with 6-point voice check.
What this skill does
# YouTube Script Master
Unified skill for creating **data-driven**, evidence-based cardiology YouTube scripts in Hinglish.
**This skill CONSUMES data from the research-engine Python pipeline.** It does NOT replace that pipeline with manual web searches.
---
## CRITICAL: Run Research Pipeline First
Before writing ANY script, the research-engine should have been run to generate:
- Content calendar with prioritized topics
- Demand analysis (what people want)
- Gap analysis (where opportunities are)
- Narrative analysis (what misinformation to address)
```bash
cd "/Users/shaileshsingh/cowriting system/research-engine"
python run_pipeline.py --quick # Quick mode (~10 min)
python run_pipeline.py # Full mode (~30 min)
```
---
## Complete Architecture
```
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 1: DATA COLLECTION (Weekly - Python Pipeline) │
├─────────────────────────────────────────────────────────────────┤
│ │
│ channel_scraper.py ──► Scrapes 35+ channels (no API needed) │
│ Competition, inspiration, belief-seeders│
│ │
│ comment_scraper.py ──► Downloads comments from top videos │
│ Extracts questions and pain points │
│ │
│ OUTPUT: /data/scraped/latest_scrape.json │
│ /data/scraped/latest_comments.json │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 2: ANALYSIS (Python Pipeline) │
├─────────────────────────────────────────────────────────────────┤
│ │
│ demand_signals.py ──► What topics get views/engagement │
│ Question themes, demand scoring │
│ │
│ narrative_monitor.py ──► Tracks 8 dangerous narratives: │
│ 1. LDL skepticism │
│ 2. Statin fear │
│ 3. Insulin primacy │
│ 4. Fasting absolutism │
│ 5. Supplement superiority │
│ 6. Seed oil villain │
│ 7. Exercise compensation │
│ 8. Fear mongering │
│ │
│ gap_finder.py ──► Content opportunities │
│ CORRECTION_OPPORTUNITY (misinformation) │
│ LANGUAGE_GAP (English→Hindi needed) │
│ DEMAND_GAP (questions but no videos) │
│ PROVEN_TOPIC (high views in English) │
│ │
│ view_predictor.py ──► ML prediction of video performance │
│ Ridge regression + TF-IDF on title │
│ │
│ OUTPUT: /output/demand_analysis_*.json │
│ /output/narrative_analysis_*.json │
│ /output/content_gaps_*.json │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 3: PLANNING (Python Pipeline) │
├─────────────────────────────────────────────────────────────────┤
│ │
│ idea_combinator.py ──► Seed ideas (300+) × Modifiers (215+) │
│ Filters by pillar, archetype, compat │
│ Prioritizes by demand + gap scores │
│ │
│ calendar_generator.py ──► 100-day content calendar │
│ Mon/Wed/Fri schedule │
│ Balanced by pillar and audience │
│ │
│ OUTPUT: /output/calendar.json │
│ /output/100-day-calendar.md (Obsidian-ready) │
│ /output/idea-briefs/*.md (per-video briefs) │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 4: KNOWLEDGE BUILDING (Per Video) │
├─────────────────────────────────────────────────────────────────┤
│ │
│ knowledge_pipeline.py ──► RAG + PubMed in parallel │
│ ├─► RAG: Your textbooks/guidelines (AstraDB) │
│ └─► PubMed: Latest research (NCBI API) │
│ │
│ OUTPUT: Knowledge brief with citations │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ PHASE 5: SCRIPT WRITING (This Skill - Opus) │
├─────────────────────────────────────────────────────────────────┤
│ │
│ INPUTS: │
│ - calendar.json (which topic, why now) │
│ - content_gaps.json (opportunity type) │
│ - narrative_analysis.json (if debunk: which narrative) │
│ - knowledge_brief (evidence for claims) │
│ │
│ APPLY: │
│ - Hinglish rules (70% Hindi / 30% English) │
│ - Script structure (hook → body → CTA) │
│ - Debunk protocol (if correction opportunity) │
│ - 6-point voice check │
│ │
│ OUTPUT: Complete 15-30 min script in Hinglish │
└─────────────────────────────────────────────────────────────────┘
```
---
## Using Research Engine Outputs
### Step 1: Check the Content Calendar
```bash
# See next 5 topics to create
python calendar_generator.py --show-next 5
# Or read directly
cat /output/calendar.json | head -100
```
Each calendar entry includes:
- `seed_idea` - The topic
- `modifier` - The angle
- `gap_score` - Why this is an opportunity
- `recommended_date` - When to publish
### Step 2: Check If Debunk Needed
```bash
# Get threat ranking of narratives
python analyzer/narrative_monitor.py --threats
# Generate debunk ideas
python analyzer/narrative_monitor.py --debunk
# Get response video ideas for high-reach misinformation
python analyzer/narrative_monitor.py --response
```
**Output includes:**
- Which channels are promoting which narratives
- View counts of misinformation videos
- Pre-generated Hinglish hooks for debunk content
- Matched seed ideas for counter-content
### Step 3: Check Correction Opportunities
```bash
python analyzer/gap_finder.py --corrections
```
RetRelated in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.