/candle:candle-kill-switchesfrom candle
Defines file-based kill switches for autonomous trading books: pause buys, flatten all or one position, and stop process. Use when building a trading worker or when an operator needs to pause, cut, or restart a running book without editing code.
Ships in candle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An autonomous book runs on a loop. The operator needs a way to change what that loop does between cycles, and each control needs to do exactly one thing. This skill describes the minimum set of controls, what each one must and must not touch, and how a worker is stopped or restarted without orphaning an order.
It sits next to candle-trading-discipline, which covers loss limits enforced by the rail on the key.
Those limits bound losses. The controls here are how a person steers a book that is still inside
its limits.
Give the book four file controls that it checks every cycle: pause new buys, flatten everything, flatten one mint, and stop the process. The first three never stop exits. Stopping and restarting are the operator's actions, taken between cycles with nothing pending.
A control is a file in the book's own directory. A file works where a flag in a database or config does not: an operator can create or remove it from any shell, the worker reads it without a lock, and it survives a crash. The names below are examples.
| Control | Effect | Must not |
|---|---|---|
PAUSE_BUYS | Refuse every new entry and every add, with a recorded reason. | Stop marks, exits, take-profits or stop-outs. |
FLATTEN | Sell every open position through the normal exit path, and refuse new buys. | Skip the normal sell checks (balance clamp, reconciliation). |
FLATTEN-<mint> | Sell that one position through the normal exit path with its own reason code, and refuse new buys in that mint. | Touch any other position. |
STOP_PROCESS | End the loop after the current cycle finishes. | Interrupt a submit or a reconcile in progress. |
STOP_PROCESS is the one control that also ends exits, because it ends the process. That is why only
the operator uses it, and only as described under stopping and restarting below.
Check the controls at every decision point that could spend: the entry path, the preflight right before a buy is submitted (a file can appear between the two), and the exit pass.
candle-trade-execution
describes. The cut should differ only in its reason code.Candle can also stop a trading profile on the rail side. The error catalog lists PROFILE_PAUSED
(an account owner paused the profile) and RISK_LIMIT_REACHED (the profile reached a loss limit its
owner set, or tripped its circuit breaker). Both are non-retryable and apply to the whole profile. Do
not treat them as a local pause-buys: stop new entries on that profile, report the reason to the
operator at once, and leave resuming to the account owner. Finish confirming and reconciling orders
already in flight. Do not expect a new sell to be accepted. Tell the owner which positions are open
with no working exit, because only the owner can resume the profile.
These are operator actions. An agent proposes them; it does not take them on its own.
STOP_PROCESS, not a kill signal. The loop checks it between cycles, so the
worker never dies between signing and recording an order.candle-agent-operations.Have the worker write a status file every cycle (positions, marks, pending orders, pause state, last error, heartbeat time). Operators, dashboards and other agents read that file.
Do not read status through a command that opens the book the way the worker does. If the worker holds a lock on its ledger, that command either fails on a live book or contends with the worker for the lock.
candle-trading-discipline: loss limits on the key, enforced by the rail.candle-risk-gate: a standing stop on Candle is an alarm that your agent must complete, not an exit.candle-trade-execution: sell clamps and reconciliation that every cut must still go through.candle-book-limits: caps that can silently stop a book, and why one uncertain order must not freeze every exit.candle-agent-operations: supervisors, crash recovery and heartbeats for long-running workers.This skill is advisory. It does not authorize trades, transfers, or limit changes; those remain your operator's decision.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
trading, risk-control, kill-switch, autonomous-trading, operator-control
Other plugins' skills for the same job
23 skills in this plugin
/candle-agent-operations[OPERATIONS] Run long-lived trading workers and data collectors so they recover from crashes without losing state, never extend their own run, report health truthfully, and hand over cleanly to the next agent session. Use when deploying a trading worker or collector that runs for hours or days, when a worker has crashed, hung or restarted, and when ending a session that leaves workers running./candle-book-limits[RISK CONTROL] Size and audit the lifetime caps, slot counts and wallet reserves of an autonomous trading book so they bound risk without silently stopping the book or blocking its exits. Use when designing a book's limits, when a running book has gone quiet, when an order is stuck unresolved, and when two books share one wallet./candle-npx claudepluginhub candledottv/agentic --plugin candle