Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    portfolio regime monitor

    1

    Monitor portfolio volatility shifts, correlation breakdowns, and drawdown metrics against historical baselines.

    $11

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    portfolio regime monitor

    portfolio regime monitor

    Example session with this skill installed

    Analyze portfolio_returns.json against the Q3 baseline. Check for correlation breakdown in the BTC hedge and report drawdown shifts.

    • Read your context and instructions
    • Compiled the portfolio regime monitor

    I have processed the return series for the portfolio and the BTC hedge. The analysis compares the Current Window (Oct 1 - Oct 31) against the Q3 Baseline (July 1 - Sep 30).

    Portfolio Regime Analysis Report

    MetricBaseline (Q3)Current (Oct)Delta / Status
    Sample Volatility (Ann.)18.4%26.2%+7.8% (Regime Shift)
    Pearson Correlation-0.82-0.45+0.37 (Hedge Weakening)
    Max Drawdown-4.2%-8.1%1.93x increase
    Alignment Score100%98.2%1 Missing Obs.

    Interpretation

    The portfolio has entered a higher volatility regime. Most critically, the BTC hedge correlation has weakened significantly from -0.82 to -0.45. This indicates the hedge is no longer providing the expected tail protection. The current drawdown of -8.1% has breached the pre-defined 5% review threshold.

    {
      "version": "1.0.0",
      "summary": {
        "regime_change": true,
        "hedge_effective": false,
        "threshold_breach": ["volatility", "drawdown", "correlation"]
      },
      "metrics": {
        "baseline": { "vol": 0.184, "corr": -0.82, "mdd": -0.042 },
        "current": { "vol": 0.262, "corr": -0.45, "mdd": -0.081 }
      },
      "source_ref": "portfolio_returns.json"
    }
    

    Next steps

    1. Review the specific dates of the correlation drop in the raw logs to identify if the breakdown was event-driven.
    2. Evaluate the factor concentration of the BTC position using your internal factor mapping tools.
    3. Determine if the current volatility spike requires a reduction in gross exposure per your risk policy.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Traders often fail to detect when hedges stop correlating with their portfolio or when volatility regimes shift silently. Manual spread and drawdown analysis across different time windows is prone to alignment errors and inconsistent sampling.

    What it does

    • Aligns baseline and current return series using identical sampling conventions without forward-filling prices.
    • Calculates per-period sample volatility, Pearson correlation, and compounded drawdown.
    • Identifies threshold breaches in hedge performance and volatility shifts.
    • Generates a structured monitoring report in JSON and human-readable formats.

    Frameworks & tools

    Python 3 for analysis scripts, JSON for data input/output contracts.

    Why this beats prompting it yourself

    Writing prompts to handle financial time-series math often results in hallucinations, like filling missing data with zeros or miscalculating compounded drawdowns. This skill enforces a strict input contract and mathematical logic that handles undefined correlations and non-overlapping windows correctly.

    Use cases

    • Monitoring for hedge-breakdown during market stress events.
    • Identifying volatility regime changes relative to a historical baseline.
    • Comparing portfolio performance against strategy benchmarks with proper sampling alignment.

    Known limitations

    Supports two aligned return series only. No live data connectors, automated rebalancing, or factor-model engines are included.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.

    Requires manual data preparation via JSON contract. Limited to two return series. No live trading or automated rebalancing capabilities.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    Software
    Python

    Permissions

    Terminal / Shell
    Listed1 month ago

    What's inside

    Frequently Asked Questions

    It validates two nonoverlapping, time-aligned return series and calculates sample volatility, Pearson correlation, compounded drawdown, and threshold comparisons from the supplied data. It does not forecast regimes, fill missing data, or prevent unsupported claims about the underlying data.

    The skill requires two aligned return series in a structured JSON format; it does not include direct API connectors to brokers or live data providers, ensuring you maintain full control over your data sources.

    You will receive the core Python analysis scripts and the strict JSON input/output contracts required to integrate the monitor into your existing AI agent workflows.

    Yes, the skill is designed to be framework-agnostic and can be integrated into any AI agent or platform that supports Python execution and JSON data exchange.

    This skill is optimized for comparing two return series at a time, such as a portfolio versus a hedge or a strategy versus a benchmark, to ensure precise correlation and drawdown analysis.

    New in Trading & Investing