Agent skill · data analytics · himself65

options-payoff

Render an interactive options payoff chart — expiry P&L plus Black-Scholes theoretical value — with sliders for strikes, premium, IV, DTE, and spot. Use this skill whenever the user describes or shares an options position or strategy and wants to see how it makes or loses money: vertical, calendar, diagonal, or ratio spreads, butterflies, condors and iron condors, straddles, strangles, covered calls, protective or naked puts, or any multi-leg structure. This includes pasted strikes, premiums, and expiries, requests like "show me the payoff" or "draw the P&L curve", and broker screenshots (IBKR, TastyTrade, Robinhood). Use it even when details are partial — defaults fill the gaps.

Why this skill is useful

Generates a dynamic options payoff curve using specific financial calculations and strategies that the AI wouldn't reliably generate on its own.

What it needs

Requires yfinance installed locally. About 5k tokens when loaded. Last updated 2026-08-05. 3,127 stars on the source repository.

What this skill does

Options Payoff Curve Skill If your host has not already executed the shell probes below (for example, in Codex), run the commands inside the ! wrappers with its shell tool before choosing a setup path. Use the actual output; if shell access is unavailable, report that limitation. Generates an interactive HTML chart using the host's available visualization tool, or a standalone HTML file in Codex, showing: Expiry payoff curve (dashed gray line) — intrinsic value at expiration Theoretical value curve (solid colored line) — Black-Scholes price at current DTE/IV Dynamic sliders for all key parameters Real-time stats: max profit, max loss, breakevens, current P&L at spot --- Step 1: Extract Strategy From User Input When the user provides a screenshot or text, extract: Field Where to find it Default if missing --- --- --- Strategy type Title bar / leg description "custom" Underlying Ticker symbol SPX Strike(s) K1, K2, K3... in title or leg table nearest round number Premium paid/received Filled price or avg price 5.00 Quantity Position size 1 Multiplier 100 for equity options, 100 for SPX 100 Expiry Date in title 30 DTE Spot price Current underlying price shown in the screenshot or text live quote (see below); middle strike only if no quote is available IV Shown in greeks panel, or estimate from vega 20% Risk-free rate — 4.3% Spot for screenshots: spot is the underlying's current price, and broker screenshots often omit it or show it far from the strikes — don't read it off the strike labels. Use the price shown, else a live quote (the SPX probe below, or yfinance for other underlyings). Fall back to the middle strike only when no quote is available, and tell the user you did. Current SPX reference price: --- Step 2: Identify Strategy Type Match to one of the supported strategies below, then read the corresponding section in references/strategies.md. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills himself65/options-payoff

View the source on GitHub

Browse the @skills marketplace