Staff Engineering Skills Race Conditions

Detect and prevent race conditions in concurrent code. Use when writing code that reads then writes shared state, checks a condition then acts on it, creates records that should be unique, updates counters or balances, transitions status fields, or handles webhook/queue retries. Activates on patterns like check-then-act, read-modify-write, findUnique-then-create, or any shared state mutation without atomicity guarantees.

triggerdotdev 66d8ead 12.0 KB Updated

File contents

triggerdotdev/staff-engineering-skills/tree/main/skills/staff-engineering-skills-race-conditions commit 66d8ead0c9

Frequently asked questions

npx skillmds@latest add triggerdotdev/staff-engineering-skills-race-conditions