Communitygithub.com

Mr-Nobody-Anonymous/All-skills

Constructs risk parity allocation with equal risk contribution, leverage optimization, and asset class volatility targeting. Use when building risk parity, equalizing risk contribution, or designing leveraged balanced portfolios.

All-skills 是什么?

All-skills is a Claude Code agent skill that constructs risk parity allocation with equal risk contribution, leverage optimization, and asset class volatility targeting. Use when building risk parity, equalizing risk contribution, or designing leveraged balanced portfolios.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Mr-Nobody-Anonymous/All-skills/tree/HEAD/awesome_skills/legal/building-risk-parity-portfolios

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Building Risk Parity Portfolios

When To Use

  • Constructing a multi-asset portfolio where each asset class contributes equally to total portfolio risk
  • Designing leveraged balanced strategies (e.g., Bridgewater All Weather–style allocations)
  • Rebalancing an existing risk parity book to reflect updated covariance estimates
  • Comparing risk parity weights against market-cap or equal-weight benchmarks
  • Building a volatility-targeted overlay that scales gross exposure to a constant risk budget

Inputs To Gather

  • Asset universe: List of asset classes or instruments (e.g., equities, nominal bonds, TIPS, commodities, gold) with ticker-level mapping where applicable
  • Return series: Total-return time series for each asset — minimum 10 years monthly, or 3 years daily; confirm frequency and currency [VERIFY]
  • Covariance estimation method: Sample covariance, exponentially weighted (half-life), shrinkage (Ledoit-Wolf), or DCC-GARCH — confirm client preference
  • Risk-free rate: Specify proxy (3-month T-bill, OIS, SOFR) and whether to subtract from returns before optimization [VERIFY]
  • Target portfolio volatility: Annualized vol target for the levered portfolio (common range: 10–15%)
  • Leverage constraints: Maximum gross exposure, borrowing cost assumption, margin/collateral rules [VERIFY]
  • Rebalance frequency: Daily, weekly, monthly, or threshold-based (e.g., drift > 10% of target weight)
  • Lookback window: Rolling window length for covariance estimation (e.g., 60-day, 252-day)

