Scenario Analyzer
概述
此技能從新聞頭條出發,分析中長期(18個月)的投資情境。它會依序調用兩個專門代理(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 伺服器:無
- 依賴項:情境分析師 (scenario-analyst) 與策略審查員 (strategy-reviewer) 代理必須能透過 Task 工具使用
架構
┌─────────────────────────────────────────────────────────────────────┐
│ Skill (orchestrator) │
│ │
│ 階段 1:準備 │
│ ├─ 標題解析 │
│ ├─ 事件類型分類 │
│ └─ 參考資料載入 │
│ │
│ 階段 2:代理調用 │
│ ├─ scenario-analyst (主要分析) │
│ └─ strategy-reviewer (第二意見) │
│ │
│ 階段 3:整合與報告產出 │
│ └─ 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:代理調用
步驟 2.1:調用 scenario-analyst
使用 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 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:整合結果
整合兩個代理的產出,形成最終投資判斷。
整合重點:
- 填補審查中提出的盲點
- 調整機率分配(如有需要)
- 考量偏差後做出最終判斷
- 制定具體行動計畫
步驟 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 個情境 — 基準/樂觀/悲觀(含機率分配)
- 產業影響分析(第一/二/三層)
- 正面/負面股票推薦
- 第二意見 / 審查
- 最終投資判斷與啟示
資源
參考資料
references/headline_event_patterns.md- 事件模式與市場反應references/sector_sensitivity_matrix.md- 產業敏感度矩陣references/scenario_playbooks.md- 情境建構模板
代理
scenario-analyst- 主要情境分析strategy-reviewer- 第二意見 / 審查
重要備註
語言
- 所有分析與輸出均為英文
- 股票代碼保持其標準(英文)符號
目標市場
- 股票選擇僅限美國上市股票
- 包含 ADR
時間範圍
- 情境目標為18 個月
- 分為三個階段描述: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/目錄不存在則建立 - 不得直接儲存至專案根目錄
品質檢查清單
在最終確定報告前,請確認以下事項:
- 標題是否正確解析?
- 事件類型分類是否恰當?
- 三個情境的機率總和是否為 100%?
- 第一/二/三層影響是否有邏輯關聯?
- 股票選擇是否有具體理由支持?
- 是否包含 strategy-reviewer 的審查意見?
- 是否記錄了反映審查意見的最終判斷?
- 報告是否儲存至正確路徑?