Trading_skills spread-analysis
Analyze option spread strategies like vertical spreads, iron condors, straddles, strangles. Use when user asks about spreads, multi-leg strategies, vertical spread, iron condor, straddle, strangle, or strategy analysis.
install
source · Clone the upstream repo
git clone https://github.com/staskh/trading_skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/staskh/trading_skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/spread-analysis" ~/.claude/skills/staskh-trading-skills-spread-analysis && rm -rf "$T"
manifest:
.claude/skills/spread-analysis/SKILL.mdsource content
Spread Analysis
Analyze multi-leg option strategies.
Instructions
Note: If
is not installed oruvis not found, replacepyproject.tomlwithuv run pythonin all commands below.python
uv run python scripts/spreads.py SYMBOL --strategy STRATEGY --expiry YYYY-MM-DD [options]
Strategies and Options
Vertical Spread (bull/bear call/put spread):
uv run python scripts/spreads.py AAPL --strategy vertical --expiry 2026-01-16 --type call --long-strike 180 --short-strike 185
Straddle (long call + long put at same strike):
uv run python scripts/spreads.py AAPL --strategy straddle --expiry 2026-01-16 --strike 180
Strangle (long call + long put at different strikes):
uv run python scripts/spreads.py AAPL --strategy strangle --expiry 2026-01-16 --put-strike 175 --call-strike 185
Iron Condor (sell strangle + buy wider strangle):
uv run python scripts/spreads.py AAPL --strategy iron-condor --expiry 2026-01-16 --put-short 175 --put-long 170 --call-short 185 --call-long 190
Output
Returns JSON with:
- Strategy name and legsstrategy
- Net debit or creditcost
- Maximum potential profitmax_profit
- Maximum potential lossmax_loss
- Breakeven price(s)breakeven
- Estimated probability of profit (based on IV)probability
Explain the risk/reward and when this strategy is appropriate.
Dependencies
pandasyfinance