Workflow

  1. Compute the covariance matrix

    • Calculate returns at the chosen frequency; annualize if needed (√252 for daily)
    • Apply the selected estimation method; if shrinkage, report shrinkage intensity
    • Validate: check that the matrix is positive semi-definite; flag near-singular conditions
  2. Solve for risk parity weights

    • Define the objective: each asset's marginal risk contribution (MRC) equals 1/N of total portfolio volatility
    • MRC_i = w_i × (Σw)_i / σ_p — iterate until MRC_i ≈ MRC_j for all i, j
    • Use numerical optimization (e.g., sequential least squares or Newton's method on the risk-budget Lagrangian)
    • Confirm weights sum to 1.0 (unlevered) or to gross exposure target (levered)
  3. Apply leverage scaling

    • Compute unlevered portfolio volatility σ_unlevered from the risk parity weights
    • Leverage multiplier = Target Vol / σ_unlevered
    • Adjusted weights = raw weights × leverage multiplier
    • Subtract borrowing cost from expected return: cost = (gross exposure − 1) × funding rate [VERIFY funding rate assumption]
  4. Backtest and stress-test

    • Run rolling or expanding-window backtest; report annualized return, vol, Sharpe, max drawdown, and Calmar ratio
    • Conduct stress scenarios: 2008 GFC, 2013 taper tantrum, 2020 COVID, 2022 rates shock — report portfolio P&L under each
    • Compare against 60/40, equal-weight, and inverse-vol benchmarks
  5. Sensitivity analysis

    • Vary lookback window (30d, 60d, 120d, 252d) — show weight stability and turnover impact
    • Vary covariance method — compare sample vs. shrinkage vs. EWMA weights
    • Shock individual asset vols by ±2σ and correlation matrix by ±0.10 — report weight and risk-contribution shifts
  6. Document allocation model

    • Final weight table with risk contribution breakdown (absolute and percentage)
    • Gross and net exposure, leverage ratio, estimated borrowing cost drag
    • Rebalance rule specification and estimated annual turnover
    • All assumptions flagged explicitly; mark jurisdiction-dependent constraints with [VERIFY]

Output

Deliver a structured risk parity model package containing:

  • Weight schedule: Asset-level weights, risk contributions, and leverage multiplier
  • Covariance summary: Correlation heatmap, per-asset annualized vol, eigenvalue decomposition
  • Backtest report: Equity curve, rolling Sharpe, drawdown chart, monthly return table
  • Stress-test matrix: Scenario returns for the portfolio vs. benchmarks
  • Sensitivity exhibits: Weight and turnover impact across parameter variations
  • Methodology memo: Estimation method, optimization algorithm, rebalance logic, and all [VERIFY] items

Quality Checks

  • Confirm each asset's percentage risk contribution is within ±0.5% of 1/N target after optimization convergence
  • Verify portfolio vol matches the stated target (tolerance: ±25 bps annualized)
  • Check that weights are non-negative (unless short selling is explicitly permitted) and sum correctly
  • Validate that the covariance matrix has no negative eigenvalues
  • Ensure backtest does not use future information (no look-ahead bias in rolling windows)
  • Cross-check leverage multiplier against margin and regulatory constraints [VERIFY applicable margin rules]
  • Confirm borrowing cost assumption reflects current market rates, not stale inputs

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Mr-Nobody-Anonymous/All-skills

Build agency portfolios. TRIGGERS - Use when user needs help with agency-portfolio-builder related tasks.

Mr-Nobody-Anonymous/All-skills

Generate landing pages with AI. TRIGGERS - Use when user needs help with ai-landing-page-gen related tasks.

Mr-Nobody-Anonymous/All-skills

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

Mr-Nobody-Anonymous/All-skills

Review investment portfolios with rebalancing recommendations. TRIGGERS - Use when user needs help with investment-portfolio-review related tasks.

Mr-Nobody-Anonymous/All-skills

Create makeup artist portfolio guides. TRIGGERS - Use when user needs help with makeup-artist-portfolio related tasks.

Mr-Nobody-Anonymous/All-skills

Build freelance portfolios with case studies. TRIGGERS - Use when user needs help with freelance-portfolio-builder related tasks.

Mr-Nobody-Anonymous/All-skills

Structures secondary portfolio construction with vintage diversification, strategy mix, and geographic allocation optimization. Use when building secondary portfolios, managing allocation targets, or optimizing portfolio composition.

Mr-Nobody-Anonymous/All-skills

Optimize landing page copy for conversions. TRIGGERS - Use when user needs help with landing-page-optimizer related tasks.

Mr-Nobody-Anonymous/All-skills

Build copywriting portfolios. TRIGGERS - Use when user needs help with copywriting-portfolio related tasks.

Mr-Nobody-Anonymous/All-skills

Design cryptocurrency portfolio strategies. TRIGGERS - Use when user needs help with crypto-portfolio-strategy related tasks.

Mr-Nobody-Anonymous/All-skills

Build UX design portfolios. TRIGGERS - Use when user needs help with ux-portfolio-builder related tasks.

Mr-Nobody-Anonymous/All-skills

Design cloud landing zones. TRIGGERS - Use when user needs help with cloud-landing-zone related tasks.

Mr-Nobody-Anonymous/All-skills

Generate high-converting landing page copy with headlines, benefits, CTAs, and social proof. TRIGGERS - Use when user wants landing page copy, sales page content, or conversion-focused web copy.

Mr-Nobody-Anonymous/All-skills

Design portfolio assessment systems. TRIGGERS - Use when user needs help with portfolio-assessment related tasks.

Mr-Nobody-Anonymous/All-skills

Conducts portfolio performance measurement with benchmark comparison, attribution, and risk-adjusted metrics. Use when measuring portfolio performance, calculating Sharpe/Sortino ratios, or conducting performance attribution.

Mr-Nobody-Anonymous/All-skills

Builds strategic and tactical asset allocation models with risk-return optimization and constraint management. Use when constructing portfolios, optimizing asset allocation, or building model portfolios.

Mr-Nobody-Anonymous/All-skills

Creates client-facing portfolio reports with performance, allocation, commentary, and outlook. Use when producing client reports, preparing quarterly reviews, or creating portfolio summaries.

Mr-Nobody-Anonymous/All-skills

Design investment portfolios. TRIGGERS - Use when user needs help with investment-portfolio-design related tasks.

Mr-Nobody-Anonymous/All-skills

Plan investment portfolios. TRIGGERS - Use when user needs help with investment-portfolio-plan related tasks.

Mr-Nobody-Anonymous/All-skills

You are a Conversion Rate Optimization Strategist and Persuasive Content Specialist. Use this skill when the user wants to audit or improve a landing page, write conversion-focused copy, optimize CTAs, build an FAQ schema block, translate features into benefits, or maximize conversions on any specific page type. Activate when the user mentions "landing page," "sales page," "lead capture page," "squeeze page," "webinar sign-up page," "product launch page," "waitlist page," "early access page," "thank you page," "upsell page," "SaaS pricing page," "onboarding page," "ecommerce page," "audit this page," "improve conversions," "CTA optimization," "hero section," "headline rewrite," "subhead," "benefits section," "features to benefits," "FAQ schema," "schema FAQ," "trust elements," "page layout," "above the fold," "scroll order," "microcopy," "mobile-first copy," "landing page copy," "page flow," "drop-off," "weak CTA," "conversion copy," "page goal," "split test copy," "A/B test copy," or "wireframe suggestion...

相关技能