# Argent Create Flow > Crea, graba, edita, repite o repara flujos YAML reutilizables de Argent. Úsalo para grabar/repetir un recorrido de dispositivo, montar perfiles o comparaciones A/B, o antes de repetir tres o más interacciones. Fuente: https://skillsagentes.com/skills/software-mansion/argent/argent-create-flow Markdown: https://skillsagentes.com/skills/software-mansion/argent/argent-create-flow.md Repositorio: https://github.com/software-mansion/argent Autor: software-mansion Licencia: Apache-2.0 Actualizado: ayer Coste de contexto: 112 tok instalada, 1k tok al activarse, 14.7k tok con todos los archivos del bundle Bundle: 4 archivos, 57 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add software-mansion/argent --skill argent-create-flow --agent claude-code # Cursor npx -y skills add software-mansion/argent --skill argent-create-flow --agent cursor # Codex npx -y skills add software-mansion/argent --skill argent-create-flow --agent codex # Gemini CLI npx -y skills add software-mansion/argent --skill argent-create-flow --agent gemini # Windsurf npx -y skills add software-mansion/argent --skill argent-create-flow --agent windsurf # Cline npx -y skills add software-mansion/argent --skill argent-create-flow --agent cline ``` ## Qué hace - Graba un flujo Argent (.argent/flows/.yaml) como secuencia reproducible de acciones en el dispositivo - Exige grabar el primer recorrido en vivo, con comprobaciones de UI capturadas en el momento, nunca reconstruidas - Usa selectores semánticos estables (id, texto, etiqueta de accesibilidad) en vez de coordenadas crudas - Distingue flujos e2e (con launch:) de flujos fragment (con executionPrerequisite) - Repara flujos que fallan al repetirlos, inspeccionando la primera divergencia y corrigiendo la unidad mínima ## Cuándo usarla - El usuario pide grabar o repetir un recorrido repetible en el dispositivo - Hay que montar perfiles de rendimiento o una comparación A/B - Se va a invocar el motor de creación detrás de argent-qa-flows - Se van a repetir tres o más interacciones ## Cuándo no - Para comprobaciones puntuales de UI, usa argent-test-ui-flow - Para tests de regresión con criterios de aceptación, usa argent-qa-flows - Para grabar vídeo de pantalla, usa argent-screen-recording ## Qué la activa - "Graba un flujo para repetir el login en el emulador" - "Crea un flujo Argent para comparar el rendimiento antes y después del cambio" - "Repara el flujo que falló al repetirlo" ## Archivos - SKILL.md — 4 KB - references/flow-yaml.md — 18 KB - references/live-authoring.md — 21 KB - references/reliability-and-recovery.md — 14 KB ## SKILL.md Reproducido tal cual desde software-mansion/argent bajo Apache-2.0. Esta sección es el documento original y está en inglés. # Create an Argent flow An Argent flow is a replayable sequence in `.argent/flows/.yaml`. For a saved QA test case, ticket, or acceptance criterion, load `argent-qa-flows` first. It adds deterministic setup, acceptance evidence, and two-pass proof. ## Read the relevant reference - Before creating or changing a flow, read [Live authoring](references/live-authoring.md) completely. - When polishing, composing, or manually reviewing YAML, read [Flow YAML](references/flow-yaml.md). For Vega, read its platform limits before recording remote or keyboard tools. - On capture warnings, raw coordinates, unavailable trees, mistimed transitions, overlays, or replay failures, read [Reliability and recovery](references/reliability-and-recovery.md). ## Non-negotiable rules 1. **Record the first walkthrough.** Start the recorder before the first launch or in-app action. Do not reconstruct a rehearsed path. 2. **Record checks when their states appear.** Record `await-ui-element` live, then convert it during polish. An echo records intent or diagnostic context, not app behavior or a verdict. A screenshot is human evidence, not an executable verdict. For absence, record the same selector as `visible`, perform the removing action, then record it as `hidden`. 3. **Use semantic targets.** Prefer a strict id, then stable text or an accessibility label. Use `scroll-to` for off-screen elements. Resolve every raw-point warning immediately through the [coordinate fallback gate](references/reliability-and-recovery.md#coordinate-fallback-gate). 4. **Prove every screen change.** Record a destination-only identity check. During polish, follow it with `await: { idle: true }`. Stillness does not prove identity, and `idle` can pass with a warning. 5. **Polish only executed behavior.** Convert recorded steps without changing their meaning. Record any missing action or structural check live. The only unrecorded insertions are a planned `snapshot:`, a navigation `await: { idle: true }`, and the documented Chromium packaging `launch:`. 6. **Replay the final YAML end to end.** A normal flow needs one uninterrupted full pass. `argent-qa-flows` requires two consecutive passes. ### Stable selectors A stable selector is fixed by app code and survives account, data, time, count, order, and every locale and environment the flow supports. Prefer ids such as `settings-screen`. Do not gate on values such as `Today`, `Item 4`, usernames, counters, or timestamps. ### Flow-only selector scopes During polish, use `within`, `after`, and `next` to disambiguate repeated elements. Read [Flow YAML: Relational scopes](references/flow-yaml.md#relational-scopes) for their frame-based semantics and failure cases. ## Workflow 1. Choose the flow type: - **e2e:** the first non-echo step is `launch:`. The flow controls process start. - **fragment:** there is no leading launch. Declare a precise `executionPrerequisite`. 2. Follow [Live authoring](references/live-authoring.md): start, record one verified step at a time, finish, polish, audit, and replay. 3. Report the file, replay command, result, prerequisite or side effects, and every coordinate or raw-gesture exception. ## Proactive recording Before repeating three or more interactions, tell the user and start a recording. Record that run and replay it afterward. A completed path cannot be recorded retroactively. ## Repair When replay fails, follow [Reliability and recovery](references/reliability-and-recovery.md). Inspect the first divergence, correct the smallest justified unit, audit, and replay the full flow. Stop after two unsuccessful correction cycles. Never weaken a requested check to obtain a pass. ## Dónde encaja - Categoría: [Testing y QA](https://skillsagentes.com/categorias/testing-qa.md) — Flujos de testing unitario, de integración y end-to-end. - Creador: [software-mansion](https://skillsagentes.com/creators/software-mansion.md) — 0 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Argent Device Interact](https://skillsagentes.com/skills/software-mansion/argent/argent-device-interact.md): Interactúa con un simulador iOS, un emulador Android o una app Chromium (CDP) con las herramientas MCP de argent: toques, gestos, scroll, texto, botones físicos, lanzar apps, abrir URLs, capturas y esperas de elementos. - [Argent Test Ui Flow](https://skillsagentes.com/skills/software-mansion/argent/argent-test-ui-flow.md): Prueba de forma autónoma la interfaz de una app (iOS o Android) con bucles de interactuar-capturar-verificar usando las herramientas MCP de argent, para flujos de UI, login, navegación o pruebas end-to-end. - [Argent Metro Debugger](https://skillsagentes.com/skills/software-mansion/argent/argent-metro-debugger.md): Depura un runtime JS vía CDP con las herramientas de debugger de argent. La vía principal es React Native por Metro (iOS/Android/Vega); un subconjunto también controla el renderer de una app Chromium (CDP). - [Argent Qa Flows](https://skillsagentes.com/skills/software-mansion/argent/argent-qa-flows.md): Crea tests E2E de regresión QA reproducibles como flujos Argent a partir de casos de prueba, tickets o criterios de aceptación, con configuración determinista y dos pasadas consecutivas exitosas. Cubre iOS, Android, Chromium y Vega. - [Argent React Native App Workflow](https://skillsagentes.com/skills/software-mansion/argent/argent-react-native-app-workflow.md): Flujos paso a paso para desarrollar o depurar apps React Native en simulador iOS o emulador Android. Úsalo para arrancar la app, depurar Metro, arreglar builds, diagnosticar errores en tiempo de ejecución o ejecutar tests. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)