Communityコーディング&開発github.com

tradermonty/scenario-analyzer

ニュースの見出しから18ヶ月先の投資シナリオを分析するスキル。2つの専門エージェント(scenario-analyst と strategy-reviewer)を呼び出し、複数の視点からの分析と批評を含む包括的なレポートを生成します。

scenario-analyzer とは?

このスキルは、ニュースの見出しを起点として、中長期的な投資シナリオ(18ヶ月先)を分析するためのものです。ユーザーが「/scenario-analyzer」コマンドでニュースの見出しを入力すると、まずscenario-analystエージェントが一次分析を行い、3つのシナリオ(ベース・ブル・ベア)とセクター・銘柄への影響(第1次~第3次)を評価します。続いてstrategy-reviewerエージェントがその分析を批評し、見落としやバイアスを指摘します。最後にこれらの結果を統合し、最終的な投資判断とアクションプランを含む包括的なレポート(Markdown形式ファイル)を生成します。対応プラットフォームはClaude Code(Agent / Taskツールを使用)を前提としており、外部APIキーやMCPサーバーは不要で、Web検索のみで動作します。出力は英語で行われ、推奨銘柄は米国市場に限定されます。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

シナリオアナライザー

概要

このスキルは、ニュースの見出しを起点として中長期(18ヶ月)の投資シナリオを分析します。2つの専門エージェント(scenario-analyst と strategy-reviewer)を順番に呼び出し、多角的な分析と批評を統合した包括的なレポートを生成します。

このスキルを使用するタイミング

以下の場合にこのスキルを使用してください:

  • ニュースの見出しから中長期的な投資への影響を分析したい
  • 複数の18ヶ月シナリオを構築したい
  • セクター/銘柄への影響を第1次/第2次/第3次の効果に分類したい
  • セカンドオピニオンを含む包括的な分析が必要

使用例:

/scenario-analyzer "FRB、0.5bp利上げ、さらなる利上げを示唆"
/scenario-analyzer "中国、米国半導体に新たな関税を発表"
/scenario-analyzer "OPECプラス、日量200万バレルの減産で合意"

前提条件

  • APIキー: なし(WebSearch/WebFetchのみを使用)
  • MCPサーバー: なし
  • 依存関係: scenario-analyst および strategy-reviewer エージェントが Task ツール経由で利用可能であること

アーキテクチャ

┌─────────────────────────────────────────────────────────────────────┐
│                    スキル(オーケストレーター)                       │
│                                                                      │
│  フェーズ1: 準備                                                    │
│  ├─ 見出し解析                                                       │
│  ├─ イベントタイプ分類                                               │
│  └─ リファレンス読み込み                                             │
│                                                                      │
│  フェーズ2: エージェント呼び出し                                     │
│  ├─ scenario-analyst(一次分析)                                     │
│  └─ strategy-reviewer(セカンドオピニオン)                          │
│                                                                      │
│  フェーズ3: 統合とレポート生成                                       │
│  └─ reports/scenario_analysis_<トピック>_YYYYMMDD.md                 │
└─────────────────────────────────────────────────────────────────────┘

ワークフロー

フェーズ1: 準備

ステップ1.1: 見出し解析

ユーザーから提供された見出しを解析します。

  1. 見出しの確認

    • 引数として見出しが渡されたことを確認
    • 渡されていない場合は、ユーザーに入力を求める
  2. キーワード抽出

    • 主要エンティティ(企業名、国名、機関名)
    • 数値データ(金利、価格、数量)
    • アクション(引き上げ、削減、発表、合意など)

ステップ1.2: イベントタイプ分類

見出しを以下のいずれかのカテゴリに分類します:

カテゴリ例
金融政策FOMC、ECB、BOJ、利上げ、利下げ、QE/QT
地政学戦争、制裁、関税、貿易摩擦
規制・政策環境規制、金融規制、独占禁止法
テクノロジーAI、EV、再生可能エネルギー、半導体
コモディティ原油、金、銅、農産物
企業・M&A買収、倒産、決算、業界再編

ステップ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: |
    以下の見出しについて、18ヶ月のシナリオ分析を実行してください。

    ## 対象見出し
    [入力された見出し]

    ## イベントタイプ
    [分類結果]

    ## リファレンス情報
    [読み込んだリファレンスの要約]

    ## 分析要件
    1. WebSearch を使用して過去2週間の関連ニュースを収集する
    2. 3つのシナリオ(ベース/ブル/ベア)を構築する(確率の合計は100%)
    3. セクターごとに第1次/第2次/第3次の影響を分析する
    4. ポジティブ影響3~5銘柄、ネガティブ影響3~5銘柄を選定する(米国市場のみ)
    5. 出力はすべて英語で行う

期待される出力:

  • 関連ニュース記事の一覧
  • 3つのシナリオの詳細(ベース/ブル/ベア)
  • セクター影響分析(第1次/第2次/第3次)
  • 推奨銘柄リスト

ステップ2.2: strategy-reviewer の呼び出し

scenario-analyst の結果を使用して、レビューエージェントを呼び出します。

