Tooluck logoTooluck
SKILL.md

competition-race-condition-state-drift

Agent skill fromzhaoxuya520/reverse-skill

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for race windows, ordering bugs, idempotency failures, lock gaps, concurrent worker drift, and state inconsistencies that produce decisive effects. Use when the user asks to reproduce timing-sensitive bugs, concurrent state corruption, duplicate actions, stale reads, or privilege or balance drift caused by request ordering. Use only after `$ctf-sandbox-orchestrator` has already established sandbox assumptions and routed here.

How to install competition-race-condition-state-drift

install competition-race-condition-state-drift
# install the reverse-skill pack with the skills CLI
npx skills add zhaoxuya520/reverse-skill

# or add only this skill to Claude Code: copy the folder

CTF-Sandbox-Orchestrator/competition-race-condition-state-drift/

# into

~/.claude/skills/competition-race-condition-state-drift/ (all projects)

.claude/skills/competition-race-condition-state-drift/ (one project)

CTF-Sandbox-Orchestrator/competition-race-condition-state-drift/SKILL.md

MITFull file
1# Competition Race Condition State Drift
2
3Use this skill only as a downstream specialization after `$ctf-sandbox-orchestrator` is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to `$ctf-sandbox-orchestrator` first.
4
5Use this skill when the decisive behavior depends on request timing, async ordering, lock gaps, or stale state.
6
7Reply in Simplified Chinese unless the user explicitly requests English.
8
9## Quick Start
10
111. Identify mutable state first: rows, cache keys, queue payloads, session fields, counters, or files.
122. Reproduce with smallest concurrent sequence and fixed timing assumptions.
133. Capture one baseline run and one racing run with only one variable changed.
144. Track read, check, write, enqueue, and commit boundaries separately.
155. Prove final state drift from a clean reset.
16
17## Workflow
18
19### 1. Map Mutable Boundaries
20
21- Record transaction scope, lock behavior, retry logic, idempotency keys, cache invalidation, and queue handoff.
22- Note where read-check-write is split across requests, workers, or services.
23- Keep each boundary tied to exact timestamps or sequence numbers.
24
25### 2. Reproduce Timing Window
26
27- Build deterministic concurrent inputs with controlled delay, duplicate requests, or reordered worker execution.
28- Compare accepted and rejected paths under identical payloads.
29- Record which condition flips when ordering changes.
30
31### 3. Reduce To Decisive Race Chain
32…

Excerpt shown under the repository's MIT license.

More skills in reverse-skill

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates