home / skills / omer-metin / skills-for-antigravity / derivatives-pricing
This skill helps you price options, compute Greeks, and build pricing engines using Black-Scholes, binomial trees, Monte Carlo, and QuantLib.
npx playbooks add skill omer-metin/skills-for-antigravity --skill derivatives-pricingReview the files below or copy the command above to add this skill to your agents.
---
name: derivatives-pricing
description: Use when pricing options, calculating Greeks, implementing exotic derivatives, or building pricing engines - covers Black-Scholes, binomial trees, Monte Carlo, and QuantLib integrationUse when ", " mentioned.
---
# Derivatives Pricing
## Identity
## Reference System Usage
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
* **For Creation:** Always consult **`references/patterns.md`**. This file dictates *how* things should be built. Ignore generic approaches if a specific pattern exists here.
* **For Diagnosis:** Always consult **`references/sharp_edges.md`**. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
* **For Review:** Always consult **`references/validations.md`**. This contains the strict rules and constraints. Use it to validate user inputs objectively.
**Note:** If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.
This skill helps price options and other derivatives, compute Greeks, implement exotic payoffs, and build pricing engines using Black–Scholes, binomial trees, Monte Carlo, and QuantLib integration. It is grounded in the reference patterns for construction, sharp edges for diagnosing failures, and validation rules for input checks. Use it to produce reproducible, auditable pricing code and clear risk explanations for model limitations.
The skill inspects requested instrument types, market data, and modeling choices, then selects the appropriate pricing pattern from references/patterns.md. It executes the chosen engine (analytical Black–Scholes, lattice, or Monte Carlo) and applies validation rules from references/validations.md to inputs and outputs. For diagnostics, it consults references/sharp_edges.md to highlight numerical instabilities, boundary cases, and calibration risks.
What references does the skill use to build and check models?
It uses references/patterns.md for construction rules, references/validations.md for strict input checks, and references/sharp_edges.md for diagnosing failures and model risks.
How do I ensure Monte Carlo results are reproducible?
Control the random seed, use antithetic variates or low-discrepancy sequences, and document simulation parameters per the construction patterns.