# investment-insights > Fetch YouTube videos and extract actionable investment insights from VC/investor transcripts across 4 dimensions - strategy, decision logic, branding, org management. Use when analyzing fund partner interviews, downloading VC videos, or generating investment learnings. - Author: littlesheepxy - Repository: Littlesheepxy/intelligence-skills - Version: 20260121150804 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/Littlesheepxy/intelligence-skills - Web: https://mule.run/skillshub/@@Littlesheepxy/intelligence-skills~investment-insights:20260121150804 --- --- name: investment-insights description: Fetch YouTube videos and extract actionable investment insights from VC/investor transcripts across 4 dimensions - strategy, decision logic, branding, org management. Use when analyzing fund partner interviews, downloading VC videos, or generating investment learnings. --- # 投资内容 → 可执行启发 ## 一句话目标 **一句话完成**:下载 YouTube 视频字幕 → 分析投资人观点 → 输出 4 维度可执行启发。 ## 适用场景 ✅ **适用**: - "下载这个视频并分析投资启发:https://youtube.com/watch?v=xxx" - "抓取 a16z 最新视频,提取投资洞察" - "分析投资人访谈"(自动判断是否需要先下载) - 分析 VC、基金合伙人的访谈/演讲视频 - 提炼投资策略、决策逻辑、基金运营的实操洞察 ❌ **不适用**: - X/Twitter 短内容分析(用 `ai-sentiment`) - 非投资类 YouTube 内容 - 没有转写文本的视频 --- ## ⚡ 一句话工作流(推荐) 用户说:**"下载这个视频并分析投资启发:https://youtube.com/watch?v=IcbuTTVUY7M"** Claude 自动执行: ### Step 1: 下载字幕 ```bash cd /Users/littleyang/Desktop/intelligence-skills yt-dlp --write-auto-sub --sub-lang en --skip-download \ -o "data/transcripts/%(id)s" \ "https://www.youtube.com/watch?v=IcbuTTVUY7M" ``` ### Step 2: 读取字幕文件 ```bash # 读取 VTT 字幕并清理格式 cat data/transcripts/IcbuTTVUY7M.en.vtt | grep -v "^WEBVTT" | grep -v "^Kind:" | grep -v "^Language:" | grep -v "^[0-9]" | grep -v "^$" | grep -v "" | head -500 ``` ### Step 3: 分析并输出报告 按照下面的"执行步骤"和"输出格式"分析内容。 --- ## 🔧 批量抓取命令(可选) ```bash # 下载单个视频字幕 yt-dlp --write-auto-sub --sub-lang en --skip-download \ -o "data/transcripts/%(id)s" \ "https://www.youtube.com/watch?v=VIDEO_ID" # 下载频道最新 5 个视频 yt-dlp --write-auto-sub --sub-lang en --skip-download \ --playlist-end 5 \ -o "data/transcripts/%(id)s" \ "https://www.youtube.com/@a16z" # 查看已下载的字幕 ls -la data/transcripts/ ``` ### 字幕文件位置 ``` data/transcripts/ ├── IcbuTTVUY7M.en.vtt ├── RNJCfif1dPY.en.vtt └── ysPbXH0LpIE.en.vtt ``` --- ## 输入格式 ```typescript interface Input { contents: Array<{ text: string; // 必填:视频转写全文 url: string; // 必填:YouTube 链接 title: string; // 必填:视频标题 author: string; // 必填:频道名 author_labels: string[]; // 必填:身份标签 ["fund", "investor"] duration_seconds?: number; // 可选:视频时长 }>; } ``` **约束**: - `contents` 至少 1 条,建议 3-10 条 - `author_labels` 必须包含:`fund`, `partner`, `investor` 之一 --- ## 输出格式 ```typescript interface Output { insights_by_dimension: { investment_strategy: Insight[]; // 投资策略 decision_logic: Insight[]; // 决策逻辑 fund_branding: Insight[]; // 基金品牌 organization_management: Insight[]; // 组织管理 }; top_insights: Array<{ rank: number; insight: Insight; why_important: string; }>; source_summary: Array<{ title: string; url: string; author: string; one_liner: string; key_topics: string[]; }>; } interface Insight { id: string; dimension: string; conclusion: string; // ≤50字,可独立引用 actionable: string; // 对我们意味着什么 prerequisites_and_risks: string; // 前提条件或风险 source_url: string; // 必须有! timestamp?: string; // 视频时间戳 "23:45" speaker?: string; original_quote?: string; confidence: number; // 0-1 } ``` --- ## 执行步骤 1. **理解视频内容**:通读每个视频的转写文本 2. **按维度提炼洞察**: - **投资策略**:赛道选择、阶段偏好、估值判断、Portfolio 构建 - **决策逻辑**:评估创始人、判断时机、风险评估、反共识案例 - **基金品牌**:差异化定位、LP 关系、品牌建设 - **组织管理**:团队搭建、决策流程、激励机制 3. **填充 Insight 字段**: - `conclusion`:≤50 字,可独立引用 - `actionable`:具体、可操作 - `source_url`:原视频链接(必须有) - `confidence`:0.7 以下表示推测 4. **选取 Top 5**:最有价值的 5 条启发 5. **生成视频摘要**:每个视频一句话总结 --- ## 示例 ### ✅ 正确示例 **输入**: ```json { "contents": [{ "text": "...The best AI companies are not the ones with the best model today...", "url": "https://youtube.com/watch?v=abc123", "title": "How We Invest in AI at a16z", "author": "a16z", "author_labels": ["fund"] }] } ``` **输出**: ```json { "insights_by_dimension": { "investment_strategy": [{ "id": "is_001", "dimension": "investment_strategy", "conclusion": "AI 投资看团队迭代能力,而非单次技术突破", "actionable": "评估 AI 项目时,重点考察数据飞轮和迭代速度", "prerequisites_and_risks": "适用于应用层项目", "source_url": "https://youtube.com/watch?v=abc123", "timestamp": "23:45", "speaker": "Marc Andreessen", "confidence": 0.9 }] }, "top_insights": [{ "rank": 1, "insight": { "conclusion": "AI 投资看团队迭代能力..." }, "why_important": "直接改变 AI 项目评估优先级" }] } ``` ### ❌ 错误示例 **问题 1**:结论太长 ```json { "conclusion": "根据视频中的观点,投资 AI 公司时最重要的不是看当前模型..." } ``` → **修正**:≤50 字,如 `"AI 投资看团队迭代能力,而非单次技术突破"` **问题 2**:缺少 source_url ```json { "id": "is_002", "conclusion": "早期投资要敢于反共识" } ``` → **修正**:每条 insight 必须有 `source_url` --- ## 边界情况 | 情况 | 处理方式 | |------|---------| | 输入为空 | 返回错误 | | 视频非投资相关 | 跳过并说明 | | 转写质量差 | 标低 confidence | | 某维度无内容 | 返回空数组,不硬凑 | | 无法确定时间戳 | timestamp 填 "N/A" | --- ## 如何获取输入数据 本 Skill 需要 YouTube 视频转写 JSON 作为输入。你可以: ### 方式 1:使用配套工具(推荐) ```bash # 1. 克隆仓库 git clone https://github.com/your-org/intelligence-skills.git cd intelligence-skills && pnpm install # 2. 安装系统依赖 brew install yt-dlp ffmpeg # macOS # 3. 配置 API Key echo "OPENAI_API_KEY=your_key" >> .env # Whisper 转写 # 4. 配置账号池(编辑 config/accounts.yaml) # 5. 抓取 YouTube 视频并转写 pnpm cli fetch-youtube --from 2025-01-13 --limit 5 # 6. 导出数据(用于 Skill 输入) pnpm cli export --from 2025-01-13 --to 2025-01-20 -p youtube -o data/batch.json # 7. 运行 Skill pnpm cli run-skill -s investment-insights -i data/batch.json ``` ### 方式 2:手动准备 JSON 按照输入格式准备 JSON 文件(包含视频转写文本),然后粘贴给 Claude。 ### 方式 3:API 集成 ```typescript import { runInvestmentInsightsSkill } from "@repo/intelligence-skills"; const result = await runInvestmentInsightsSkill({ batch: yourContentBatch, }); ``` --- ## 依赖与环境 | 依赖 | 用途 | 必需 | |------|------|------| | `ANTHROPIC_API_KEY` | Claude API 调用 | ✅ | | `OPENAI_API_KEY` | Whisper 视频转写(使用工具时) | 可选 | | `yt-dlp` | YouTube 视频下载 | 可选 | | `ffmpeg` | 音频处理 | 可选 | | 配套工具 `intelligence-skills` | 数据抓取与导出 | 可选 | --- ## 快捷命令 ```bash # 一键运行(抓取 + 转写 + 分析 + 推送飞书) pnpm cli weekly-insights --push-feishu ```