earnings-revision
What it does
This skill looks at forecast changes and earnings surprises for US and Hong Kong stocks. It is for investors who want to see whether analyst expectations are moving up or down and how prices react.
When to use it
- ✓When you want to see whether analysts are raising or cutting earnings estimates for a company.
- ✓When a company has just reported earnings and you want to see the surprise and the likely price drift.
- ✓When you want to compare a company's guidance with its previous guidance.
Skill link
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/earnings-revision/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Have analysts been raising or cutting their estimates for this company over the last quarter? Show me the trend.”
5 new skills a week. 1 minute to read.
How it works
The agent looks at the change in consensus estimates, how widely analysts agree on the direction, the size of any earnings surprise and the change in guidance. It uses these to describe whether momentum is building or fading.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Earnings Revision & Guidance Analysis
Overview
Track sell-side analyst estimate revisions, management guidance changes, and post-earnings price drift to generate investment signals. Earnings revisions are among the most persistent and well-documented alpha factors in equity markets — stocks with upward revisions tend to continue outperforming, and vice versa.
Core Concepts
1. Earnings Revision Momentum
The revision signal hierarchy (strongest to weakest):
| Signal Type | Description | Typical Alpha (annualized) | Persistence |
|---|---|---|---|
| Earnings surprise (beat/miss) | Actual EPS vs consensus | 3-8% post-event drift | 60-90 days (PEAD) |
| Consensus revision breadth | % of analysts revising up vs down | 4-6% long-short spread | 3-6 months |
| Estimate magnitude change | Size of revision relative to prior estimate | 3-5% | 1-3 months |
| Guidance revision | Management guidance change vs prior | 5-10% on event | Immediate + 30-60 day drift |
| Whisper number miss/beat | Actual vs buy-side whisper (not official consensus) | 2-4% | 1-2 weeks |
2. Key Metrics
Earnings Surprise:
# Standardized Unexpected Earnings (SUE)
sue = (actual_eps - consensus_eps) / std_of_forecast_errors
# Interpretation
# SUE > +2: large positive surprise → strong PEAD signal
# SUE < -2: large negative surprise → strong negative PEAD
# |SUE| < 0.5: in-line with expectations → weak signal
Revision Breadth:
# Revision breadth ratio
breadth = (num_upgrades - num_downgrades) / total_analysts
# Interpretation
# breadth > +0.5: strong consensus upgrade momentum
# breadth < -0.5: strong consensus downgrade momentum
# |breadth| < 0.2: mixed / no clear direction
Estimate Dispersion:
# Analyst disagreement
dispersion = std_of_estimates / abs(mean_estimate)
# High dispersion (>15%): high uncertainty → larger potential surprise
# Low dispersion (<5%): tight consensus → smaller surprise but higher confidence
3. Post-Earnings Announcement Drift (PEAD)
The most robust anomaly in equity markets: prices continue to drift in the direction of the earnings surprise for 60-90 days after the announcement.
PEAD trading rules:
| Surprise Quintile | Average 60-day Drift | Strategy |
|---|---|---|
| Q5 (top surprise) | +4 to +8% | Go long, hold 60-90 days |
| Q4 | +1 to +3% | Mild long |
| Q3 (in-line) | ~0% | No action |
| Q2 | -1 to -3% | Mild short / underweight |
| Q1 (worst surprise) | -4 to -8% | Go short / avoid, hold 60-90 days |
PEAD enhancement filters:
- Small/mid cap > large cap (less analyst coverage = slower price discovery)
- Low institutional ownership > high ownership (slower information diffusion)
- First surprise in a direction > consecutive same-direction surprises
- Revenue surprise + EPS surprise together > EPS surprise alone
4. Management Guidance Analysis
Guidance types:
| Type | What It Covers | Signal Weight |
|---|---|---|
| Revenue guidance | Top-line outlook | High (harder to manipulate) |
| EPS guidance | Bottom-line outlook | Medium (can be managed via buybacks, tax rate) |
| Margin guidance | Profitability trajectory | High (reflects pricing power and cost control) |
| CapEx guidance | Investment intentions | Medium (forward-looking growth signal) |
| Segment guidance | Division-level detail | High (reveals where growth is coming from) |
Guidance change signals:
# Guidance revision scoring
def score_guidance_change(current_guide, prior_guide, consensus):
# Guide above consensus = positive signal
if current_guide.midpoint > consensus * 1.02:
guide_vs_consensus = "above"
elif current_guide.midpoint < consensus * 0.98:
guide_vs_consensus = "below"
else:
guide_vs_consensus = "inline"
# Guide raised vs lowered vs maintained
if prior_guide:
if current_guide.midpoint > prior_guide.midpoint * 1.01:
guide_revision = "raised"
elif current_guide.midpoint < prior_guide.midpoint * 0.99:
guide_revision = "lowered"
else:
guide_revision = "maintained"
# Strongest signal: raised guidance above consensus
# Weakest signal: lowered guidance below consensus
Guidance language analysis:
| Language Pattern | Interpretation | Signal |
|---|---|---|
| " |
FAQ
What is post-earnings drift?
The tendency for a stock's price to keep moving in the direction of a large earnings surprise for weeks afterward.
What is a standardized surprise?
A measure of how far actual earnings landed from the forecast, scaled by how much forecasts usually miss.
Does this give a trading signal?
It describes revision and surprise patterns, which can feed into a signal, but a signal still needs testing.
Details
Original description by the author
Earnings estimate revisions, guidance analysis, and post-earnings drift (PEAD) — track analyst consensus changes, earnings surprise patterns, and management guidance shifts for US/HK equities.
repo: HKUDS/Vibe-Trading
Popularity
- GitHub stars
- 37k
- Ranking position
- #7514
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.