Analyzes quarterly earnings for US stocks using SEC EDGAR XBRL data and web search for consensus estimates. Produces beat/miss reports, trend analysis, and guidance review.
Ships in pionex-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Analyze quarterly earnings for US-listed stocks. Combines SEC EDGAR XBRL filings with web search for consensus estimates, then produces a structured beat/miss report with trend analysis.
No dependencies required. All scripts use Python standard library only.
Always search first. Do NOT rely on training data for earnings results.
Search 0 — identify the most recently reported quarter:
[Company] [ticker] latest quarterly earnings results [current year]Cross-check against today's date (calendar fiscal year companies):
Non-calendar fiscal years: Check the company's fiscal year end from SEC EDGAR data before mapping quarters. Common examples: Apple FY ends September (Q1 = Oct–Dec), Microsoft FY ends June (Q1 = Jul–Sep). Use the fiscal_year and fiscal_quarter fields from get_fundamentals.py output.
If today's date falls after the typical window for the next quarter, search again — a newer quarter may have been reported.
After confirming the quarter, run two searches:
Search A — reported results:
[Company] [confirmed quarter] earnings results revenue EPSSearch B — consensus estimates:
[Company] [confirmed quarter] earnings consensus estimate revenue EPS[Ticker] earnings beat miss [confirmed quarter]Search C (after A and B) — guidance:
[Company] [confirmed quarter] earnings guidance outlook next quarter [year]Extract ALL of these before proceeding:
| Field | Notes |
|---|---|
| Quarter reported (e.g. Q1 FY2026) | Verify the date — do not assume |
| Revenue (reported) | |
| Adj. EPS (reported) | |
| Revenue consensus estimate | Must be absolute dollar value (e.g. $27.2B) |
| Adj. EPS consensus estimate | Must be a dollar figure (e.g. $2.84) |
| Next quarter guidance | Revenue or EPS range; say "not provided" if absent |
| Full-year guidance | Raised / lowered / maintained vs. prior |
| Key management commentary | 2-3 key points |
If consensus is not found after two searches, run one more targeted search: [Ticker] EPS estimate Q[X] [year] analyst consensus. Only state "consensus not available" after three attempts.
Run the all-in-one script. Run in parallel with Search A and B from Step 1.
bash run.sh <SYMBOL>
# With peer comparison:
bash run.sh <SYMBOL> --peers <PEER1> <PEER2>
Returns JSON with: current quote, 8 quarters of SEC EDGAR financials, 3 years of annual data, and optional peer comps.
Important: 10-Q data from SEC EDGAR is YTD cumulative. Derive standalone quarters by subtraction:
Apply subtraction to revenue, gross profit, operating income, and net income. Do NOT subtract EPS — EPS is a per-share figure, not a running sum, so subtracting Q1 EPS from H1 EPS does not give Q2 EPS (share counts differ across periods). For Q2/Q3 standalone EPS, use the value from web search (Step 1) or compute as standalone net income / diluted shares.
Q4 derivation note: Q4 standalone = 10-K full year − Q3 9M YTD. If the Q3 10-Q is not within the 8 periods returned by the script (too old), use web search to fill in Q4 standalone figures.
You must produce a YTD-to-standalone derivation table for the current quarter — see Section 3 in Output Format for the exact template and rules.
The all-in-one script (bash run.sh) is the preferred entry point. It aggregates quarterly, annual, quote, and peer data in a single call.
Present a three-column table:
Metric | Reported | Consensus | Beat/(Miss)
--------------|-----------|------------------|------------------
Revenue | $X.XB | $X.XB | +$XXM (+X.X%)
Adj. EPS | $X.XX | $X.XX | +$X.XX (+X.X%)
Gross Margin | XX.X% | XX.X% (if avail) | +XXbps
If consensus is unavailable, write "n/a — consensus not found". Do not omit the row.
For each beat or miss, write one sentence explaining why — segment mix, pricing, cost changes, one-time items, etc.
Use standalone quarterly figures derived in Step 2 — not YTD cumulative, which would inflate recent quarters and distort YoY comparisons. Show the last 8 quarters of actual reported results. The quarter being analyzed must appear as the last (most recent) row.
Data source requirement: For each quarter in the table, mark the data source:
Do NOT use web search data if SEC data is available. SEC EDGAR is the primary source of truth.
If the reported quarter's 10-Q/10-K has not yet been filed on SEC EDGAR, use figures from web search (Step 1) and mark the row with (web).
| Quarter | Revenue | YoY | Gross Margin | Op. Margin | Diluted EPS | Source |
|---|---|---|---|---|---|---|
| Q[X-7] | $X.XB | +X% | XX.X% | XX.X% | $X.XX | SEC |
| ... | ... | ... | ... | ... | ... | ... |
| Q[X] | $X.XB | +X% | XX.X% | XX.X% | $X.XX | SEC/web |
YoY must always be computed if both current and prior-year quarter are available.
After the table, comment on:
Mandatory.
bash run.sh <SYMBOL> --peers <PEER1> <PEER2> ...
Returns revenue, margins, growth, P/E, P/S for up to 10 companies.
Section 1 — Summary box (mandatory, always first):
[COMPANY] ([TICKER]) — Q[X] FY[YYYY] EARNINGS Result: BEAT / INLINE / MISS / N/A
Revenue: $X.XB (consensus: $X.XB | beat by +$XXM, +X.X%)
Adj. EPS: $X.XX (consensus: $X.XX | beat by +$X.XX, +X.X%)
Gross Margin: XX.X% (vs. XX.X% a year ago, +XXbps YoY)
All figures in the Summary box must be standalone quarterly values — never full-year or YTD.
Set Result to N/A if consensus is unavailable for both Revenue and Adj. EPS.
Section 2 — Key takeaways (3-5 bullets). Lead with a number: "Revenue grew 15.7% to $143.8B" not "Strong revenue performance".
Section 3 — SEC Data Derivation (mandatory)
Show the YTD-to-standalone derivation table for the current quarter — this is the audit trail proving figures came from the SEC filing, not a web source. Without it, the reader cannot verify the math. Use this format:
SEC EDGAR Derivation: Q4 FY2025 Standalone
| Metric | FY Annual | − Q3 YTD | = Q4 Standalone |
|--------------|-------------|-------------|-----------------|
| Revenue | $XXX.XB | $XXX.XB | $XX.XB ✓ |
| Net Income | $XX.XB | $XX.XB | $XX.XB |
Only show Revenue and Net Income (the two most critical metrics). The ✓ indicates cross-validation with web search results. This table must appear before presenting any standalone quarterly figures.
Section 4 — Revenue & segment analysis
Section 5 — Margin analysis
Section 6 — 8-quarter trend table (mandatory — from Step 4, must include Source column)
Section 7 — Guidance (mandatory — from Step 5)
Section 8 — Valuation (only if requested)
Deliver all mandatory sections before offering follow-up options.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/pionex-skills:financial-analysis-earningsfrom pionex-skills
pionex-skills@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin pionex-skills12 skills in this plugin
/financial-analysis-compsComparable company analysis using SEC EDGAR financial data. Use when asked to: compare multiple stocks; analyze valuation multiples for a peer group; benchmark margins, growth, or valuation across companies; find the cheapest or most expensive stock in a group; see how a company stacks up against peers. Triggers: "compare AAPL vs MSFT vs GOOGL", "tech sector comps", "which mega-cap has best margins", "peer valuation analysis", "compare these stocks", "how does NVDA compare to AMD". Note: For discovering/screening stocks by theme or criteria, use stock-screening instead.
/financial-analysis-dcfDCF (Discounted Cash Flow) valuation for US stocks using SEC EDGAR financials. Use when asked to: estimate intrinsic value or fair value of a US stock; determine if a stock is overvalued or undervalued; run a discounted cash flow analysis; calculate upside/downside from current price. Triggers: "what is AAPL worth", "DCF MSFT", "is NVDA overvalued", "intrinsic value of GOOGL", "fair value Tesla".
/financial-analysis-earnings-previewPre-earnings preview workflow for US stocks. Use when asked to: preview upcoming earnings; set expectations for next quarter; build bull/base/bear scenarios ahead of earnings; prepare for earnings release; understand what Wall Street expects. Triggers: "preview AAPL earnings", "what to expect from NVDA next quarter", "earnings preview MSFT", "build scenarios for GOOGL earnings", "prepare for Tesla earnings release". Note: For POST-earnings analysis (after results are out), use earnings-analysis skill instead.
Other plugins' skills for the same job