reliable-mutations
O que ela faz
Esta skill explica como um agente deve fazer alterações no banco de dados para que elas realmente se mantenham, usando uma única chamada em lote e depois verificando o resultado. É para desenvolvedores e para qualquer pessoa que espere que muitos itens sejam salvos.
Quando usar
- ✓Quando o agente precisa salvar ou atualizar muitos itens de uma vez.
- ✓Quando uma tarefa longa altera dados do aplicativo e precisa terminar com tudo salvo.
- ✓Quando um agente informa sucesso e você precisa de prova de que os dados foram realmente armazenados.
Link da skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/reliable-mutations/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Atualize todos estes itens de uma só vez e depois confirme que eles foram realmente salvos.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Em vez de muitos salvamentos pequenos que podem parar no meio, o agente envia o conjunto inteiro em uma única action e depois verifica os dados armazenados, informando contagens ou IDs como prova.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Perguntas frequentes
E se o aplicativo não tiver uma action em lote?
A skill diz para acrescentar uma, em vez de executar um laço de gravações pequenas.
Por que não confiar na mensagem de sucesso?
Uma mensagem de sucesso pode aparecer mesmo quando parte da gravação falhou, por isso a skill pede a verificação dos dados armazenados.
Isto vale também para tarefas em segundo plano?
Sim. Execuções em segundo plano podem ser repetidas, então uma chamada única de tudo ou nada continua sendo a preferida.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 7,6 mil
- Posição no ranking
- #13177
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
design-exploration
7,6 milAjuda seu agente a explorar várias direções de design de interface lado a lado, deixar você escolher uma e depois refinar o design escolhido.
visual-edit
7,6 milAjuda seu agente a abrir um aplicativo local em execução em um editor visual, para que você possa revisar e editar as telas reais juntos.
turn-into-app
7,6 milTransforma um fluxo de trabalho, uma planilha ou um projeto em um aplicativo visual bem acabado, com telas preenchidas e um agente trabalhando por trás dos controles.
visual-plan
7,6 milTransforma um plano em texto simples em um plano visual interativo, com diagramas, mapas de arquivos, trechos de código e perguntas em aberto.
Skills parecidas
api-connector-builder
280 milFaz seu agente construir novas conexões com APIs seguindo o padrão já existente. Use quando precisar adicionar mais uma integração sem criar um novo jeito de fazer.
api-design
280 milAjuda seu agente a projetar APIs REST seguindo as melhores práticas. É útil para definir como as APIs se comunicam, como os erros são mostrados e como organizar os dados.
backend-patterns
280 milAjuda seu agente com padrões de arquitetura do lado do servidor e otimização de banco de dados. É útil para construir ou revisar o código que roda no servidor.