Skip to main content
skill CX Codex

greeks — Claude Code skill: calculate option Greeks

Skill computes option Greeks (delta, gamma, theta, vega) and implied volatility using the Black-Scholes model. Use it to understand how your position reacts to price changes, time decay, and shifts in volatility.

MIT 137 installs ★ 417 updated 2026-10-21

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add staskh/trading_skills --skill greeks -a claude-code
Open on GitHub

What greeks does

The skill runs a Python script that takes spot price, strike, and expiry date to calculate Greeks and rho. Feed it a market price and it will solve for implied volatility via Newton-Raphson. All calculations use America/New_York timezone; JSON output includes generated_at and data_delay fields.

Specify expiry as a calendar date (--expiry YYYY-MM-DD) or days to expiration (--dte). You can also assess Greeks at a future or past date (--date) to track how the position evolves. Requires scipy. Depends on Python being available and either uv or direct access to the python command.

What it helps with

  • calculate delta, gamma, and other Greeks to understand position risk
  • derive implied volatility from an option's market price
  • project how Greeks shift by a specific future date
  • compare sensitivity to price moves, time, and volatility changes

Example prompts for the agent

  • Calculate Greeks for a call on SPY with strike 630, expiring May 15 2026, priced at 72.64
  • Show delta, gamma, and theta for a put with underlying 100, strike 95, 30 days to expiry
  • Assess Greeks for that same call as if we were looking at it on March 1 2026

How to install greeks

1Skills CLI (Vercel)

npx skills add staskh/trading_skills --skill greeks -a claude-code

2Manually: put the files in place

~/.claude/skills/greeks/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/greeks/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about greeks

How do I install greeks in Claude Code?

Run npx skills add staskh/trading_skills --skill greeks -a claude-code in your terminal, then open ~/.claude/skills/greeks/SKILL.md to verify the skill is ready.

What are option Greeks and why calculate them?

Greeks measure how an option's price responds to different factors. Delta tells you how much the option price moves when the underlying moves $1; theta captures daily time decay; vega shows impact from volatility swings. They help you see which risk factor dominates your position.

What do I need to run greeks?

Python 3 on your machine, the scipy library (included as a dependency), and either uv or a direct python command in your path. If uv is unavailable or pyproject.toml is missing, use python instead of uv run python.

Source text

SKILL.md · MIT
---
name: greeks
description: Calculate option Greeks (delta, gamma, theta, vega) and implied volatility for specific options. Use when user asks about Greeks, delta, gamma, theta, vega, IV, or option sensitivity analysis.
dependencies: ["trading-skills"]
---

# Option Greeks

Calculate Greeks for options using Black-Scholes model. Computes IV from market price via Newton-Raphson.

## 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/greeks.py --spot SPOT --strike STRIKE --type call|put [--expiry YYYY-MM-DD | --dte DTE] [--price PRICE] [--date YYYY-MM-DD] [--vol VOL] [--rate RATE]
```

## Arguments

- `--spot` - Underlying spot price (required)
- `--strike` - Option strike price (required)
- `--type` - Option type: call or put (required)
- `--expiry` - Expiration date YYYY-MM-DD (use this OR --dte)
- `--dte` - Days to expiration (alternative to --expiry)
- `--date` - Calculate as of this date instead of today (YYYY-MM-DD)
- `--price` - Option market price (for IV calculation)
- `--vol` - Override volatility as decimal (e.g., 0.30 for 30%)
- `--rate` - Risk-free rate (default: 0.05)

## Output

Returns JSON with:
- `spot` - Underlying spot price
- `strike` - Strike price
- `days_to_expiry` - Days until expiration
- `iv` - Implied volatility (calculated from market price)
- `greeks` - delta, gamma, theta, vega, rho

## Examples

```bash
# With expiry date and market price (calculates IV)
uv run python scripts/greeks.py --spot 630 --strike 600 --expiry 2026-05-15 --type call --price 72.64

# With DTE directly
uv run python scripts/greeks.py --spot 630 --strike 600 --dte 30 --type call --price 40

# As of a future date
uv run python scripts/greeks.py --spot 630 --strike 600 --expiry 2026-05-15 --date 2026-03-01 --type call --price 50
```

Explain what each Greek means for the position.

## Dependencies

- `scipy`


## 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

Similar skills

All skills for Finance and business →

From the same set12

The whole set →
technical-analysis technical-analysis is a Claude Code skill that calculates stock indicators and signals. It activates for requests about RSI, MACD, moving averages, or chart analysis. CX Codex +1 618installs news-sentiment The news-sentiment skill fetches recent stock news from Yahoo Finance and gauges market sentiment. Use it to find out what's in the headlines and how it might sway the stock price. CX Codex +1 253installs fundamentals The fundamentals skill retrieves financial statements, earnings, and company metrics from Yahoo Finance. Use it when an agent needs fundamental analysis for a ticker. CX Codex +1 188installs stock-quote stock-quote is a Claude Code skill that fetches current price, volume, change, and 52-week range for any ticker. CX Codex +1 138installs report-stock report-stock builds stock research reports in Markdown or PDF covering market trends, PMCC viability, and company fundamentals. CX Codex +1 123installs option-chain Skill pulls option chain data from Yahoo Finance: calls and puts with strike prices, bids, asks, volumes, and implied volatility. Use it to check option quotes for a specific expiration date. CX Codex +1 117installs risk-assessment risk-assessment calculates risk metrics for stocks and positions: volatility, beta, Value at Risk, and maximum drawdown. Use it to assess position risk and determine sizing. CX Codex +1 113installs ib-portfolio ib-portfolio — a skill for Claude Code fetches open positions and holdings from Interactive Brokers. The agent invokes it when asked about current stocks, portfolio value, or account assets. CX Codex +1 107installs

Project sponsors

Companies that keep this analytics open