Agent skill

Scenario Analyzer

by nicepkg in nicepkg/ai-workflow

ニュースヘッドラインを入力として18ヶ月シナリオを分析するスキル. An agent skill from nicepkg/ai-workflow.

MITAuto-check passed

Install Scenario Analyzer

skills CLI
$ npx skills add nicepkg/ai-workflow --skill scenario-analyzer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nicepkg/ai-workflow scenario-analyzer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nicepkg/ai-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/workflows/stock-trader-workflow/.claude/skills/scenario-analyzer .claude/skills/scenario-analyzer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
scenario-analyzer
GitHub stars
285
Token cost
~1.5k tokens
SKILL.md length
182 words
Files
4 (incl. references)
Skills in repo
75
Repo updated
First seen
Licence
MIT

At a glance

ニュースヘッドラインを入力として18ヶ月シナリオを分析するスキル. An agent skill from nicepkg/ai-workflow.

  • Works in 3 steps: 準備 → エージェント呼び出し → 統合・レポート生成
  • SKILL.md covers Overview, When to Use This Skill, Architecture and Workflow, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Scenario Analyzer is an agent skill from nicepkg/ai-workflow. ニュースヘッドラインを入力として18ヶ月シナリオを分析するスキル。 scenario-analystエージェントで主分析を実行し、 strategy-reviewerエージェントでセカンドオピニオンを取得。 1次・2次・3次影響、推奨銘柄、レビューを含む包括的レポートを日本語で生成。 使用例: /scenario-analyzer "Fed raises rates by 50bp" トリガー: ニュース分析、シナリオ分析、18ヶ月展望、中長期投資戦略

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/headline_event_patterns.md`, `references/scenario_playbooks.md` and `references/sector_sensitivity_matrix.md`).

The repository describes itself as: 🚀 170+ pre-built skills for Claude Code, Cursor, Codex & 14+ AI tools. Stop re-teaching your AI the same things. One command → instant domain expertise. Marketing, SEO, Trading… The licence is MIT.

Example prompts

  • “Fed raises rates by 50bp”
  • “/scenario-analyzer”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. 準備
  2. エージェント呼び出し
  3. 統合・レポート生成

What it can do on your machine

Read from SKILL.md and the folder at commit d167b41. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Scenario Analyzer loads about 1.5k tokens when it runs, and up to ~8.2k if it reads all its reference files. Until then it costs about 62 tokens; SKILL.md has 182 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nicepkg/ai-workflow at commit d167b41, republished under its MIT licence (© nicepkg). 182 words, ~1,538 tokens.

Download SKILL.mdSave it as .claude/skills/scenario-analyzer/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
scenario-analyzer
description
ニュースヘッドラインを入力として18ヶ月シナリオを分析するスキル。 scenario-analystエージェントで主分析を実行し、 strategy-reviewerエージェントでセカンドオピニオンを取得。 1次・2次・3次影響、推奨銘柄、レビューを含む包括的レポートを日本語で生成。 使用例: /scenario-analyzer "Fed raises rates by 50bp" トリガー: ニュース分析、シナリオ分析、18ヶ月展望、中長期投資戦略

Headline Scenario Analyzer

Overview

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

When to Use This Skill

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

  • ニュースヘッドラインから中長期の投資影響を分析したい
  • 18ヶ月後のシナリオを複数構築したい
  • セクター・銘柄への影響を1次/2次/3次で整理したい
  • セカンドオピニオンを含む包括的な分析が必要
  • 日本語でのレポート出力が必要

使用例:

/headline-scenario-analyzer "Fed raises interest rates by 50bp, signals more hikes ahead"
/headline-scenario-analyzer "China announces new tariffs on US semiconductors"
/headline-scenario-analyzer "OPEC+ agrees to cut oil production by 2 million barrels per day"

Architecture

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

Workflow

Phase 1: 準備
Step 1.1: ヘッドライン解析

ユーザーから入力されたヘッドラインを解析します。

  1. ヘッドライン確認

    • 引数としてヘッドラインが渡されているか確認
    • 渡されていない場合はユーザーに入力を求める
  2. キーワード抽出

    • 主要なエンティティ(企業名、国名、機関名)
    • 数値データ(金利、価格、数量)
    • アクション(引き上げ、引き下げ、発表、合意等)
Step 1.2: イベントタイプ分類

ヘッドラインを以下のカテゴリに分類:

カテゴリ例
金融政策FOMC、ECB、日銀、利上げ、利下げ、QE/QT
地政学戦争、制裁、関税、貿易摩擦
規制・政策環境規制、金融規制、独禁法
テクノロジーAI、EV、再エネ、半導体
コモディティ原油、金、銅、農産物
企業・M&A買収、破綻、決算、業界再編
Step 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: シナリオ構築のテンプレートとベストプラクティス

Phase 2: エージェント呼び出し
Step 2.1: scenario-analyst 呼び出し

Task toolを使用してメイン分析エージェントを呼び出します。

Task tool:
- subagent_type: "scenario-analyst"
- prompt: |
    以下のヘッドラインについて18ヶ月シナリオ分析を実行してください。

    ## 対象ヘッドライン
    [入力されたヘッドライン]

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

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

    ## 分析要件
    1. WebSearchで過去2週間の関連ニュースを収集
    2. Base/Bull/Bearの3シナリオを構築(確率合計100%)
    3. 1次/2次/3次影響をセクター別に分析
    4. ポジティブ/ネガティブ影響銘柄を各3-5銘柄選定(米国市場のみ)
    5. 全て日本語で出力

期待する出力:

  • 関連ニュース記事リスト
  • 3シナリオ(Base/Bull/Bear)の詳細
  • セクター影響分析(1次/2次/3次)
  • 銘柄推奨リスト
Step 2.2: strategy-reviewer 呼び出し

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

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

    ## 対象ヘッドライン
    [入力されたヘッドライン]

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

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

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

期待する出力:

  • 見落としの指摘
  • シナリオ確率への意見
  • バイアスの指摘
  • 代替シナリオの提案
  • 最終推奨事項

Phase 3: 統合・レポート生成
Step 3.1: 結果統合

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

統合ポイント:

  1. レビューで指摘された見落としを補完
  2. 確率配分の調整(必要な場合)
  3. バイアスを考慮した最終判断
  4. 具体的なアクションプランの策定
Step 3.2: レポート生成

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

保存先: reports/scenario_analysis_<topic>_YYYYMMDD.md

markdown
# ヘッドライン・シナリオ分析レポート

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

---

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

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

### Base Case(XX%確率)
[シナリオ詳細]

### Bull Case(XX%確率)
[シナリオ詳細]

### Bear Case(XX%確率)
[シナリオ詳細]

## 3. セクター・業種への影響

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

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

### 3次的影響(マクロ・規制・技術)
[影響テーブル]

## 4. ポジティブ影響が見込まれる銘柄(3-5銘柄)
[銘柄テーブル]

## 5. ネガティブ影響が見込まれる銘柄(3-5銘柄)
[銘柄テーブル]

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

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

### 推奨アクション
[レビューを踏まえた具体的アクション]

### リスク要因
[主要リスクの列挙]

### モニタリングポイント
[フォローすべき指標・イベント]

---
**生成**: scenario-analyzer skill
**エージェント**: scenario-analyst, strategy-reviewer
Step 3.3: レポート保存
  1. reports/ ディレクトリが存在しない場合は作成
  2. scenario_analysis_<topic>_YYYYMMDD.md として保存(例: scenario_analysis_venezuela_20260104.md)
  3. 保存完了をユーザーに通知
  4. プロジェクトルートに直接保存しないこと

Resources

References
  • references/headline_event_patterns.md - イベントパターンと市場反応
  • references/sector_sensitivity_matrix.md - セクター感応度マトリクス
  • references/scenario_playbooks.md - シナリオ構築テンプレート
Agents
  • scenario-analyst - メインシナリオ分析
  • strategy-reviewer - セカンドオピニオン・レビュー

Important Notes

言語
  • 全ての分析・出力は日本語で行う
  • 銘柄ティッカーは英語表記を維持
対象市場
  • 銘柄選定は米国市場上場銘柄のみ
  • ADR含む
時間軸
  • シナリオは18ヶ月を対象
  • 0-6ヶ月/6-12ヶ月/12-18ヶ月の3フェーズで記述
確率配分
  • Base + Bull + Bear = 100%
  • 各シナリオの確率は根拠とともに記述
セカンドオピニオン
  • 必須で実行(strategy-reviewerを常に呼び出す)
  • レビュー結果は最終判断に反映
出力先(重要)
  • 必ず reports/ ディレクトリ配下に保存すること
  • パス: reports/scenario_analysis_<topic>_YYYYMMDD.md
  • 例: reports/scenario_analysis_fed_rate_hike_20260104.md
  • reports/ ディレクトリが存在しない場合は作成すること
  • プロジェクトルートに直接保存してはならない

Quality Checklist

レポート完成前に以下を確認:

  • ヘッドラインが正しく解析されているか
  • イベントタイプの分類が適切か
  • 3シナリオの確率合計が100%か
  • 1次/2次/3次影響の論理的繋がりがあるか
  • 銘柄選定に具体的な根拠があるか
  • strategy-reviewerのレビューが含まれているか
  • レビューを踏まえた最終判断が記載されているか
  • レポートが正しいパスに保存されたか

© nicepkg, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in workflows/stock-trader-workflow/.claude/skills/scenario-analyzer of nicepkg/ai-workflow.

  • SKILL.md
  • references/headline_event_patterns.md
  • references/scenario_playbooks.md
  • references/sector_sensitivity_matrix.md

Open the folder on GitHubat commit d167b41

Compare with similar skills

Scenario Analyzer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Scenario Analyzer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Scenario Analyzer this skillnicepkg/ai-workflow285—~1.5kAutomated safety check: PassMIT
Scenario Analyzertradermonty/claude-trading-skills3k1 repos~2.6kAutomated safety check: PassMIT
Agent Code Analyzerruvnet/ruflo74k2 repos~1.5kAutomated safety check: PassMIT
Agent Pagerank Analyzerruvnet/ruflo74k2 repos~2.9kAutomated safety check: PassMIT
Agent Performance Analyzerruvnet/ruflo74k2 repos~1.3kAutomated safety check: PassMIT
Diff Analyzeruvnet/ruflo74k—~450Automated safety check: NotesMIT

Similar skills

  • Scenario Analyzer

    tradermonty/claude-trading-skills

    Skill that analyzes 18-month scenarios from a news headline.

    3k GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • Agent skill for code-analyzer - invoke with $agent-code-analyzer

    74k GitHub starsUsed in 2 repos~1.5k tokens
    DevelopmentAuto-check passed
  • Agent skill for pagerank-analyzer - invoke with $agent-pagerank-analyzer

    74k GitHub starsUsed in 2 repos~2.9k tokens
    Auto-check passed
  • Agent skill for performance-analyzer - invoke with $agent-performance-analyzer

    74k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check passed
  • Diff Analyze

    ruvnet/ruflo

    Analyze git diffs for risk scoring, reviewer recommendations, and change classification.

    74k GitHub stars~450 tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Analyze GitHub Flake

    flutter/flutter

    Expertise in analyzing flake github issues in the flutter/flutter repository.

    180k GitHub stars~1.1k tokensUpdated today
    MobileAuto-check passed

More from nicepkg/ai-workflow

All 75 skills in this repo
  • Capture Triage

    nicepkg/ai-workflow

    Processes Drafts Pro captures from the Inbox folder. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~3k tokensUpdated 8 mo ago
    Auto-check passed
  • Legacy To AI Ready

    nicepkg/ai-workflow

    Transform legacy codebases into AI-ready projects with Claude Code configurations.

    285 GitHub stars~2.2k tokensUpdated 8 mo ago
    Auto-check: notes
  • Newsletter Coach

    nicepkg/ai-workflow

    Writing coach that extracts educational content from your daily experiences and turns it into publish-ready newsletter drafts.

    285 GitHub stars~3.7k tokensUpdated 8 mo ago
    Auto-check passed
  • Webfluence

    nicepkg/ai-workflow

    Content web architecture framework. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~1.4k tokensUpdated 8 mo ago
    Auto-check passed
  • Workflow Creator

    nicepkg/ai-workflow

    Create complete Claude Code workflow directories with curated skills.

    285 GitHub stars~2.6k tokensUpdated 8 mo ago
    Auto-check passed
  • Media Processing

    nicepkg/ai-workflow

    Video/audio/image processing with FFmpeg and ImageMagick. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~2.4k tokensUpdated 8 mo ago
    Auto-check: notes

Questions about Scenario Analyzer

What does Scenario Analyzer do?

ニュースヘッドラインを入力として18ヶ月シナリオを分析するスキル. An agent skill from nicepkg/ai-workflow. Scenario Analyzer is an agent skill from nicepkg/ai-workflow.

How do I install Scenario Analyzer in Claude Code?

Run `npx skills add nicepkg/ai-workflow --skill scenario-analyzer -a claude-code`. Or copy the skill folder (workflows/stock-trader-workflow/.claude/skills/scenario-analyzer in nicepkg/ai-workflow) into .claude/skills/scenario-analyzer in your project. Claude Code loads it when a task matches its description.

How do I install Scenario Analyzer in Codex?

Run `npx skills add nicepkg/ai-workflow --skill scenario-analyzer -a codex`. Or copy the skill folder (workflows/stock-trader-workflow/.claude/skills/scenario-analyzer in nicepkg/ai-workflow) into .agents/skills/scenario-analyzer in your project. Codex loads it when a task matches its description.

Can I use Scenario Analyzer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nicepkg/ai-workflow --skill scenario-analyzer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scenario-analyzer, .gemini/skills/scenario-analyzer, .github/skills/scenario-analyzer and .opencode/skills/scenario-analyzer in your project.

What does Scenario Analyzer need to run?

SKILL.md names no scripts, command-line tools or credentials: Scenario Analyzer is instructions for the agent only.

Does Scenario Analyzer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Scenario Analyzer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Scenario Analyzer use?

Scenario Analyzer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Scenario Analyzer use?

About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.7k tokens, read only when the agent opens those files.

What are the alternatives to Scenario Analyzer?

Skills that share tags, products or a category with Scenario Analyzer: Scenario Analyzer (tradermonty/claude-trading-skills, 3k stars), Agent Code Analyzer (ruvnet/ruflo, 74k stars), Agent Pagerank Analyzer (ruvnet/ruflo, 74k stars) and Agent Performance Analyzer (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Scenario Analyzer?

nicepkg (a GitHub organization) maintains it in nicepkg/ai-workflow, which has 285 GitHub stars. The repository holds 75 skills in this directory. The repository was last updated on January 20, 2026.

Source: nicepkg/ai-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.