claude-multi-agent-investing: Command for Claude Code

.claude/commands/earnings-week.md

earnings-week is a command for Claude Code from haiiibin/claude-multi-agent-investing. It costs 51 tokens per session (1,681 once invoked), scanned A, original, MIT.

A command that lists upcoming earnings reports and dividend events for stocks in a portfolio. Earnings are company reports of recent financial results; the command also groups events that happen on the same day and shows consensus estimates and questions to watch.

In plain words
What is it for?
Use it before busy earnings periods or major economic events to review which holdings may move, compare expected earnings and revenue, and check dividend and ex-dividend dates.
Why use it?
It gathers near-term portfolio events into one calendar so important dates are easier to spot. It also highlights when several holdings face the same event risk.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: positional $N argument.

This is haiiibin/claude-multi-agent-investing's own configuration. It tells Claude Code how to work on claude-multi-agent-investing itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-multi-agent-investing configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/haiiibin/claude-multi-agent-investing/main/.claude/commands/earnings-week.md
Clone the repo
git clone --depth 1 https://github.com/haiiibin/claude-multi-agent-investing

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 earnings-week

README.md
[![agentmods](https://agentmods.dev/badge/commands/haiiibin/claude-multi-agent-investing/earnings-week/github.svg)](https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/earnings-week)
Your own site
<a href="https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/earnings-week"><img src="https://agentmods.dev/badge/commands/haiiibin/claude-multi-agent-investing/earnings-week/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 earnings-week

Your own site · 80×15
<a href="https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/earnings-week"><img src="https://agentmods.dev/badge/commands/haiiibin/claude-multi-agent-investing/earnings-week.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,681 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.00051 $0.01681
Opus 5 $0.00026 $0.00840
Sonnet 5 $0.00010 $0.00336
Haiku 4.5 $0.00005 $0.00168

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

Security

Grade A, and why

earnings-week 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 11d 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.

.claude/commands/earnings-week.md · 98 lines

How it starts

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

/earnings-week -- Upcoming Earnings & Dividend Events

Portfolio-level calendar view of near-term catalysts. Answers: "what's going to move my positions this week/next week?"

Default window: 14 days. Accept $ARGUMENTS like /earnings-week 7 or /earnings-week 30.

Phase 1 -- Collect

Journal pre-scan (if memory/long_term/journal.md exists): grep entries with tags earnings-pending, thesis-test, waiting-for-print within last 30 days. Surface these at the top of the output -- the user's past written stance on "I want to see X in this print" is high-signal context for framing the watch items.

Read holdings.json. For every unique ticker across all accounts, pull t.calendar from yfinance via MCP (mcp__yahoo-finance__get_stock_info may not have this -- may need to call via Bash with Python if MCP tool limits). The calendar dict contains:

  • Earnings Date -- when they report
  • Earnings High / Low / Average -- consensus EPS estimate range
  • Revenue High / Low / Average -- consensus revenue estimate range
  • Dividend Date -- when dividend is paid
  • Ex-Dividend Date -- last date to own before the dividend

Filter to events within $window_days (default 14).

Phase 2 -- Enrich each earnings event

For each upcoming earnings, collect:

  1. Price context: current price, 52w position, 1-month change, implied pre-earnings run-up
  2. Consensus vs history: estimate average, range width (narrow = consensus tight = bigger surprise potential); look up last 2 quarters' beat/miss via WebSearch if time permits
  3. Options market implied move (optional, via mcp__yahoo-finance__get_option_chain -- look at ATM straddle for nearest expiry covering the event): implied_move = (ATM_call + ATM_put) / stock_price
  4. Key watch items -- 2-3 specific things to check in the print:
    • e.g., MSFT: "Azure growth constant currency", "Copilot ARR disclosure", "CapEx guide for FY27"
    • Use ticker + "earnings preview" in WebSearch if specific items aren't known

Read the full file on GitHub · 98 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. 11d ago First seen · 98 lines · 51 tokens per session scan A bb023682bd2c

Subscribe to this mod's changes

earnings-week is a command published in the GitHub repository haiiibin/claude-multi-agent-investing (2 stars, last pushed 20d ago), licensed MIT. It adds 51 tokens to every session and 1,681 once invoked, about $0.0003 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.