scenario-analyzer

scenario-analyzer is a command for Claude Code from tradermonty/claude-trading-skills. It costs 36 tokens per session (863 once invoked), scanned A, original, MIT.

A command that turns a news headline into an 18-month outlook for industries and US stocks. It compares likely, optimistic, and pessimistic scenarios and includes a second review of the analysis.

In plain words
What is it for?
Use it with headlines such as interest-rate changes, tariffs, or oil-production decisions. It gathers related recent news, maps first-, second-, and third-order impacts, and names potentially positive or negative stocks.
Why use it?
It helps connect a news event to possible knock-on effects across industries and identify assumptions or blind spots before making an investment view.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it with headlines such as interest-rate changes, tariffs, or oil-production decisions. It gathers related recent news, maps first-, second-, and third-order impacts, and names potentially positive or negative stocks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tradermonty/claude-trading-skills/scenario-analyzer
About the project

Claude Trading Skills is a collection of Claude Code workflows for individual investors who want structured market analysis, charting, economic-calendar review, screening, trade planning, journaling, and risk management. It is designed for people using long-term investing, ETFs, dividend stocks, and disciplined swing trading, and the catalogue entries package these workflows as skills, agents, commands, settings, and instructions.

tradermonty/claude-trading-skills · 2,808 stars · on GitHub · tradermonty.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/tradermonty/claude-trading-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scenario-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/commands/tradermonty/claude-trading-skills/scenario-analyzer/github.svg)](https://agentmods.dev/commands/tradermonty/claude-trading-skills/scenario-analyzer)
Your own site
<a href="https://agentmods.dev/commands/tradermonty/claude-trading-skills/scenario-analyzer"><img src="https://agentmods.dev/badge/commands/tradermonty/claude-trading-skills/scenario-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scenario-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/commands/tradermonty/claude-trading-skills/scenario-analyzer"><img src="https://agentmods.dev/badge/commands/tradermonty/claude-trading-skills/scenario-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00863
Opus 5 $0.00018 $0.00432
Sonnet 5 $0.00007 $0.00173
Haiku 4.5 $0.00004 $0.00086

Measured 12d ago against content hash d65c44971d77, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

scenario-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

commands/scenario-analyzer.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scenario Analyzer

Analyze 18-month scenarios from a news headline and assess the impact on sectors and stocks.

Arguments

$ARGUMENTS

Argument interpretation:

  • If a headline is included: analyze that headline
  • If the argument is empty: ask the user to enter a headline

Usage examples:

  • /scenario-analyzer Fed raises rates by 50bp → analyze the Fed rate-hike scenario
  • /scenario-analyzer China announces new tariffs on US semiconductors → analyze the tariff scenario
  • /scenario-analyzer OPEC+ agrees to cut oil production → analyze the oil production-cut scenario
  • /scenario-analyzer → ask for a headline, then analyze

Analysis Contents

Item Description
Related news Collect related articles from the past 2 weeks via WebSearch
Scenarios 3 scenarios (Base/Bull/Bear) with probabilities
Impact analysis 1st-/2nd-/3rd-order sector impact
Stock selection 3-5 positive and 3-5 negative stocks (US market)
Review Second opinion (points out blind spots / biases)

Execution Procedure

  1. Headline parsing:

    • Extract the headline from the argument
    • If the argument is empty, ask the user for input
    • Classify the event type (Monetary Policy / Geopolitics / Regulation / Technology / Commodities / Corporate)
  2. Load references:

    Read skills/scenario-analyzer/references/headline_event_patterns.md
    Read skills/scenario-analyzer/references/sector_sensitivity_matrix.md
    Read skills/scenario-analyzer/references/scenario_playbooks.md
    
  3. Main analysis (scenario-analyst agent):

    Agent tool:
    - subagent_type: "scenario-analyst"
    - prompt: headline + event type + reference information
    

    Output:

    • List of related news articles
    • 3 scenarios (Base/Bull/Bear)
    • Sector impact analysis (1st/2nd/3rd-order)
    • List of recommended stocks
  4. Second opinion (strategy-reviewer agent):

    Agent tool:
    - subagent_type: "strategy-reviewer"
    - prompt: full text of the Step 3 analysis result
    

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 105 lines · 36 tokens per session scan A d65c44971d77

Subscribe to this mod's changes

scenario-analyzer is a command published in the GitHub repository tradermonty/claude-trading-skills (2,808 stars, last pushed 2d ago), licensed MIT. It adds 36 tokens to every session and 863 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.