reliable-mutations
Qué hace
Esta skill explica cómo un agente debe hacer cambios en la base de datos para que se guarden de verdad, usando una sola llamada por lotes y comprobando después el resultado. Es para desarrolladores y para cualquiera que espere que se guarden muchos elementos.
Cuándo usarla
- ✓Cuando el agente debe guardar o actualizar muchos elementos a la vez.
- ✓Cuando una tarea larga cambia datos de la app y debe terminar con todo guardado.
- ✓Cuando un agente informa de éxito y necesitas pruebas de que los datos se guardaron de verdad.
Link de la skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/reliable-mutations/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Actualiza todos estos elementos de una vez y después confirma que se guardaron de verdad.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
En lugar de muchos guardados pequeños que pueden detenerse a mitad, el agente envía el conjunto completo en una sola acción y luego comprueba los datos almacenados, informando de recuentos o identificadores como prueba.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Reliable Mutations
Rule
Make a change in one atomic call when the action supports it, then verify the persisted end state and report concrete proof (counts/ids). Never drive a multi-step change by looping many small writes, and never report success from a tool ✓ alone.
Why
Hosted foreground agent runs have a short soft budget so they can hand off cleanly under synchronous serverless walls. Durable background runs get a much longer budget, but they still should not rely on loops of many small writes: continuations can retry the same intent and leave partial state if each item is committed separately. One atomic call commits or fails as a unit; verification turns a hopeful ✓ into a fact.
How
- Prefer a single atomic call. If an action accepts the whole set (add many, set all, bulk update), pass the full batch in one call so it commits atomically. Check the action surface for a batch/plural form before reaching for a loop.
- Do not loop many small writes under any run budget. A sequence of N
per-item writes can still leave partial or no state when a foreground run
hands off, a background run continues, or an upstream provider fails. If no
batch action exists, that is a gap in the action layer — add or extend an
action that accepts the batch (see the
actionsskill) rather than papering over it with a loop. - Verify the end state after writing. Re-read the data (a list/read action,
a count query) and confirm the result matches intent — the right number of
rows, the expected ids/fields. Do this before you tell the user it worked,
and include the relevant verification expectation in the app's
AGENTS.md. - Report proof-of-done, not vibes. State concrete evidence: "saved 12 of 12 panels (ids …)" or "updated 5 rows". Do not infer success from the presence of a tool ✓ on an individual call.
- On a time-budget cutoff, fail loud. If the turn is cut before the change is fully committed and verified, say so explicitly and report what did persist (M of N) and what remains. Never round a partial or unverified write up to "done".
Don't
- Don't loop
for each item: write(item)for a large set in a single hosted turn. - Don't claim completion because every tool call returned ✓ — a ✓ on an aborted chunk does not mean the row was committed.
- Don't silently shrink the scope ("I added a few of them") and present it as the finished task.
- Don't try to "fix" this by asking for a longer run timeout — the budget is correct; restructure the write instead.
Related
actions— define or extend a batch/atomic action when only per-item writes exist.storing-data— where app data lives and how reads/writes are scoped.performance— avoid query waterfalls when verifying end state.- Design doc:
packages/core/docs/design/durable-agent-runs.md— the real ceiling fix (checkpointed and durable runs); this skill is the agent-facing mitigation that reduces how often the ceiling is hit.
Preguntas frecuentes
¿Qué pasa si la app no tiene una acción por lotes?
La skill indica que se añada una en lugar de ejecutar un bucle de escrituras pequeñas.
¿Por qué no fiarse del mensaje de éxito?
Un mensaje de éxito puede aparecer aunque parte de la escritura haya fallado, así que la skill pide comprobar los datos almacenados.
¿Se aplica también a las tareas en segundo plano?
Sí. Las ejecuciones en segundo plano pueden reintentarse, así que se prefiere una sola llamada de todo o nada.
Detalles
Descripción original del autor
How the agent must perform writes so they actually persist under the hosted foreground run budget and long-running background handoffs. Use whenever you create, update, delete, or batch-write app data — especially "do this for many items" loops, or any task where the user expects N things to end up saved.
repo: BuilderIO/agent-native
Popularidad
- Estrellas en GitHub
- 7,6 mil
- Posición en el ranking
- #13177
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
design-exploration
7,6 milAyuda a tu agente a explorar varias direcciones de diseño de interfaces una al lado de otra, dejar que elijas una y después afinar el diseño elegido.
visual-edit
7,6 milAyuda a tu agente a abrir una aplicación local en marcha en un editor visual, para que reviséis y editéis juntos sus pantallas reales.
turn-into-app
7,6 milConvierte un flujo de trabajo, una hoja de cálculo o un proyecto en una aplicación visual pulida, con pantallas llenas de datos y un agente que trabaja tras los controles.
visual-plan
7,6 milConvierte un plan escrito en texto plano en un plan visual interactivo, con diagramas, mapas de archivos, fragmentos de código y preguntas abiertas.
Skills parecidas
api-connector-builder
280 milHace que tu agente cree nuevas conexiones de API siguiendo el patrón existente. Úsalo para añadir una integración más sin inventar otra forma de hacer las cosas.
api-design
280 milAyuda a tu agente a diseñar APIs REST según las buenas prácticas. Es útil para definir cómo se comunican las APIs, cómo se muestran los errores y cómo organizar los datos.
backend-patterns
280 milAyuda a tu agente con patrones de arquitectura del lado del servidor y optimización de bases de datos. Es útil para crear o revisar código que se ejecuta en el servidor.