К основному содержанию
скилл CX Codex

estimate-analysis — скилл для Claude Code: оценки аналитиков

Скилл собирает консенсус-оценки аналитиков по тикеру из Yahoo Finance и показывает, как они менялись за 7, 30, 60 и 90 дней. Пригодится, когда нужен не один прогноз, а динамика ревизий.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add himself65/finance-skills --skill estimate-analysis -a claude-code
Открыть на GitHub

Что делает estimate-analysis

Скилл разбирает sell-side оценки по тикеру и показывает, куда движется консенсус. Данные тянет из Yahoo Finance через yfinance: EPS и выручка по периодам 0q, +1q, 0y, +1y, диапазон между низкой и высокой оценкой, число аналитиков в покрытии.

Дальше идут ревизии. eps_trend даёт значение оценки сейчас и 7, 30, 60, 90 дней назад, eps_revisions считает, сколько аналитиков поднимали и опускали цифры, growth_estimates сравнивает прогноз роста с отраслью, сектором и S&P 500, earnings_history показывает факт против оценки за последние 4 квартала. Внутри SKILL.md пять разделов и таблица маршрутизации: узкий вопрос вроде «что ждут аналитики» включает только нужные блоки, общий запрос — все пять.

Перед первым запуском скилл проверяет, установлен ли yfinance, и при отсутствии ставит его через pip. Нужен Python и доступ к установке пакетов: в закрытом окружении без PyPI этот шаг оборвётся. Пороги в файле заданы явно. Разброс шире 15% от консенсуса считается высокой неопределённостью, покрытие меньше 5 аналитиков — тонким, отношение ревизий выше 0.7 читается как bullish, ниже 0.3 как bearish. Данные учебные, не инвестиционная рекомендация.

Какие задачи решает

  • сравнить консенсус по EPS за текущий и следующий квартал
  • увидеть, сколько аналитиков поднимали оценку за последние 30 дней
  • оценить разброс между самой низкой и самой высокой оценкой
  • поставить прогноз роста компании рядом с отраслью и S&P 500
  • проверить, как часто компания обходила консенсус за 4 квартала

Примеры запросов агенту

  • Разбери оценки аналитиков по NVDA: как менялся консенсус по EPS за 7, 30 и 90 дней.
  • Покажи разброс оценок по выручке на следующий квартал и сколько аналитиков в покрытии.
  • Сравни прогноз роста AAPL с сектором и S&P 500 и скажи, что это значит на фоне текущего P/E.

Как установить estimate-analysis

1Через Skills CLI (Vercel)

npx skills add himself65/finance-skills --skill estimate-analysis -a claude-code

2Вручную: положить файлы

~/.claude/skills/estimate-analysis/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/estimate-analysis/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о estimate-analysis

Как установить estimate-analysis в Claude Code?

Выполните npx skills add himself65/finance-skills --skill estimate-analysis -a claude-code. Файл скилла окажется в ~/.claude/skills/estimate-analysis/SKILL.md.

Что делает estimate-analysis?

Собирает по тикеру консенсус-оценки EPS и выручки, ревизии за 7, 30, 60 и 90 дней, прогноз роста против отрасли и сектора, а также историю попаданий за 4 квартала.

Что нужно, чтобы скилл заработал?

Python и пакет yfinance. Если его нет, скилл сначала ставит его через pip, поэтому нужен доступ к установке пакетов.

Исходный текст

SKILL.md · MIT
---
name: estimate-analysis
description: >
  Analyze sell-side analyst estimates and how they are changing, using Yahoo Finance
  data (yfinance): EPS and revenue consensus by period, estimate ranges and dispersion,
  revision trends over 7/30/60/90 days and up/down revision breadth, growth estimates
  vs industry, sector, and the S&P 500, and historical estimate accuracy. Use this
  skill when the user wants more than a single estimate lookup: estimate revisions or
  momentum, EPS trend, consensus changes, forward or next-quarter and annual
  estimates, the bull vs bear estimate spread, or growth projections across periods.
---

# Estimate Analysis Skill

If your host has not already executed the shell probes below (for example, in Codex), run the commands inside the `!` wrappers with its shell tool before choosing a setup path. Use the actual output; if shell access is unavailable, report that limitation.

