본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)7.6k · #13177

reliable-mutations

하는 일

이 스킬은 에이전트가 데이터베이스 변경을 한 번의 일괄 호출로 실제로 반영하고, 그 결과를 확인하는 방법을 설명합니다. 여러 항목이 저장되어야 하는 개발자와 사용자를 위한 스킬입니다.

사용하는 경우

  • ✓에이전트가 여러 항목을 한꺼번에 저장하거나 업데이트해야 할 때.
  • ✓앱 데이터를 바꾸는 긴 작업이 모든 것이 저장된 상태로 끝나야 할 때.
  • ✓에이전트가 성공을 보고했는데, 데이터가 실제로 저장되었다는 증거가 필요할 때.

스킬 링크

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/reliable-mutations/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/reliable-mutations/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 항목들을 한 번에 모두 업데이트하고, 실제로 저장되었는지 확인해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

중간에 멈출 수 있는 여러 번의 작은 저장 대신, 에이전트는 전체 집합을 한 번의 액션으로 보내고, 저장된 데이터를 확인한 뒤 개수나 ID를 증거로 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.
자주 묻는 질문

앱에 일괄 액션이 없으면 어떻게 하나요?

작은 쓰기를 반복하는 루프 대신 일괄 액션을 추가하라고 이 스킬은 말합니다.

성공 메시지를 믿으면 안 되나요?

쓰기 일부가 실패해도 성공 메시지가 나올 수 있으므로, 저장된 데이터를 확인하라고 이 스킬은 말합니다.

백그라운드 작업에도 해당되나요?

네. 백그라운드 실행은 재시도할 수 있으므로, 전부 아니면 전무인 한 번의 호출이 여전히 선호됩니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
7.6k
순위
#13177
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