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-bot3description: 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.4---5
6# Run a Dawn strategy lifecycle
7
8## Goal
9
10Execute 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.
11
12## When to use
13
14Use this skill when the user asks to:
15- create a strategy from plain-English intent,
16- revise or upload strategy code,
17- launch paper or live strategy runs,
18- monitor run health/positions/logs,
19- stop or debug an active run.
20
21## Install and preflight
22
23Install `dawn` if needed:
24
25```bash
26npm install -g @dawnai/cli
27```
28
29Verify:
30
31```bash
32# Print current Dawn CLI version
33dawn version
34dawn --help
35```
36
37Local source workflow only:
38
39```bash
40cd dawn-cli
41npm install
42npm run build
43./install.sh
44```
45
46## Command map
47
48Auth:
49- `dawn auth login`
50- `dawn auth status`
51- `dawn auth logout`
52
53Account:
54- `dawn account overview`
55- `dawn account fund`
56- `dawn account wallet`
57
58Strategy authoring:
59- `dawn strategy list`
60- `dawn strategy create "<text>"`
61- `dawn strategy status <conversationId>`
62- `dawn strategy revise <conversationId> "<text>"`
63- `dawn strategy rules <conversationId> list`
64- `dawn strategy rules <conversationId> approve <rule-index>`
65- `dawn strategy rules <conversationId> approve-all`
66- `dawn strategy code <conversationId> status`
67- `dawn strategy code <conversationId> generate`
68- `dawn strategy code <conversationId> export [--out <path>] [--json]`
69- `dawn strategy code <conversationId> upload <path-to-file>`
70
71Launch and operations:
72- `dawn strategy launch <conversationId> --budget <usd> [--live] [--hours N]`
73- `dawn strategy positions <conversationId> [--strategy-id <strategyId>]`
74- `dawn run list`
75- `dawn run status <conversationId>`
76- `dawn run logs <conversationId> [--limit N]`
77- `dawn run stop <conversationId>`
78
79## Standard flow
80
811. Authenticate: `dawn auth login`.
822. Confirm funding path: `dawn account fund` (required for live runs).
833. Create strategy: `dawn strategy create "<request>"` and capture `conversationId`.
844. Iterate strategy:
85 - revise prompt (`strategy revise`) and/or upload files (`strategy code ... upload`),
86 - review/approve rules,
87 - generate code,
88 - export code when needed (`--json` for multi-file map).
895. Launch:
90 - paper: `dawn strategy launch <conversationId> --budget 50`
91 - live: `dawn strategy launch <conversationId> --budget 50 --live`
92 - custom duration: add `--hours N`
936. Monitor:
94 - `dawn run status <conversationId>`
95 - `dawn strategy positions <conversationId>`
96 - `dawn run logs <conversationId> --limit N`
977. Stop when requested: `dawn run stop <conversationId>`, then verify status again.
98
99## Monitoring loop
100
101For active monitoring sessions:
1021. Query `dawn run status <conversationId>`.
1032. Record timestamp, `isRunning`, status, and active strategy IDs.
1043. Query `dawn strategy positions <conversationId>` for holdings/PnL.
1054. Query `dawn run logs <conversationId> --limit N` for execution details.
1065. If records look stale or missing, wait briefly and retry once.
107
108## Troubleshooting
109
110- `"Not authenticated. Run: dawn auth login"`: run `dawn auth login` and retry.
111- Auth callback completes but CLI appears stuck: interrupt once and retry login.
112- `"No strategy version found..."`: create/revise/upload strategy code, then relaunch.
113- `"No strategies found for this agent"` on stop: verify `conversationId`, then check `dawn run status`.
114- Live launch fails: re-check funding path with `dawn account fund`.
115
116## Run checklist
117
118```text
119Dawn Strategy Runbook
120- [ ] Preflight complete
121- [ ] Auth complete
122- [ ] Funding path checked (or user confirmed paper-only)
123- [ ] conversationId captured
124- [ ] Strategy code generated/uploaded
125- [ ] Launch run completed (paper/live)
126- [ ] strategyId captured (if launched)
127- [ ] Monitoring snapshots collected
128- [ ] Stop executed (if requested)
129- [ ] Final status verified
130```
131
132## Skills
133
134Individual skills for each command:
135
136| Skill | Purpose |
137|-------|---------|
138| **dawn-auth** | Install, authenticate, check status, logout |
139| **dawn-account** | Account overview, funding, wallet balances |
140| **dawn-strategy-create** | Create a strategy from plain-English prompt |
141| **dawn-strategy-list** | List all strategies |
142| **dawn-strategy-status** | Full strategy status and health |
143| **dawn-strategy-revise** | Iterate on a strategy with revisions |
144| **dawn-strategy-rules** | List, approve, and manage rules |
145| **dawn-strategy-code** | Code generation, status, export, upload |
146| **dawn-strategy-launch** | Launch paper or live runs |
147| **dawn-strategy-positions** | View positions and PnL |
148| **dawn-run-monitor** | List runs, check status, view logs |
149| **dawn-run-stop** | Stop a running strategy |
150
151## Required output
152
153When using this skill, always return:
154- `conversationId`,
155- `strategyId` (if launched),
156- run mode (paper/live),
157- latest monitoring summary,
158- exact next command to run (or the last command run).