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---56# Run a Dawn strategy lifecycle78## Goal910Execute 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.1112## When to use1314Use 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.2021## Install and preflight2223Install `dawn` if needed:2425```bash26npm install -g @dawnai/cli27```2829Verify:3031```bash32# Print current Dawn CLI version33dawn version34dawn --help35```3637Local source workflow only:3839```bash40cd dawn-cli41npm install42npm run build43./install.sh44```4546## Command map4748Auth:49- `dawn auth login`50- `dawn auth status`51- `dawn auth logout`5253Account:54- `dawn account overview`55- `dawn account fund`56- `dawn account wallet`5758Strategy 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>`7071Launch 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>`7879## Standard flow80811. 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.9899## Monitoring loop100101For 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.107108## Troubleshooting109110- `"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`.115116## Run checklist117118```text119Dawn Strategy Runbook120- [ ] Preflight complete121- [ ] Auth complete122- [ ] Funding path checked (or user confirmed paper-only)123- [ ] conversationId captured124- [ ] Strategy code generated/uploaded125- [ ] Launch run completed (paper/live)126- [ ] strategyId captured (if launched)127- [ ] Monitoring snapshots collected128- [ ] Stop executed (if requested)129- [ ] Final status verified130```131132## Skills133134Individual skills for each command:135136| 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 |150151## Required output152153When 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).