Agent skill

Options Spread Conviction Engine

by LeoYeAI in LeoYeAI/openclaw-master-skills

Multi-regime options spread analysis engine with quantitative rigor.

MITAuto-check: notesData & Analytics

Install Options Spread Conviction Engine

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill options-spread-conviction-engine -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills options-spread-conviction-engine --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/options-spread-conviction-engine .claude/skills/options-spread-conviction-engine && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
options-spread-conviction-engine
GitHub stars
2.2k
Token cost
~5.7k tokens
SKILL.md length
1,587 words
Files
35 (incl. scripts)
Skills in repo
1,235
Repo updated
First seen
Licence
MIT

At a glance

Multi-regime options spread analysis engine with quantitative rigor.

  • Works in 7 steps: Regime Detector (regime_detector.py) → Volatility Forecaster (vol_forecaster.py) → Enhanced Kelly Sizer (enhanced_kelly.py) → …
  • Tasks that involve Forecasting and time series
  • SKILL.md covers Install, Overview, Scoring Methodology and Conviction Tiers, plus 7 more sections
  • Runs Python scripts from its folder; calls python3, brew and npm

What it does

Options Spread Conviction Engine is an agent skill from LeoYeAI/openclaw-master-skills. Multi-regime options spread analysis engine with quantitative rigor. Features regime detection (VIX-based), GARCH volatility forecasting, drawdown-constrained Kelly position sizing, and walk-forward backtesting. Scores vertical spreads (bull put, bear call, bull call, bear put) and multi-leg strategies (iron condors, butterflies, calendar spreads) using Ichimoku, RSI, MACD, Bollinger Bands, and IV term structure analysis.

Its SKILL.md is about 5.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 36 other files, including scripts (for example `CODE_REVIEW_REPORT.md`, `MULTI_LEG_REPORT.md` and `QUANT_SCANNER.md`).

It sits in Data & Analytics, covering Forecasting and time series and Trading and backtesting. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

When your agent uses it

  • Tasks that involve Forecasting and time series
  • Tasks that involve Trading and backtesting

Example prompts

  • “/options-spread-conviction-engine”

Requirements

  • Python 3
  • Node.js

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Regime Detector (regime_detector.py)
  2. Volatility Forecaster (vol_forecaster.py)
  3. Enhanced Kelly Sizer (enhanced_kelly.py)
  4. Backtest Validator (backtest_validator.py)
  5. Quantitative Integration (quantitative_integration.py)
  6. Technical Scanner (market_scanner.py)
  7. Quantitative Scanner (quant_scanner.py)

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 10 files in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • brew
    • npm
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Options Spread Conviction Engine loads about 5.7k tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 1,587 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~5.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:27
    sudo ln -s /opt/homebrew/bin/yahoo-finance /usr/local/bin/yf

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 1,587 words, ~5,666 tokens.

