reliable-mutations
Fungsinya
Skill ini menjelaskan cara agent sebaiknya membuat perubahan basis data agar benar-benar tersimpan, dengan satu panggilan batch lalu memverifikasi hasilnya. Skill ini untuk pengembang dan siapa pun yang mengharapkan banyak item tersimpan sekaligus.
Kapan dipakai
- βSaat agent harus menyimpan atau memperbarui banyak item sekaligus.
- βKetika tugas panjang mengubah data aplikasi dan harus selesai dengan semuanya tersimpan.
- βSaat agent melaporkan keberhasilan dan Anda membutuhkan bukti bahwa data benar-benar tersimpan.
Link skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/reliable-mutations/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βPerbarui semua item ini sekaligus, lalu pastikan semuanya benar-benar tersimpan.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alih-alih banyak penyimpanan kecil yang bisa berhenti di tengah jalan, agent mengirim seluruh kumpulan dalam satu aksi, lalu memeriksa data yang tersimpan dan melaporkan jumlah atau ID sebagai bukti.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Bagaimana jika aplikasi tidak punya aksi batch?
Skill ini menyarankan menambahkannya, bukan menjalankan loop penulisan kecil.
Mengapa tidak percaya pesan sukses saja?
Pesan sukses bisa muncul meski sebagian penulisan gagal, sehingga skill ini meminta pemeriksaan data yang tersimpan.
Apakah ini berlaku untuk pekerjaan latar belakang juga?
Ya. Run latar belakang bisa dicoba ulang, sehingga satu panggilan semua-atau-tidak-sama-sekali tetap lebih disukai.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 7.6k
- Peringkat
- #13177
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
design-exploration
7.6kMembantu agent Anda mengeksplorasi beberapa arah desain UI secara berdampingan, membiarkan Anda memilih satu, lalu menyempurnakan desain yang dipilih.
visual-edit
7.6kMembantu agent Anda membuka aplikasi lokal yang sedang berjalan di editor visual agar Anda dapat meninjau dan mengedit layar aslinya bersama-sama.
turn-into-app
7.6kMengubah alur kerja, spreadsheet, atau proyek menjadi aplikasi visual yang rapi, dengan layar yang terisi dan agent yang bekerja di balik kontrol.
visual-plan
7.6kMengubah rencana teks biasa menjadi rencana visual interaktif dengan diagram, peta file, cuplikan kode, dan pertanyaan terbuka.
Skill serupa
api-connector-builder
280kMembuat agent Anda membangun koneksi API baru mengikuti pola yang sudah ada. Gunakan saat ingin menambah integrasi lagi tanpa membuat cara baru.
api-design
280kMembantu agent Anda merancang REST API sesuai praktik terbaik. Berguna untuk mengatur cara API berkomunikasi, menampilkan error, dan mengorganisasi data.
backend-patterns
280kMembantu agent Anda dengan pola arsitektur sisi server dan optimasi database. Berguna untuk membangun atau meninjau kode yang berjalan di server.