Use this custom OpenClaw skill when a trader gives a natural-language scalper plan that should be converted into a structured playbook for later execution and watching. Trigger for instructions like '到 81500 把止损挪到 82100', '如果这单止损了就反手', '第一目标到就保本', '给这单加一个管理剧本', '把这句话编译成 playbook', '为这笔单写交易管理规则', or any request to turn short-term trade management prose into structured events and actions. Prefer this skill after scalper-precheck and before scalper-executor when the user is describing rules rather than asking for immediate raw execution. Do not use for direct raw OKX execution without playbook compilation.
This is a custom OpenClaw skill for compiling trader intent into a structured playbook. It is not an OKX official skill.
This skill is usually the second step in the custom scalper workflow, after precheck and before execution or watching.
scalper-precheck first.scalper-executor.scalper-executor when the next step is to place or modify an order.scalper-position-watch when the next step is ongoing monitoring.scalper-precheck when the trader is describing management logic in prose.scalper-executor when rules still need to be compiled.instId, profile, side, and any playbook rules from the user request.references/playbook-schema.md..scalper-runtime/playbooks/.scripts/compile_playbook.py --input-file <path>.scripts/save_playbook.py --input-file <path>.price_gte, price_lte, position_stopped, entry_filled, tp_hit, sl_hit, time_elapsed, sequencemove_stop, move_stop_to_break_even, close_partial, close_all, open_opposite_same_notional, add_same_side_position, notify_onlyid, enabled, onceCompile:
python3 skills/scalper-playbook/scripts/compile_playbook.py \
--input-file .scalper-runtime/playbooks/example-playbook-input.json
Save:
python3 skills/scalper-playbook/scripts/save_playbook.py \
--input-file .scalper-runtime/playbooks/example-playbook-compiled.json
Full demo flow:
python3 skills/scalper-playbook/scripts/run_demo_flow.py \
--profile demo \
--inst-id BTC-USDT-SWAP \
--entry-side sell \
--entry-price 82150 \
--size-usdt 300 \
--trigger-price 81500 \
--new-stop-price 82100 \
--watch-price 81490 \
--include-reverse
references/playbook-schema.mdreferences/runtime-layout.md