managing-collateral-and-margining
Structures CSA terms analysis with initial/variation margin calculation and collateral optimization. Use when managing collateral, calculating margin requirements, or optimizing posting strategies.
Best use case
managing-collateral-and-margining is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Structures CSA terms analysis with initial/variation margin calculation and collateral optimization. Use when managing collateral, calculating margin requirements, or optimizing posting strategies.
Teams using managing-collateral-and-margining 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/managing-collateral-and-margining/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How managing-collateral-and-margining Compares
| Feature / Agent | managing-collateral-and-margining | 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 CSA terms analysis with initial/variation margin calculation and collateral optimization. Use when managing collateral, calculating margin requirements, or optimizing posting strategies.
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 Collateral And Margining Analyzes Credit Support Annex (CSA) terms, calculates initial and variation margin requirements, and identifies collateral optimization opportunities across OTC derivatives portfolios. ## When To Use - Reviewing or negotiating CSA/Credit Support Deed terms for new or amended ISDA relationships - Calculating initial margin (IM) under UMR/ISDA SIMM or a scheduling approach - Computing variation margin (VM) calls and resolving margin disputes - Optimizing collateral posting across multiple CSAs to minimize funding cost - Assessing the impact of eligible collateral haircuts on portfolio economics - Preparing for regulatory margin audits or compliance reviews under UMR phases [VERIFY phase applicability based on AANA thresholds and jurisdiction] ## Inputs To Gather - **CSA/CSD terms**: Thresholds, Minimum Transfer Amounts (MTA), rounding conventions, Independent Amounts, eligible collateral schedules, haircut tables, currency of settlement - **Portfolio data**: Trade-level MTM valuations, netting set definitions, product types (rates, credit, equity, FX, commodities) - **Market data**: Discount curves, FX rates, credit spreads for haircut recalibration - **Regulatory context**: Jurisdiction of each counterparty, UMR phase-in status, clearing mandate applicability [VERIFY local margin rules — EMIR RTS, CFTC, OSFI, APRA, MAS, JFSA each have variations] - **Operational parameters**: Settlement cut-off times, custodian/tri-party agent details, substitution rights, rehypothecation permissions ## Workflow 1. **Parse CSA Terms** - Extract threshold, MTA, rounding, and Independent Amount for each direction (Party A / Party B) - Map eligible collateral schedule: asset types, issuer constraints, concentration limits, and applicable haircuts - Flag asymmetric terms, one-way posting obligations, or non-standard provisions 2. **Calculate Variation Margin** - Net MTM across all trades in the netting set using agreed valuation methodology - Apply threshold and MTA to derive the delivery/return amount - Determine call direction and round per CSA rounding convention - For disputed amounts, isolate trade-level MTM differences and document the dispute resolution path 3. **Calculate Initial Margin** - **ISDA SIMM**: Compute sensitivities (delta, vega, curvature) per risk class, apply risk weights and correlations per ISDA SIMM methodology version [VERIFY current SIMM version — recalibrated annually in December] - **Schedule-based**: Apply notional-based percentages by product type per regulatory schedule - **Grid/Internal model**: Run VaR or ES at 99% confidence, 10-day MPOR, with netting and diversification benefits as permitted - Compare bilateral IM amounts; the higher of the two parties' calculations typically governs [VERIFY governing calculation election in CSA] 4. **Optimize Collateral Posting** - Rank eligible assets by funding cost (opportunity cost of posting vs. retained yield) - Factor in haircuts — a lower-haircut asset may be cheaper even if its yield is slightly higher - Check concentration limits, wrong-way risk constraints, and issuer caps before allocating - Model substitution scenarios: swapping government bonds for cash or vice versa to free up HQLA buffers - Consider cross-CSA netting if tri-party or collateral management platform supports it 5. **Reconcile and Settle** - Generate margin call notices with settlement instructions and value date - Reconcile portfolio and margin amounts with the counterparty (daily for VM, as required for IM) - Track pending settlements, fails, and aged items; escalate fails beyond T+1 ## Output - **Margin Summary Report**: Net exposure per netting set, VM call amount and direction, IM requirement by method, collateral posted/received breakdown by asset type - **CSA Terms Matrix**: Side-by-side comparison of key terms across counterparties (thresholds, MTAs, eligible collateral, haircuts, rehypothecation rights) - **Collateral Optimization Analysis**: Current vs. recommended posting allocation, estimated funding cost savings, concentration utilization heatmap - **Dispute Log** (if applicable): Trade-level MTM differences, proposed resolution, escalation status - **Regulatory Compliance Checklist**: UMR phase compliance, segregation requirements, custodian documentation status [VERIFY against applicable regulatory regime] ## Quality Checks - Confirm netting set definitions match ISDA Master Agreement netting opinions for each jurisdiction [VERIFY enforceability opinions are current] - Validate that haircuts applied match the CSA schedule — do not default to regulatory standard haircuts unless CSA references them - Cross-check IM calculations against counterparty statements; differences above a defined tolerance (e.g., 10%) require investigation - Ensure MTA and threshold are applied in the correct direction and currency; misapplication is a common source of margin call errors - Verify that collateral posted meets eligibility criteria as of the valuation date (credit rating downgrades can disqualify previously eligible securities) - Confirm settlement instructions reference the correct custodian/tri-party account and that SSIs are up to date
Related Skills
managing-wound-care
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
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
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
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
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
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
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
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
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
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
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
Guides transplant candidacy evaluation with organ-specific criteria and listing documentation. Use when evaluating transplant candidates, documenting listing criteria, or coordinating transplant workups.