Originally published on BotCookery, free build recipes for AI-built trading and prediction-market bots. Written with AI assistance. Every finding and output below is from Dec 2, 2026: the skills were rebuilt from the recipe's prompt and then followed by hand, step by step, against a paper bot's real code, real logs and the venue's live docs. They were not run inside Claude Code, Cursor, Codex or Grok Build, so this shows what the instructions ask for, not how a given model carries them out. Nothing here is financial advice.
We publish three Claude Code project skills for Kalshi and Polymarket US bot repos:
-
/docs-checkchecks every endpoint the bot uses against the official docs. -
/paper-reviewsummarizes a paper-trading log without touching keys. -
/preflight-liveis a go-live checklist that only you can trigger, and it never places orders.
On Dec 2 we rebuilt all three from the prompt we'd published on Oct 25, inside a copy of the Kalshi demo bot from our Claude Code bot recipe (our newest build of it, from Oct 23). We ran that bot in paper mode on live Kalshi demo data with no keys, so it sent no orders. Then we followed each skill by hand and checked the files with skills-ref, the Agent Skills reference validator.
What we found
-
/preflight-livewould have passed a daily loss limit that can never trigger. The bot checksstate.daily_loss_usd(risk.py:44), butrisk.py:24sets it to 0 ("placeholder until fills are wired") and nothing ever updates it. The old checklist only asked for "the lines that enforce" each limit, and that line exists. It now asks for the check and the line that updates the value it compares. A value that never changes is a FAIL. -
/paper-reviewmissed two copies of the bot writing one log. We started a second paper run before the first had stopped (our mistake). For 32 seconds the log alternated between two markets about 2 seconds apart, with a 10-second poll. The old instructions only said "bugs", and the time span and counts looked normal. The skill now flags entries closer together than the poll interval, or for two markets at once. A second live copy of a bot can double your orders. - It also didn't count idle loops. Of 23 entries, 12 were "no ask": the eSoccer market we picked had its only ask taken between our scan and the run. The skill now counts no-action entries by reason and says which time zone the log uses (this bot logs UTC).
- The secrets check broke outside git. Our bot folder isn't a git repo, so
git ls-filesfailed with "fatal: not a git repository". The checklist now marks that UNKNOWN and lists any.envor key files on disk by name only. There were none, just.env.example. - The prompt built thinner skills than the files we publish. A fresh build from the Oct 25 prompt dropped the entry count, the by-market breakdown, the
.gitignorecheck and the closing line. The Dec 2 prompt spells all of them out, so prompt and files now match. -
/docs-checkfound nothing wrong, as it should. The bot makes 3 calls:GET /markets/{ticker},POST /portfolio/events/ordersandDELETE /portfolio/events/orders. All 3 are in Kalshi's current docs, and the order body has all 6 required Create Order (V2) fields. Worth knowing: Kalshi's Cancel All Orders page says that if you omitsubaccount, it can cancel orders in any subaccount. -
skills-refrejected all three files for the Claude Code-only fields (disallowed-tools, anddisable-model-invocationon preflight-live). With those two lines removed, all three validated.
On a clean single run, /paper-review flagged a different bug: the bot proposed the same $0.38 buy on every loop (3 dry-run orders in 21 seconds), and only max_orders_per_minute stopped the 4th and 5th. Nothing in it checks whether it already holds that position.
What the skills reported
/preflight-live on our demo bot, Dec 2 (followed by hand, trimmed):
1. Live switch PASS broker.py:7 BASE_URL = demo host; no prod URL in repo. Keys only enable signed demo calls. 2. Limits FAIL size risk.py:40, exposure risk.py:42 (updated risk.py:28). Daily loss risk.py:44 compares daily_loss_usd, set to 0 at risk.py:24 ("placeholder until fills are wired"), never updated. .venv/bin/python -m pytest: 18 passed 3. Kill switch PASS risk.py:17-18 KILL file or BOT_KILL=1; bot.py:20 broker.py:57 DELETE /portfolio/events/orders 4. Secrets UNKNOWN git ls-files: fatal: not a git repository. .gitignore has .env, .env.*, *.pem, *.key, secrets/. On disk: only .env.example 5. Track record FAIL logs/decisions.jsonl: 14:25:37-14:26:18 UTC, 5 decisions, 0 errors. Under several days. Going live is your call. Start it yourself. /paper-review on the log from our overlapping runs, Dec 2 (followed by hand, trimmed, market tickers shortened):
Span: 2026-12-02 14:21:11 to 14:24:11 UTC (log is UTC), 23 entries Orders: 1 dry run, KXNBASTL-26DEC02TORSAS-..., bid 1 @ $0.38 Fills: none logged. Rejections: none. Blocks: 10 x "kill switch on" (14:23:11-14:24:11) No action: 12 x "no ask" (KXESOCCERGAME-...) P&L: no fills logged, P&L unknown Bug: 14:23:01-14:23:33 entries alternate between the two markets about 2 s apart, under the 10 s poll. Two copies of the bot were running. Paper fills are optimistic and demo markets aren't live markets. The checklist skill
.claude/skills/preflight-live/SKILL.md. disable-model-invocation: true means Claude can't start it on its own; disallowed-tools removes Edit and Write while it runs.
--- name: preflight-live description: Pre-live checklist for this trading bot. Checks only; it never starts trading. disable-model-invocation: true disallowed-tools: Edit Write NotebookEdit --- Mark each item PASS, FAIL or UNKNOWN and show the file:line or command output behind it. Don't run the bot, place or cancel orders, install packages or change files. 1. Live switch: show how live mode turns on (flag, config, base URL, keys). It must take a deliberate step from me, and the production URL must appear only behind that step. 2. Limits: for max order size, max exposure and max daily loss, show the check AND the line that updates the value it compares. A value that is never updated (a placeholder) is FAIL. Run the repo's existing tests in its own environment and show the summary line (UNKNOWN if there are none). 3. Kill switch: show the check that stops new orders and the cancel-all call. On Kalshi that is DELETE /portfolio/events/orders. 4. Secrets: `git ls-files` lists no .env, key or wallet file, and .gitignore covers them. Not a git repo: UNKNOWN, and list any such files on disk by name only. 5. Track record: date range and count of paper or demo decisions in logs/, plus any errors or limit breaches. FAIL if under several days. End with: "Going live is your call. Start it yourself." For Codex, which doesn't read disable-model-invocation, add .claude/skills/preflight-live/agents/openai.yaml:
policy: allow_implicit_invocation: false .claude/skills/paper-review/SKILL.md:
--- name: paper-review description: Summarize the bot's newest paper-trading or demo log in logs/. Use when asked how the bot did, what it would have traded, or whether it hit a limit. disallowed-tools: Edit Write NotebookEdit --- Read the newest file in logs/. Report: - the time span (say which time zone the log uses) and the entry count - would-be orders, fills and rejections, by market - every limit or kill-switch block, with its reason - no-action entries counted by reason (no ask, market closed, price over max) - P&L after fees, only if the log records fills with prices. Otherwise write "no fills logged, P&L unknown". Never estimate fills. - anything that looks like a bug: repeated orders, missing exits, errors, entries closer together than the poll interval, or entries for two markets or configs at once (two copies of the bot running) Say that paper fills are optimistic and demo markets aren't live markets. Don't recommend trades or say the strategy works. Never open .env, *.pem or *.key files. The /docs-check skill and the full prompt that builds all three are on the recipe page.
Built these before Dec 2? Paste this into Claude Code in that repo:
Update the skills in .claude/skills/ (show the diff, then apply): 1. preflight-live, limits: for each limit show the check AND the line that updates the value it compares. A value that is never updated (a placeholder) is FAIL, not PASS. 2. preflight-live, secrets: if this isn't a git repo, mark UNKNOWN and list any .env, key or wallet files on disk by name only. 3. paper-review: say which time zone the log uses; count no-action entries by reason; flag entries closer together than the poll interval, or for two markets/configs at once (two copies running). The docs moved too
Between Oct 25 and Dec 2:
- Claude Code: in the main conversation,
disallowed-toolsnow clears when you send a message after the turn that ran the skill. Skills served by MCP servers ignoreallowed-toolsanddisallowed-tools. - Cursor's skills page now covers the Agents Window, which reads
.agents/skills/and.cursor/skills/and, for compatibility,.claude/skills/and.codex/skills/. Itsnamemust match the folder name. - Grok Build and Codex still match the recipe:
allowed-toolsdoes nothing in Grok Build, and Codex usesallow_implicit_invocation: false.
Run it yourself
- Open your bot repo in a terminal and start Claude Code with
claude. - Paste the prompt from the recipe page, or copy the three files into
.claude/skills/. - Ask "What skills are available?" or type
/and look fordocs-check,paper-reviewandpreflight-live. A brand-new top-level skills folder needs/reload-skills. - Run
/docs-checkbefore your next API change. - Run
/paper-reviewafter a day of paper or demo trading. - Run
/preflight-liveonly when you're considering live mode. Expect FAILs early on: ours failed the track-record check after 41 seconds of demo logs, and the daily loss check because it was a placeholder. That's the point. - Commit
.claude/skills/so the skills travel with the repo.
What this is and isn't
The recipe page has no "verified working" line for this one. We followed the skills by hand; we didn't watch a model run them in a live session. If you run them in Claude Code, Cursor, Codex or Grok Build, compare what you get with the samples above.
Skills are instructions, not enforcement. disallowed-tools works only in Claude Code and only until your next message, and "never open .env" in a skill is a request. Put rules that must hold every time in hooks and deny rules, and keep order placement in your bot's code behind its own live gate and limits. Keep the bot on Kalshi demo or local paper mode.
The full recipe (all three skills, the prompt, both follow-up prompts, the Oct 25 findings and every doc we checked) is at botcookery.com/recipes/claude-code-skills-trading-bots.
API changes and new field notes: @botcookery on X (https://x.com/botcookery)