stocks – Other skill for AI agents
Stock quotes, history, search, compare, crypto via Yahoo.
Install the stocks skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/stocks-5d951.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /stocks – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/stocks-5d951.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $stocks – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/stocks-5d951.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /stocks – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/stocks-5d951.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /stocks – then describe the task you want done.
SKILL.md content
Stocks Skill
Read-only market data via Yahoo Finance. Five commands: quote, search,
history, compare, crypto. Python stdlib only — no API key, no pip
installs. Yahoo's endpoint is unofficial and may rate-limit or change.
When to Use
- User asks for a current stock price (AAPL, TSLA, MSFT, ...)
- User wants to look up a ticker by company name
- User wants OHLCV history or performance over a date range
- User wants to compare several tickers side by side
- User asks for a crypto price (BTC, ETH, SOL, ...)
Prerequisites
Python 3.8+ stdlib only. Optional: set ALPHA_VANTAGE_KEY to enrich
market_cap, pe_ratio, and 52-week levels when Yahoo's crumb-protected
fields come back null. Free key: https://www.alphavantage.co/support/#api-key
How to Run
Invoke through the terminal tool. Once installed:
SCRIPT=~/.hermes/skills/finance/stocks/scripts/stocks_client.py
python $SCRIPT quote AAPLAll output is JSON on stdout — pipe through jq if you want to slice it.
Quick Reference
python $SCRIPT quote AAPL
python $SCRIPT quote AAPL MSFT GOOGL TSLA
python $SCRIPT search "Tesla"
python $SCRIPT history NVDA --range 6mo
python $SCRIPT compare AAPL MSFT GOOGL
python $SCRIPT crypto BTC ETH SOLCommands
quote SYMBOL [SYMBOL2 ...]
Current price, change, change%, volume, 52-week high/low.
search QUERY
Find tickers by company name. Returns top 5: symbol, name, exchange, type.
history SYMBOL [--range RANGE]
Daily OHLCV plus stats (min, max, avg, total return %). Ranges: 1mo,
3mo, 6mo, 1y, 5y. Default: 1mo.
compare SYMBOL1 SYMBOL2 [...]
Side-by-side: price, change%, 52-week performance.
crypto SYMBOL [SYMBOL2 ...]
Crypto prices. Pass BTC (the script appends -USD automatically).
Pitfalls
- Yahoo Finance's API is unofficial. Endpoints can change or rate-limit
without notice — if requests start failing, that's why.
market_capandpe_ratiomay return null onquotewhen Yahoo's
crumb session isn't established. Set ALPHA_VANTAGE_KEY to backfill.
- Add a small delay between bulk requests to avoid rate-limiting.
- This is read-only — no order placement, no account integration.
Verification
python ~/.hermes/skills/finance/stocks/scripts/stocks_client.py quote AAPLReturns a JSON object with symbol: "AAPL" and a numeric price field.
Related skills
- earllm-build – Build, maintain, and extend the EarLLM One Android project — a Kotlin/Compose app that…
- stripe-projects – Provision SaaS services + sync creds via Stripe Projects.
- transformers – Hugging Face Transformers for loading Hub models, running pipeline inference, text…
- elon-musk – Simulacao ficticia e explicitamente rotulada de estilo comunicacional associado a Elon…
- treatment-plans – Formats and structurally validates local treatment-plan documentation after clinical…
- embedding-strategies – Guide to selecting and optimizing embedding models for vector search applications.
- umap-learn – Applies UMAP-learn to nonlinear dimensionality reduction, 2D/3D embeddings, clustering…
- emergency-card – 生成紧急情况下快速访问的医疗信息摘要卡片。当用户需要旅行、就诊准备、紧急情况或询问"紧急信息"、"医疗卡片"、"急救信息"时使用此技能。提取关键信息(过敏、用药、急症、植入物),…