whale-hunting

whale-hunting is a skill for Claude Code from staskh/trading_skills. It costs 42 tokens per session (1,728 once invoked), scanned A, original, MIT.

An options-flow scanner looks for unusually large trades in an options market for a chosen stock or fund. It first checks the option chain, then examines detailed trading data for potential institutional-sized activity.

In plain words
What is it for?
Use it to investigate possible institutional options activity, whale trades, unusual options volume, or large block trades for a ticker such as AAPL, NVDA, or SPY.
Why use it?
It helps locate unusually large options trades without manually reviewing every contract and transaction.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to investigate possible institutional options activity, whale trades, unusual options volume, or large block trades for a ticker such as AAPL, NVDA, or SPY.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/staskh/trading_skills/whale-hunting
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 staskh/trading_skills --skill whale-hunting
Clone the repo
git clone --depth 1 https://github.com/staskh/trading_skills

Made for: Claude Code.

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 whale-hunting

README.md
[![agentmods](https://agentmods.dev/badge/skills/staskh/trading_skills/whale-hunting/github.svg)](https://agentmods.dev/skills/staskh/trading_skills/whale-hunting)
Your own site
<a href="https://agentmods.dev/skills/staskh/trading_skills/whale-hunting"><img src="https://agentmods.dev/badge/skills/staskh/trading_skills/whale-hunting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for whale-hunting

Your own site · 80×15
<a href="https://agentmods.dev/skills/staskh/trading_skills/whale-hunting"><img src="https://agentmods.dev/badge/skills/staskh/trading_skills/whale-hunting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,728 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
  • 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.00042 $0.01728
Opus 5.5 $0.00017 $0.00691
Sonnet 5.5 $0.00008 $0.00346
Haiku 4.5 $0.00004 $0.00173

Measured 14d ago against content hash 6b7192fa09b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

whale-hunting 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 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/whale_hunting.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.

.claude/skills/whale-hunting/SKILL.md · 107 lines

How it starts

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

Whale Hunting

Scans option chains for a given underlying to identify institutional-sized trades using a two-step approach:

  1. Crude scan (Yahoo Finance) — finds contracts with anomalous daily investment vs the rest of the chain.
  2. Precise drill-down (Massive API) — fetches per-second bars for each candidate and flags seconds with outlier dollar invested. Minimum whale order is $50k per transaction; in thin contracts (fewer than 10 traded seconds in the day) any second averaging more than $50k per transaction is a whale.

The scan always covers a two-session window: the latest trading session plus the one before it. During market hours that means today so far plus the full previous day. Past dates are not supported because Yahoo option chains are a live snapshot.

Instructions

Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in all commands below.

uv run python .claude/skills/whale-hunting/scripts/whale_hunting.py SYMBOL [--months N] [--sigma-z F] [--summary]

Arguments

  • SYMBOL — Underlying ticker (e.g. AAPL, NVDA, SPY)
  • --months — Max months until option expiration to consider (default: 2)
  • --sigma-z — Modified Z-Score threshold for outlier detection in both the crude scan and the per-second drill-down (default: 3.5)
  • --summary — Also compute per-ticker summary and include it in the JSON output

Output

Returns JSON with:

  • underlying — The scanned symbol
  • trading_date — Latest trading session
  • window_dates — [previous session, latest session]; all totals cover both
  • source — "massive" (per-second data) or "yahoo" (daily chain data fallback)
  • total_whales — Total whale events found
  • failed_fetches — Per-second drill-down requests (one per contract per session) that errored; each is logged to stderr
  • total_call_invested — Sum of invested dollars in call whale events
  • total_put_invested — Sum of invested dollars in put whale events
  • call_put_ratio — Call invested / put invested (null if no puts)
  • put_call_ratio — Put invested / call invested (null if no calls)
  • whale_call_wall / whale_put_wall — {strike, invested}: the strike with the most whale dollars per side (null if none)
  • open_interest — Positioning from every fetched chain (expiries up to --months), not only whale contracts:
    • call_oi, put_oi, put_call_oi_ratio (null if no call OI)
    • call_wall / put_wall — {strike, open_interest}: the strike with the most open interest per side, summed across expiries (null if none)
  • directional_call_invested — Call invested where break-even is ≥ 1.5% above spot
  • directional_put_invested — Put invested where break-even is ≥ 1.5% below spot
  • directional_call_put_ratio — Directional call / directional put invested (null if no directional puts)
  • whales — List of whale events:
    • timestamp, ticker, type, strike, spot (underlying price at trade time), expiry
    • close, volume, transactions, invested, break_even, pct_from_spot (break-even distance from spot, %)
    • Missing values (e.g. spot for a trade before the first underlying bar) are null
  • summary (present only when --summary is passed) — List of per-ticker aggregates:
    • ticker, type, strike, expiry, whale_count, total_invested, break_even

Read the full file on GitHub · 107 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. 14d ago Changed · +10 lines 6b7192fa09b1
  2. 27d ago Changed · +5 lines 57e24b8030e9
  3. 3mo ago First seen · 92 lines · 42 tokens per session scan A fcbffb456f3c

Subscribe to this mod's changes

whale-hunting is a skill published in the GitHub repository staskh/trading_skills (427 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,728 once invoked, about $0.0002 per session on Opus 5.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

whale-hunting compared with skills from other repositories

whale-hunting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
whale-huntingstaskh/trading_skillsSkill427todayMITA42Claude Code
find-cpa-firmnostrband/ServiceGraphSkill586mo agoMITA238Claude Code
nse-trading-toolkitBhala-Srinivash/nse-trading-skillsSkill749mo agoMITA165Claude Code, Codex
clawby-dataopenclawby/openclawby-skillsSkill925d agoMITC204Claude Code, Codex
fibonacci-tradingBhala-Srinivash/nse-trading-skillsSkill749mo agoMITA101Claude Code, Codex
multi-timeframe-analysisBhala-Srinivash/nse-trading-skillsSkill749mo agoMITA105Claude Code, Codex
position-sizingBhala-Srinivash/nse-trading-skillsSkill749mo agoMITA96Claude Code, Codex