Earnings Preview

Builds a pre-earnings briefing for a stock: the report date, what analysts expect, the company's beat-or-miss record and what to watch.

Productivity & Lifeinvestingearningsstocksyahoo financeby himself653.5kGitHub

What it is

Earnings Preview prepares you for a company's next quarterly earnings report, the results public companies publish every three months. Give it a company name or stock ticker and it pulls free Yahoo Finance data and writes a briefing on what Wall Street expects. It is part of a collection of finance skills and suits individual investors, finance students and writers who cover stocks and want the key numbers in one place before the report comes out.

The agent runs a Python script using yfinance, a free library that reads Yahoo Finance data, and collects everything in one pass: the report date and whether it lands before the market opens or after it closes, consensus estimates for earnings per share (EPS) and revenue with their high and low range, the last four quarters of beats and misses, analyst ratings, price targets and recent financial statements. It flags unusual uncertainty when the gap between the highest and lowest estimate is more than about 20% of the consensus.

You get a briefing in five parts, with tables: date and context, consensus estimates, track record, analyst sentiment, and the few things to watch in this particular report. It ends with a read of what the market expects, not a buy or sell call. Yahoo data can lag paid real-time feeds by a few hours, estimates can change until the report date, and the skill says clearly that none of it is financial advice.

What it can do

  • Finds the next report date and whether it comes before the market opens or after it closes.
  • Tables this quarter's consensus EPS and revenue estimates with low, high, analyst count and year-ago figures.
  • Flags unusual uncertainty when analysts' estimates are spread unusually wide.
  • Summarizes the last four quarters of estimated versus actual EPS as a beat count and average surprise.
  • Shows analyst ratings from strong buy to strong sell and the price-target range with implied upside or downside.
  • Picks out what to watch for this company, such as growth speeding up or slowing, or margins widening or shrinking.

When to use it

  • A company you own reports next week and you want to know what analysts expect before deciding whether to hold through it.
  • You write a weekly stock newsletter and need a quick, consistent preview for each company reporting this week.
  • You want to know whether a company usually beats its estimates or tends to disappoint.
  • You are studying finance and want to see how expectations are set up before a real earnings report.

How it works

  1. 1You name a company or ticker, for example by asking what the street expects from Apple this quarter.
  2. 2The agent checks that the yfinance Python library is installed and installs it if it is missing.
  3. 3It runs one script that pulls the earnings calendar, estimates, past results, analyst ratings, price targets, recent prices and quarterly financial statements from Yahoo Finance.
  4. 4It works out the report timing from the scheduled time and checks how widely the analysts' estimates are spread.
  5. 5It writes the briefing with a headline, five sections and tables, then adds the caveats that apply.

Try asking

“What does the street expect from Apple's earnings next week?”
“Give me an earnings preview for NVDA”
“What are the consensus EPS and revenue numbers for Microsoft this quarter?”
“Set me up for Tesla's earnings report: estimates, track record and what to watch”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/himself65/finance-skills/tree/main/plugins/market-analysis/skills/earnings-preview
pnpm
pnpm dlx skills add https://github.com/himself65/finance-skills/tree/main/plugins/market-analysis/skills/earnings-preview

Install as a Claude Code plugin

Run these inside Claude Code. The plugin may bundle related skills from the same author.

Claude Code
/plugin marketplace add himself65/finance-skills
/plugin install finance-market-analysis@finance-skills

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the earnings-preview folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/himself65/finance-skills.git
mkdir -p ~/.claude/skills
cp -r finance-skills/plugins/market-analysis/skills/earnings-preview ~/.claude/skills/earnings-preview

Then just ask in plain language, for example: “What does the street expect from Apple's earnings next week?”