/option-desk:options-simulationfrom option-desk
Simulates an underlying's forward path using Bayesian GARCH(1,1) with Student-t innovations via MCMC, reporting posterior fan, VaR, expected shortfall, and structure profit distributions. Activates on Monte Carlo, simulation, MCMC, or risk metric queries.
Ships in option-desk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A second opinion on probability. Everything else in this desk prices from the volatility the options are quoted at; this prices from the volatility the underlying has actually shown.
Prefer the option_simulate MCP tool. If it is not available, use the
optiondesk command below. If neither MCP nor the CLI is available, say
that no fresh simulation can be produced; do not invent figures or present
an example or remembered result as a new analysis.
Use fresh provider data only when the tool reports that access is allowed. A local Yahoo adapter also requires the personal-use acknowledgement. A hosted tool must use a provider that is approved for public display, derived outputs, storage, and MCP delivery. Never bypass a provider refusal. When no approved tool is available, analyse a snapshot that the user supplied and had the right to share. Otherwise, state that current figures are unavailable.
optiondesk simulate SPY --horizon 14
Options: --paths (default 20000, independent draws), --draws and
--burn per chain, --chains (default 2, needed for the R-hat
diagnostic), --period for how much history to fit, and
--no-structures to skip the per-structure distributions.
GARCH(1,1) with standardised Student-t innovations: volatility clusters and the tail is fatter than a normal admits. Estimated by adaptive random-walk Metropolis over model parameters. Each simulated path selects a retained parameter draw, so the fan includes parameter uncertainty and conditional shocks. Their relative contribution depends on the fitted sample and horizon; the diagnostics do not establish market calibration.
Read posterior.converged before quoting a single quantile. It is false
when any parameter lacks finite split R-hat below 1.05 or ESS of at least
100, or when post-burn acceptance is zero. Say that the diagnostic gate
failed, and
suggest raising --draws, rather than reporting the numbers anyway.
For every structure on disk, the output gives probability of profit under realised volatility next to the same probability under implied. The gap between them is the market's forecast disagreeing with the recent past. Neither side is the truth. Report the gap as a disagreement, never as an edge, and never as a reason to trade.
Value at risk and expected shortfall are on the underlying's return over the horizon, using a loss sign convention. An all-gain sample can produce negative values. They are model statistics, not worst-case limits.
The structure callback uses intrinsic payoff at the requested horizon.
It does not align each plan expiry or preserve surviving time value. State
that limitation when comparing simulated and analytic profit probabilities.
Under Student-t log returns, finite sample means of unbounded payoffs do
not establish finite model expectations. See reference.md for the scope.
These hold for every number this skill produces.
Cite the artifact path when reporting from it. The artifact is the record; prose is a summary of it, and a number quoted without its source cannot be checked later.
Read degraded before quoting anything. When it is true, say so and give
degraded_reason first, in the same breath as the number rather than as a
footnote. Every command carries both fields in the summary it prints, not
only in the artifact.
Do not re-derive numbers yourself. If a figure is not in the artifact, say it is not there rather than computing a replacement, and never substitute a default for a value the pipeline refused to produce.
Premiums are model values or mid quotes from delayed third-party data. They are not fills, and a real entry crosses the spread on every leg.
Never recommend a trade, an entry, an exit or a size. This is research software and it is not investment advice. Present the analysis and let the reader decide. The full terms are in DISCLAIMER.md, which ships beside this skill when it is installed from a package and sits at the repository root otherwise. The substance is already above: research software, not advice, modelled numbers that are not fills.
Value at risk here is not drift free. The posterior median drift on the live SPY fit was about 26 percent a year, so a 30 day value at risk of 3.92 percent sits only 3.92 below spot while the distance from the median down to the fifth percentile is 6.98 percentage points. Both numbers are correct. If a reader hears "the 5 percent worst case is a 3.9 percent fall", they are hearing something the artifact did not say, because roughly half of that comfort is the fitted upward drift rather than a narrow distribution. Quote the median return beside the tail figure.
Paths are independent draws, not antithetic pairs. Every artifact
written before September 2026 said antithetic: true. It was never true:
of ten thousand pairs, none shared a shock sequence. The construction has
been removed and the flag now reads false. If you are reading an older
artifact, treat that field as unreliable rather than as history.
The reported ESS is the minimum estimate across individual chains. Each estimate truncates its autocorrelation sum, which can overstate ESS when mixing is slow. Taking the minimum does not guarantee a conservative result. Report it as this implementation's diagnostic estimate, not a pooled or tail ESS.
Persistence is the sum of the medians of alpha and beta, not the median of their sum. On this posterior the two differ by 7e-05, which is nothing, but they are different quantities and the artifact stores no joint draws for a reader to check.
The sampler is a Metropolis-Hastings walk written in pure Python. It is single threaded, it uses no vectorisation and no C extension, and it prints nothing between starting and finishing. The work is (draws + burn) x chains iterations over every observation in the history.
Measured on an eighteen core arm64 machine with 1253 daily observations: the default settings take about eight seconds, and draws 6000 with burn 2000 across four chains takes about twenty-seven. A slower or single core machine takes proportionally longer, and a long history with a high draw count can run for minutes.
The command prints one line to stderr before it starts, saying how many iterations it is about to run and roughly how long that should take. When you see it, wait. Do not kill the run, do not retry it with a smaller draw count to make it finish, and do not report the tool as hung. A run interrupted partway writes nothing. Fewer retained draws can reduce ESS; inspect the diagnostics rather than assuming a lower draw count must fail.
If a user asks why it is taking so long, the answer is the iteration count and the observation count, both of which are in the notice on stderr and in the artifact's inputs block.
reference.md: the model, convergence gate, effective sample size limits, risk measures, and independent path generation.workflows/run-a-projection.md: running one and reporting it without overclaiming.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
garch, mcmc, monte-carlo, value-at-risk, expected-shortfall, options-simulation
npx claudepluginhub iman/agent-driven-options-desk-and-skills --plugin option-desk8 skills in this plugin
/desk-setupInstall and verify the option desk command line tools so the option_* MCP tools and the optiondesk commands actually work. Use when a desk skill reports that no fresh figures can be produced, when optiondesk is not found, when the MCP tools are missing or failing, when the plugin was installed but nothing runs, or when the user asks how to set this up. Not for analysing options; it only gets the tools working./options-backtestTest an option structure against real price history with modelled premiums, and run a paper forward test that records positions before their outcome is known and marks them against later chains. Reports win rate, mean return on capital at risk, drawdown, a permutation test, a bootstrap interval and a buy-and-hold benchmark. Use when the user asks whether a strategy has worked historically, to backtest or forward test something, whether an edge is real or chance, how a structure performed, or asks to paper trade, track a position, or mark a trade. Not for order placement and not for recommendations, and a backtest result is not a forecast./options-greeksRetrieve an approved or user-provided option chain and compute the full first to third order Greek ladder (delta, gamma, vega, theta, rho, lambda, vanna, vomma, charm, veta, speed, zomma, color, ultima, dual delta, dual gamma) for any US listed underlying. Use when the user asks about option Greeks for individual contracts, an option chain, a Greek by strike or expiry, theta decay, vega risk, or how one strike compares with another. For dealer gamma exposure, the walls, the gamma flip or the skew across a whole chain, use options-positioning instead. Not for order placement and not for recommendations./options-leanExport fixed option legs to a local LEAN backtest bundle or import completed tagged results. Use when handing a plan to a historical engine, not modeled-premium strategy backtests./options-positioningDealer gamma exposure by strike, call and put walls, the gamma flip level, max pain, put-call ratios, and volatility smile geometry including at-the-money implied volatility, 25-delta risk reversal, butterfly, skew slope and the implied expected move. Use when the user asks where the walls are, whether dealers are long or short gamma, what the gamma flip level is, where max pain sits, what the put-call ratio is, how steep the skew is, what the market implies for a move, or asks about positioning and dealer hedging. This is chain-wide geometry rather than per-contract Greeks. Not for order placement and not for recommendations./options-pricingPrice a vanilla American or European option with the optional QuantLib backend. Use when comparing exercise-style prices, not the full chain Greek ladder.Other plugins' skills for the same job