managing-duration-exposure

Structures portfolio duration management with hedging strategies and benchmark tracking. Use when managing interest rate risk, hedging duration, or optimizing portfolio duration.

11 stars

Best use case

managing-duration-exposure is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Structures portfolio duration management with hedging strategies and benchmark tracking. Use when managing interest rate risk, hedging duration, or optimizing portfolio duration.

Teams using managing-duration-exposure 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

$curl -o ~/.claude/skills/managing-duration-exposure/SKILL.md --create-dirs "https://raw.githubusercontent.com/CaseMark/skills/main/skills/finance/managing-duration-exposure/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/managing-duration-exposure/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How managing-duration-exposure Compares

Feature / Agentmanaging-duration-exposureStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Structures portfolio duration management with hedging strategies and benchmark tracking. Use when managing interest rate risk, hedging duration, or optimizing portfolio duration.

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

# Managing Duration Exposure

Structures portfolio duration management with hedging strategies and benchmark tracking for fixed-income portfolios.

## When To Use

- Rebalancing portfolio duration toward a target or benchmark (e.g., Bloomberg US Aggregate)
- Assessing interest rate risk after yield curve shifts or central bank policy changes
- Constructing or evaluating duration hedges using swaps, futures, or options
- Reviewing duration drift from cash flows, maturities, prepayments, or new allocations
- Preparing duration exposure reports for investment committees or risk oversight

## Inputs To Gather

- **Portfolio holdings** — CUSIP/ISIN-level positions with par amounts, market values, and coupon details
- **Duration metrics** — Effective duration, modified duration, key rate durations (KRDs) per holding and at portfolio level
- **Benchmark profile** — Target index or custom benchmark with duration, KRD breakdown, and sector composition
- **Yield curve data** — Current Treasury/swap curves, recent curve shifts, and forward rate expectations
- **Hedge instruments available** — Treasury futures contracts (2Y, 5Y, 10Y, Ultra), interest rate swaps, swaptions, caps/floors
- **Risk limits** — Mandated duration band (e.g., benchmark +/- 0.5 years), maximum DV01, tracking error tolerance
- **Scenario parameters** — Parallel shift sizes (e.g., +/-50bp, +/-100bp), curve twist/butterfly scenarios

## Workflow

1. **Measure Current Exposure**
   - Calculate portfolio effective duration, spread duration, and DV01
   - Decompose into key rate duration buckets (2Y, 5Y, 10Y, 30Y at minimum)
   - Compute duration contribution by sector (government, corporate, securitized, municipal)
   - Identify convexity profile — negative convexity from MBS/callables requires separate treatment

2. **Compare Against Benchmark/Target**
   - Map portfolio KRDs to benchmark KRDs at each tenor point
   - Calculate duration gap (portfolio duration minus benchmark duration)
   - Identify the largest KRD mismatches — these drive tracking error
   - Flag any duration drift from recent cash flows, paydowns, or new trades

3. **Design Hedging/Adjustment Strategy**
   - For parallel duration gap: size Treasury futures or swap overlays to close the gap
     - Futures hedge ratio = Target DV01 change / DV01 per contract [VERIFY contract specs for current delivery cycle]
     - Swap overlay: receive/pay fixed to lengthen/shorten duration
   - For curve positioning: use barbell/bullet trades or KRD-targeted futures to adjust specific tenor buckets
   - For convexity management: evaluate swaptions or Treasury options to offset MBS negative convexity
   - Estimate hedge cost: carry, roll, margin requirements, and bid-ask slippage

4. **Run Scenario Analysis**
   - Parallel shifts: +/-25bp, +/-50bp, +/-100bp — compute P&L impact on hedged vs. unhedged portfolio
   - Curve scenarios: bull steepener, bear flattener, twist — assess KRD mismatch impact
   - Spread scenarios: widening/tightening by sector to isolate spread duration risk from rate duration
   - Stress test: replay historical episodes (2013 taper tantrum, 2022 rate hiking cycle) against current positioning

5. **Document and Report**
   - Summarize current vs. target duration, KRD profile, and hedge positions
   - Present scenario P&L table with breakeven rate levels
   - List open hedge positions with notional, DV01 contribution, maturity/expiry, and roll dates
   - Note any residual risks: basis risk between hedges and portfolio, cross-currency duration if applicable
   - Flag upcoming events that could shift duration profile (Fed meetings, large maturities, MBS prepayment resets)

