Use when designing, implementing, testing, or debugging Rust service workflows that must be safe under retries, duplicate requests, crashes, concurrent submissions, background workers, queues, email/payment/notification side effects, idempotency keys, transaction isolation, or save-and-replay API behavior.
SkillScore91Maintained
Automatic
◆Coding pack
Last verified 8/16/2026
What it changes
Passed 20 of 22 test cases with the skill, and 15 of 22 without it.
Without skill68%
With skill91%
Checks it passed that the model alone missed
Requires writing a failure story before writing code.
Uses in_progress for actively running background jobs.
Uses succeeded for successfully finished background jobs.
and 4 more in the full report
5 fixed15 passed either way2 still failing0 broke
Pass-rate lift
+23 pp
Tokens
+2%
Agent turns
0%
Response time
-24%
Model gemini-3.6-flashMeasured 8/16/2026v120 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 5
Prompt
Before writing Rust code for a multi-step order fulfillment workflow involving database updates and external logistics API calls, what preliminary design artifact must developers construct?
What was checked, without and with the skill
Checked
Without skill
With skill
Requires writing a failure story before writing code.
Missed
Passed
Details process crash consequences after database writes.
Missed
Passed
case-15 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md62 lines4 files
Rust Idempotent Workflows
Use this skill to make Rust workflows reliable when clients retry, workers
crash, requests race, and external side effects cannot be rolled back.
Core Workflow
Write the failure story before writing code. List what happens if the process
crashes after each database write and after each external side effect.
Identify the idempotency boundary: HTTP endpoint, command handler, queue job,
webhook, or external callback.
Choose the idempotency strategy:
Natural idempotency from a unique business key.
Client-provided idempotency key with save-and-replay.
Server-generated deduplication key.
Outbox or queue table for side effects.
Put state transitions and idempotency records in the same transaction when
they must agree.
Make duplicate concurrent requests deterministic. Use unique constraints,
locks, serializable transactions, or explicit conflict handling.
Treat external side effects as at-least-once unless the provider guarantees
more. Store enough state to retry or reconcile.
Add tests for duplicate requests, retry after timeout, concurrent requests,
crash windows when practical, and worker retry behavior.
Idempotency Key Rules
Read references/idempotency.md before adding idempotency keys or save-and-
replay behavior.
Bind the key to the authenticated user or tenant.
Store a hash of the request payload when replaying responses.
Return the original response for exact replays.
Reject reuse of the same key with a different payload.
Expire records only after product and provider retry windows have passed.
Background Work Rules
Read references/background-workers.md when adding queue tables, polling
workers, retries, or external side effects.