/candle:candle-strategy-to-botfrom candle
Transforms a trading strategy specification into a deterministic bot with policy-as-data, hash-based operator approval, replayable decision ledger, and fail-closed position state machine. Use when a strategy spec must become a bot or when a running bot's rules must change.
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.
For detailed per-token signals and wallet intelligence, call GET https://api.hacc.fun/v1/signals?asset=<mint>&chain=solana&limit=50 with Authorization: Bearer <your cndl_live_ key> (production only, rows filtered to your plan); see Data and strategy API.
Turns a strategy spec (see candle-strategy-design) into a bot whose decisions are deterministic, approved by the
operator and replayable. It ends where the operating skills begin: candle-trade-execution for orders, fills and
bookkeeping, candle-kill-switches for operator controls, candle-book-limits for caps, candle-agent-operations
for running the worker, and candle-first-live-trade for the first fills. A well-built bot loses less to its own
faults; it does not make a strategy profitable.
Code decides, the policy is data, and only the operator approves a policy, by its exact content. The bot refuses to run on a policy whose exact content the operator has not approved, so a changed number cannot reach live money without a new approval.
Detection, admission, sizing, orders, position management and the ledger are code. A language model writes, reviews
and explains that code, and never signs, sizes or books. It enters the decision path only as a tested input, such as
a veto over a deterministic entry (candle-llm-trade-judge), after an ablation shows it helps
(onchain-strategy-research). Its output is then a recorded input like any other: the model and its version pinned in
the policy, every prompt and response saved with its receipt time, replays reading the saved response.
Every rule that moves money lives in one policy file: universe, gates and their thresholds, ticket and its allowed values, exit ladder, caps, entry window, the wallet, and a version id.
candle-kill-switches). A control picks within limits the policy sets: a ticket control chooses only among the
policy's allowed values, an invalid control falls back to the policy value and raises an alert, and no control
raises a cap.The amend path, the only way a policy changes:
candle-strategy-design, candle-book-limits).A new behaviour enters as a setting, not as a fork of the code. The old behaviour stays reachable by settings: either as the default, or through a mapping that turns the old policy into the new one.
Each position is in one named state: pending entry, open, each exit stage, buyback if the spec has one, closed, written
off, unresolved. Save each transition before acting on it and keep one order in flight per position. Clamp every exit
to the smaller of the booked quantity and the venue's record of truth (the on-chain balance, or an exchange's
position), never up and never to zero. A zero or unreadable balance refuses that sell attempt and raises an alert; the
exit keeps its place and re-reads the balance on the next cycle, and a balance that stays zero or unreadable moves the
position to unresolved for the operator, never to closed. An order with an unknown outcome goes to unresolved. Order
mechanics and recovery are in candle-trade-execution.
The ledger appends an event for every candidate seen, gate verdict with the measurements behind it, refusal with its
reason, order, and fill booked from the venue's record of truth. Readers use a derived status file or a read-only
connection, never a command that opens the ledger the way the worker does. Refusals make a quiet book diagnosable
(candle-book-limits) and let each gate be judged on kept against refused.
A missing, stale or unknown gate input refuses the entry with a reason; unknown is never a pass. Nothing on the entry
side (caps, pauses, unknown inputs, an unresolved buy) blocks an exit (candle-book-limits, candle-kill-switches).
In this order, each step before the next:
candle-first-live-trade), on the operator's go and on a policy
the operator approved.The ledger records the policy hash (or version) and the code identity at every start, so every event can be
attributed to a version. The deployed code's identity is pinned and checked (candle-agent-operations). Each
amendment carries its evidence and expected effect, so the close-out can attribute results by version. A deploy, like
a policy change, is the operator's decision.
This skill is advisory. It does not authorize trades, transfers, or limit changes; those remain your operator's decision.
candle-strategy-design: the spec this buildscandle-trade-execution: orders, fills and bookkeepingcandle-kill-switches: operator controlscandle-book-limits: caps that never block exitscandle-agent-operations: running the workercandle-first-live-trade: the first fillsWhat SKILL.md sets; muted values are Claude Code's defaults
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-drained-pool-writeoff[RISK CONTROL] Recognize a held position whose pool was emptied after entry, and account for it as a loss instead of marking it at a stale price or retrying sells forever. Use when a held token's price has stopped updating, when sell quotes keep failing, when a mark looks healthy but no trades arrive, and when deciding whether an unsellable position can be closed out./candle-first-live-trade[OPERATIONS] The plumbing test a trading bot needs before and during its first live trades: a supervised minimum-size round trip through the real code, a sell proven before buys scale, a control exercised on a live position, and the ledger reconciled against the wallet. Use when a bot is about to trade real money for the first time, after any change of key, signer, wallet, venue or quote asset, when an operator says to kill a newly live bot, when the first live fills look different from paper, and when a newly live book goes quiet./candle-kill-switches[RISK CONTROL] The operator controls an autonomous trading book needs so a human can stop new risk, cut one position or cut everything without editing code or killing a process mid-order, and how those controls differ from the rail's own profile stops. Use when building a trading worker, before running one with real money, and when an operator asks to pause, cut, stop or restart a running book./candle-launch[TOKEN LAUNCH] Launch a new token on Candle, on Solana or Hood, optionally seeded with a dev buy (same transaction on Solana; best-effort follow-up on Hood). Use when the user asks to launch, create, deploy, or seed a token.npx claudepluginhub candledottv/agentic --plugin candle