## Output

- **Duration Exposure Summary** — One-page table: portfolio duration, benchmark duration, gap, DV01, and KRD breakdown by tenor
- **Hedge Recommendation** — Instrument, direction, notional/contracts, expected DV01 impact, cost estimate
- **Scenario Analysis Matrix** — Grid of rate scenarios vs. portfolio P&L (total return and price return)
- **Risk Dashboard** — Tracking error estimate, duration band compliance status, largest KRD mismatches
- **Action Items** — Specific trades to execute, rebalancing triggers, next review date

## Quality Checks

- Duration and DV01 figures reconcile between portfolio analytics system and independent calculation
- Hedge sizing accounts for futures conversion factor and cheapest-to-deliver basis [VERIFY CTD bond for active contract]
- KRD buckets sum to approximately the total effective duration (within rounding tolerance)
- Scenario analysis includes both rate and spread duration effects — not rate-only
- MBS and callable bond durations use OAS-based effective duration, not modified duration
- Benchmark data is current — stale index rebalancing dates can distort duration comparisons [VERIFY index rebalance date]
- Hedge roll dates are flagged before expiry to avoid unintended duration gaps
- All duration figures specify the methodology (effective, modified, Macaulay) to prevent misinterpretation

Related Skills

managing-wound-care

11
from CaseMark/skills

Guides wound assessment, classification, and treatment selection with documentation requirements. Use when managing surgical wounds, classifying wound types, or selecting wound care protocols.

managing-wound-assessment-nursing

11
from CaseMark/skills

Structures wound assessment with measurement, staging, and treatment plan documentation. Use when assessing wounds, staging pressure injuries, or documenting wound care.

managing-workplace-safety-healthcare

11
from CaseMark/skills

Tracks OSHA healthcare requirements including bloodborne pathogen, TB, and violence prevention programs. Use when managing OSHA compliance, implementing safety programs, or documenting exposure incidents.

managing-workers-compensation-rehabilitation

11
from CaseMark/skills

Structures workers comp rehab documentation with functional capacity evaluation and return-to-work planning. Use when managing work injury rehab, performing FCEs, or documenting return-to-work status.

managing-vestibular-rehabilitation

11
from CaseMark/skills

Structures vestibular assessment with positional testing and customized exercise programs. Use when evaluating vestibular disorders, performing Dix-Hallpike testing, or designing vestibular exercise programs.

managing-venous-thromboembolism-prophylaxis

11
from CaseMark/skills

Applies VTE risk assessment (Padua, Caprini) with appropriate prophylaxis selection. Use when assessing VTE risk, selecting prophylaxis regimens, or documenting DVT prevention.

managing-valvular-heart-disease

11
from CaseMark/skills

Guides valve disease severity assessment with intervention criteria and surveillance schedules. Use when evaluating valve disease, assessing surgical/interventional timing, or monitoring valve function.

managing-vaccine-schedules

11
from CaseMark/skills

Applies CDC immunization schedules with catch-up protocols and contraindication screening. Use when managing vaccinations, creating catch-up schedules, or documenting immunization decisions.

managing-vaccination-campaigns

11
from CaseMark/skills

Plans mass vaccination campaigns with logistics, cold chain management, and adverse event monitoring. Use when planning vaccination drives, managing immunization logistics, or monitoring VAERS.

managing-traumatic-brain-injury-rehabilitation

11
from CaseMark/skills

Structures TBI rehab with Rancho Los Amigos scoring and cognitive rehabilitation protocols. Use when managing TBI rehab, tracking Rancho levels, or implementing cognitive therapy.

managing-trauma-assessments

11
from CaseMark/skills

Conducts structured primary and secondary trauma surveys following ATLS methodology. Use when assessing trauma patients, documenting trauma workups, or coordinating trauma team activations.

managing-transplant-evaluations

11
from CaseMark/skills

Guides transplant candidacy evaluation with organ-specific criteria and listing documentation. Use when evaluating transplant candidates, documenting listing criteria, or coordinating transplant workups.