Atomicity violation

From zakirkun/ice-tea · View interactive version

Atomicity violation is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects code sequences that must be atomic but are not protected by synchronization, allowing interleaving that violates invariants.

How to use this skill

Skill file

Atomicity Violation

Overview

Atomicity violations occur when a sequence of operations that must execute as a unit can be interleaved by other threads. Unlike simple counter races, these involve multi-step operations where the intermediate state is invalid.

Example: Check-then-act on user balance, file existence, or session state.

Remediation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.