risk-discipline

Validate trading bot code for risk controls, stop losses, and daily loss limits.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lgbarn/quantdev --skill risk-discipline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk-discipline
Source: https://github.com/lgbarn/quantdev/tree/main/skills/risk-discipline
Command: npx skills add https://github.com/lgbarn/quantdev --skill risk-discipline

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that trading bots have essential risk management controls in place before deployment, preventing catastrophic losses due to unmanaged risk.

Core Features & Use Cases

  • Per-Trade Risk Validation: Verifies stop losses, risk amounts, and position sizing.
  • Daily Loss Limits: Checks for circuit breakers to halt trading after a set loss.
  • Prop Firm Compliance: Ensures adherence to specific rules for proprietary trading firms.
  • Use Case: Before deploying a new trading bot, run this Skill to confirm that every trade has a defined stop loss, the position size is calculated based on risk, and a daily loss limit is active.

Quick Start

Run the risk-discipline skill to review the risk controls in the attached bot code.

Frequently Asked Questions about risk-discipline

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

FAQPage Schema
How do I validate trading bot risk controls before deployment?

Yes, prop firm compliance is enforced by checking the bot code for adherence to specific proprietary trading firm constraints. This includes bounding risk percentages and ensuring atomic order submissions to meet strict evaluation rules.

How do I add a daily loss circuit breaker to my trading bot?

The required risk management defaults are explicit stop losses, bounded risk percentages for position sizing, and atomic order submissions. These ensure every trade has a defined risk limit and prevents partial or unmanaged order fills.

Can I check position sizing logic in trading bot code?

Yes, you can check position sizing logic by analyzing the bot code to verify that risk amounts are properly bounded. The review enforces per-trade risk limits and ensures position sizes are calculated based on predefined risk parameters.

Why does my trading bot fail prop firm risk limits?

Trading bots fail prop firm risk limits when code lacks bounded risk percentages, explicit stop losses, or daily loss circuit breakers. Enforcing atomic order submissions and strict adherence to proprietary firm constraints resolves compliance failures.