Langsung ke konten
Skillpedia
API & server (backend)7.6k Β· #13177

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.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/reliable-mutations/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

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

  1. 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.
  2. 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 actions skill) rather than papering over it with a loop.
  3. 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.
  4. 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.
  5. 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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa