risk

Calculate safe position sizes and enforce risk guardrails for trading portfolios.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/raosuraj23/alpaca-bot --skill risk-raosuraj23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk
Source: https://github.com/raosuraj23/alpaca-bot/tree/main/.claude/skills/risk
Command: npx skills add https://github.com/raosuraj23/alpaca-bot --skill risk-raosuraj23

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides deterministic risk sizing and gating for trading agents, preventing overexposure by combining Kelly-based sizing, VaR limits, daily drawdown controls, and position caps.

Core Features & Use Cases

  • Kelly-based position sizing with hard caps on notional and percentage of equity.
  • VaR-based gating, drawdown monitoring, and kill-switch integration to halt or clamp actions.
  • Use cases include automated risk checks before executing multi-asset trades and portfolio rebalancing.

Quick Start

Configure risk settings, run the risk sizing workflow, and apply the resulting notional to upcoming trades.

Frequently Asked Questions about risk

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

FAQPage Schema
How do I implement position sizing and kill-switch checks for a trading portfolio?

Portfolio position sizing and kill-switch checks are implemented by applying Kelly-based sizing with hard caps, VaR governance, drawdown monitoring, and fixed notional limits to protect equity. This enforces deterministic risk guardrails before executing multi-asset trades.

What is Kelly-based position sizing with VaR limits and how does it prevent over-leveraging?

Kelly-based position sizing with VaR limits prevents over-leveraging by calculating safe trade sizes while enforcing hard caps on notional exposure and percentage of equity. It applies deterministic checks to clamp or halt actions when risk thresholds are exceeded.

Does this risk sizing approach work across multiple assets in automated trading environments?

Yes, this risk sizing approach works across multi-asset environments by running deterministic backend checks that apply uniform Kelly sizing, VaR gating, and drawdown limits to protect equity during automated portfolio rebalancing and trade execution.

How do I set up daily drawdown limits and VaR governance for automated trading agents?

Daily drawdown limits and VaR governance are set up by configuring risk settings and running the sizing workflow to calculate resulting notional values. The system monitors thresholds and triggers a kill-switch to halt actions when limits are exceeded.

When should I use a kill-switch in risk management, and what are its limitations?

A kill-switch in risk management should be used to halt automated trading actions when daily drawdown or VaR thresholds are exceeded. Its limitation is that it acts as a deterministic circuit breaker for gating, not as a predictive market analysis tool.

What's the best way to enforce fixed position caps alongside Kelly sizing in trading portfolios?

The best way to enforce fixed position caps alongside Kelly sizing is to apply hard notional and percentage limits within a deterministic risk workflow. This clamps oversized positions and ensures safe exposure before multi-asset trades are executed.