yahoo-finance — Claude Code skill: what it does, how to install
Connects Yahoo Finance data to your coding agent to track stock quotes, credit metrics, LatAm FX, and macro indicators. Useful for debt analysis and financial research.
npx skills add 0juano/agent-skills --skill yahoo-finance -a claude-codeWhat yahoo-finance does
This skill equips your agent with the yf CLI script for Yahoo Finance market data. The agent can pull stock quotes, price history, income statements, balance sheets, and company news headlines. It also queries macro metrics like VIX, DXY, US treasury yields, commodity prices, and LatAm FX rates across ARS, BRL, CLP, MXN, or COP.
The script executes with uv run --script using inline PEP 723 metadata. Dependencies install automatically on the first run. Output renders as Rich terminal tables or structured JSON when passing the --json flag.
Your environment must have Python 3.10+ and uv installed. The script file at {baseDir}/scripts/yf also requires executable permissions to run.
What it helps with
- inspect corporate credit ratios and interest coverage
- retrieve morning macro snapshots across commodities, yields, and volatility
- compare financial metrics side by side for selected tickers
- fetch ETF asset allocations and top holdings
Example prompts for the agent
- Pull the morning macro dashboard with VIX, DXY, and treasury yields
- Run a credit analysis on AAPL to see debt maturity and interest coverage
- Compare stock quotes and multiples for YPF, PAM, and GGAL
How to install yahoo-finance
1Skills CLI (Vercel)
npx skills add 0juano/agent-skills --skill yahoo-finance -a claude-code2Manually: put the files in place
~/.claude/skills/yahoo-finance/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/yahoo-finance/
1Skills CLI (Vercel)
npx skills add 0juano/agent-skills --skill yahoo-finance -a codex2Manually: put the files in place
.agents/skills/yahoo-finance/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add 0juano/agent-skills --skill yahoo-finance -a cursor2Manually: put the files in place
.cursor/skills/yahoo-finance/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install 0juano/agent-skills yahoo-finance2Manually: put the files in place
.github/skills/yahoo-finance/SKILL.md1Skills CLI (Vercel)
npx skills add 0juano/agent-skills --skill yahoo-finance -a gemini-cli2Platform CLI
gemini skills install https://github.com/0juano/agent-skills --path yahoo-financeManually: put the files in place
.devin/skills/yahoo-finance/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add 0juano/agent-skills --skill yahoo-finance -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about yahoo-finance
How to install yahoo-finance in Claude Code?
Run npx skills add 0juano/agent-skills --skill yahoo-finance -a claude-code. The skill configuration saves to ~/.claude/skills/yahoo-finance/SKILL.md.
What does yahoo-finance do?
It provides terminal commands via the yf script to fetch equity prices, credit metrics, fundamentals, options chains, and macro trends from Yahoo Finance.
What are the system requirements for yahoo-finance?
The utility requires Python 3.10+ and the uv package manager. You must also grant execution rights with chmod +x {baseDir}/scripts/yf.
Source text
SKILL.md · MIT
---
name: yahoo-finance
description: >
Financial data from Yahoo Finance: stock/bond prices, credit analysis, macro dashboard,
FX rates, ETF flows, fundamentals, and news. Use when the user asks about stock prices,
bond yields, credit metrics, leverage ratios, debt/ebitda, interest coverage, macro
indicators (VIX, DXY, treasury yields, oil, gold, BTC), LatAm FX (ARS, BRL, CLP, MXN, COP),
ETF holdings, income statements, balance sheets, cash flow, financial news, options chains,
dividend history, or analyst ratings/upgrades.
Commands: yf price, yf quote, yf compare, yf credit, yf macro, yf fx, yf flows, yf history,
yf fundamentals, yf news, yf search, yf options, yf dividends, yf ratings.
license: MIT
compatibility: Requires Python 3.10+ and uv
allowed-tools: Read Bash(yf:*)
metadata:
author: 0juano
version: "1.0.0"
openclaw:
emoji: "📈"
requires:
bins: ["uv", "python3"]
install:
- id: uv
kind: download
url: https://astral.sh/uv/install.sh
bins: ["uv"]
label: "Install uv (Python package manager)"
---
# Yahoo Finance CLI
Financial data terminal powered by Yahoo Finance. All commands via the `yf` script.
## Setup
The script is at `{baseDir}/scripts/yf`. It uses `uv run --script` with inline PEP 723 metadata — dependencies install automatically on first run.
```bash
chmod +x {baseDir}/scripts/yf
```
## Commands
| Command | Purpose | Example |
|---------|---------|---------|
| `yf price TICKER` | Quick price + change + volume | `yf price YPF` |
| `yf quote TICKER` | Detailed quote (52w, PE, yield) | `yf quote AAPL` |
| `yf compare T1,T2,T3` | Side-by-side comparison table | `yf compare YPF,PAM,GGAL` |
| `yf credit TICKER` | Credit analysis: leverage, coverage, debt maturity | `yf credit YPF` |
| `yf macro` | Morning macro dashboard (UST, DXY, VIX, oil, gold, BTC, ARS) | `yf macro` |
| `yf fx [BASE]` | LatAm FX rates (ARS, BRL, CLP, MXN, COP) | `yf fx USD` |
| `yf flows ETF` | ETF top holdings + fund data | `yf flows EMB` |
| `yf history TICKER [PERIOD]` | Price history (1d/5d/1mo/3mo/6mo/1y/ytd/max) | `yf history YPF 3mo` |
| `yf fundamentals TICKER` | Full financials (IS, BS, CF) | `yf fundamentals YPF` |
| `yf news TICKER` | Recent news headlines | `yf news YPF` |
| `yf search QUERY` | Find tickers | `yf search "argentina bond"` |
All commands support `--json` for machine-readable output.
## When to Use Which Command
- **Morning check**: `yf macro` → get UST yields, DXY, VIX, commodities, BTC, ARS in one shot
- **Quick look**: `yf price TICKER` → fast price/change/volume
- **Deep dive equity**: `yf quote` → `yf fundamentals` → `yf history`
- **Credit analysis**: `yf credit TICKER` → leverage ratios, interest coverage, debt breakdown
- **EM/LatAm FX**: `yf fx` → all major LatAm pairs vs USD
- **ETF research**: `yf flows ETF` → top holdings, AUM, expense ratio
- **Comparison**: `yf compare` → side-by-side for relative value
## Error Handling
The script handles bad tickers, missing data, and rate limits gracefully with clear error messages. If Yahoo Finance rate-limits, wait a moment and retry.
## Output
By default, output uses Rich tables for clean terminal display. Add `--json` to any command for structured JSON output suitable for piping or further processing.
© 0juano · MIT · 0juano/agent-skills