video-investment-analysis
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "video-investment-analysis" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a38bd1cf912c1e5a0ee5cee6b7f885744dcb8ec765b1d9231f7ba514544ead1a. Verify the upstream source and version against https://skillhub.cn/skills/user_2cfc4031/video-investment-analysis before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Video-driven four-step investment analysis loop: for a specified video (Bilibili/YouTube) perform content summarization, query related metrics, produce an investment analysis report, and refine the final draft. Used to derive investment or industry analysis, assess stocks/futures, or generate research reports from a video as the starting point; conclusions must be cross-checked with the latest public data.
Introduction source: third_party · user_2cfc4031 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: video-investment-analysis
description: |
基于指定视频(B站/YouTube)做"视频内容总结 → 查询相关指标 → 形成投资分析报告 → 查漏补缺出终稿"四步闭环。
当用户提供视频链接并要求:根据视频做投资/行业分析、视频里提到的股票或期货怎么样、基于视频内容写研究报告、
把视频内容转成投资分析、视频总结+数据查询+买卖建议 时使用。
适用于个股、期货、行业研究;视频内容作为研究起点,结论须经最新公开数据交叉验证,不得仅凭视频下结论。
version: "1.0.0"视频驱动投资分析(四步闭环)
视频内容 → 总结提炼 → 查指标 → 分析报告 → 查漏补缺终稿
适用场景
用户提供 1–N 个 B站/YouTube 视频链接,希望基于视频讨论的内容(某上市公司、某期货品种、某行业),产出一份带数据支撑、买卖建议、风险提示的研究报告。视频是研究起点,结论必须经最新公开数据交叉验证,不得仅凭视频下结论。
工作流总览(四步)
Step1 视频总结 → Step2 查指标 → Step3 分析报告 → Step4 查漏补缺终稿
(转录+提炼) (数据交叉) (框架成文) (空白+事件+跟踪)
每步产出都作为下一步输入;Step4 不改结论方向,只补证据、纠偏差、给跟踪清单。
Step 1:视频内容总结
目标:把视频转成文字,提炼核心观点、关键数据、涉及的标的/行业维度,并标注时间锚点。
1.1 先判断字幕可用性(省时关键)
- B站字幕接口(
get_subtitle/get_player_info)强制要求登录态 SESSDATA,无凭证多数视频取不到。 - 用 httpx 请求
https://api.bilibili.com/x/player/v2?cid={cid}&bvid={bv},看subtitle.subtitles与ai_subtitles数量。若全部为 0,直接走 1.2 转录路径,不要在字幕上耗时间。 - YouTube:优先
bilibili-youtube-video-summarizer的fetch_subtitle.py;无字幕再走音频。
1.2 音频下载 + Whisper 转录(B站默认路径)
⚡ 环境优化(必读,本流程从实测中提炼,避免重复踩坑):
- 依赖安装用清华镜像,默认 PyPI 在本机网络下频繁失败:
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy faster-whisper bilibili-api-python httpx(torch 已装则跳过;未装加torch,或运行scripts/setup_env.sh) - Whisper 模型从 HF 下载须设镜像并禁用 xet,否则 401:
export HF_ENDPOINT=https://hf-mirror.com+export HF_HUB_DISABLE_XET=1(脚本内已内置,可省略手动设置) - 转录并发控制:CPU 上 small 模型约 0.5× 实时速度。不要 5 路并行(严重互拖反而更慢),串行或最多 2–3 路。
运行本技能自带脚本(自包含,覆盖 B站下载+转录,内置 HF 镜像与 xet 禁用):
python <skill>/scripts/transcribe_videos.py <BV1> <BV2> ... [--model small]
输出 output/transcripts/<BV>.md(带 [mm:ss] 时间锚点)。YouTube 用 bilibili-youtube-video-summarizer 的 download.py + transcribe.py。
1.3 提炼总结(按集)
对每份逐字稿,产出:
- 一句话核心观点 + UP主/作者立场
- 关键数据(视频中出现的数字,标注【视频观点】非官方)
- 涉及的标的/行业维度(产能、价格周期、供需、政策、财务、成本、竞争格局…)
- 时间锚点:
[mm:ss]指向具体论点 - 外部交叉验证预留位(Step2/3 回填)
Step 2:查询相关指标(基于 Step1 提炼的维度)
目标:把视频涉及的行业/标的信息,用最新公开数据补全、校验、量化。
2.1 确定查询维度
从 Step1 提取的维度展开,典型维度见 references/indicator_query.md:
- 行业供需:产能/存栏/产量、价格(现货+期货)、成本(饲料/原料)、进出口、库存
- 标的财务:营收/利润/负债/现金流/毛利率、最新财报与预告
- 标的价格:股价/期货主力合约价与持仓、估值、资金流向、技术指标
- 政策与事件:调控目标、监管问询、产能政策、近期重大事项
2.2 数据来源与工具
- A股/港股/美股结构化数据:
westock-data技能(kline/finance/technical/shareholder 等)。注意quote可能禁用,用kline/finance/technical替代。 - 宏观/行业/政策/事件:WebSearch(农业农村部、国家统计局、交易所、公司公告、主流财经媒体、机构研报摘要)。
- 关键纪律:每个数据标【来源】+【时间节点】;区分【事实】【推论】【预测】【观点】。
2.3 记录冲突与空白
遇到口径冲突(如官方 vs 机构估计)或数据缺失,立即登记到"搜索空白"清单(Step4 处理),不要自行裁定。
Step 3:形成分析报告
目标:把 Step1 观点 + Step2 数据,按框架成文。模板见 references/report_template.md。
核心章节(顺序即决策逻辑):
- 〇、投资决策仪表盘:一句话条件化结论 + 核心变量(Decides upside / downside / most likely misjudgment)+ 关键数据快照。
- 〇·A、近阶段重大事项综述:按时间线列出视频之外的重大事件(换帅、业绩预告、政策、再融资/上市),附复合影响。
- 一、视频内容总结(逐字稿佐证):速览表 + 逐集(观点+时间锚点+外部交叉验证+与报告关联)+「视频观点 × 数据 × 本报告」结论总表。
- 二、关键指标数据:按维度列,全部标来源+时间+事实/推论。
- 三、趋势分析(多空矩阵):供需/周期位置/成本端/竞争格局;多情景(基准/乐观/悲观);多空冲突矩阵。
- 四、买卖点建议:标的(期货/个股)分档(观察/试仓/标准/高信心/止盈/禁止重仓)+ Green/Yellow/Red 触发条件。
- 五、证据台账与搜索空白:已查来源 + Search Blanks 清单。
- 六、未来重点跟踪指标与预计转折点:分级指标(A周度/B月度/C季度事件)+ 转折点时间轴。
Step 4:查漏补缺,产出终稿
目标:让报告闭环、可证伪、可跟踪。逐项核对清单:
- [ ] 逐字稿补齐:N 份是否全部生成?把 Step1 的"外部交叉验证预留位"回填权威信源(机构研报/公告/问询函),标注【共识/校正/分歧/待核实】。
- [ ] 数据冲突上修:官方口径 vs 机构估计冲突项 → 列为最高优先级待验证,注明等权威月报/公告定夺,不下绝对结论。
- [ ] 近阶段重大事项整合:换帅、业绩预告/快报、政策突变、再融资/上市状态(注意"拟发行"可能已落地为"已上市")、突发灾害/疫病——这些视频常未覆盖,须补入 〇·A 并联动影响研判。
- [ ] 状态纠正:H股/定增/回购等资本动作的实际进度(已上市/已实施 vs 拟进行),勿沿用视频旧信息。
- [ ] 搜索空白收敛:能查的当场查;查不到的明确列为 Search Blank,并给出"何时/在哪补"。
- [ ] 未来跟踪清单:补第六节——重点指标 + 预计转折点(如"官方能繁月报发布""中报披露""旺季价格验证")。
- [ ] 最终校验:全文无"待转录/转录中"残留;每结论标来源+时间+置信度;Red 触发含"财务负面再现/政策强力干预/数据证伪"等。
- [ ] 保持人类在环:报告末尾声明投资有风险、决策权在用户。
完成上述清单后,即为最终版分析报告。
关键纪律(贯穿四步)
- 视频是起点不是结论:所有判断须有最新数据交叉验证;视频发布时点早于某些重大事件时,必须显式衔接"视频未覆盖 X"。
- 来源与时间必标:无来源的数据不进报告。
- 事实/推论/预测/观点 四分离。
- 条件化结论:拒绝绝对化;用 Green/Yellow/Red 和情景分析表达不确定性。
- 查漏补缺是硬性第四步,不可跳过。
Resources
scripts/transcribe_videos.py:B站音频下载+Whisper 转录(自包含,内置 HF 镜像与 xet 禁用)。scripts/setup_env.sh:一键安装依赖(清华镜像)。references/report_template.md:最终报告 Markdown 模板(含仪表盘/多空矩阵/买卖分档/跟踪清单)。references/indicator_query.md:分场景的指标查询清单与 westock/websearch 用法。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 高价值/高频刚需,直接解决用户明确的核心任务痛点
- 显著提升投资研究效率,具备广泛受众的实用能力
- 四步闭环设计完整,从视频总结到投资分析报告形成完整工作流
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
- description 明确描述了适用场景和触发条件
- 支持 B站/YouTube 视频链接,适用个股、期货、行业研究
Highlights
- Phase/步骤清晰,有出口条件,含端到端示例
- frontmatter 完整,单文件结构良好
- 四步工作流总览清晰,每步产出都作为下一步输入
Highlights
- 工具来源明确,参数正确,覆盖主要异常
- 不可逆操作有确认机制,关键纪律贯穿四步
- 环境优化说明详细,避免常见踩坑
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 38
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- api.bilibili.com
- hf-mirror.com
- pypi.tuna.tsinghua.edu.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.