pricing-interest-rate-derivatives
Structures interest rate swap, cap, floor, and swaption pricing with curve construction and valuation. Use when pricing IR derivatives, building yield curves, or valuing swap portfolios.
Best use case
pricing-interest-rate-derivatives is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Structures interest rate swap, cap, floor, and swaption pricing with curve construction and valuation. Use when pricing IR derivatives, building yield curves, or valuing swap portfolios.
Teams using pricing-interest-rate-derivatives should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/pricing-interest-rate-derivatives/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How pricing-interest-rate-derivatives Compares
| Feature / Agent | pricing-interest-rate-derivatives | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Structures interest rate swap, cap, floor, and swaption pricing with curve construction and valuation. Use when pricing IR derivatives, building yield curves, or valuing swap portfolios.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Pricing Interest Rate Derivatives Structures interest rate swap, cap, floor, and swaption pricing with yield curve construction, discounting frameworks, and volatility modeling. ## When To Use - Pricing a new or existing interest rate swap (fixed-for-floating, basis, cross-currency) - Valuing interest rate caps, floors, or collars for hedging or portfolio marking - Pricing European or Bermudan swaptions for risk management or trade structuring - Constructing or auditing discount and forward curves from market instruments - Marking a swap portfolio to market or computing CVA/DVA adjustments - Sensitivity analysis (DV01, gamma, vega) for IR derivative positions ## Inputs To Gather - **Trade terms**: Notional, effective/maturity dates, fixed rate, floating index (SOFR, EURIBOR, TONA, etc.), payment frequency, day count conventions (ACT/360, 30/360, ACT/365), reset lag, compounding method [VERIFY: confirm index and convention per jurisdiction] - **Market data as of valuation date**: - Overnight/term rate fixings (e.g., SOFR, Fed Funds) - Deposit rates, futures prices (SOFR 1M/3M futures), and par swap rates across tenors - OIS discount curve instruments (if separate from projection curve) - Cap/floor implied volatility surface (strike × tenor) or swaption vol cube (expiry × tenor × strike) — normal (bp) vs. lognormal convention [VERIFY] - **Collateral/CSA terms**: Collateral currency, interest on collateral rate, threshold and MTA — these determine the discount curve selection - **Valuation context**: Mid-market vs. exit price, regulatory framework (e.g., IFRS 13 fair value hierarchy), purpose (trade pricing, portfolio MTM, hedge effectiveness) ## Workflow 1. **Curve Construction** - Select bootstrapping instruments: deposits (O/N to 6M), futures (front 8–12 contracts), and par swap rates (2Y–50Y) - Build the OIS discount curve first (stripped from OIS swap rates) - Build the forward projection curve for the relevant index (e.g., 3M SOFR) using the multi-curve framework — discount on OIS, project on the index curve - Interpolation: use monotone convex or log-linear on discount factors; cubic spline on zero rates for smoothness [VERIFY: confirm firm/system interpolation convention] - Validate: reprice input instruments to within 0.01 bp; check forward rates are positive and smooth 2. **Swap Pricing** - Generate fixed and floating leg cash flow schedules respecting business day conventions (Modified Following, etc.), holiday calendars [VERIFY: confirm applicable calendar], and stub periods - For the floating leg, compute forward rates from the projection curve for each accrual period; apply compounding-in-arrears or averaging if applicable (e.g., SOFR compounded daily) - Discount each cash flow using the OIS curve discount factor to the payment date - NPV = PV(floating leg) − PV(fixed leg) from the receiver's perspective - Par swap rate = rate that sets NPV to zero; solve via annuity factor: Par Rate = (DF_start − DF_end) / Annuity 3. **Cap/Floor Pricing** - Decompose cap (floor) into a strip of caplets (floorlets), one per reset period - Price each caplet using Black's model (lognormal) or Bachelier's model (normal vol) — confirm market convention [VERIFY: post-LIBOR markets predominantly use normal vol] - Caplet PV = DF × τ × [F·N(d1) − K·N(d2)] (Black) or the normal-model equivalent - Sum caplet PVs; cross-check via put-call parity: Cap − Floor = Swap (at same strike/tenor) 4. **Swaption Pricing** - European swaption: use Black's model on the forward swap rate with the appropriate annuity as numéraire - Inputs: forward swap rate, strike, swaption vol (from vol cube), time to expiry, annuity factor - For Bermudan swaptions, use a short-rate model (Hull-White 1F) or LGM calibrated to co-terminal European swaptions; value via backward induction on a lattice or Monte Carlo with Longstaff-Schwartz - Payer swaption PV = Annuity × [F·N(d1) − K·N(d2)] (Black); receiver via put-call parity 5. **Risk Sensitivities** - DV01 / PV01: bump each input rate by 1 bp, revalue, compute finite-difference delta per tenor bucket - Gamma: second-order bump (±1 bp) for convexity - Vega: bump vol surface by 1 bp (normal) or 1% relative (lognormal), revalue caps/swaptions - Cross-gamma and correlation sensitivities for basis or cross-currency structures - Report key-rate durations and total portfolio DV01 ## Output - **Valuation Summary**: NPV, par rate or premium, accrued interest, clean vs. dirty price - **Curve Data**: Discount factors, zero rates, and forward rates at standard tenors; plot forward curve - **Cash Flow Schedule**: Date, notional, rate, accrual fraction, cash flow amount, discount factor, PV per period - **Greeks Table**: DV01 by tenor bucket, gamma, vega (by expiry/tenor), theta - **Methodology Notes**: Models used, interpolation method, vol convention (normal/lognormal), day count, calendar, data sources with timestamps - **Sensitivity Scenarios**: Parallel shift ±25/50/100 bp, curve steepener/flattener, vol shock ## Quality Checks - Reprice all bootstrapping instruments — residual < 0.01 bp - Verify cap-floor-swap parity holds within bid-ask tolerance - Confirm put-call parity for swaptions at the same strike - Check that forward rates are continuous and non-negative (flag inversions) - Cross-validate NPV against an independent system or dealer quote where available - Validate DV01 direction and magnitude: a 10Y receiver swap ~7–9 bp/bp notional is a reasonable sanity check - Confirm CSA-consistent discounting — using the wrong discount curve is a common and material error - Ensure day count and business day convention consistency between legs and across the curve build - Flag any market data staleness (timestamps older than T−1) with [VERIFY]
Related Skills
strategy-summary
Produces a litigation strategy summary aligning facts, legal theory, procedural tactics, discovery, and settlement posture into a single actionable roadmap. Use when asked for a case strategy summary, litigation roadmap, motions plan, risk assessment, or stakeholder alignment memo.
pet-custody-best-interest
Produces a jurisdiction-aware best-interests analysis for companion animal disputes in domestic dissolutions. Classifies the governing framework (well-being statute, hybrid equitable, or pure property), builds distinct ownership/caregiving/control evidentiary threads, applies welfare factors with adversarial awareness, and generates enforceable allocation recommendations. Use when drafting pet custody analyses, animal allocation memos, pet possession briefs, or when a user asks about dividing pets in a divorce, breakup, or cohabitation dissolution.
litigation-case-strategy
Develops comprehensive litigation strategy across the full case lifecycle, from initial assessment through discovery, motion practice, trial preparation, and appeal. Produces case theory analysis, chronologies from document sets, discovery plans, deposition outlines, brief drafts, cross-examination questions, and appellate record summaries. Use when evaluating a new litigation matter, preparing case strategy memos, building case chronologies from emails or documents, preparing for depositions, drafting motions or briefs, developing trial strategy, or preparing appellate filings. Trigger keywords: litigation strategy, case assessment, case theory, case chronology, discovery plan, deposition prep, motion to dismiss, summary judgment, trial preparation, cross-examination, appellate brief, argument evaluation, case timeline.
legal-strategy-summary
Generates structured litigation strategy summaries synthesizing case facts, legal arguments, procedural tactics, and risk assessments into a unified roadmap. Use when aligning legal teams on case direction, preparing for strategy meetings, or onboarding stakeholders to litigation matters.
interest-calculation-reference
Calculates and validates pre-petition interest for U.S. bankruptcy creditor proofs of claim. Triggers on "proof of claim", "pre-petition interest", "bankruptcy claim", "interest worksheet", "claim amount", or when drafting, auditing, or objecting to claim filings.
final-tax-return-corporate
Prepares IRS-compliant final tax returns for dissolving C-corps (Form 1120), S-corps (Form 1120-S), and partnerships (Form 1065). Covers short-year reporting, liquidating distributions, K-1 issuance, and dissolution-period deadlines. Trigger when drafting or reviewing a final return for a dissolving corporation, winding-up entity, or corporate liquidation closing.
ferc-market-based-rate-tariff
Drafts eTariff-ready FERC Market-Based Rate Tariffs for wholesale electric energy, capacity, and ancillary services sales. Use when preparing MBR tariff filings, structuring market-based rate authority documentation, or drafting wholesale power tariffs for FERC proceedings. Covers Order Nos. 697/697-A/860, Category 1/2 analysis, 18 CFR Part 35 formatting, and EQR/change-in-status reporting.
corporate
Advises on corporate law matters including entity formation, governance, finance, M&A, securities, venture capital, non-profits, and dissolution. Use when drafting governance documents, structuring transactions, selecting entity types, or navigating fiduciary duties and corporate formalities.
corporate-resolution-bank-account
Drafts a board resolution authorizing the opening and management of corporate bank accounts, including signatory designation, account types, borrowing authority, and secretary certification. Triggers when a financial institution requires formal board authorization to establish or manage accounts, when updating authorized signatories, or when documenting banking authority during entity formation or reorganization.
corporate-compliance-checklist
Drafts a U.S. corporate compliance program checklist anchored in DOJ ECCP, Federal Sentencing Guidelines Chapter 8, and SEC enforcement priorities. Covers governance, risk assessment, training, monitoring, reporting, domain-specific obligations, documentation, and phased implementation. Use when building, evaluating, or strengthening a compliance program, preparing for regulatory inquiry, or conducting annual program assessments.
corporate-bylaws
Drafts complete U.S. corporate bylaws harmonized with Articles of Incorporation and tailored to state statute (Delaware GCL, MBCA, or state-specific). Use for new corporation formations, governance overhauls, or updating existing bylaws for closely-held or emerging-growth corporations.
conflict-of-interest-policy
Drafts U.S. corporate and nonprofit conflict-of-interest policies with disclosure mechanics, review/recusal procedures, and enforcement controls aligned to IRS governance guidance and state corporate/nonprofit standards. Use when creating or updating COI policies, board disclosure rules, related-party transaction procedures, or Form 990 governance practices. Trigger: conflict of interest, COI, related party, interested person, board disclosure, nonprofit governance, Form 990, recusal.