Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

drawdown-circuit-breaker

Skill by tradermonty

Evaluates account-level drawdown circuit breaker rules from local trader-memory-core state to decide whether new trade risk is allowed today. Built for traders who want a daily gate on new entries after realized losses.

  • Score 93
  • 8.5k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install drawdown-circuit-breaker

Built from the published package, never by AI.

git clone --depth 1 https://github.com/tradermonty/claude-trading-skills /tmp/claude-trading-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-trading-skills/skills/drawdown-circuit-breaker ~/.claude/skills/drawdown-circuit-breaker

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install drawdown-circuit-breaker in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

drawdown-circuit-breaker is an agent skill that evaluates whether new trade risk is allowed today. It reads local trader-memory-core thesis YAML files, usually under state/theses/, and uses realized P&L, losing-streak cooldowns, and weekly and monthly drawdown limits. It produces a circuit_breaker_decision artifact that complements the exposure-coach exposure_decision.

Each run returns TRADING_ALLOWED, COOLDOWN, or HALTED, with triggered rules, metrics, and a JSON and Markdown report. Thresholds can be overridden by CLI or a JSON config file. Empty state returns TRADING_ALLOWED, while malformed or conflicting state fails closed as HALTED. The tool is a recommendation and recordkeeping aid for traders. It does not place or block broker orders.

Written from the project's SKILL.md and checked against it.

What it can do

  • Daily loss limitChecks realized P&L against a max daily loss of 2.0% of account by default.
  • Losing-streak cooldownSets COOLDOWN after 2 consecutive terminal losing theses by default.
  • Weekly and monthly haltsHalts new entries when weekly (5.0%) or monthly (8.0%) drawdown limits are reached by default.
  • Decision artifactWrites a circuit_breaker_decision JSON file and an optional matching Markdown report.
  • Threshold overridesOverrides thresholds with CLI arguments or a JSON config file, with CLI values taking precedence.
  • Deterministic evaluationAccepts an --as-of value so a run can be evaluated for a fixed date and time.
  • Fail-closed state checksReturns PARTIAL and HALTED when thesis state is malformed, duplicated, or conflicting.
  • Exchange calendar datesUses actual XNYS sessions to set daily, weekly, and monthly halt release dates.

What you need

  • Python 3.9+
  • Local trader-memory-core thesis YAML files
  • Account size in dollars
  • Requirements.txt installed before running the checker

Try asking

  • Check whether my circuit breaker allows new trade risk today.
  • Run the drawdown check on state/theses with a 100000 account.
  • Show my weekly and monthly drawdown against the default limits.

Good to know

  • Advisory only. It does not place, cancel, or block broker orders.
  • It does not enforce broker-side blocks or automated order rejection.
  • Reads trader-memory-core thesis YAML files only.
  • Incomplete or conflicting state returns HALTED until repaired and rerun.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/drawdown-circuit-breaker/SKILL.md, skills/drawdown-circuit-breaker/scripts/_market_calendar.py, skills/drawdown-circuit-breaker/scripts/check_circuit_breaker.py, skills/drawdown-circuit-breaker/scripts/tests/conftest.py, skills/drawdown-circuit-breaker/scripts/tests/test_check_circuit_breaker.py, skills/drawdown-circuit-breaker/scripts/tests/test_config_encoding.py, skills/drawdown-circuit-breaker/scripts/tests/test_market_calendar_contract.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/circuit_breaker_framework.md6 KB
  • requirements.txt199 B
  • scripts/_market_calendar.py15 KB
  • scripts/check_circuit_breaker.py33 KB
Show all 9 files
  • scripts/tests/conftest.py229 B
  • scripts/tests/test_check_circuit_breaker.py60 KB
  • scripts/tests/test_config_encoding.py4 KB
  • scripts/tests/test_market_calendar_contract.py6 KB

Alternatives to drawdown-circuit-breaker

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

drawdown-circuit-breaker: common questions

Does it need an API key or network access?

No. The source says no API keys or network access are required, and it does not use any external API.

What data does it read?

It reads local trader-memory-core thesis YAML files and uses realized P&L from each thesis status_history ledger, not from the _index.json file.

Does it force liquidation of open positions?

No. The source says managing existing positions remains a human decision and the circuit breaker does not force liquidation.

How do I install drawdown-circuit-breaker?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is drawdown-circuit-breaker free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is drawdown-circuit-breaker safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to drawdown-circuit-breaker?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

drawdown-circuit-breaker Install

Add to stack

Loading.