Portfolio Risk Assessment

Monitor portfolio health and halt trading via circuit breakers.

38|9|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/IgorGanapolsky/trading --skill portfolio-risk-assessment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Portfolio Risk Assessment
Source: https://github.com/IgorGanapolsky/trading/tree/main/.claude/skills/portfolio_risk_assessment
Command: npx skills add https://github.com/IgorGanapolsky/trading --skill portfolio-risk-assessment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires alpaca-py, python-dotenv, and includes scripts (resource) components.

What problem does it solve?

Trading involves significant risk. This Skill automates the critical task of monitoring portfolio health, enforcing risk limits, and preventing catastrophic losses through intelligent circuit breakers and pre-trade validation. It ensures your trading strategy operates within defined safety parameters, giving you peace of mind.

Core Features & Use Cases

  • Real-time Portfolio Health: Continuously monitors your account equity, P&L, drawdown, and cash levels.
  • Automated Circuit Breakers: Automatically halts trading if daily loss, maximum drawdown, or consecutive losses exceed predefined thresholds.
  • Pre-Trade Validation: Validates every proposed trade against your risk rules (e.g., position size, buying power) before execution.
  • Use Case: Before any trade, the AI can use this skill to validate if the trade adheres to your risk limits and if any circuit breakers are active, ensuring you never overexpose your portfolio or trade during high-risk periods.

Quick Start

To assess your portfolio's current health and check for any active circuit breakers, simply ask: "Assess my portfolio's risk and check if trading should be halted."

Frequently Asked Questions about Portfolio Risk Assessment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent catastrophic losses in automated trading?

Prevent catastrophic losses by implementing real-time portfolio monitoring with automated circuit breakers that halt trading when daily loss, maximum drawdown, or consecutive losses exceed your predefined thresholds. This Skill continuously tracks account equity, P&L, and cash levels to enforce safety limits before losses escalate.

What is pre-trade validation and why do I need it?

Pre-trade validation checks every proposed trade against your risk rules—such as position size and buying power limits—before execution. It ensures trades adhere to your risk parameters and that no circuit breakers are active, preventing overexposure and trades during high-risk periods.

Can I use this for real-time portfolio health monitoring with alpaca-py?

Yes. This Skill integrates with alpaca-py to continuously monitor your account equity, P&L, drawdown, and cash levels in real time, while enforcing circuit breakers and pre-trade validation checks across assets and strategies.

How do circuit breakers protect my trading strategy?

Circuit breakers automatically halt trading when thresholds for daily loss, maximum drawdown, or consecutive losses are exceeded. This automated enforcement ensures your strategy operates within defined safety parameters and gives you time to reassess before resuming.

What audit and recording capabilities does portfolio risk assessment include?

This Skill provides audit-ready recording of all trade outcomes, maintaining a complete record of pre-trade validation checks, circuit-breaker events, and post-trade results across your portfolio for compliance and performance review.

Does this work for multiple asset types and trading strategies?

Yes. Real-time risk metrics calculation, circuit-breaker enforcement, and pre-trade validation apply across different assets and strategies, making it suitable for diversified trading environments requiring continuous health monitoring.