Back to prompts
Scan for code that may behave incorrectly under concurrent execution. Look for: - Read-modify-write without locking - Shared mutable state Output: - Identify race conditions - Recommend atomic or transactional patterns
Related Prompts
View allAsync Ordering Assumptions
Find async code that assumes execution order without enforcing it. Output: - List ordering assumpti...
AsyncConcurrency
useEffect Best Practices Refactor
You are a senior React engineer. Refactor the provided React/Next.js codebase to follow strict useEf...
ReactuseEffect
Surprising or Non-Obvious Behavior
Identify functions, hooks, or utilities whose behavior is surprising or non-obvious. Look for: - Fu...
Code QualitySide Effects
Cache Illusions & Misuse
Find code that assumes caching exists but does not enforce it. Examples: - Fetches without cache he...
CachingPerformance