# Alphagbm Duan Analysis

> |

- **Type:** Skill
- **Install:** `agentstack add skill-alphagbm-skills-alphagbm-duan-analysis`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AlphaGBM](https://agentstack.voostack.com/s/alphagbm)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [AlphaGBM](https://github.com/AlphaGBM)
- **Source:** https://github.com/AlphaGBM/skills/tree/main/skills/alphagbm-duan-analysis
- **Website:** https://www.alphagbm.com/skills

## Install

```sh
agentstack add skill-alphagbm-skills-alphagbm-duan-analysis
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# AlphaGBM Duan Yongping Analysis

Instant Duan-style framing for a single ticker. Three scoped outputs:

1. **Sell Put** — if you're "willing to buy at $X", what does selling a Put at $X
   actually pay, and how does the cost basis work out if assigned?
2. **Covered Call** — if you hold 100 shares, what yield can you pick up by selling
   a ~5% OTM Call 25-50 DTE? If called away, what's the total return?
3. **Panic Buy Context** — what's VIX telling us right now? Are we at Duan's
   "extreme fear = extreme opportunity" tier (VIX ≥ 35), or is this a wait?

Each panel is tailored to the Duan framework: seller-only, rent-collection, holding
quality companies indefinitely, and treating extreme VIX spikes as opportunity
rather than threat.

## Why This Is a Separate Skill

The generic `alphagbm-options-strategy` can compute any spread. But Duan Yongping's
style has three very specific moves and a very specific philosophy. This skill
packages that philosophy into a single call with Chinese-native copy that fits how
Chinese retail investors actually talk about these trades.

## How to Use

**Input:**
- `ticker` (required)
- `buy_price` (optional) — your "I'd happily buy at this price" level; defaults to
  spot × 0.95 if omitted

**Output (each panel may be null if no suitable contract exists):**

- `sell_put`: `{strike, premium, annualized_yield_pct, if_assigned_cost_basis, delta, dte}`
- `covered_call`: `{strike, premium, annualized_yield_pct, upside_cap_pct,
  total_return_if_called_pct, dte}`
- `panic_buy`: `{vix, level, signal (bool), action_zh, action_en}`
  - `level` ∈ `normal / caution / extreme_fear`
  - `signal = true` when VIX ≥ 35 (Duan-buy tier)

Plus meta: `ticker, stock_price, expiry_date, dte, timestamp`.

## Example Queries

- `Duan Yongping style AAPL` — All three panels for Apple
- `sell put NVDA willing to buy at 110` — Sell-Put sized for $110 entry
- `covered call yield on TSLA` — CC analysis at current price
- `is VIX at Duan buy level` — Panic-Buy panel alone (can also use `alphagbm-vix-status`)
- `should I sell AAPL put at 180` — Sell-Put analysis at specific strike

## Mock Data

Mock data in `mock-data/duan-analysis/` — sample for AAPL with a 180 buy price.

## API Endpoint

```
GET /api/options/duan-analysis?ticker={SYMBOL}&buy_price={PRICE}
```

Query params:
- `ticker` (required)
- `buy_price` (optional, float) — your preferred entry strike for Sell Put; defaults to spot × 0.95

Response shape:

```json
{
  "success": true,
  "ticker": "AAPL",
  "stock_price": 185.4,
  "expiry_date": "2026-06-20",
  "dte": 41,
  "sell_put": {
    "strike": 180.0,
    "premium": 2.45,
    "annualized_yield_pct": 12.1,
    "implied_vol": 0.24,
    "delta": -0.28,
    "open_interest": 4821,
    "volume": 312,
    "if_assigned_cost_basis": 177.55,
    "dte": 41
  },
  "covered_call": {
    "strike": 195.0,
    "premium": 2.10,
    "annualized_yield_pct": 10.1,
    "implied_vol": 0.22,
    "delta": 0.32,
    "open_interest": 3200,
    "volume": 198,
    "upside_cap_pct": 5.18,
    "total_return_if_called_pct": 6.31,
    "dte": 41
  },
  "panic_buy": {
    "vix": 18.7,
    "level": "normal",
    "signal": false,
    "action_zh": "VIX 18.7 偏平静。段永平风格下此水位更适合卖 Put 等跌到心理价位，而不是主动抄底。",
    "action_en": "VIX 18.7 is calm. Duan-style strategy prefers Sell-Put \"waiting\" over proactive buying at this level."
  },
  "timestamp": "2026-04-24T08:00:00"
}
```

Pricing: 1 option-analysis credit per call; 5-min cache per (ticker, buy_price) pair.

## Related Skills

| Skill | Relevance |
|-------|-----------|
| [alphagbm-vix-status](../alphagbm-vix-status/) | Standalone VIX-tier read (Panic-Buy panel uses same classification) |
| [alphagbm-options-score](../alphagbm-options-score/) | Broader multi-factor options scoring (not Duan-specific) |
| [alphagbm-options-strategy](../alphagbm-options-strategy/) | Custom multi-leg strategies |

---

*Powered by [AlphaGBM](https://alphagbm.com) — Real-data options & research intelligence. 10K+ users.*

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AlphaGBM](https://github.com/AlphaGBM)
- **Source:** [AlphaGBM/skills](https://github.com/AlphaGBM/skills)
- **License:** MIT
- **Homepage:** https://www.alphagbm.com/skills

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-alphagbm-skills-alphagbm-duan-analysis
- Seller: https://agentstack.voostack.com/s/alphagbm
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
