Back to Skills

options-payoff

Generate an interactive options payoff curve chart with dynamic parameter controls. Use this skill whenever the user shares an options position screenshot, describes an options strategy, or asks to visualize how an options trade makes or loses money. Triggers include: any mention of butterfly, spread (vertical/calendar/diagonal/ratio), straddle, strangle, condor, covered call, protective put, iron condor, or any multi-leg options structure. Also triggers when a user pastes strike prices, premium

3,075stars354forksUpdated 7/28/2026

Security Assessment

Safe(93/100)
Security Score93/100

About options-payoff

This skill generates an interactive options payoff curve chart with dynamic parameter controls, helping users visualize how an options trade makes or loses money. It solves the problem of understanding the risk and reward profile of multi-leg options structures by turning a strategy description, a pasted set of strikes and premiums, or a broker screenshot into a live HTML widget that plots both the expiry payoff and the theoretical Black-Scholes value, with real-time stats for max profit, max loss, breakevens, and current P&L at spot.

The workflow extracts the strategy parameters (strategy type, underlying, strikes, premium, quantity, multiplier, expiry, spot, implied volatility, risk-free rate) with documented defaults, identifies the structure among supported types (butterfly, vertical and calendar spreads, iron condor, straddle, strangle, covered call, naked put, ratio spread, or a decomposed custom mode), and computes payoffs using provided Black-Scholes formulas and per-strategy expiry payoff functions. It then renders a widget with sliders for structure and pricing variables and a full-width spot slider, plotting a theoretical-value curve and a dashed expiry curve with strike and spot markers. Reference files cover detailed per-strategy payoff edge cases and a copy-paste Black-Scholes JavaScript implementation. It can optionally fetch a current index reference price via a read-only market-data lookup.

It targets options traders, finance learners, and anyone analyzing an options position who wants an intuitive P&L visualization from partial information. Because the skill only computes and charts hypothetical payoffs and, at most, reads a public price quote, its behavior is analytical and read-only, not executing any trades or handling brokerage credentials.

FAQ

What options strategies are supported?

Butterfly, vertical spread, calendar spread, iron condor, straddle, strangle, covered call, naked put, and ratio spread are built in, and any other structure can be handled in a custom mode by decomposing it into individual legs and summing their P&Ls.

What input does it accept?

A strategy description, pasted strike prices, premiums and expiry dates, or a broker screenshot (IBKR, TastyTrade, Robinhood, etc.). It extracts what it can and fills the rest with documented defaults, and is careful never to default the spot price to a strike.

How are values computed?

Expiry payoffs use per-strategy intrinsic-value formulas, and theoretical values use Black-Scholes pricing (with a normal CDF approximation) at the current days-to-expiry and implied volatility. A reference file provides ready-to-use JavaScript implementations.

Does it fetch live market data or place trades?

It can optionally run a read-only lookup for a current index reference price and otherwise only renders an interactive chart; it does not place trades or handle brokerage credentials.

All Files

4 files
SKILL.md6.8 KB
View
references/strategies.md4.7 KB
View
references/bs_code.md2.1 KB
View
README.md2.0 KB
View

Install options-payoff

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill