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
npx skills add staskh/trading_skills --skill greeks -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/greeks/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/greeks/
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill greeks -a codex2Manually: put the files in place
.agents/skills/greeks/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill greeks -a cursor2Manually: put the files in place
.cursor/skills/greeks/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install staskh/trading_skills .claude/skills/greeks2Manually: put the files in place
.github/skills/greeks/SKILL.md1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill greeks -a gemini-cli2Platform CLI
gemini skills install https://github.com/staskh/trading_skills --path .claude/skills/greeksManually: put the files in place
.devin/skills/greeks/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill greeks -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 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