Agent tool:
- subagent_type: "strategy-reviewer"
- prompt: |
    以下のシナリオ分析をレビューしてください。

    ## 対象見出し
    [入力された見出し]

    ## 分析結果
    [scenario-analyst の出力全体]

    ## レビュー要件
    以下の観点からレビューを行ってください:
    1. 見落とされているセクター/銘柄
    2. シナリオ確率配分の妥当性
    3. 影響分析の論理的一貫性
    4. 楽観/悲観バイアスの検出
    5. 代替シナリオの提案
    6. タイムラインの現実性

    建設的かつ具体的なフィードバックを英語で出力してください。

期待される出力:

  • ブラインドスポットの指摘
  • シナリオ確率に対する意見
  • バイアスの指摘
  • 代替シナリオの提案
  • 最終的な推奨事項

フェーズ3: 統合とレポート生成

ステップ3.1: 結果の統合

両エージェントの出力を統合し、最終的な投資判断を導き出します。

統合ポイント:

  1. レビューで指摘されたブラインドスポットを補完
  2. 必要に応じて確率配分を調整
  3. バイアスを考慮した最終判断
  4. 具体的なアクションプランの策定

ステップ3.2: レポートの生成

以下の形式で最終レポートを生成し、ファイルに保存します。

保存場所: reports/scenario_analysis_<トピック>_YYYYMMDD.md

# 見出しシナリオ分析レポート

**分析日時**: YYYY-MM-DD HH:MM
**対象見出し**: [入力された見出し]
**イベントタイプ**: [分類カテゴリ]

---

## 1. 関連ニュース記事
[scenario-analyst が収集したニュース一覧]

## 2. シナリオ概要(18ヶ月先まで)

### ベースケース(XX%確率)
[シナリオ詳細]

### ブルケース(XX%確率)
[シナリオ詳細]

### ベアケース(XX%確率)
[シナリオ詳細]

## 3. セクター/産業への影響

### 第1次影響(直接的)
[影響テーブル]

### 第2次影響(バリューチェーン/関連産業)
[影響テーブル]

### 第3次影響(マクロ/規制/テクノロジー)
[影響テーブル]

## 4. 恩恵が期待される銘柄(3~5ティッカー)
[銘柄テーブル]

## 5. 打撃が予想される銘柄(3~5ティッカー)
[銘柄テーブル]

## 6. セカンドオピニオン/レビュー
[strategy-reviewer の出力]

## 7. 最終投資判断と示唆

### 推奨アクション
[レビューを反映した具体的なアクション]

### リスク要因
[主要なリスクの一覧]

### モニタリングポイント
[注視すべき指標/イベント]

---
**生成元**: scenario-analyzer スキル
**エージェント**: scenario-analyst, strategy-reviewer

ステップ3.3: レポートの保存

  1. reports/ ディレクトリが存在しない場合は作成する
  2. scenario_analysis_<トピック>_YYYYMMDD.md として保存(例: scenario_analysis_venezuela_20260104.md)
  3. 保存が完了したことをユーザーに通知する
  4. プロジェクトルートに直接保存しないこと

出力

このスキルは以下のファイルを生成します:

ファイル形式説明
reports/scenario_analysis_<トピック>_YYYYMMDD.mdMarkdown包括的なシナリオ分析レポート

出力内容:

  • 関連ニュース記事の一覧
  • 3つのシナリオ(ベース/ブル/ベア、確率配分付き)
  • セクター影響分析(第1次/第2次/第3次)
  • ポジティブ/ネガティブな推奨銘柄
  • セカンドオピニオン/レビュー
  • 最終投資判断と示唆

リソース

リファレンス

  • references/headline_event_patterns.md - イベントパターンと市場の反応
  • references/sector_sensitivity_matrix.md - セクター感応度マトリックス
  • references/scenario_playbooks.md - シナリオ構築テンプレート

エージェント

  • scenario-analyst - 一次シナリオ分析
  • strategy-reviewer - セカンドオピニオン/レビュー

重要な注意事項

言語

  • すべての分析と出力は英語で行われます
  • 株式ティッカーは標準の(英語)記号のままです

対象市場

  • 銘柄選択は米国上場銘柄のみ
  • ADRを含む

時間軸

  • シナリオは18ヶ月を対象とします
  • 3つのフェーズで記述: 0-6ヶ月 / 6-12ヶ月 / 12-18ヶ月

確率配分

  • ベース + ブル + ベア = 100%
  • 各シナリオの確率はその根拠とともに記述されます

セカンドオピニオン

  • 必須(常に strategy-reviewer を呼び出します)
  • レビュー結果は最終判断に反映されます

出力場所(重要)

  • 常に reports/ ディレクトリ配下に保存
  • パス: reports/scenario_analysis_<トピック>_YYYYMMDD.md
  • 例: reports/scenario_analysis_fed_rate_hike_20260104.md
  • reports/ ディレクトリが存在しない場合は作成する
  • プロジェクトルートに直接保存しないこと

品質チェックリスト

レポートを最終化する前に以下を確認してください:

  • 見出しは正しく解析されましたか?
  • イベントタイプの分類は適切ですか?
  • 3つのシナリオの確率は合計100%ですか?
  • 第1次/第2次/第3次の影響は論理的に接続されていますか?
  • 銘柄選定には具体的な根拠がありますか?
  • 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).

関連スキル