Skip to main content
command CX Codex official · Anthropic

earnings — Claude Code command: what it does, how to install

earnings — a command for Claude Code, Codex, GitHub Copilot and Gemini CLI that compiles quarterly financial results and generates an equity research report in DOCX.

Apache-2.0 ★ 41,441 updated 2026-09-21

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/financial-services
/plugin install equity-research@claude-for-financial-services
Open on GitHub

What earnings does

The command collects issuer filings from SEC EDGAR, earnings call transcripts, and consensus estimates to build an analytical report complete with charts and investment ratings. Before compilation, the agent verifies data freshness and prompts for the company ticker or quarter if omitted in the initial request.

The workflow relies on the earnings-analysis skill to calculate beat-or-miss metrics for revenue and earnings per share, examine margin trends, and evaluate management guidance updates. The output delivers a structured document containing financial breakdowns, target prices, and hyperlinked sources.

Execution requires the financial services plugin package from Anthropic FSI within Claude Code.

What it helps with

  • compile quarterly company earnings from SEC EDGAR
  • calculate revenue and EPS beat or miss against consensus
  • generate charts for margin trends and segment revenue
  • build a structured equity research report in DOCX format

Example prompts for the agent

  • /earnings MSFT Q3 2024
  • Analyze Q2 FY25 earnings for Apple
  • Create an earnings update report for Tesla

How to install earnings

1Plugin marketplace

/plugin marketplace add anthropics/financial-services
/plugin install equity-research@claude-for-financial-services

2Manually: put the files in place

.claude/commands/earnings.md

Call it with /earnings. For all projects use ~/.claude/commands/

Questions about earnings

How to install earnings in Claude Code?

Run these commands sequentially: /plugin marketplace add anthropics/financial-services and /plugin install equity-research@claude-for-financial-services, then configure .claude/commands/earnings.md.

What does earnings do?

The command evaluates quarterly financial results, compares figures against market consensus, builds charts, and outputs an equity research report in DOCX format.

What data sources are used for the report?

The agent gathers earnings press releases, Form 10-Q filings from SEC EDGAR, earnings call transcripts, and consensus estimates.

Source text

earnings.md · Apache-2.0
---
description: Analyze quarterly earnings and create an earnings update report
argument-hint: "[company name or ticker] [quarter, e.g. Q3 2024]"
---

# Earnings Analysis Command

Create a professional equity research earnings update report analyzing quarterly results.

## Workflow

### Step 1: Gather Information

Parse the input for:
- Company name or ticker
- Quarter (e.g., Q3 2024, Q2 FY25)

If not provided, ask:
- "What company's earnings would you like to analyze?"
- "Which quarter? (e.g., Q3 2024)"

### Step 2: Verify Timeliness

**CRITICAL**: Before proceeding, verify you have the latest data:
1. Search for "[Company] latest earnings results [current year]"
2. Verify the earnings release is within the last 3 months
3. Confirm transcript date matches release date

If data is stale, inform the user and search for the latest.

### Step 3: Load Earnings Analysis Skill

Use `skill: "earnings-analysis"` to create the report:

1. **Data Collection** (search for latest):
   - Earnings release (press release)
   - 10-Q filing from SEC EDGAR
   - Earnings call transcript
   - Investor presentation/supplemental materials
   - Consensus estimates (Bloomberg/FactSet)

2. **Beat/Miss Analysis**:
   - Revenue vs consensus: Beat/Miss by $X or X%
   - EPS vs consensus: Beat/Miss by $X or X%
   - Key segment performance vs expectations
   - Explain WHY results differed

3. **Key Metrics Analysis**:
   - Revenue breakdown by segment/geography
   - Margin trends (gross, operating, net)
   - Guidance: raised/maintained/lowered
   - Updated forward estimates

4. **Generate Charts** (8-12):
   - Quarterly revenue progression
   - Quarterly EPS progression
   - Margin trends
   - Revenue by segment
   - Beat/miss summary
   - Estimate revisions
   - Valuation charts

5. **Create Report** (8-12 pages):
   - Page 1: Summary with rating and price target
   - Pages 2-3: Detailed results analysis
   - Pages 4-5: Key metrics & guidance
   - Pages 6-7: Updated investment thesis
   - Pages 8-10: Valuation & estimates
   - Sources section with clickable hyperlinks

### Step 4: Deliver Output

Provide:
1. **DOCX report** - 8-12 page earnings update
2. **Summary** highlighting:
   - Beat/miss on key metrics
   - Guidance changes
   - Thesis impact (positive/negative/neutral)

