stocks

stocks is a skill for Claude Code, Codex from NousResearch/hermes-agent. It costs 15 tokens per session (746 once invoked), scanned A, original, MIT.

A command-line tool for reading stock and cryptocurrency market data from Yahoo Finance. It can look up companies, current quotes, historical price and volume data, and comparisons.

In plain words
What is it for?
Use it to search for tickers, fetch stock quotes, inspect OHLCV history, compare several symbols, and check cryptocurrency prices.
Why use it?
It gives developers a simple read-only way to retrieve market data without an API key or extra Python packages, though Yahoo's service may limit requests or change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search for tickers, fetch stock quotes, inspect OHLCV history, compare several symbols, and check cryptocurrency prices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nousresearch/hermes-agent/stocks
About the project

Hermes Agent is an AI assistant that learns from its use by creating and improving skills, retaining knowledge, searching past conversations, and adapting to its users. It is for people who want to run an agent through a terminal or messaging platforms while connecting it to different AI models and scheduled tasks.

NousResearch/hermes-agent · 242,680 stars · on GitHub · hermes-agent.nousresearch.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NousResearch/hermes-agent --skill stocks
Clone the repo
git clone --depth 1 https://github.com/NousResearch/hermes-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stocks

README.md
[![agentmods](https://agentmods.dev/badge/skills/nousresearch/hermes-agent/stocks.svg)](https://agentmods.dev/skills/nousresearch/hermes-agent/stocks)
Your own site
<a href="https://agentmods.dev/skills/nousresearch/hermes-agent/stocks"><img src="https://agentmods.dev/badge/skills/nousresearch/hermes-agent/stocks.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 746 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00746
Opus 5 $0.00008 $0.00373
Sonnet 5 $0.00003 $0.00149
Haiku 4.5 $0.00002 $0.00075

Measured 8d ago against content hash 6321095d5501, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

stocks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/stocks_client.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

6 near-identical copies found in the catalogue:

  • stocks — 100% identical, 16 lines differ
  • stocks — 100% identical, 0 lines differ
  • stocks — 100% identical, 0 lines differ
  • stocks — 100% identical, 16 lines differ
  • stocks — 100% identical, 16 lines differ
  • stocks — 100% identical, 16 lines differ
optional-skills/finance/stocks/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 AAPL

All 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 SOL

Commands

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_cap and pe_ratio may return null on quote when 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.

Read the full file on GitHub · 96 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 96 lines · 15 tokens per session scan A 6321095d5501

Subscribe to this mod's changes

stocks is a skill published in the GitHub repository NousResearch/hermes-agent (242,680 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 746 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

27-personal-brand-monetize-global

Use when a PERSONAL brand needs to make money — three funnel versions for founder, coach, and creator, an offer ladder from free to low to mid to high ticket, pricing psychology, inbound versus outbound outreach, and brand deal and sponsorship negotiation, with tax and legal variants for US LLC, EU per country, SEA…

minhnv0807/ai-business-skills · 173 tokens

61-budget-planning-global

Use when a marketing BUDGET has to be planned or managed in USD — allocation by bucket, channel, and month, test versus scale split, scale-up and stop-loss thresholds, reserve, a plan-versus-actual tracker, and a review cadence. Trigger on 'budget planning', 'marketing budget', 'split the budget across channels'…

minhnv0807/ai-business-skills · 159 tokens

accountant-expert

Expert-level accounting, tax, financial reporting, and accounting systems. Use when the user mentions accounting, tax, financial reporting, GAAP, or IFRS, or when the task involves Accounting Principles, Financial Statements, Tax & Compliance, or Accounting Systems.

personamanagmentlayer/pcl · 56 tokens

finops-expert

Expert-level cloud financial operations, cost optimization, and cloud economics. Use when the user mentions cloud cost, optimization, cloud economics, or AWS cost, or when the task involves FinOps Fundamentals, Cost Management, FinOps Practices, or Cost Visibility.

personamanagmentlayer/pcl · 55 tokens

banking-expert

Expert-level banking systems, core banking, regulations, and banking technology. Use when the user mentions finance, core banking, regulations, or payments, or when the task involves Banking Systems or Key Technologies.

personamanagmentlayer/pcl · 45 tokens

financial-analysis

Financial analysis workflow: gather current market data, analyze metrics, contextualize against benchmarks, assess risk, report with disclaimer. Use when the user asks about stocks, markets, investments, company financials, or economic indicators.

spytensor/openmozi · 47 tokens