structuring-total-return-swaps

Designs TRS structures with reference asset selection, financing rate mechanics, and collateral arrangements. Use when structuring TRS, analyzing synthetic exposure, or evaluating unfunded exposure alternatives.

11 stars

Best use case

structuring-total-return-swaps is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Designs TRS structures with reference asset selection, financing rate mechanics, and collateral arrangements. Use when structuring TRS, analyzing synthetic exposure, or evaluating unfunded exposure alternatives.

Teams using structuring-total-return-swaps 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/structuring-total-return-swaps/SKILL.md --create-dirs "https://raw.githubusercontent.com/CaseMark/skills/main/skills/capital/structuring-total-return-swaps/SKILL.md"

Manual Installation

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

How structuring-total-return-swaps Compares

Feature / Agentstructuring-total-return-swapsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Designs TRS structures with reference asset selection, financing rate mechanics, and collateral arrangements. Use when structuring TRS, analyzing synthetic exposure, or evaluating unfunded exposure alternatives.

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

# Structuring Total Return Swaps

Designs TRS structures with reference asset selection, financing rate mechanics, and collateral arrangements for synthetic exposure to credit, equity, or real asset portfolios.

## When To Use

- Structuring a new TRS to gain unfunded synthetic exposure to a reference asset or portfolio
- Evaluating TRS versus cash purchase, repo financing, or credit-linked note alternatives
- Analyzing financing rate economics (TRS spread over reference rate) for a proposed trade
- Designing collateral and margin frameworks for a TRS facility
- Reviewing or restructuring an existing TRS to adjust tenor, reset mechanics, or termination triggers
- Assessing counterparty credit exposure embedded in a TRS position

## Inputs To Gather

- **Reference asset details**: Single-name bond/loan, equity, basket, or index; CUSIP/ISIN; notional amount; current market price and accrued interest
- **Economic terms**: Desired tenor, reset frequency (quarterly/semi-annual), payment dates, day-count convention (ACT/360, 30/360)
- **Financing rate**: Benchmark rate (SOFR, EURIBOR, SONIA) plus proposed TRS spread in basis points; fixed vs. floating leg structure
- **Total return leg**: Whether total return includes price appreciation only or price + coupon/dividend; treatment of defaults, restructurings, or corporate actions on the reference asset
- **Collateral framework**: Initial margin percentage, variation margin triggers, eligible collateral types, haircut schedule, rehypothecation rights
- **Termination provisions**: Scheduled maturity, optional early termination rights, market disruption events, credit events on reference obligor, and settlement method (physical vs. cash)
- **Counterparty information**: Credit rating, netting agreement status (ISDA Master in place), CSA terms, regulatory classification (dealer, buy-side, special purpose vehicle)
- **Regulatory context**: Applicable margin rules (uncleared swap margin requirements), capital treatment under Basel III/IV, reporting obligations (EMIR, Dodd-Frank Title VII) [VERIFY jurisdiction-specific thresholds]

## Workflow

1. **Define the economic objective** — Confirm whether the TRS is for leveraged long exposure, short exposure via receiving financing leg, balance-sheet optimization, or regulatory capital relief. Identify the reference asset and target notional.

2. **Select reference asset and price source** — Specify the reference obligation(s), pricing source (dealer marks, third-party vendor, index level), and valuation frequency. For loan TRS, confirm whether price is par-adjusted or market-based and whether funded/unfunded commitments are included.

3. **Structure the financing leg** — Set the benchmark rate, TRS spread, reset dates, and compounding convention. Calculate the all-in financing cost and compare against alternative funding sources (repo rate, warehouse facility cost, margin loan rate). Ensure the spread reflects counterparty credit, reference asset liquidity, and tenor risk.

4. **Define total return mechanics** — Specify what constitutes "total return": price change plus coupon/interest/dividend income, minus any applicable withholding. Address treatment of:
   - Coupon or dividend record dates vs. payment dates
   - Reference asset defaults or credit events (triggers cash settlement or physical delivery)
   - Corporate actions (mergers, tenders, consent solicitations) on the reference obligor
   - Negative total return periods and netting across reset dates

5. **Design collateral and margin framework** — Set initial margin (typically 5-20% for investment-grade; 15-40% for high-yield or illiquid references). Define variation margin call frequency (daily or weekly), minimum transfer amounts, eligible collateral (cash, Treasuries, agency MBS), and haircuts. Address substitution rights and dispute resolution for valuations.

6. **Draft termination and settlement provisions** — Define scheduled maturity, early termination triggers (credit event, NAV decline threshold, change of control, illegality), and settlement method. For physical settlement, specify deliverable obligation characteristics. For cash settlement, specify valuation agent, polling dealers, and fallback pricing.

7. **Assess counterparty and regulatory requirements** — Confirm ISDA Master Agreement and CSA are in place. Evaluate whether the TRS falls within uncleared margin rules [VERIFY applicable phase-in thresholds by counterparty classification]. Assess capital charges: risk-weighted asset impact for banks, leverage ratio treatment, and any SA-CCR exposure calculation requirements. Confirm trade reporting obligations.