## Report Structure Reference

```
PAGE 1: EARNINGS SUMMARY
┌─────────────────────────────────────────────────────────────────┐
│ [Company] Q3 2024 Earnings Update                               │
│ Rating: BUY | Price Target: $XXX (from $XXX)                    │
├─────────────────────────────────────────────────────────────────┤
│ KEY TAKEAWAYS                                                   │
│ • Revenue beat by X% on strong [segment] performance            │
│ • EPS beat by $X.XX driven by margin expansion                  │
│ • FY guidance raised to $X.XX-$X.XX (from $X.XX-$X.XX)         │
│ • Thesis intact; maintain BUY rating                            │
├─────────────────────────────────────────────────────────────────┤
│ RESULTS SNAPSHOT                                                │
│ ┌─────────────┬──────────┬──────────┬──────────┐               │
│ │ Metric      │ Actual   │ Consensus│ Beat/Miss│               │
│ │ Revenue     │ $X.XXB   │ $X.XXB   │ +X.X%    │               │
│ │ EPS         │ $X.XX    │ $X.XX    │ +$X.XX   │               │
│ │ Gross Margin│ XX.X%    │ XX.X%    │ +XXbps   │               │
│ └─────────────┴──────────┴──────────┴──────────┘               │
└─────────────────────────────────────────────────────────────────┘

PAGES 2-3: DETAILED RESULTS
- Segment-by-segment analysis
- Geographic breakdown
- Key drivers of beat/miss

PAGES 4-5: METRICS & GUIDANCE
- Margin analysis
- Full-year guidance comparison
- Updated quarterly estimates

PAGES 6-7: THESIS UPDATE
- What's changed
- Risks and catalysts
- Investment recommendation

PAGES 8-10: VALUATION
- Updated DCF/comps if material
- Price target justification
- Scenario analysis

SOURCES SECTION (with clickable hyperlinks):
- Earnings Release: [hyperlink]
- Form 10-Q: [EDGAR hyperlink]
- Earnings Call Transcript: [hyperlink]
- Consensus estimates: Bloomberg as of [date]
```

## Quality Checklist

Before delivery:
- [ ] Earnings data is from latest quarter (not stale)
- [ ] Beat/miss quantified with specific numbers
- [ ] All charts embedded (8-12 total)
- [ ] Sources section with clickable hyperlinks
- [ ] Every figure/table has source citation
- [ ] Guidance changes clearly documented
- [ ] Rating and price target stated upfront
- [ ] 8-12 pages, 3,000-5,000 words

© Anthropic FSI · Apache-2.0 · anthropics/financial-services

Similar slash commands

All slash commands for Finance and business →

From the same set116

The whole set →
ppt-template The ppt-template Claude Code command turns a PowerPoint template into a reusable skill. It inspects a .pptx or .potx file, builds the skill package, and checks it with a sample deck. CX Codex +1 ★ 41,441repo stars debug-model debug-model — a Claude Code command that checks financial models for formula and logic errors. Run it to audit an .xlsx model for balance issues, hardcoded overrides, and broken references. CX Codex +1 ★ 41,441repo stars dcf This Claude Code command builds a company DCF valuation and checks it against public peers. It uses comparable-company multiples to shape valuation assumptions. CX Codex +1 ★ 41,441repo stars comps The comps Claude Code command builds a comparable-company analysis using operating metrics and valuation multiples. Give it a company name or ticker to generate an Excel workbook and a summary. CX Codex +1 ★ 41,441repo stars review-fi-portfolio The review-fi-portfolio Claude Code command reviews fixed-income portfolios using prices, cashflows, and rate scenarios. Supply bond identifiers to start the analysis. CX Codex +1 ★ 41,441repo stars research-equity research-equity is a Claude Code command that compiles equity research summaries using consensus estimates, company fundamentals, and price data. Runs when analyzing a stock by ticker. CX Codex +1 ★ 41,441repo stars macro-rates The macro-rates Claude Code command builds a macro and rates dashboard for a selected country. It covers economic indicators, yield curves, real rates, and swap spreads. CX Codex +1 ★ 41,441repo stars analyze-swap-curve The analyze-swap-curve Claude Code command analyzes swap curves against government yields and inflation breakevens. It calculates spreads and curve metrics, then identifies possible trades. CX Codex +1 ★ 41,441repo stars

Project sponsors

Companies that keep this analytics open