Borrowing it
Nothing to install: this file belongs to haiiibin/claude-multi-agent-investing. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/haiiibin/claude-multi-agent-investing/main/.claude/commands/stress-test.mdgit clone --depth 1 https://github.com/haiiibin/claude-multi-agent-investingWrote 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.
[](https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/stress-test)<a href="https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/stress-test"><img src="https://agentmods.dev/badge/commands/haiiibin/claude-multi-agent-investing/stress-test/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.
<a href="https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/stress-test"><img src="https://agentmods.dev/badge/commands/haiiibin/claude-multi-agent-investing/stress-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01898 |
| Opus 5 | $0.00023 | $0.00949 |
| Sonnet 5 | $0.00009 | $0.00380 |
| Haiku 4.5 | $0.00005 | $0.00190 |
Grade A, and why
stress-test 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.
How it starts
The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/stress-test -- Portfolio Scenario Stress Test
Answers: "if regime shifts violently, where do I bleed?" Default: all 6 scenarios. Custom via $ARGUMENTS.
Scenarios (canonical shocks, historical anchors)
| # | Scenario | Anchor | Key shocks |
|---|---|---|---|
| 1 | Recession hard landing | 2008 GFC (-56%), 2020 Mar (-34%/mo) | SPY -30, QQQ -35, IWM -40, 10Y -150bp, Oil -40, Gold +10, USD +5, credit +300bp |
| 2 | Stagflation | 2022 (QQQ -33, oil +40) | SPY -20, QQQ -30, IWM -15, 10Y +200bp, Oil +40, Gold +25, USD +8, high-PE (>30) -40 |
| 3 | AI capex pause | 2000 dotcom (QQQ -83), 2022 Q4 | AI infra (semi) -45, hyperscalers -25, non-AI software -15, AI utilities -50, non-tech -5 |
| 4 | USD spike (tariff shock) | 2014-15 (+25), 2022 DXY breakout | DXY +10, USD/CAD 1.36→1.50, US multinationals -8, EEM -20, Gold -12, CAD domestic -3 |
| 5 | Geopolitical shock | 2022 Russia, 1973 embargo | Oil +50, Natgas +60, Gold +20, VIX +150, SPY -12, Defense +15, airlines -25, energy +25 |
| 6 | China decoupling | 2018-19 trade war, 2025 H20 ban | Semi w/ China expo -20, AAPL -15, Chinese ADRs -35, onshoring/defense +10, rare earths +25 |
Scenario sensitivity: high-beta -1.5× worse in #1, duration (long-growth) worst in #2, anything tagged ai hit first in #3.
Phase 1 -- Load portfolio
Read holdings.json, aggregate by ticker. For each: current price, sector, beta, mcap, tags. Foreign-rev % via get_stock_info.country or WebSearch when geographic split matters (#4, #6).
Tag sanity check: compare every tag encountered in holdings.json to the canonical vocabulary in CLAUDE.md. If any tags are off-list (e.g. AI instead of ai, or artificial-intelligence), emit a WARN line at the top of the output -- don't block, but the user should know a shock might silently skip them.
Phase 2 -- Apply shocks
Shock source priority (use worst applicable, don't multiply):
- Direct ticker mapping (VOO ~ SPY)
- Sector mapping (scenario "tech -35" → Technology holdings)
- Tag mapping (scenario "AI -45" →
aitagged holdings) - Beta mapping (stock shock ≈ Beta × market shock)
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.
- 12d ago First seen · 121 lines · 47 tokens per session scan A eb0982cb90db
stress-test is a command published in the GitHub repository haiiibin/claude-multi-agent-investing (2 stars, last pushed 21d ago), licensed MIT. It adds 47 tokens to every session and 1,898 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-31.
Other commands, from other repositories
cost
Cost & capacity health — LLM router savings, run-rate, cost-per-deploy, ROI per shipped feature, WoW/MoM delta. Pairs with /digest (delivery+DORA) and /burn (reliability).
close-review
Month-end close / GL compliance check — invokes accounting-reviewer to produce TM-accounting-{slug}.md with double-entry integrity, ASC 606 revenue-recognition, period-lock, and SOX ITGC gaps.
procurement-review
Procurement / source-to-pay compliance check — invokes procurement-reviewer to produce TM-procurement-{slug}.md with three-way match, segregation-of-duties, OFAC-screening, and SOX procurement-controls gaps.
tax-review
Tax-filing compliance check — invokes tax-reviewer to produce TM-tax-{slug}.md with MeF e-file schema, Form 8879, PTIN/Circular 230, and IRC §7216 consent gaps.
portfolio
View TastyTrade portfolio summary (positions and balances).
tax-sanity
Tax awareness sanity-check (NOT tax advice). Walks through entity tax-efficiency, deductions, growth structure, quarterly estimateds, multi-jurisdiction, retirement/long-term questions. Produces a Tax Readiness Checklist for the person's meeting with their accountant.