concurrency-review

concurrency-review is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 131 tokens per session (1,958 once invoked), scanned A, original, Apache-2.0.

A code-review checklist for finding data corruption caused by concurrent work or failures. It examines cases where requests, workers, scheduled jobs, or processes run at the same time and interfere with one another.

In plain words
What is it for?
Use it to review changes involving shared files, read-modify-write operations, temporary names, locks, retries, crashes, or multiple writers. It helps describe the exact failure schedule instead of offering only a general warning.
Why use it?
Ordinary tests often run steps one after another, so lost updates, duplicate effects, broken files, deadlocks, and unsafe locks can remain hidden. This lens requires a concrete sequence of events showing how the defect occurs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review changes involving shared files, read-modify-write operations, temporary names, locks, retries, crashes, or multiple writers. It helps describe the exact failure schedule instead of offering only a general warning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/concurrency-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tmj-90/gaffer --skill concurrency-review
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for concurrency-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/concurrency-review/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/concurrency-review)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/concurrency-review"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/concurrency-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for concurrency-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/concurrency-review"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/concurrency-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00131 $0.01958
Opus 5.5 $0.00052 $0.00783
Sonnet 5.5 $0.00026 $0.00392
Haiku 4.5 $0.00013 $0.00196

Measured 16d ago against content hash be1a52c6b64d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

concurrency-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

runner/skills/concurrency-review/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Concurrency and data-integrity review lens

Race and crash defects pass every sequential test, so they sail through review unless someone plays the bad schedule on purpose. Live runs shipped exactly this class twice: concurrent writers sharing one temp-file name (HTTP 500), an unsynchronised read-modify-write (lost updates), and a time-only stale-lock lease that let a second process break the lock of a holder that was merely paused — losing a write the first process had already acknowledged. Every reviewer scored correctness 4/5. This lens exists so that does not happen again.

A finding here is a concrete defect only when you can write the schedule: the ordered steps (who reads, who writes, who pauses or crashes, when) that end in a wrong, observable outcome — a lost acknowledged write, a corrupt or partial file, a duplicate effect, a 500, a deadlock. "Consider adding a lock" without a schedule is a note.

Steps

  1. Establish the concurrency shape. Can the changed code run twice at once? An HTTP handler can (servers serve requests concurrently; Node interleaves at every await); so can workers, cron jobs that overlap, CLI commands a user can start twice, multiple processes or instances sharing one file or database. Check how the app is deployed (worker count, cluster mode, replicas) and call search_lore for the repo's locking, transaction and persistence conventions. If there is provably one writer and one thread, write "single writer — n/a" and stop.
  2. List the shared state the diff touches: files and directories, database rows, in-memory maps/counters/caches, lock files, queues, external resources. For each, name who reads it, who writes it, and what guards it.
  3. Walk the checklist below against the actual code, opening the files. For each relevant item write "ok — " or a finding.
  4. Play the four schedules against every write path: (a) two writers interleave step by step; (b) the process is paused (GC, SIGSTOP, VM suspend) for longer than any timeout or lease, then resumes and continues; (c) the process crashes between any two writes, and between "write" and "acknowledge"; (d) the caller retries after a timeout, so the operation runs twice. Write the schedule for each failure.
  5. Check the tests reach the path. If an AC names concurrency, locking, atomicity, durability, crash safety or retries, a test must actually run that schedule: real parallel writers (separate processes when the AC says cross-process), an injected pause or kill, a forced retry, with an assertion on the invariant (count equals N, every acknowledged write present, file parses, one effect per key). A sequential test of a concurrency AC is a missing test (the test-quality-review skill).
  6. Rate each finding. Blocking: a written schedule reachable in the deployed shape that loses or corrupts data, loses an acknowledged write, duplicates a side effect, returns a 500, or deadlocks; or an AC about concurrency/durability with no test that exercises it. Should-fix: the defect needs an unusual but possible schedule (a crash at one exact point, a pause beyond a generous lease). Note: hardening with no schedule. Only blocking and should-fix justify RECOMMEND CHANGES.
  7. Record each finding with record_ac_evidence (evidence_type: manual_note, naming the AC, file, line, the schedule, and the single concrete fix), then let the review-ticket verdict carry the result. Never patch the code yourself.

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago First seen · 119 lines · 131 tokens per session scan A be1a52c6b64d

Subscribe to this mod's changes

concurrency-review is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 17d ago), licensed Apache-2.0. It adds 131 tokens to every session and 1,958 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

Other skills, from other repositories

test-audit

Audit test suites for T1-T4 violations using AST analysis, mock detection, and multi-stage synthesis. Invoke when user asks to audit tests, check test quality, find mock violations, review test effectiveness, or inspect test suites for over-mocking. Triggers automatic rewrites when quality gates fail.

QBall-Inc/the-bulwark · 0 tokens

code-review

Comprehensive code review with distinct aspect based sections. Use when reviewing code, checking for security issues, finding type safety problems, auditing code quality, or when user asks to review code, PRs or changes. Three-phase workflow runs static tools, LLM judgment, and writes diagnostic log.

QBall-Inc/the-bulwark · 61 tokens

spec-drift-check

Audits a WP brief for drift against current code — extracts claims, verifies each, emits PROCEED/STOP verdict. Use when starting a new WP, before consuming a spec as binding, or when a doc references paths/lines/functions.

QBall-Inc/the-bulwark · 54 tokens

issue-debugging

Systematic methodology for issue debugging including root cause analysis, impact mapping, tiered validation plans, and confidence assessment. Use when analyzing bugs, fixing issues, or validating fixes.

QBall-Inc/the-bulwark · 39 tokens

fix-bug

Run the Fix Validation pipeline to investigate, fix, and validate a bug. Ensures deterministic pipeline execution with IssueAnalyzer, FixWriter, TestWriter (conditional), TestAudit (conditional), and FixValidator stages.

QBall-Inc/the-bulwark · 46 tokens

besimple-broccoli-blind

Non-interactive wrapper: plan-sketch -> auto-pick recommended options -> plan-write -> plan-critique-loop -> implement-from-plan -> claude-simplify-wrapper -> dedup -> code-review-loop. No PR creation and no Linear comments.

besimple-oss/broccoli · 58 tokens