Claude-Code-Skill hätte Limit im Papierhandel nicht gesprengt
Ein BotCookery-Rezept beschreibt, wie ein vor Livegang getesteter Claude Code Skill gegen das Verlustlimit eines Papier-Bots lief. Die Ergebnisse stammen vom 2. Dezember 2026.

Posted on Dec 2 • Originally published at botcookery.com
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:
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.
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.
/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. Enter fullscreen mode Exit fullscreen mode /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. Enter fullscreen mode Exit fullscreen mode 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." Enter fullscreen mode Exit fullscreen mode For Codex, which doesn't read disable-model-invocation, add.claude/skills/preflight-live/agents/openai.yaml:
policy: allow_implicit_invocation: false Enter fullscreen mode Exit fullscreen mode.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. Enter fullscreen mode Exit fullscreen mode 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). Enter fullscreen mode Exit fullscreen mode The docs moved too Between Oct 25 and Dec 2:
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 )