/orbie-skills:backtest-protocolfrom orbie-skills
Protocol for testing a trading strategy honestly before real money: no lookahead, fees and slippage, walk-forward, then paper, then small live. Use when the user asks to backtest, optimize or evaluate a strategy, signal or bot, or to turn a strategy into an agent that trades.
Ships in orbie-skills. 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.
Stages, never skipped: backtest → walk-forward → paper → small live.
Use the built-in tools first. bt_list_strategies shows the strategies, their parameters and the rule format; bt_run backtests one (fees, slippage, Hyperliquid funding, next-bar fills, buy-and-hold over the same window, saved to backtests/<id>.json); bt_walk_forward does the in-sample/out-of-sample split, k folds and a small parameter grid; bt_to_paper starts the same strategy forward in paper. Express custom entry/exit conditions as rules (data, no code). Write your own backtest code only for what they can't express (several assets, portfolio rebalancing, order-book data), and then follow every step below by hand.
strategy.md in the workspace first: the hypothesis in one sentence (why this edge should exist and who pays for it), universe, timeframe, entry, exit, sizing, costs, the pass/fail test (e.g. out-of-sample return above buy-and-hold and DSR ≥ 0.95 (default)) and the parameter values you will try. Fix them before looking at results. If you peek or change anything afterwards, write down what and why; a changed hypothesis is a new trial, not a fix.bt_run fetches and pages public history itself (Hyperliquid perps, Binance and other spot exchanges), keeps closed bars only and reports the source, gaps and any shortfall (Hyperliquid serves only the latest 5,000 candles; Kraken about 720): quote those notes. For your own code, fetch the same public endpoints from a script and save CSVs with source and fetch time; check gaps, duplicates and UTC timestamps; drop the last candle if it is still open.risk.monteCarloDrawdown: the same returns reshuffled; plan for the p95, not the one path you saw), Sharpe, Sortino and Calmar (state the annualization), ulcer index, CVaR 95% per bar, win rate with average win and loss, trade count, time in market, turnover. Under ~30 trades the result is an anecdote: say so. Metric definitions follow quantstats (Apache-2.0).bt_run and bt_walk_forward count every parameter set ever run on that market and bar size (deleting a result doesn't lower it) and report deflated: PSR (probability the true Sharpe is above 0, given length, skew and kurtosis) and DSR (the same against the best Sharpe luck would produce over that many trials; Bailey & López de Prado 2012, 2014). Report DSR with its trial count. Below 0.95 (Orbie's default bar), say the result is within what luck explains; the Strategies view warns on it before "Make it an agent".bt_walk_forward lists the top in-sample sets per fold). Walk-forward: fit on one window, test on the next unseen one, roll forward, and report only the stitched out-of-sample results. Freeze the split by date before the first run (in strategy.md) and never move it after seeing results. Keep a final holdout untouched until the end. When the walk-forward searched a grid, report its overfit block: PBO (how often the in-sample best set ranks below the median set out of sample, by CSCV; above 0.5 (Orbie's default bar) the search mostly fits noise, and the Strategies view warns before "Make it an agent") and the CPCV path-Sharpe range (wide or negative paths mean the result depends on the period).bt_to_paper with the chosen bt_run id runs the same strategy forward on live prices in its own paper account (bt_paper_runs to check it, bt_paper_stop to end it). For your own code, feed its signals to paper_order (a client_order_id and a short reason on every order). Run it for days to weeks and compare paper fills with what the backtest expected. New paper accounts use the book fill model on Hyperliquid coins (market orders walk the live book; limit orders wait in the queue and pay the maker fee), so a maker strategy (entry_limit_bps) that filled on candles may fill less in paper: that gap is the point of the test. Label it "paper". The paper run is the forward test of the pre-registered hypothesis: judge it by the test written in step 1.Stop on a failed test. If the walk-forward, the DSR bar or the forward (paper) test fails the pre-registered test, report it and stop: don't search for a threshold, window, filter or market that passes, and don't re-run the same idea with tweaks until it does (that is how lucky backtests get promoted). Add it to negative-results.md in the workspace (hypothesis, what was tried, trial count, why it failed) so it isn't retried. Starting over needs a genuinely new hypothesis, written down first, and it counts as more trials.
Report: the pre-registered hypothesis and test, assumptions, the out-of-sample result next to buy-and-hold over the same window, its DSR and trial count (the chat shows bt_run's equity curve, drawdown and trades), a metrics table with costs, what wasn't modelled, and what would break it. It is a simulation on past data: never present in-sample results, or any backtest, as expected returns.
What SKILL.md sets; muted values are Claude Code's defaults
25 skills in this plugin
/airdrop-farmingDecide whether a points program, testnet or "farm the X airdrop" plan is worth it, and run it with one honest wallet: cost/benefit against an uncertain, dilutable reward, protocol risk, the program's sybil rules, wallet hygiene and safe claims. Never splits funds across wallets to look like many users. Use when the user or an agent mentions points, airdrops, farming, testnets, eligibility, or claiming a drop./bridge-riskJudge a cross-chain move before it is sent: prefer canonical and issuer routes, read the bridge LI.FI picked (L2BEAT type and trust model, DefiLlama age, audits and hacks), the destination chain's L2BEAT stage, split large amounts, and track arrival without resending. Use for any bridge (prepare_swap with to_chain, CCTP into Hyperliquid) above a small amount, when the user asks which bridge is safe, or when a bridge review card shows a bridge finding.Other plugins' skills for the same job
/contract-safety-reviewGenerated from the plugin's indexed repository (chaingpt-org/orbie-skills) — no native marketplace selected
npx claudepluginhub p/chaingpt-org-orbie-skills