Deep-dives into analyst estimates and revision trends using Yahoo Finance data via [yfinance](https://github.com/ranaroussi/yfinance). Covers EPS and revenue estimate distributions, revision momentum, growth projections, and multi-period comparisons — the full picture of where the street thinks a company is heading.

**Important**: Data is for research and educational purposes only. Not financial advice. yfinance is not affiliated with Yahoo, Inc.

---

## Step 1: Ensure yfinance Is Available

**Current environment status:**

```
!`python3 -c "exec('try:\n import yfinance\n print(\'yfinance \' + yfinance.__version__ + \' installed\')\nexcept Exception:\n print(\'YFINANCE_NOT_INSTALLED\')')"`
```

If `YFINANCE_NOT_INSTALLED`, install it:

```python
import subprocess, sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "yfinance"])
```

If already installed, skip to the next step.

---

## Step 2: Identify the Ticker and Gather Estimate Data

Extract the ticker from the user's request. Fetch all estimate-related data in one script.

```python
import yfinance as yf
import pandas as pd

ticker = yf.Ticker("AAPL")  # replace with actual ticker

# --- Estimate data ---
earnings_est = ticker.earnings_estimate      # EPS estimates by period
revenue_est = ticker.revenue_estimate        # Revenue estimates by period
eps_trend = ticker.eps_trend                 # EPS estimate changes over time
eps_revisions = ticker.eps_revisions         # Up/down revision counts
growth_est = ticker.growth_estimates         # Growth rate estimates

# --- Historical context ---
earnings_hist = ticker.earnings_history      # Track record
info = ticker.info                           # Company basics
quarterly_income = ticker.quarterly_income_stmt  # Recent actuals
```

### What each data source provides

| Data Source | What It Shows | Why It Matters |
|---|---|---|
| `earnings_estimate` | Current EPS consensus by period (0q, +1q, 0y, +1y) | The estimate levels — what analysts expect |
| `revenue_estimate` | Current revenue consensus by period | Top-line expectations |
| `eps_trend` | How the EPS estimate has changed (7d, 30d, 60d, 90d ago) | Revision direction — rising or falling expectations |
| `eps_revisions` | Count of upward vs downward revisions (7d, 30d) | Revision breadth — are most analysts raising or cutting? |
| `growth_estimates` | Growth rate estimates vs peers and sector | Relative positioning |
| `earnings_history` | Actual vs estimated for last 4 quarters | Calibration — how good are these estimates historically? |

---

## Step 3: Route Based on User Intent

Match the depth of the analysis to the question:

| User Request | Focus Area | Key Sections |
|---|---|---|
| General estimate analysis | Full analysis | All sections |
| "How have estimates changed" | Revision trends | EPS Trend + Revisions |
| "What are analysts expecting" | Current consensus | Estimate overview |
| "Growth estimates" | Growth projections | Growth Estimates |
| "Bull vs bear case" | Estimate range | High/low spread analysis |
| Compare estimates across periods | Multi-period | Period comparison table |

A general request gets the full analysis; a narrow question gets the matching sections.

---

## Step 4: Build the Estimate Analysis

### Section 1: Estimate Overview

Present the current consensus for every available period (0q, +1q, 0y, +1y) from `earnings_estimate` and `revenue_estimate`: consensus, low, high, range width (as a % of consensus), analyst count, and YoY growth. Flag:

- **Range width** — ranges wider than 15% of consensus signal high uncertainty
- **Analyst coverage** — fewer than 5 analysts means thin coverage
- **Growth trajectory** — whether growth accelerates or decelerates across periods

### Section 2: Revision Trends (EPS Trend)

Often the most actionable section. From `eps_trend`, show each period's current estimate against its value 7, 30, 60, and 90 days ago, and summarize the direction and whether the recent moves are accelerating.

How to read it:
- Rising estimates ahead of earnings = positive setup (the bar is rising)
- Falling estimates = analysts cutting numbers, often a negative signal
- Flat estimates = no new information being priced in
- Recent acceleration or deceleration matters more than the total move

### Section 3: Revision Breadth (EPS Revisions)

From `eps_revisions`, show up vs down revision counts over the last 7 and 30 days for each period, and the revision ratio Up / (Up + Down). Ratios above 0.7 are strongly bullish; below 0.3 are bearish.

### Section 4: Growth Estimates

From `growth_estimates`, compare the company's expected growth for each period (and its past 5-year annual growth) with its industry, sector, and the S&P 500, and say whether it is expected to grow faster or slower than its peers.

### Section 5: Historical Estimate Accuracy

From `earnings_history`, show estimate vs actual EPS and the surprise % for the last four quarters, then assess:

- **Beat rate** — how many of the four quarters beat
- **Average surprise** — magnitude and direction
- **Trend in surprise** — are beats getting bigger or smaller? A shrinking surprise with rising estimates can mean the bar is catching up to reality.

---

## Step 5: Synthesize and Respond

Lead with the key insight — the direction and breadth of revisions across periods — then show the tables for the sections the user cares about. Interpret rather than just tabulate: does the revision trend confirm or contradict the stock's recent price action, how does the growth outlook compare with what the current P/E prices in, and what does the estimate-accuracy history say about today's consensus?

Flag the nuances that apply: estimates cluster around consensus, so the real distribution of outcomes is wider than low/high suggests; revision momentum can reverse on a single guidance change or macro event; Yahoo Finance estimates can lag real-time consensus providers by hours or days; out-year (+1y) estimates are inherently less reliable. Close with the standing caveats: analyst estimates reflect a consensus view, not certainty; revisions are a signal, not a guarantee; this is not financial advice.

---

## Reference Files

- `references/api_reference.md` — Detailed yfinance API reference for all estimate-related methods

Read the reference file when you need exact return formats or edge case handling.

© himself65 · MIT · himself65/finance-skills

Похожие скиллы

Всё по теме «Финансы и бизнес» →
financial-analysis-agent qodex-ai Помогает создавать ИИ-агентов для фундаментальной оценки акций и расчёта рыночных рисков. Пригодится при разработке робо-эдвайзеров и систем трекинга инвестиций. CX Codex +1 1 300установок technical-analysis staskh Скилл запускает расчёт технических индикаторов и матриц корреляции акций прямо через терминал. Пригодится при анализе графиков цен и проверке рыночных сигналов. CX Codex +1 586установок stock-market-pro sundial-org Скилл для анализа акций, крипты и форекса: тянет котировки, фундаментальные метрики и рисует свечные графики прямо в терминале. CX Codex +1 4 100установок alphaear-stock RKiding Ищет тикеры рынков A-Share, HK и US, выгружает котировки OHLCV и фундаментальные показатели компании. CX Codex +1 1 200установок stock-analysis Alireza Rezvani Скилл для Claude, который собирает отчёт по компании: метрики, сравнение с сектором, проверка качества прибыли. 22установок position-sizer tradermonty Рассчитывает размер позиции в акциях на основе риска на сделку, волатильности ATR или критерия Келли. Помогает определить число бумаг перед входом в сделку. CX Codex +1 3 800установок

Из того же набора22

earnings-preview Собирает брифинг перед отчётом компании: дата и время публикации, консенсус по EPS и выручке, история beat/miss, оценки аналитиков. CX Codex +1 3 200установок twitter-reader Скилл читает Twitter/X через opencli: лента, поиск твитов, тренды, закладки, профили и уведомления. Только чтение, для финансовых исследований. CX Codex +1 3 100установок etf-premium Считает премию или дисконт ETF к NAV по данным Yahoo Finance, сравнивает фонды между собой и раскладывает резкий скачок цены на причины. CX Codex +1 3 100установок stock-liquidity Оценивает ликвидность акций через библиотеку yfinance: спреды bid-ask, объёмы торгов и рыночный импакт. Помогает рассчитать издержки перед входом в позицию. CX Codex +1 3 100установок hormuz-strait Тянет данные с дашборда Hormuz Strait Monitor и отвечает, открыт ли Ормузский пролив, сколько танкеров прошло и что с ценой Brent. CX Codex +1 3 200установок company-valuation Оценивает справедливую стоимость публичных компаний методами DCF, мультипликаторов и SOTP. Скилл строит сетку чувствительности WACC и сценарии bull, base, bear. CX Codex +1 3 200установок startup-analysis Скилл разбирает стартап с трёх сторон: инвестор, кандидат и основатель. Пригодится для проверки компании, оффера или инвестиционной идеи. CX Codex +1 3 000установок sepa-strategy Разбирает акцию по методике Марка Минервини: стадия цикла, трендовый шаблон из 8 условий, фундамент, VCP и размер позиции от процента риска. CX Codex +1 3 000установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой