关于 scenario-analyzer
根据新闻标题分析未来 18 个月投资情景的技能。它依次调用 `scenario-analyst` 和 `strategy-reviewer`,生成包含情景、行业与股票影响及复核后投资判断的报告。
主要功能
- 01分类新闻事件
- 02构建基准、看涨和看跌情景
- 03梳理一、二、三阶影响
- 04整合强制策略复核
- 05保存 Markdown 报告
适用场景
- 01评估新闻标题的投资含义
- 02比较未来 18 个月的市场情景
- 03追踪事件对行业和股票的影响
- 04复核初步投资分析
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ tradermonty/ claude-trading-skills --skill scenario-analyzer安装后在 Claude Code 中输入/scenario-analyzer确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/headline_event_patterns.mdscenario_playbooks.mdsector_sensitivity_matrix.mdscripts/tests/test_skill_contract.py详细介绍
情景分析器
概述
此技能从新闻标题出发,分析中长期(18 个月)投资情景。它会依次调用两个专用 Agent
(scenario-analyst 和 strategy-reviewer),结合多角度分析与批判性审查,生成一份综合报告。
何时使用此技能
在以下情况使用此技能:
- 想分析某条新闻标题对中长期投资的影响
- 想构建多个 18 个月的情景
- 想按一阶、二阶、三阶影响梳理行业和股票受到的影响
- 需要包含第二意见的综合分析
示例:
/scenario-analyzer "Fed raises interest rates by 50bp, signals more hikes ahead"
/scenario-analyzer "China announces new tariffs on US semiconductors"
/scenario-analyzer "OPEC+ agrees to cut oil production by 2 million barrels per day"
前提条件
- API 密钥:无(仅使用 WebSearch/WebFetch)
- MCP 服务:无
- 依赖项:必须能够通过 Task 工具使用 scenario-analyst 和 strategy-reviewer Agent
架构
┌─────────────────────────────────────────────────────────────────────┐
│ Skill (orchestrator) │
│ │
│ Phase 1: Preparation │
│ ├─ Headline parsing │
│ ├─ Event type classification │
│ └─ Reference loading │
│ │
│ Phase 2: Agent invocation │
│ ├─ scenario-analyst (primary analysis) │
│ └─ strategy-reviewer (second opinion) │
│ │
│ Phase 3: Integration & report generation │
│ └─ reports/scenario_analysis_<topic>_YYYYMMDD.md │
└─────────────────────────────────────────────────────────────────────┘
工作流
阶段 1:准备
步骤 1.1:解析标题
解析用户提供的标题。
-
检查标题
- 确认是否传入了标题作为参数
- 如果未提供,请向用户询问
-
提取关键词
- 关键实体(公司名称、国家名称、机构名称)
- 数值数据(利率、价格、数量)
- 行动(加息、降息、宣布、达成协议等)
步骤 1.2:事件类型分类
将标题归入以下类别之一:
| 类别 | 示例 |
|---|---|
| 货币政策 | FOMC、ECB、BOJ、加息、降息、QE/QT |
| 地缘政治 | 战争、制裁、关税、贸易摩擦 |
| 监管与政策 | 环境监管、金融监管、反垄断 |
| 技术 | AI、电动汽车、可再生能源、半导体 |
| 大宗商品 | 原油、黄金、铜、农产品 |
| 企业与并购 | 收购、破产、财报、行业重组 |
步骤 1.3:加载参考资料
根据事件类型,加载相关参考资料:
Read references/headline_event_patterns.md
Read references/sector_sensitivity_matrix.md
Read references/scenario_playbooks.md
参考资料内容:
headline_event_patterns.md:历史事件模式与市场反应sector_sensitivity_matrix.md:事件 × 行业影响幅度矩阵scenario_playbooks.md:情景构建模板与最佳实践
阶段 2:调用 Agent
步骤 2.1:调用 scenario-analyst
使用 Agent 工具调用主要分析 Agent。
Agent tool:
- subagent_type: "scenario-analyst"
- prompt: |
Perform an 18-month scenario analysis for the following headline.
## Target Headline
[the input headline]
## Event Type
[classification result]
## Reference Information
[summary of the loaded references]
## Analysis Requirements
1. Use WebSearch to collect related news from the past 2 weeks
2. Construct 3 scenarios — Base/Bull/Bear (probabilities sum to 100%)
3. Analyze 1st/2nd/3rd-order impacts by sector
4. Select 3-5 positive- and 3-5 negative-impact stocks (US market only)
5. Output everything in English
预期输出:
- 相关新闻文章列表
- 3 种情景(基准/看涨/看跌)的详细信息
- 行业影响分析(一阶/二阶/三阶)
- 股票推荐列表
步骤 2.2:调用 strategy-reviewer
使用 scenario-analyst 的结果调用审查 Agent。
Agent tool:
- subagent_type: "strategy-reviewer"
- prompt: |
Review the following scenario analysis.
## Target Headline
[the input headline]
## Analysis Result
[the full scenario-analyst output]
## Review Requirements
Review from the following angles:
1. Overlooked sectors/stocks
2. Validity of the scenario probability allocation
3. Logical consistency of the impact analysis
4. Detection of optimism/pessimism bias
5. Proposal of alternative scenarios
6. Realism of the timeline
Output constructive and specific feedback in English.
预期输出:
- 指出盲点
- 对情景概率的看法
- 指出偏差
- 提出替代情景
- 最终建议
阶段 3:整合与生成报告
步骤 3.1:整合结果
整合两个 Agent 的输出,得出最终投资判断。
整合要点:
- 补充审查中指出的盲点
- 调整概率分配(如有必要)
- 在考虑偏差的基础上作出最终判断
- 制定具体行动计划
步骤 3.2:生成报告
按以下格式生成最终报告并保存到文件。
保存位置: reports/scenario_analysis_<topic>_YYYYMMDD.md
# Headline Scenario Analysis Report
**Analyzed at**: YYYY-MM-DD HH:MM
**Target headline**: [the input headline]
**Event type**: [classification category]
---
## 1. Related News Articles
[news list collected by scenario-analyst]
## 2. Scenario Overview (through 18 months out)
### Base Case (XX% probability)
[scenario details]
### Bull Case (XX% probability)
[scenario details]
### Bear Case (XX% probability)
[scenario details]
## 3. Sector / Industry Impact
### 1st-Order Impact (direct)
[impact table]
### 2nd-Order Impact (value chain / related industries)
[impact table]
### 3rd-Order Impact (macro / regulation / technology)
[impact table]
## 4. Stocks Expected to Benefit (3-5 tickers)
[stock table]
## 5. Stocks Expected to Be Hurt (3-5 tickers)
[stock table]
## 6. Second Opinion / Review
[strategy-reviewer output]
## 7. Final Investment Judgment & Implications
### Recommended Actions
[concrete actions informed by the review]
### Risk Factors
[list of key risks]
### Monitoring Points
[indicators / events to follow]
---
**Generated by**: scenario-analyzer skill
**Agents**: scenario-analyst, strategy-reviewer
步骤 3.3:保存报告
- 如果
reports/目录不存在,则创建该目录 - 保存为
scenario_analysis_<topic>_YYYYMMDD.md(例如,scenario_analysis_venezuela_20260104.md) - 通知用户已完成保存
- 不要直接保存到项目根目录
输出
此技能会生成以下文件:
| 文件 | 格式 | 说明 |
|---|---|---|
reports/scenario_analysis_<topic>_YYYYMMDD.md | Markdown | 全面的情景分析报告 |
输出内容:
- 相关新闻文章列表
- 3 种情景——基准/看涨/看跌(含概率分配)
- 行业影响分析(第 1/第 2/第 3 阶)
- 正面/负面股票推荐
- 第二意见/评审
- 最终投资判断及影响
资源
参考资料
references/headline_event_patterns.md- 事件模式和市场反应references/sector_sensitivity_matrix.md- 行业敏感度矩阵references/scenario_playbooks.md- 情景构建模板
Agent
scenario-analyst- 主要情景分析strategy-reviewer- 第二意见/评审
重要说明
语言
- 所有分析和输出均使用英语
- 股票代码保持其标准(英文)符号
目标市场
- 股票选择仅限在美国上市的股票
- 包括 ADR
时间范围
- 情景以 18 个月为目标
- 分为 3 个阶段描述:0-6 个月/6-12 个月/12-18 个月
概率分配
- 基准 + 看涨 + 看跌 = 100%
- 每种情景的概率均需说明其依据
第二意见
- 必须(始终调用 strategy-reviewer)
- 评审结果需体现在最终判断中
输出位置(重要)
- 始终保存至
reports/目录下 - 路径:
reports/scenario_analysis_<topic>_YYYYMMDD.md - 示例:
reports/scenario_analysis_fed_rate_hike_20260104.md - 如果
reports/目录不存在,请创建该目录 - 不得直接保存到项目根目录
质量检查清单
完成报告前,请确认以下事项:
- 是否正确解析了标题?
- 事件类型分类是否恰当?
- 3 种情景的概率之和是否为 100%?
- 第 1/第 2/第 3 阶影响之间的逻辑联系是否合理?
- 股票选择是否有具体依据支持?
- 是否包含 strategy-reviewer 的评审?
- 是否记录了体现评审意见的最终判断?
- 报告是否保存到了正确路径?
评论
支持 Markdown