
Argent Create Flow
Record verified sequences of argent MCP tool calls as YAML flows in .argent/flows/ and replay them with a single flow-execute command.
Overview
Argent Create Flow is an agent skill for the Build phase that records live MCP tool sequences into YAML flows under .argent/flows/ for one-command replay.
Install
npx skills add https://github.com/software-mansion/argent --skill argent-create-flowWhat is this skill?
- Six flow tools: flow-start-recording, flow-add-step, flow-add-echo, flow-finish-recording, flow-read-prerequisite, flow-
- Each step runs live on add; only successful calls are persisted to .argent/flows/*.yaml
- flow-add-echo adds replay labels; executionPrerequisite captured at record start
- Replay finished flows by name without re-choreographing individual MCP calls
- 6 documented flow MCP tools in the tool overview table
Adoption & trust: 1.9k installs on skills.sh; 1.2k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You repeat the same argent device or debugger MCP calls and want a verified, replayable script instead of fragile chat history.
Who is it for?
Solo React Native builders on argent who automate repeatable device actions and want steps validated at record time.
Skip if: One-off debugging where CDP inspection beats scripting, or projects not using argent MCP tools.
When should I use this skill?
When the user asks to create, record, or build a flow, or to script a sequence of device actions.
What do I get? / Deliverables
Your agent finishes a named YAML flow with prerequisites documented and replays it via flow-execute without re-recording each step.
- Saved flow YAML under .argent/flows/
- Documented executionPrerequisite and echo labels for replay
Recommended Skills
Journey fit
Flow recording is agent and device automation infrastructure built alongside the product—canonical shelf is Build/agent-tooling. Agent-tooling covers reusable scripted capabilities (flows) that compress repeated MCP interactions for mobile QA and demos.
How it compares
Use for recorded MCP replay flows, not for Metro CDP-only debugging sessions.
Common Questions / FAQ
Who is argent-create-flow for?
Indie developers using argent MCP who want to script and replay device action sequences from the repo.
When should I use argent-create-flow?
During build agent-tooling when the user asks to create, record, or build a flow, or to script a sequence of device actions for later flow-execute.
Is argent-create-flow safe to install?
Review the Security Audits panel on this Prism page; recorded flows execute real MCP tools against connected devices—treat prerequisites and device targets carefully.
SKILL.md
READMESKILL.md - Argent Create Flow
## 1. Overview A flow is a recorded sequence of MCP tool calls saved to a `.yaml` file in the `.argent/flows/` directory. Each step is **executed live** as you add it, so you verify it works before it becomes part of the flow. Replay a finished flow with `flow-execute`. ## 2. Tools | Tool | Purpose | | ------------------------ | -------------------------------------------------------------------------- | | `flow-start-recording` | Start recording — takes a name and executionPrerequisite, creates the file | | `flow-add-step` | Execute a tool call live and record it if it succeeds | | `flow-add-echo` | Add a label/comment that prints during replay | | `flow-finish-recording` | Stop recording and get a summary | | `flow-read-prerequisite` | Read a flow's execution prerequisite without running it | | `flow-execute` | Replay a saved flow by name | ## 3. Workflow ### Recording 1. **Start**: Call `flow-start-recording` with a descriptive name, the absolute `project_root`, and an `executionPrerequisite` describing the required app state before running the flow (e.g. "App on home screen after a fresh reload"). `project_root` is stored for the session — you do **not** need to pass it again to subsequent tools. 2. **Build step-by-step**: For each action, call `flow-add-step` with the tool name and args. The tool runs immediately — check the result before moving on. 3. **Add labels**: Use `flow-add-echo` between steps to describe what each section does. 4. **Finish**: Call `flow-finish-recording` to stop recording. It returns the file path where the flow was saved and a summary of all steps. You can edit the `.yaml` file directly afterwards to remove, reorder, or tweak steps. Every tool during recording returns the current flow file contents so you can track what has been recorded. ### Replaying Call `flow-execute` with the flow name. If the flow has an execution prerequisite: 1. The tool returns a **notice** with the prerequisite text instead of running. It asks you to verify the prerequisite is met and call `flow-execute` again with `prerequisiteAcknowledged: true`. 2. You can also call `flow-read-prerequisite` beforehand to inspect the prerequisite without triggering a run. 3. Once you pass `prerequisiteAcknowledged: true`, the flow runs all steps in order and returns every tool call result (including screenshots) merged into a single response. If the flow has no prerequisite, it runs immediately without needing acknowledgment. ## 4. flow-add-step Usage The `command` parameter is the MCP tool name. The `args` parameter is a **JSON string** (not an object): ``` command: "launch-app" args: "{\"udid\": \"<UDID>\", \"bundleId\": \"com.apple.Preferences\"}" ``` ``` command: "gesture-tap" args: "{\"udid\": \"<UDID>\", \"x\": 0.5, \"y\": 0.35}" ``` ``` command: "screenshot" args: "{\"udid\": \"<UDID>\"}" ``` For tools with no arguments, omit `args` entirely. ## 5. Important Rules - **Every step runs live.** You will see the real tool result (including screenshots). Use this to verify the step worked before continuing. - **Only successful steps are recorded.** If a tool call fails, nothing is written to the flow file — fix the issue and try again. - **Pass `project_root` only to `flow-start-recording`.** It is stored for the session and automatically used by all subsequent flow tools. An error is returned if the path is not absolute. - **You do NOT need to pass a flow name** to `flow-add-step`, `flo