running-flow
Installation
SKILL.md
Running a Robomotion Flow
Run a flow on a robot, watch the agent-mode event stream, react to failures. Four moving parts:
- Pre-flight —
robomotion validate <flow-dir>catches pspec/schema errors locally in <1s before you ever submit. Cheap; always do it first. - Robot process —
robomotion-deskbot connectkeeps the robot online. One long-lived process. - Trigger —
robomotion run <flow-dir>builds locally, submits, and streams the event log. - Observation —
runtails the JSONL session log; events are bracketed by{"event":"agent_mode","status":"start"}…{"event":"agent_mode","status":"end"}.
Step 1 — Validate (mandatory pre-flight)
robomotion validate <flow-dir> # exit 0 = pspec-clean, 1 = errors on stderr
Catches every "wrong property name", "non-existent node type", "invalid port" before any robot-side work. The CLI rebuilds + validates without touching *.designer.ts or emitting JSON. Don't skip it — diagnosing a pspec error from a node_error event in the run log is much slower than reading the validate output.
If validate fails: read stderr, fix main.ts, re-run validate. Loop until exit 0, then proceed.