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.
npx skills add tmj-90/gaffer --skill concurrency-reviewgit clone --depth 1 https://github.com/tmj-90/gafferWrote 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.
[](https://agentmods.dev/skills/tmj-90/gaffer/concurrency-review)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- 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 callsearch_lorefor the repo's locking, transaction and persistence conventions. If there is provably one writer and one thread, write "single writer — n/a" and stop. - 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.
- Walk the checklist below against the actual code, opening the files. For each relevant item write "ok — " or a finding.
- 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.
- 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-reviewskill). - 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. - 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 thereview-ticketverdict carry the result. Never patch the code yourself.
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.
- 16d ago First seen · 119 lines · 131 tokens per session scan A be1a52c6b64d
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.
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.
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.
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.
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.
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.
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.