argent-create-flow
Record a reusable flow (scripted sequence of MCP tool calls) that can be replayed later with a single command. Use when the user asks to create, record, or…
от rami-maalouf★ 26 звёзд на GitHub
Установить argent-create-flow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Overview
A flow is a sequence of steps saved to a .yaml file in the .argent/flows/ directory. Each recorded 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, or — for an e2e flow — headlessly with argent flow run <name>.
Flows store no device id: the runner binds a device (the single booted one, or pass device/platform). A recorded coordinate gesture-tap is captured as a portable tap: { selector } step whenever the tapped element has stable text/identifier.
Two flow types
- e2e — begins with a
launch:step, which starts that app from scratch (terminate + relaunch), so the flow controls its own start state. NoexecutionPrerequisite. Mayrun:fragments; cannot itself be arun:target. Record one by adding arestart-appof the app under test as the first step — it is captured as thelaunchstep. - fragment — doesn't begin with a launch; runs against the device's current state. May declare an
executionPrerequisite(a documented entry-state contract). Invoked from other flows via arun:step, or directly by you at any time.
Both run via argent flow run <name> — a fragment simply runs against whatever is on screen (its prerequisite is printed as a reminder). Only e2e flows are meaningful CI/suite entries, since only they give a deterministic verdict from a clean start.
Step directives
Beyond raw tool: steps and echo:, flows support declarative directives interpreted by the runner (they are not agent-callable tools). Every directive hard-stops the flow on failure; later steps are reported skip.
| Directive | YAML | Meaning |
|---|---|---|
launch |
- launch: com.acme.app or - launch: { ios: …, android: … } |
start the app from scratch (terminate + relaunch) and wait until ready |
tap |
- tap: Login, - tap: { x: 0.5, y: 0.57 }, - tap: { on: Login, times: 2 } |
tap by selector (auto-waits) or raw point; times: 2 = double-tap |
long-press |
- long-press: Row 3 or - long-press: { on: <sel>, duration: 1200 } |
press and hold an element (default 800ms; Chromium: mouse press-hold) |
type |
- type: { into: email, text: "[email protected]" } |
focus a field, type, then press Enter to submit + dismiss the keyboard |
scroll-to |
- scroll-to: "Order #1234" (scrolls down) or - scroll-to: { target: …, direction: right, within: … } |
momentum-free scroll until the target is visible |
await |
- await: { visible: Home } |
wait for a UI condition |
wait |
- wait: 500 |
pause for a fixed number of milliseconds (last resort — prefer await) |
assert |
- assert: { visible: Welcome } |
check a condition, hard-fail if it never holds |
snapshot |
- snapshot: home or - snapshot: { name: home, maxMismatch: 0.5 } |
diff a screenshot against a stored baseline |
run |
- run: login |
execute a fragment's steps inline |
Selectors
A selector is { text?, id?, role? } (all-must-match; text/role are case-insensitive substrings, id matches the element's testID / accessibilityIdentifier / resource-id exactly, case-insensitive, also accepting the unqualified Android resource-id name — submit matches com.example.app:id/submit) — the same semantics await-ui-element uses, though that tool spells the id field identifier (flow YAML also accepts identifier as an alias for id, but id is the canonical spelling and what the recorder writes). A bare string is a loose selector: it resolves identifier-first, then falls back to text (label/value), so tap: Login matches a testID="Login" or, failing that, visible text "Login" — no need to know which. Loose fallback applies uniformly to every selector slot (tap, type.into, await, assert, scroll-to). Use the map form to be strict: { id: submit-btn } (identi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл argent-create-flow?
Record a reusable flow (scripted sequence of MCP tool calls) that can be replayed later with a single command. Use when the user asks to create, record, or build a flow, or to script a sequence of device actions. Also used proactively, without an explicit request, when a multi-step interaction sequence is about to be repeated (re-profiling, re-testing, or a complex path worth saving).
Как установить скилл argent-create-flow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл argent-create-flow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…