fundamentals — скилл для Claude Code: данные и установка
Скилл fundamentals для Claude Code получает через Yahoo Finance финансовые показатели, отчётность и earnings. Разбирает фундаментальные данные и оценивает силу компании.
MIT 188 установок ★ 417 обновлён 2026-10-21
npx skills add staskh/trading_skills --skill fundamentals -a claude-codeЧто делает fundamentals
Скилл запускает скрипты для получения данных Yahoo Finance по тикеру. Он возвращает ключевые метрики, квартальные и годовые отчёты о прибылях и убытках, исторические и прогнозные earnings. Тип выборки задаётся аргументом --type: all, financials, earnings или info.
Отдельный скрипт считает Piotroski F-Score по 9 критериям: прибыль, ROA, операционный денежный поток, долг, ликвидность, выпуск акций, маржинальность и оборачиваемость активов. Он также показывает разбор критериев и интерпретацию результата. Сравнение по критериям 5–9 использует годовые данные за текущий и предыдущий финансовые годы.
Для работы нужны pandas и yfinance, а в проекте заявлена зависимость trading-skills. Если uv или pyproject.toml недоступны, команды нужно запускать через python вместо uv run python. Все временные расчёты используют America/New_York, а JSON должен содержать generated_at и data_delay.
Какие задачи решает
- получить финансовые показатели по тикеру
- разобрать квартальную и годовую отчётность
- сопоставить фактические и прогнозные earnings
- рассчитать Piotroski F-Score компании
Примеры запросов агенту
- Покажи фундаментальные данные по тикеру
SYMBOLи выдели ключевые метрики. - Сравни фактические и прогнозные earnings для
SYMBOL. - Рассчитай Piotroski F-Score для
SYMBOLи объясни каждый критерий.
Как установить fundamentals
1Через Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill fundamentals -a claude-code2Вручную: положить файлы
~/.claude/skills/fundamentals/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/fundamentals/
1Через Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill fundamentals -a codex2Вручную: положить файлы
.agents/skills/fundamentals/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill fundamentals -a cursor2Вручную: положить файлы
.cursor/skills/fundamentals/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install staskh/trading_skills .claude/skills/fundamentals2Вручную: положить файлы
.github/skills/fundamentals/SKILL.md1Через Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill fundamentals -a gemini-cli2Командой платформы
gemini skills install https://github.com/staskh/trading_skills --path .claude/skills/fundamentalsВручную: положить файлы
.devin/skills/fundamentals/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill fundamentals -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о fundamentals
Как установить fundamentals в Claude Code?
Выполните npx skills add staskh/trading_skills --skill fundamentals -a claude-code, затем проверьте файл ~/.claude/skills/fundamentals/SKILL.md.
Что делает fundamentals?
Скилл получает через Yahoo Finance ключевые метрики, финансовую отчётность и earnings по тикеру. Он также рассчитывает Piotroski F-Score и показывает критерии оценки.
Что нужно для расчёта Piotroski F-Score?
Скиллу нужны pandas и yfinance. Для критериев 5–9 требуется сравнение годовых данных за текущий и предыдущий финансовые годы.
Исходный текст
SKILL.md · MIT
--- name: fundamentals description: Get fundamental financial data including financials, earnings, and key metrics. Use when user asks about financials, earnings, revenue, profit, balance sheet, income statement, or company fundamentals. dependencies: ["trading-skills"] --- # Fundamentals Fetch fundamental financial data from Yahoo Finance. ## Instructions > **Note:** If `uv` is not installed or `pyproject.toml` is not found, replace `uv run python` with `python` in all commands below. ```bash uv run python scripts/fundamentals.py SYMBOL [--type TYPE] ``` ## Arguments - `SYMBOL` - Ticker symbol - `--type` - Data type: all, financials, earnings, info (default: all) ## Output Returns JSON with: - `info` - Key metrics (market cap, PE, EPS, dividend, etc.) - `financials` - Recent quarterly/annual income statement data - `earnings` - Historical and estimated earnings Present key metrics clearly. Compare actual vs estimated earnings if relevant. --- ## Piotroski F-Score Calculate Piotroski's F-Score to evaluate a company's financial strength using 9 fundamental criteria. ### Instructions ```bash uv run python scripts/piotroski.py SYMBOL ``` ### What is Piotroski F-Score? Piotroski's F-Score is a fundamental analysis tool developed by Joseph Piotroski that evaluates a company's financial strength using 9 criteria. Each criterion scores 1 point if passed, 0 if failed, for a maximum score of 9. ### The 9 Criteria 1. **Positive Net Income** - Company is profitable 2. **Positive ROA** - Assets are generating returns 3. **Positive Operating Cash Flow** - Company generates cash from operations 4. **Cash Flow > Net Income** - High-quality earnings (cash exceeds accounting profit) 5. **Lower Long-Term Debt** - Decreasing leverage (improving financial position) 6. **Higher Current Ratio** - Improving liquidity 7. **No New Shares Issued** - No dilution (or share buybacks) 8. **Higher Gross Margin** - Improving profitability efficiency 9. **Higher Asset Turnover** - More efficient use of assets ### Score Interpretation - **8-9:** Excellent - Very strong financial health - **6-7:** Good - Strong financial health - **4-5:** Fair - Moderate financial health - **0-3:** Poor - Weak financial health ### Output Returns JSON with: - `score` - F-Score (0-9) - `max_score` - Maximum possible score (9) - `criteria` - Detailed breakdown of each criterion with pass/fail status and values - `interpretation` - Text description of financial health level - `data_available` - Boolean indicating if year-over-year comparison data is available for criteria 5-9 ### Implementation Details - Criteria 1-4 use quarterly financial data (most recent year) - Criteria 5-9 use annual financial data for year-over-year comparisons - Compares most recent fiscal year vs previous fiscal year ### Use Cases Use Piotroski F-Score when: - Evaluating fundamental financial strength - Screening for value stocks with improving fundamentals - Assessing financial health trends - Comparing financial strength across companies - Identifying companies with strong fundamentals but undervalued prices ## Dependencies - `pandas` - `yfinance` ## Timezone All timestamps and time-based calculations must use the `America/New_York` timezone. All JSON output must include `generated_at` (NY time string) and `data_delay` fields.
© staskh · MIT · staskh/trading_skills