Community程式設計與開發github.com

tradermonty/scenario-analyzer

分析新聞頭條,預測未來18個月的投資情境,並產出包含第一、二、三層影響、推薦股票與二次審查的全面英文報告。

scenario-analyzer 是什麼?

此技能專為需要中長期(18個月)投資情境分析的開發者與AI代理用戶設計。它能從一則新聞頭條出發,依序召喚「情境分析師」(scenario-analyst) 與「策略審查員」(strategy-reviewer) 兩個專門代理,產出多角度的綜合報告。報告涵蓋三個情境(基準、樂觀、悲觀)、分層(第一/二/三階)產業影響分析、美國上市股票的正面與負面清單,以及策略審查員提供的第二意見,最後整合成一份完整的投資判斷與行動建議。此技能支援Claude Code等可執行Agent工具的平台,透過WebSearch收集相關新聞,並自動將報告儲存為Markdown檔案。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tradermonty/claude-trading-skills/tree/main/skills/scenario-analyzer

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

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. 關鍵詞提取

    • 關鍵實體(公司名稱、國家名稱、機構名稱)
    • 數值資料(利率、價格、數量)
    • 行動(升息、降息、宣布、同意等)

步驟 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:整合結果

整合兩個代理的產出,形成最終投資判斷。

整合重點:

  1. 填補審查中提出的盲點
  2. 調整機率分配(如有需要)
  3. 考量偏差後做出最終判斷
  4. 制定具體行動計畫

步驟 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:儲存報告

  1. 若 reports/ 目錄不存在則建立
  2. 儲存為 scenario_analysis_<topic>_YYYYMMDD.md(例如:scenario_analysis_venezuela_20260104.md)
  3. 通知使用者儲存完成
  4. 不要直接儲存至專案根目錄

輸出

此技能會產生下列檔案:

檔案格式說明
reports/scenario_analysis_<topic>_YYYYMMDD.mdMarkdown完整的情境分析報告

輸出內容:

  • 相關新聞文章列表
  • 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 的審查意見?
  • 是否記錄了反映審查意見的最終判斷?
  • 報告是否儲存至正確路徑?

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

tradermonty/backtest-expert

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

tradermonty/market-environment-analysis

Comprehensive market environment analysis and reporting tool. Analyzes global markets including US, European, Asian markets, forex, commodities, and economic indicators. Provides risk-on/risk-off assessment, sector analysis, and technical indicator interpretation. Triggers on keywords like market analysis, market environment, global markets, trading environment, market conditions, investment climate, market sentiment, forex analysis, stock market analysis, 相場環境, 市場分析, マーケット状況, 投資環境.

tradermonty/market-news-analyst

This skill should be used when analyzing recent market-moving news events and their impact on equity markets and commodities. Use this skill when the user requests analysis of major financial news from the past 10 days, wants to understand market reactions to monetary policy decisions (FOMC, ECB, BOJ), needs assessment of geopolitical events' impact on commodities, or requires comprehensive review of earnings announcements from mega-cap stocks. The skill automatically collects news using WebSearch/WebFetch tools and produces impact-ranked analysis reports. All analysis thinking and output are conducted in English.

tradermonty/options-strategy-advisor

Options trading strategy analysis and simulation tool. Provides theoretical pricing using Black-Scholes model, Greeks calculation, strategy P/L simulation, and risk management guidance. Use when user requests options strategy analysis, covered calls, protective puts, spreads, iron condors, earnings plays, or options risk management. Includes volatility analysis, position sizing, and earnings-based strategy recommendations. Educational focus with practical trade simulation.

tradermonty/portfolio-manager

Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.

tradermonty/sector-analyst

This skill should be used when analyzing sector rotation patterns and market cycle positioning. It fetches sector uptrend data from CSV (no API key required) and optionally accepts chart images for supplementary analysis. Use this skill when the user requests sector rotation analysis, cyclical vs defensive assessment, overbought/oversold identification, or market cycle phase estimation. All analysis and output are conducted in English.

tradermonty/signal-postmortem

Record and analyze post-trade outcomes for signals generated by edge pipeline and other skills. Track false positives, missed opportunities, and regime mismatches. Feed results back to edge-signal-aggregator weights and skill improvement backlog.

tradermonty/skill-designer

Design new Claude skills from structured idea specifications. Use when the skill auto-generation pipeline needs to produce a Claude CLI prompt that creates a complete skill directory (SKILL.md, references, scripts, tests) following repository conventions.

tradermonty/skill-idea-miner

Mine Claude Code session logs for skill idea candidates. Use when running the weekly skill generation pipeline to extract, score, and backlog new skill ideas from recent coding sessions.

tradermonty/theme-detector

Detect and analyze trending market themes across sectors. Use when user asks about current market themes, trending sectors, sector rotation, thematic investing, what themes are hot or cold, or wants to identify bullish and bearish market narratives with lifecycle analysis.

tradermonty/uptrend-analyzer

Analyzes market breadth using Monty's Uptrend Ratio Dashboard data to diagnose the current market environment. Generates a 0-100 composite score from 5 components (breadth, sector participation, rotation, momentum, historical context). Use when asking about market breadth, uptrend ratios, or whether the market environment supports equity exposure. No API key required.

tradermonty/us-stock-analysis

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

tradermonty/value-dividend-screener

Screen US stocks for high-quality dividend opportunities combining value characteristics (P/E ratio under 20, P/B ratio under 2), attractive yields (3% or higher), and consistent growth (dividend/revenue/EPS trending up over 3 years). Supports two-stage screening using FINVIZ Elite API for efficient pre-filtering followed by FMP API for detailed analysis. Use when user requests dividend stock screening, income portfolio ideas, or quality value stocks with strong fundamentals.

tradermonty/vcp-screener

Screen S&P 500 stocks for Mark Minervini's Volatility Contraction Pattern (VCP) and detect historical VCPs in a single ticker's price path. Identifies Stage 2 uptrend stocks forming tight bases with contracting volatility near breakout pivot points; in historical single-ticker mode walks a multi-year history and emits every VCP that formed with forward-outcome stats (breakout / stop-hit / timeout). Use when user requests VCP screening, Minervini-style setups, tight base patterns, volatility contraction breakout candidates, Stage 2 momentum stock scanning, or historical VCP pattern study on a specific ticker (e.g. FIX, TSLA).

相關技能