Run a Dawn strategy lifecycle
Goal
Execute a complete dawn strategy workflow: install/check CLI, authenticate, prepare funding, create and iterate strategy code, launch paper/live runs, monitor status, and stop safely when requested.
When to use
Use this skill when the user asks to:
- create a strategy from plain-English intent,
- revise or upload strategy code,
- launch paper or live strategy runs,
- monitor run health/positions/logs,
- stop or debug an active run.
Install and preflight
Install dawn if needed:
npm install -g @dawnai/cli
Verify:
# Print current Dawn CLI version
dawn version
dawn --help
Local source workflow only:
cd dawn-cli
npm install
npm run build
./install.sh
Command map
Auth:
dawn auth login
dawn auth status
dawn auth logout
Account:
dawn account overview
dawn account fund
dawn account wallet
Strategy authoring:
dawn strategy list
dawn strategy create "<text>"
dawn strategy status <conversationId>
dawn strategy revise <conversationId> "<text>"
dawn strategy rules <conversationId> list
dawn strategy rules <conversationId> approve <rule-index>
dawn strategy rules <conversationId> approve-all
dawn strategy code <conversationId> status
dawn strategy code <conversationId> generate
dawn strategy code <conversationId> export [--out <path>] [--json]
dawn strategy code <conversationId> upload <path-to-file>
Launch and operations:
dawn strategy launch <conversationId> --budget <usd> [--live] [--hours N]
dawn strategy positions <conversationId> [--strategy-id <strategyId>]
dawn run list
dawn run status <conversationId>
dawn run logs <conversationId> [--limit N]
dawn run stop <conversationId>
Standard flow
- Authenticate:
dawn auth login.
- Confirm funding path:
dawn account fund (required for live runs).
- Create strategy:
dawn strategy create "<request>" and capture conversationId.
- Iterate strategy:
- revise prompt (
strategy revise) and/or upload files (strategy code ... upload),
- review/approve rules,
- generate code,
- export code when needed (
--json for multi-file map).
- Launch:
- paper:
dawn strategy launch <conversationId> --budget 50
- live:
dawn strategy launch <conversationId> --budget 50 --live
- custom duration: add
--hours N
- Monitor:
dawn run status <conversationId>
dawn strategy positions <conversationId>
dawn run logs <conversationId> --limit N
- Stop when requested:
dawn run stop <conversationId>, then verify status again.
Monitoring loop
For active monitoring sessions:
- Query
dawn run status <conversationId>.
- Record timestamp,
isRunning, status, and active strategy IDs.
- Query
dawn strategy positions <conversationId> for holdings/PnL.
- Query
dawn run logs <conversationId> --limit N for execution details.
- If records look stale or missing, wait briefly and retry once.
Troubleshooting
"Not authenticated. Run: dawn auth login": run dawn auth login and retry.
- Auth callback completes but CLI appears stuck: interrupt once and retry login.
"No strategy version found...": create/revise/upload strategy code, then relaunch.
"No strategies found for this agent" on stop: verify conversationId, then check dawn run status.
- Live launch fails: re-check funding path with
dawn account fund.
Run checklist
Dawn Strategy Runbook
- [ ] Preflight complete
- [ ] Auth complete
- [ ] Funding path checked (or user confirmed paper-only)
- [ ] conversationId captured
- [ ] Strategy code generated/uploaded
- [ ] Launch run completed (paper/live)
- [ ] strategyId captured (if launched)
- [ ] Monitoring snapshots collected
- [ ] Stop executed (if requested)
- [ ] Final status verified
Skills
Individual skills for each command:
| Skill |
Purpose |
| dawn-auth |
Install, authenticate, check status, logout |
| dawn-account |
Account overview, funding, wallet balances |
| dawn-strategy-create |
Create a strategy from plain-English prompt |
| dawn-strategy-list |
List all strategies |
| dawn-strategy-status |
Full strategy status and health |
| dawn-strategy-revise |
Iterate on a strategy with revisions |
| dawn-strategy-rules |
List, approve, and manage rules |
| dawn-strategy-code |
Code generation, status, export, upload |
| dawn-strategy-launch |
Launch paper or live runs |
| dawn-strategy-positions |
View positions and PnL |
| dawn-run-monitor |
List runs, check status, view logs |
| dawn-run-stop |
Stop a running strategy |
Required output
When using this skill, always return:
conversationId,
strategyId (if launched),
- run mode (paper/live),
- latest monitoring summary,
- exact next command to run (or the last command run).
1---
2name: prediction-market-bot
3description: Runs the full Dawn CLI strategy lifecycle from authentication and funding through strategy creation, launch, monitoring, and termination. Use when the user asks to create, launch, monitor, debug, or operate a strategy/agent using dawn-cli commands.
4tags: [trading, strategy, operations, prediction-market]
5metadata:
6 source: https://skillmd.com/skills/modbender/prediction-market-bot
7 openclaw:
8 emoji: "🌅"
9 homepage: https://dawn.ai
10 requires:
11 bins: [dawn]
12 install:
13 - kind: node
14 package: "@dawnai/cli"
15 bins: [dawn]
16---
17
18# Run a Dawn strategy lifecycle
19
20## Goal
21
22Execute a complete `dawn` strategy workflow: install/check CLI, authenticate, prepare funding, create and iterate strategy code, launch paper/live runs, monitor status, and stop safely when requested.
23
24## When to use
25
26Use this skill when the user asks to:
27- create a strategy from plain-English intent,
28- revise or upload strategy code,
29- launch paper or live strategy runs,
30- monitor run health/positions/logs,
31- stop or debug an active run.
32
33## Install and preflight
34
35Install `dawn` if needed:
36
37```bash
38npm install -g @dawnai/cli
39```
40
41Verify:
42
43```bash
44# Print current Dawn CLI version
45dawn version
46dawn --help
47```
48
49Local source workflow only:
50
51```bash
52cd dawn-cli
53npm install
54npm run build
55./install.sh
56```
57
58## Command map
59
60Auth:
61- `dawn auth login`
62- `dawn auth status`
63- `dawn auth logout`
64
65Account:
66- `dawn account overview`
67- `dawn account fund`
68- `dawn account wallet`
69
70Strategy authoring:
71- `dawn strategy list`
72- `dawn strategy create "<text>"`
73- `dawn strategy status <conversationId>`
74- `dawn strategy revise <conversationId> "<text>"`
75- `dawn strategy rules <conversationId> list`
76- `dawn strategy rules <conversationId> approve <rule-index>`
77- `dawn strategy rules <conversationId> approve-all`
78- `dawn strategy code <conversationId> status`
79- `dawn strategy code <conversationId> generate`
80- `dawn strategy code <conversationId> export [--out <path>] [--json]`
81- `dawn strategy code <conversationId> upload <path-to-file>`
82
83Launch and operations:
84- `dawn strategy launch <conversationId> --budget <usd> [--live] [--hours N]`
85- `dawn strategy positions <conversationId> [--strategy-id <strategyId>]`
86- `dawn run list`
87- `dawn run status <conversationId>`
88- `dawn run logs <conversationId> [--limit N]`
89- `dawn run stop <conversationId>`
90
91## Standard flow
92
931. Authenticate: `dawn auth login`.
942. Confirm funding path: `dawn account fund` (required for live runs).
953. Create strategy: `dawn strategy create "<request>"` and capture `conversationId`.
964. Iterate strategy:
97 - revise prompt (`strategy revise`) and/or upload files (`strategy code ... upload`),
98 - review/approve rules,
99 - generate code,
100 - export code when needed (`--json` for multi-file map).
1015. Launch:
102 - paper: `dawn strategy launch <conversationId> --budget 50`
103 - live: `dawn strategy launch <conversationId> --budget 50 --live`
104 - custom duration: add `--hours N`
1056. Monitor:
106 - `dawn run status <conversationId>`
107 - `dawn strategy positions <conversationId>`
108 - `dawn run logs <conversationId> --limit N`
1097. Stop when requested: `dawn run stop <conversationId>`, then verify status again.
110
111## Monitoring loop
112
113For active monitoring sessions:
1141. Query `dawn run status <conversationId>`.
1152. Record timestamp, `isRunning`, status, and active strategy IDs.
1163. Query `dawn strategy positions <conversationId>` for holdings/PnL.
1174. Query `dawn run logs <conversationId> --limit N` for execution details.
1185. If records look stale or missing, wait briefly and retry once.
119
120## Troubleshooting
121
122- `"Not authenticated. Run: dawn auth login"`: run `dawn auth login` and retry.
123- Auth callback completes but CLI appears stuck: interrupt once and retry login.
124- `"No strategy version found..."`: create/revise/upload strategy code, then relaunch.
125- `"No strategies found for this agent"` on stop: verify `conversationId`, then check `dawn run status`.
126- Live launch fails: re-check funding path with `dawn account fund`.
127
128## Run checklist
129
130```text
131Dawn Strategy Runbook
132- [ ] Preflight complete
133- [ ] Auth complete
134- [ ] Funding path checked (or user confirmed paper-only)
135- [ ] conversationId captured
136- [ ] Strategy code generated/uploaded
137- [ ] Launch run completed (paper/live)
138- [ ] strategyId captured (if launched)
139- [ ] Monitoring snapshots collected
140- [ ] Stop executed (if requested)
141- [ ] Final status verified
142```
143
144## Skills
145
146Individual skills for each command:
147
148| Skill | Purpose |
149|-------|---------|
150| **dawn-auth** | Install, authenticate, check status, logout |
151| **dawn-account** | Account overview, funding, wallet balances |
152| **dawn-strategy-create** | Create a strategy from plain-English prompt |
153| **dawn-strategy-list** | List all strategies |
154| **dawn-strategy-status** | Full strategy status and health |
155| **dawn-strategy-revise** | Iterate on a strategy with revisions |
156| **dawn-strategy-rules** | List, approve, and manage rules |
157| **dawn-strategy-code** | Code generation, status, export, upload |
158| **dawn-strategy-launch** | Launch paper or live runs |
159| **dawn-strategy-positions** | View positions and PnL |
160| **dawn-run-monitor** | List runs, check status, view logs |
161| **dawn-run-stop** | Stop a running strategy |
162
163## Required output
164
165When using this skill, always return:
166- `conversationId`,
167- `strategyId` (if launched),
168- run mode (paper/live),
169- latest monitoring summary,
170- exact next command to run (or the last command run).