data-consistency-auditor
Skill0 starsChanged 19 days agoMITView on GitHub
Review multi-step writes, retries, concurrency, and idempotency for lost updates, duplicates, partial state, and race conditions. Use for payments, jobs, counters, workflows, or shared records.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- completion-claims-auditorSkill
- existing-work-preservationSkill
- mcp-reliability-auditorSkill
- multi-agent-integration-reviewerSkill
- project-context-recoverySkill
- requirement-traceability-auditorSkill
- scope-drift-guardSkill
- architecture-complexity-auditorSkill
- dependency-cycle-auditorSkill
- database-schema-reviewerSkill
- migration-safety-reviewerSkill
- loop-breakerSkill
- reproduction-builderSkill
- root-cause-debuggerSkill
- dependency-grounding-auditorSkill
- ci-failure-investigatorSkill
- cross-platform-readiness-auditorSkill
- environment-config-auditorSkill
- environment-parity-auditorSkill
- production-readiness-auditorSkill
- documentation-accuracy-auditorSkill
- token-efficient-workflowSkill
- accessibility-auditorSkill
- dead-feature-detectorSkill
- responsive-design-auditorSkill
- ux-state-completeness-auditorSkill
- release-verification-agentSkill
- agent-tool-trust-auditorSkill
- authentication-security-auditorSkill
- authorization-boundary-auditorSkill
- dependency-vulnerability-auditorSkill
- injection-risk-auditorSkill
- input-validation-auditorSkill
- secret-leakage-detectorSkill
- security-misconfiguration-auditorSkill
- api-contract-auditorSkill
- integration-reality-checkerSkill
- missing-test-detectorSkill
- regression-detectorSkill
- test-quality-auditorSkill
- ui-flow-verifierSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Read applicable repository instructions before edits.
- Distinctive: line 32
Write the invariant that must remain true after success, failure, retry, and concurrent execution.
- Distinctive: line 34
Look for read-modify-write races, duplicate message/job handling, check-then-act windows, lost updates, and non-idempotent external calls.
- Distinctive: line 36
Create deterministic or repeated concurrency tests for the highest-risk interleavings.
- Distinctive: line 38
Verify retries converge on the same intended result.
- Distinctive: line 46
Use isolated test data; do not induce races or duplicate effects in production.
- Distinctive: line 63
If concurrency cannot be reproduced reliably, add invariant instrumentation/stress testing guidance and report the limitation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Preserve invariants under retries and concurrent execution, not only the happy path.
When to activate
A workflow writes multiple records/services or can run concurrently/retry.
When not to activate
A pure read-only operation has no state transition.
Preconditions
- Read applicable repository instructions before edits.
- Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
- Identify which tools and environments are actually available; do not claim unavailable checks ran.
Required inputs
- State transitions and invariants
- Transaction/locking semantics
- Retry/queue behavior
Workflow
- Write the invariant that must remain true after success, failure, retry, and concurrent execution.
- Identify the transaction boundary and all side effects that fall outside it.
- Look for read-modify-write races, duplicate message/job handling, check-then-act windows, lost updates, and non-idempotent external calls.
- Choose an appropriate control: atomic update, transaction, unique/idempotency key, optimistic version, lock, outbox/saga, or compensating action.
- Create deterministic or repeated concurrency tests for the highest-risk interleavings.
- Inject a failure between steps to verify partial state can recover or is prevented.
- Verify retries converge on the same intended result.
Relevant tools
Database/queue docs, integration tests, concurrency/stress harness.
Safety restrictions
Use isolated test data; do not induce races or duplicate effects in production.
Validation
- The invariant holds after success, injected failure, duplicate request, and tested concurrency interleavings.
- Controls match the actual storage/message semantics.
- Residual nondeterministic risk is documented.
Expected output
- Invariant and transition model
- Race/partial-state findings
- Chosen consistency control
- Failure/concurrency test evidence
Failure handling
If concurrency cannot be reproduced reliably, add invariant instrumentation/stress testing guidance and report the limitation.
Completion criteria
The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.
Research mapping
This skill was selected from research problems: P034. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