Download SKILL.mdSave it as .claude/skills/options-spread-conviction-engine/SKILL.md (or your agent's skills folder). This skill also uses 34 other files; get the full folder from GitHub.
name
options-spread-conviction-engine
description
Multi-regime options spread analysis engine with quantitative rigor. Features regime detection (VIX-based), GARCH volatility forecasting, drawdown-constrained Kelly position sizing, and walk-forward backtesting. Scores vertical spreads (bull put, bear call, bull call, bear put) and multi-leg strategies (iron condors, butterflies, calendar spreads) using Ichimoku, RSI, MACD, Bollinger Bands, and IV term structure analysis.
version
2.3.0
author
Leonardo Da Pinchy

Options Spread Conviction Engine

Multi-regime options spread scoring using technical indicators and IV term structure analysis.

Install

bash
brew install jq
npm install yahoo-finance2
sudo ln -s /opt/homebrew/bin/yahoo-finance /usr/local/bin/yf

Overview

This engine analyzes any ticker and scores seven options strategies across two categories:

Vertical Spreads (Directional)
StrategyTypePhilosophyIdeal Setup
bull_putCreditMean ReversionBullish trend + oversold dip
bear_callCreditMean ReversionBearish trend + overbought rip
bull_callDebitBreakoutStrong bullish momentum
bear_putDebitBreakoutStrong bearish momentum
Multi-Leg Strategies (Non-Directional / Theta)
StrategyTypePhilosophyIdeal Setup
iron_condorCreditPremium SellingIV Rank >70, RSI neutral, range-bound
butterflyDebitPinning PlayBB squeeze, RSI center, low ADX
calendarDebitTheta HarvestInverted IV term structure (front > back)

Scoring Methodology

Vertical Spreads

Weights vary by strategy type (Credit = Mean Reversion, Debit = Breakout):

Credit Spreads (bull_put, bear_call)
IndicatorWeightPurpose
Ichimoku Cloud25 ptsTrend structure & equilibrium
RSI20 ptsEntry timing (mean-reversion)
MACD15 ptsMomentum confirmation
Bollinger Bands25 ptsVolatility regime
ADX15 ptsTrend strength validation
Debit Spreads (bull_call, bear_put)
IndicatorWeightPurpose
Ichimoku Cloud20 ptsTrend confirmation
RSI10 ptsDirectional momentum
MACD30 ptsBreakout acceleration
Bollinger Bands25 ptsBandwidth expansion
ADX15 ptsTrend strength validation
Multi-Leg Strategies
Iron Condor (Credit / Range-Bound)
ComponentWeightRationale
IV Rank (BBW %)25 ptsRich premiums to sell
RSI Neutrality20 ptsNo directional momentum
ADX Range-Bound20 ptsWeak trend = range structure
Price Position20 ptsCentered in range = safe margins
MACD Neutrality15 ptsNo acceleration in any direction

Triggers:

  • IV Rank > 70: Premium-rich environment
  • RSI 40-60: Neutral momentum
  • ADX < 25: Weak/no trend
  • Price near %B center: Max profit zone maximized

Strike Selection:

  • SELL put at 1-sigma below price (short put)
  • BUY put at 2-sigma below (long put — wing)
  • SELL call at 1-sigma above price (short call)
  • BUY call at 2-sigma above (long call — wing)

Output:

  • All 4 strikes (put_long, put_short, call_short, call_long)
  • Max profit zone (width between short strikes)
  • Wing width
Butterfly (Debit / Volatility Compression)
ComponentWeightRationale
BB Squeeze30 ptsVol compression = narrow range
RSI Neutrality25 ptsPrice at equilibrium
ADX Weakness20 ptsNo directional trend at all
Price Centering15 ptsAt center of range for max profit
MACD Flatness10 ptsNo momentum

Triggers:

  • BBW percentile < 25: Squeeze active
  • RSI 45-55: Dead-center (tighter than condor)
  • ADX < 20: Very weak trend
  • MACD histogram near zero
  • Price at %B = 0.50

Strike Selection:

  • BUY 1 call at strike below center (lower wing)
  • SELL 2 calls at center strike (body)
  • BUY 1 call at strike above center (upper wing)

Output:

  • 3 strikes (lower_long, middle_short, upper_long)
  • Max profit price (= middle strike)
  • Profit zone (approximate breakevens)
Calendar Spread (Debit / Theta Harvesting)
ComponentWeightRationale
IV Term Structure30 ptsFront IV > Back IV = theta edge
Price Stability20 ptsPrice stays near strike
RSI Neutrality20 ptsNot trending away from strike
ADX Moderate15 ptsSome structure, not trending hard
MACD Neutrality15 ptsNo directional acceleration

Triggers:

  • Front-month IV > Back-month IV by > 5%: Inverted term structure
  • Low recent volatility: Price stability
  • RSI neutral: No directional momentum
  • ADX 18-25: Moderate trend structure (not chaos)

Data Sources:

  • Primary: Live options chain IV from Yahoo Finance
  • Fallback: Historical volatility proxy (HV 10-day vs 30-day)

Strike Selection:

  • ATM strike (rounded to standard interval)
  • Front expiry: nearest available
  • Back expiry: 25+ days after front

Output:

  • Single strike (both legs)
  • Front and back expiry dates
  • IV differential (%)
  • Theta advantage description

Conviction Tiers

ScoreTierAction
80-100EXECUTEHigh conviction — Enter the spread
60-79PREPAREFavorable — Size the trade
40-59WATCHInteresting — Add to watchlist
0-39WAITPoor conditions — Avoid / No setup

Usage

Vertical Spreads
bash
# Basic analysis (auto-detects best strategy)
conviction-engine AAPL

# Specific strategy
conviction-engine SPY --strategy bear_call
conviction-engine QQQ --strategy bull_call --period 2y
Multi-Leg Strategies
bash
# Iron Condor — high IV, range-bound
conviction-engine SPY --strategy iron_condor

# Butterfly — volatility compression, pinning play
conviction-engine AAPL --strategy butterfly

# Calendar — inverted IV term structure, theta harvest
conviction-engine TSLA --strategy calendar
Multiple Tickers
bash
conviction-engine AAPL MSFT GOOGL --strategy bull_put
conviction-engine SPY QQQ IWM --strategy iron_condor
JSON Output (for automation)
bash
conviction-engine TSLA --strategy butterfly --json
conviction-engine SPY --strategy calendar --json | jq '.[0].iv_term_structure'
Full Options
bash
conviction-engine <ticker> [ticker...]
  --strategy {bull_put,bear_call,bull_call,bear_put,iron_condor,butterfly,calendar}
  --period {1y,2y,3y,5y}
  --interval {1h,1d,1wk}
  --json

Example Outputs

Iron Condor
================================================================================
SPY — Iron Condor (Credit)
================================================================================
Price: $681.27 | Score: 31.8/100 → WAIT

[IV Rank +2.5/25]
  IV Rank (BBW proxy): 5% (VERY_LOW)
  BBW: 3.17 (1Y range: 2.37 - 18.13)
  Premiums are THIN — poor risk/reward for credit

Strikes:
  BUY  680.0P | SELL 685.0P
  SELL 695.0C | BUY  700.0C
  Max Profit Zone: $685.0 - $695.0
  Wing Width: $5.00
Butterfly
================================================================================
SPY — Long Butterfly (Debit)
================================================================================
Price: $681.27 | Score: 64.5/100 → PREPARE

[BB Squeeze +27.0/30]
  Bandwidth: 3.1701 (percentile: 21%)
  SQUEEZE ACTIVE — 19 consecutive bars

Strikes:
  BUY 1x 685.0C | SELL 2x 690.0C | BUY 1x 695.0C
  Max Profit Price: $690.0
  Profit Zone: ~$685.0 - $695.0
Calendar Spread
================================================================================
SPY — Calendar Spread (Debit)
================================================================================
Price: $681.27 | Score: 67.2/100 → PREPARE

[IV Term Structure +30.0/30]
  Front IV: 27.5% | Back IV: 19.4%
  Differential: +41.7%
  INVERTED TERM STRUCTURE — calendar opportunity confirmed

Strikes:
  Strike: $680.0
  SELL 2026-02-13 | BUY 2026-03-13
  Theta Advantage: Front IV > Back IV by 41.7%

IV Rank Approximation

IV Rank is approximated using Bollinger Bandwidth (BBW) percentile over 252 trading days:

IV Rank ≈ (Current BBW - 52wk Low BBW) / (52wk High BBW - 52wk Low BBW) × 100

This correlation is well-documented: realized volatility (BBW) and implied volatility rank move with ~0.7-0.8 correlation (Sinclair, "Volatility Trading", 2013).

IV Term Structure

For calendar spreads, the engine attempts to fetch live ATM implied volatility from Yahoo Finance options chains. If unavailable, it falls back to historical volatility term structure (HV 10-day vs HV 30-day) as a proxy.

Quantitative Modules (v2.3.0)

The engine now includes four quantitative modules for rigorous strategy validation and optimization:

1. Regime Detector (regime_detector.py)

Market regime classification using VIX percentiles:

  • CRISIS: VIX > 80th percentile — favors premium selling (iron condors)
  • HIGH_VOL: VIX 60-80th — elevated IV benefits credit spreads
  • NORMAL: VIX 40-60th — balanced environment, all strategies viable
  • LOW_VOL: VIX 20-40th — cheap options favor debit spreads
  • EUPHORIA: VIX < 20th — momentum continues, mean reversion brewing
bash
# Detect current regime
python3 scripts/regime_detector.py

# Get regime-adjusted weights for specific strategy
python3 scripts/regime_detector.py --strategy iron_condor --json

Integration:

python
from regime_detector import RegimeDetector

detector = RegimeDetector()
regime, confidence = detector.detect_regime()
weights = detector.get_regime_weights(regime)
adjusted_score, reasoning = detector.regime_aware_score(75, regime, 'bull_put')
2. Volatility Forecaster (vol_forecaster.py)

GARCH-based realized volatility forecasting with VRP analysis:

  • Fits GARCH(1,1) to historical returns
  • Forecasts realized volatility over configurable horizon
  • Calculates volatility risk premium (IV - RV forecast)
  • Provides conviction adjustments based on VRP
bash
# Analyze AAPL volatility
python3 scripts/vol_forecaster.py AAPL

# Compare IV = 25% vs forecast RV
python3 scripts/vol_forecaster.py SPY --iv 0.25 --horizon 5

Interpretation:

  • VRP > 5%: Favorable for selling premium (credit spreads)
  • VRP < -5%: Favorable for buying premium (debit spreads)
  • VRP near 0: No volatility edge, focus on directional setup

Integration:

python
from vol_forecaster import VolatilityForecaster

forecaster = VolatilityForecaster("AAPL")
params = forecaster.fit_garch()  # Returns omega, alpha, beta
forecast = forecaster.forecast_vol(horizon=5)
vrp, strength, rec = forecaster.vol_risk_premium(iv=0.25, rv_forecast=forecast.annualized_vol)
adjusted_score, reasoning = forecaster.add_to_conviction(70, vrp_signal, 'bull_put')
3. Enhanced Kelly Sizer (enhanced_kelly.py)

Drawdown-constrained, correlation-aware position sizing:

  • Full Kelly criterion calculation
  • Drawdown constraint: f_dd = f_kelly × (1 - target_dd / max_dd)
  • Conviction-based Kelly scaling:
    • 90-100: Half Kelly
    • 80-89: Quarter Kelly
    • 60-79: Eighth Kelly
    • <60: No position
  • Correlation penalty for portfolio context
bash
# Calculate position with $390 account
python3 scripts/enhanced_kelly.py --loss 80 --win 40 --pop 0.65 --conviction 85

# Include correlation with existing position
python3 scripts/enhanced_kelly.py --loss 80 --win 40 --pop 0.65 --conviction 85 --correlation 0.3

Integration:

python
from enhanced_kelly import EnhancedKellySizer

sizer = EnhancedKellySizer(account_value=390, max_drawdown=0.20)
result = sizer.calculate_position(
    spread_cost=80,
    max_loss=80,
    win_amount=40,
    conviction=85,
    pop=0.65,
    existing_correlation=0.0
)
# Returns: contracts, total_risk, kelly_fraction, recommendation
4. Backtest Validator (backtest_validator.py)

Walk-forward validation of conviction scores:

  • Simulates historical trades across ticker universe
  • Validates tier separation (EXECUTE vs WAIT performance)
  • Statistical tests (t-tests, ANOVA)
  • Tier separation scoring (0-1)
  • Weight calibration suggestions
bash
# Backtest bull_put on AAPL, MSFT, SPY (2022-2024)
python3 scripts/backtest_validator.py --tickers AAPL MSFT SPY --start 2022-01-01 --end 2024-01-01 --strategy bull_put

# JSON output for analysis
python3 scripts/backtest_validator.py --tickers SPY --json

Output Metrics:

  • Win rate per tier
  • Expectancy per tier: (win_rate × avg_win) - (loss_rate × avg_loss)
  • Sharpe ratio per tier
  • P-values for tier differences
  • Separation score (0-1, higher = better discrimination)

Integration:

python
from backtest_validator import BacktestValidator

validator = BacktestValidator(engine, "2022-01-01", "2024-01-01")
results_df = validator.run_walk_forward(["AAPL", "MSFT"], hold_days=5)
report = validator.validate_tiers(results_df)
print(f"Separation score: {report.tier_separation_score:.2f}")
print(f"EXECUTE vs WAIT p-value: {report.p_values['execute_vs_wait']:.4f}")
5. Quantitative Integration (quantitative_integration.py)

Unified interface combining all quantitative modules:

bash
# Full quantitative analysis with regime and VRP
python3 scripts/quantitative_integration.py AAPL --regime-aware --vol-aware

# With Kelly sizing
python3 scripts/quantitative_integration.py SPY --regime-aware --pop 0.65 --max-loss 80 --win-amount 40

# Run backtest validation
python3 scripts/quantitative_integration.py --backtest SPY QQQ --start 2022-01-01 --end 2024-01-01

Integration:

python
from quantitative_integration import QuantConvictionEngine

engine = QuantConvictionEngine(account_value=390, max_drawdown=0.20)

# Analyze with regime and VRP adjustments
result = engine.analyze("AAPL", "bull_put", regime_aware=True, vol_aware=True)
print(f"Final score: {result.final_score}")
print(f"Regime: {result.regime}")
print(f"VRP: {result.vrp_signal.vrp if result.vrp_signal else 'N/A'}")

# Calculate position size
sizing = engine.calculate_position(result, pop=0.65, max_loss=80, win_amount=40)
print(f"Contracts: {sizing['contracts']}")

# Run backtest validation
report = engine.run_backtest(["SPY", "QQQ"], "2022-01-01", "2024-01-01")
print(f"Recommendation: {report.recommendation}")
Show full SKILL.md (658 more words)Show less

Academic Foundation

  • Ichimoku Cloud — Trend structure (Hosoda, 1968)
  • RSI — Momentum oscillator (Wilder, 1978)
  • MACD — Trend momentum (Appel, 1979)
  • Bollinger Bands — Volatility envelopes (Bollinger, 2001)
  • IV Rank / Term Structure — Options market microstructure (Sinclair, 2013)

Combining orthogonal signals reduces false-positive rate compared to single-indicator strategies (Pring, 2002; Murphy, 1999).

Architecture

conviction-engine/
├── scripts/
│   ├── conviction-engine              # CLI wrapper (bash)
│   ├── spread_conviction_engine.py    # Core engine (vertical spreads)
│   ├── multi_leg_strategies.py        # Multi-leg extensions
│   ├── quantitative_integration.py    # Unified quantitative interface
│   ├── regime_detector.py             # VIX-based regime classification
│   ├── vol_forecaster.py              # GARCH volatility forecasting
│   ├── enhanced_kelly.py              # Drawdown-constrained Kelly sizing
│   ├── backtest_validator.py          # Walk-forward validation
│   ├── quant_scanner.py               # Quantitative options scanner
│   ├── market_scanner.py              # Technical market scanner
│   ├── calculator.py                  # Black-Scholes & POP calculator
│   ├── position_sizer.py              # Kelly position sizing
│   ├── chain_analyzer.py              # IV surface analyzer
│   ├── options_math.py                # Core mathematical models
│   └── setup-venv.sh                  # Environment setup
├── tests/                             # Unit tests
│   ├── test_regime_detector.py
│   ├── test_vol_forecaster.py
│   ├── test_enhanced_kelly.py
│   ├── test_backtest_validator.py
│   └── run_tests.py
└── SKILL.md                           # This documentation
Module Separation
  • spread_conviction_engine.py: Vertical spreads, shared infrastructure (data fetching, indicator computation)
  • multi_leg_strategies.py: Iron condors, butterflies, calendars (imports from main engine)
  • quantitative_integration.py: Unified interface for regime/vol/Kelly/backtest modules
  • regime_detector.py: Market regime classification using VIX percentiles
  • vol_forecaster.py: GARCH-based realized volatility forecasting
  • enhanced_kelly.py: Drawdown-constrained, correlation-aware position sizing
  • backtest_validator.py: Walk-forward validation of conviction scores

This separation keeps concerns clean while avoiding duplication.

Limitations & Assumptions

IV Data
  • Yahoo Finance Limitations: Options chains may be unavailable after market hours or for low-volume tickers
  • Fallback: Historical volatility (HV) proxy is less accurate than live IV but provides signal
  • IV Rank: Approximated from BBW; actual IV Rank requires options chain data
Strike Selection
  • Approximation: Strikes derived from Bollinger Band levels (1-sigma / 2-sigma)
  • Rounding: Rounded to standard option strike intervals based on stock price
  • No Live Pricing: Does not fetch live option premiums; strike selection is structural, not value-optimized
Data Quality
  • Minimum 180 trading days required for full Ichimoku cloud population
  • Multi-leg strategies require options chains (calendar spreads especially)
  • After-hours analysis may have reduced data quality
Market Assumptions
  • Assumes normal options market conditions (not extreme volatility events)
  • Strike intervals assume US equity options conventions
  • Not tested on futures, commodities, or non-US markets

Requirements

  • Python 3.10+ (Python 3.14+ supported via pure-python mode)
  • Isolated virtual environment (auto-created on first run)
  • Internet connection (fetches data from Yahoo Finance)

Installation

bash
clawhub install options-spread-conviction-engine

The skill automatically creates a virtual environment and installs:

  • pandas >= 2.0
  • pandas_ta >= 0.4.0 (pure Python mode on 3.14+)
  • yfinance >= 1.0
  • scipy, tqdm

Note: On Python 3.14+, the engine runs in pure Python mode without numba. Performance is slightly reduced but all functionality works correctly.

Market Scanners

The engine includes two distinct scanning tools for different trading philosophies:

1. Technical Scanner (market_scanner.py)

Automates the search for high-conviction plays across entire stock universes using technical indicators (Ichimoku, RSI, MACD, BB).

Features
  • Scans S&P 500, Nasdaq 100, or custom ticker lists.
  • Filters for EXECUTE tier (conviction ≥80).
  • Runs position sizing to ensure trades fit account guardrails.
Usage
bash
# Scan S&P 500 for high-conviction technical setups
python3 scripts/market_scanner.py --universe sp500
2. Quantitative Scanner (quant_scanner.py)

A mathematically-rigorous scanner that ignores technical indicators in favor of market microstructure and probability.

Features
  • IV Surface Analysis: Analyzes skew and term structure.
  • Monte Carlo POP: 10,000-run simulations for true Probability of Profit.
  • EV Optimization: Finds trades with the highest risk-adjusted mathematical expectancy.
  • Account-Aware: Enforces small-account constraints ($100 max risk).
Usage
bash
# Maximize POP (Probability of Profit) for SPY
python3 scripts/quant_scanner.py SPY --mode pop

# High-expectancy (EV) plays with specific DTE
python3 scripts/quant_scanner.py AAPL TSLA --mode ev --min-dte 30

Calculator & Position Sizer

The integrated toolchain includes:

calculator.py

Black-Scholes options pricing with support for:

  • Single options: calls, puts
  • Vertical spreads: bull call, bear put
  • Multi-leg: iron condors, butterflies
  • Greeks calculation (delta, gamma, theta, vega, rho)
  • Monte Carlo POP simulation
position_sizer.py

Kelly criterion position sizing adapted for small accounts:

  • Full Kelly and fractional Kelly (default 0.25)
  • Account guardrails ($390 default, $100 max risk)
  • Trade screening and ranking
  • Strike adjustment suggestions
python
from position_sizer import calculate_position

result = calculate_position(
    account_value=390,
    max_loss_per_spread=80,
    win_amount=40,
    pop=0.65,
)
# Returns: contracts, total_risk, recommendation, reason

Files

  • scripts/conviction-engine — Main CLI wrapper for conviction engine
  • scripts/spread_conviction_engine.py — Core engine (vertical spreads)
  • scripts/multi_leg_strategies.py — Multi-leg extensions (v2.0.0)
  • scripts/market_scanner.py — Automated market scanner for EXECUTE plays
  • scripts/calculator.py — Black-Scholes pricing, Greeks, Monte Carlo POP
  • scripts/position_sizer.py — Kelly criterion position sizing
  • scripts/setup-venv.sh — Environment setup
  • data/sp500_tickers.txt — S&P 500 constituents
  • data/ndx100_tickers.txt — Nasdaq 100 constituents
  • assets/ — Documentation and examples

Version History

  • v2.3.0 (2026-02-13): Quantitative rigor upgrade
    • Regime Detector: VIX-based market regime classification
    • Volatility Forecaster: GARCH-based RV forecasting with VRP analysis
    • Enhanced Kelly Sizer: Drawdown-constrained, correlation-aware position sizing
    • Backtest Validator: Walk-forward validation with tier separation testing
    • Quantitative Integration: Unified interface for all quantitative modules
    • Comprehensive unit test suite for all new modules
  • v2.2.0 (2026-02-13): Kelly Criterion position sizing with full/half Kelly, edge calculation, and account-aware contract sizing
  • v2.1.0 (2026-02-12): Added market scanner, integrated calculator and position sizer
  • v2.0.0 (2026-02-12): Added multi-leg strategies (iron condor, butterfly, calendar)
  • v1.2.1 (2026-02-09): Volume multiplier, dynamic strike suggestions
  • v1.1.0 (2026-02-08): Cross-signal weighting, multi-strategy support
  • v1.0.0 (2026-02-07): Initial bull put spread engine

License

MIT — Part of the Financial Toolkit for OpenClaw

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 34 other files (scripts) in skills/options-spread-conviction-engine of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • CODE_REVIEW_REPORT.md
  • MULTI_LEG_REPORT.md
  • QUANT_SCANNER.md
  • README.md
  • _meta.json
  • data/ndx100_tickers.txt
  • data/sp500_tickers.txt
  • data/test_tickers.txt
  • scripts/backtest_validator.py
  • scripts/calculator.py
  • scripts/chain_analyzer.py
  • scripts/enhanced_kelly.py
  • scripts/find_qqq_play.py
  • scripts/leg_optimizer.py
  • scripts/market_scanner.py
  • scripts/multi_leg_strategies.py
  • scripts/numba.py
  • scripts/options_math.py
  • … and 16 more

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Options Spread Conviction Engine next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Options Spread Conviction Engine compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Options Spread Conviction Engine this skillLeoYeAI/openclaw-master-skills2.2k—~5.7kAutomated safety check: NotesMIT
Walk Forward Validationagiprolabs/claude-trading-skills410—~2.2kAutomated safety check: PassMIT
Forecastingericrisco/rsc-harness174—~2.8kAutomated safety check: PassMIT
Longbridge Quanthelsome/folio2701 repos~1.6kAutomated safety check: PassMIT
Quant Statistical MethodsHKUDS/Vibe-Trading35k—~4kAutomated safety check: PassMIT
Regimejackson-video-resources/markov-hedge-fund-method483—~1.6kAutomated safety check: PassCustom licence

Similar skills

  • Walk Forward Validation

    agiprolabs/claude-trading-skills

    Walk-forward validation framework for trading strategies and ML models with time-series-aware splits, overfit detection, and regime-aware validation

    410 GitHub stars~2.2k tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Forecasting

    ericrisco/rsc-harness

    A skill your agent uses when projecting history forward — sales, demand, units, revenue, signups, traffic — into a defensible number with an error band: method by data shape, rolling-origin…

    174 GitHub stars~2.8k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Longbridge Quant

    helsome/folio

    Quantitative strategy frameworks: pairs trading/cointegration, volatility regime strategies, seasonality/calendar effects, multi-factor models (IC/IR), factor research and screening, correlation…

    270 GitHub starsUsed in 1 repo~1.6k tokens
    Data & AnalyticsAuto-check passed
  • Quant Statistical Methods

    HKUDS/Vibe-Trading

    Guides your agent through unit-root, cointegration, GARCH, bootstrap and regression-diagnostic tests on financial time series, using a tested helper module.

    35k GitHub stars~4k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Regime

    jackson-video-resources/markov-hedge-fund-method

    Detect the market regime (Bull / Bear / Sideways) for ANY asset and turn it into a tradeable signal or a risk filter.

    483 GitHub stars~1.6k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Forecast Accuracy Review

    davila7/claude-code-templates

    Evaluate demand-forecast quality honestly - WMAPE, bias and Forecast Value Added against a naive benchmark over a rolling-origin backtest.

    32k GitHub stars~884 tokensUpdated today
    Data & AnalyticsAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 1,235 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Options Spread Conviction Engine

What does Options Spread Conviction Engine do?

Multi-regime options spread analysis engine with quantitative rigor. Options Spread Conviction Engine is an agent skill from LeoYeAI/openclaw-master-skills. Multi-regime options spread analysis engine with quantitative rigor.

When should I use Options Spread Conviction Engine?

Options Spread Conviction Engine fits situations like: tasks that involve Forecasting and time series; tasks that involve Trading and backtesting.

How do I install Options Spread Conviction Engine in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill options-spread-conviction-engine -a claude-code`. Or copy the skill folder (skills/options-spread-conviction-engine in LeoYeAI/openclaw-master-skills) into .claude/skills/options-spread-conviction-engine in your project. Claude Code loads it when a task matches its description.

How do I install Options Spread Conviction Engine in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill options-spread-conviction-engine -a codex`. Or copy the skill folder (skills/options-spread-conviction-engine in LeoYeAI/openclaw-master-skills) into .agents/skills/options-spread-conviction-engine in your project. Codex loads it when a task matches its description.

Can I use Options Spread Conviction Engine in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill options-spread-conviction-engine -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/options-spread-conviction-engine, .gemini/skills/options-spread-conviction-engine, .github/skills/options-spread-conviction-engine and .opencode/skills/options-spread-conviction-engine in your project.

What does Options Spread Conviction Engine need to run?

Going by SKILL.md and its folder, Options Spread Conviction Engine needs Python for the scripts in its folder and the command-line tools its instructions call (python3, brew, npm and jq). Our summary lists: Python 3; Node.js.

Does Options Spread Conviction Engine access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Options Spread Conviction Engine safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Options Spread Conviction Engine use?

Options Spread Conviction Engine is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Options Spread Conviction Engine use?

About 5.7k tokens (SKILL.md is roughly 23k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Options Spread Conviction Engine?

Skills that share tags, products or a category with Options Spread Conviction Engine: Walk Forward Validation (agiprolabs/claude-trading-skills, 410 stars), Forecasting (ericrisco/rsc-harness, 174 stars), Longbridge Quant (helsome/folio, 270 stars) and Quant Statistical Methods (HKUDS/Vibe-Trading, 35k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Options Spread Conviction Engine?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,160 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.