# Options Payoff

Option P&L analysis methodology: payoff diagrams, breakeven calculation, multi-leg...

- Repository: https://github.com/HKUDS/Vibe-Trading (37375 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add HKUDS/Vibe-Trading --skill options-payoff -g -a claude-code -y`
Codex: `npx skills add HKUDS/Vibe-Trading --skill options-payoff -g -a codex -y`
Cursor: `npx skills add HKUDS/Vibe-Trading --skill options-payoff -g -a cursor -y`
Gemini CLI: `npx skills add HKUDS/Vibe-Trading --skill options-payoff -g -a gemini-cli -y`

## Description

Option P&L analysis methodology: payoff diagrams, breakeven calculation, multi-leg strategy visualization, and Greeks-based scenario analysis.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Options Payoff, Option P&L Analysis Methodology

## Overview

This skill is designed for option strategy analysis scenarios within the Vibe-Trading quantitative framework, covering:
- P&L curve generation for single-leg and multi-leg option portfolios
- Black-Scholes pricing and Greeks calculation
- Implied volatility inversion
- Strategy selection decision support

**Constraint**: For research and backtesting only. Do not output live trading instructions, in line with the project's guardrails.

### Built-in execution tool

Load this skill for methodology, then call `options_payoff` for production
calculations. Pass signed `legs` (`qty > 0` long, `qty < 0` short),
`entry_spot`, and `expiry_days`; optionally pass actual per-share premiums,
multiplier, commission, chart bounds, and IV scenarios. The tool returns an
expiry curve, a spot × IV scenario matrix, and analytic breakeven/max-risk
results that do not depend on the display grid containing every strike.

---

## 1. Supported Strategy Types

### 1.1 Single-Leg Strategies

| Strategy | Bias | Premium | Max Profit | Max Loss |
|------|------|--------|----------|----------|
| Long Call | Bullish | Paid | Unlimited | Premium |
| Long Put | Bearish | Paid | Strike - premium | Premium |
| Short Call | Neutral / mildly bearish | Received | Premium | Unlimited |
| Short Put | Neutral / mildly bullish | Received | Premium | Strike - premium |

### 1.2 Vertical Spreads

| Strategy | Structure | Market View | Net Premium |
|------|------|----------|----------|
| Bull Call Spread | Long Call (lower K) + Short Call (higher K) | Moderately bullish | Net debit |
| Bear Put Spread | Long Put (higher K) + Short Put (lower K) | Moderately bearish | Net debit |
| Bull Put Spread | Short Put (higher K) + Long Put (lower K) | Moderately bullish | Net credit |
| Bear Call Spread | Short Call (lower K) + Long Call (higher K) | Moderately bearish | Net credit |

### 1.3 Straddles / Strangles (Volatility Strategies)

The rest: https://github.com/HKUDS/Vibe-Trading/blob/HEAD/agent/src/skills/options-payoff/SKILL.md