8. **Model economics and stress scenarios** — Calculate expected carry (total return on reference asset minus financing cost). Stress-test for: reference asset price decline of 10-30%, benchmark rate increase of 200-400 bps, reference obligor credit event, and counterparty default with close-out netting. Quantify maximum margin call under stress.

## Output

Produce a **TRS Structuring Report** containing:

- **Executive summary**: Objective, reference asset, notional, tenor, and financing rate
- **Term sheet**: Complete economic terms in standard ISDA TRS confirmation format — reference obligation, notional, trade/effective/maturity dates, total return amounts, financing amounts, payment dates, business day convention, calculation agent
- **Economics analysis**: Expected carry calculation, breakeven reference asset return, comparison to alternative funding structures with all-in cost
- **Collateral schedule**: Initial margin, variation margin mechanics, eligible collateral with haircuts, minimum transfer amount, rounding
- **Risk summary**: Key sensitivities (spread duration, rate duration, default probability impact), maximum loss under stress, counterparty exposure profile over tenor
- **Regulatory checklist**: Applicable margin rules, capital treatment, reporting obligations, with [VERIFY] flags for jurisdiction-dependent items

## Quality Checks

- Financing rate convention (ACT/360 vs. 30/360) is consistent between term sheet and economics model
- Total return definition captures all income components and correctly handles ex-date vs. payment-date timing
- Collateral haircuts align with CSA terms and are appropriate for reference asset volatility
- Termination triggers are consistent with ISDA Credit Derivatives Definitions where credit events are referenced [VERIFY: 2014 vs. 2003 Definitions applicability]
- Settlement method (physical vs. cash) is feasible given reference asset liquidity
- Capital and margin calculations use correct counterparty classification and netting set [VERIFY regulatory classification under local rules]
- All notional amounts, dates, and payment frequencies are internally consistent across term sheet, economics, and collateral sections

Related Skills

tax-return-summary

11
from CaseMark/skills

Produces structured, citation-backed summaries of tax returns (Form 1040, schedules, W-2s, 1099s) for divorce, personal injury, and bankruptcy litigation. Extracts income sources, deductions, credits, and flags anomalies. Use when summarizing tax returns, analyzing financial discovery, assessing earning capacity, reviewing 1040s, or preparing financial profiles for litigation.

tax-return-analysis

11
from CaseMark/skills

Produces litigation-ready financial memoranda from multi-year tax returns, covering income trends, filing status changes, deduction patterns, red flags, and trustee considerations. Use when reviewing Form 1040s for bankruptcy means testing, family law support calculations, personal injury damages, or financial discovery analysis.

final-tax-return-filing

11
from CaseMark/skills

Drafts U.S. final tax return filing packets for decedent estates or dissolving entities, covering final-status designation, short-period reporting, liquidation items, schedule selection, and filing mechanics. Use when handling a "final return", "deceased taxpayer", "estate final 1040", "corporate dissolution filing", "short year return", or any closing-phase tax compliance task.

final-tax-return-corporate

11
from CaseMark/skills

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.

structuring-debt-financing

11
from CaseMark/skills

Designs acquisition financing structures with leverage analysis, covenant negotiation, and capital structure optimization. Use when structuring deal financing, analyzing debt capacity, or negotiating loan terms.

modeling-portfolio-company-returns

11
from CaseMark/skills

Builds PE return models with entry/exit multiples, leverage analysis, and value creation attribution. Use when modeling PE returns, calculating IRR/MOIC, or attributing value creation drivers.

analyzing-variance-swaps

11
from CaseMark/skills

Structures variance and volatility swap pricing with realized/implied vol analysis and hedging. Use when pricing variance swaps, analyzing vol risk premium, or hedging volatility exposure.

analyzing-total-return-swaps

11
from CaseMark/skills

Structures TRS analysis with funding benefit, counterparty exposure, and economic equivalence assessment. Use when analyzing TRS, evaluating synthetic exposure, or comparing TRS to cash positions.

analyzing-credit-default-swaps

11
from CaseMark/skills

Interprets CDS markets with basis analysis, curve dynamics, and credit event monitoring. Use when analyzing CDS spreads, monitoring credit events, or evaluating CDS basis.

analyzing-corporate-restructuring

11
from CaseMark/skills

Evaluates restructuring alternatives with debt-for-equity analysis, 363 sale considerations, and recovery analysis. Use when analyzing restructurings, evaluating Chapter 11 options, or modeling recovery scenarios.

structuring-whole-business-securitizations

11
from CaseMark/skills

Designs whole business securitization with IP collateral, franchise cash flows, and operating covenant structures. Use when structuring WBS transactions, analyzing franchise securitizations, or evaluating non-traditional collateral.

structuring-tracking-stock-arrangements

11
from CaseMark/skills

Designs tracking stock structures with attributed business economics, intergroup arrangements, and value realization mechanics. Use when evaluating tracking stocks, analyzing attributed value structures, or assessing partial separation alternatives.