lsp-concurrency-audit

lsp-concurrency-audit is a skill for Claude Code from blackwell-systems/agent-lsp. It costs 61 tokens per session (1,456 once invoked), scanned A, original, MIT.

A code-review check for unsafe shared data in a type or file. It maps fields, checks whether goroutines, threads, or asynchronous tasks access them, and reports fields without visible synchronization such as locks or atomic operations.

In plain words
What is it for?
Use it to audit a type or file for concurrent access and identify fields that may need mutexes or other synchronization.
Why use it?
It helps find possible data races before a refactor, code review, or production failure. The report shows which individual fields may need protection.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to audit a type or file for concurrent access and identify fields that may need mutexes or other synchronization.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/blackwell-systems/agent-lsp/lsp-concurrency-audit
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 blackwell-systems/agent-lsp --skill lsp-concurrency-audit
Clone the repo
git clone --depth 1 https://github.com/blackwell-systems/agent-lsp

Made for: Claude Code.

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 lsp-concurrency-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-concurrency-audit/github.svg)](https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-concurrency-audit)
Your own site
<a href="https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-concurrency-audit"><img src="https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-concurrency-audit/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 lsp-concurrency-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-concurrency-audit"><img src="https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-concurrency-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,456 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.01456
Opus 5.5 $0.00024 $0.00582
Sonnet 5.5 $0.00012 $0.00291
Haiku 4.5 $0.00006 $0.00146

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

Security

Grade A, and why

lsp-concurrency-audit 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 25d 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.

skills/lsp-concurrency-audit/SKILL.md · 164 lines

How it starts

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

Requires the agent-lsp MCP server.

lsp-concurrency-audit

Given a type or file, map all fields, identify which are accessed from multiple concurrent contexts, and flag fields that lack synchronization. Produces a field-level concurrency safety report.

When to Use

  • Before refactoring a type that is accessed from goroutines/threads
  • Auditing a codebase for data race candidates
  • Reviewing a PR that adds concurrent access to an existing type
  • Understanding which fields in a type need mutex protection

Input

/lsp-concurrency-audit <file-path> [--type <TypeName>]

If --type is provided, audit only that type. Otherwise, audit all types in the file that have concurrent callers.

Step 1: Discover types and fields

Call list_symbols on the target file to enumerate all types (structs, classes):

mcp__agent-lsp__list_symbols({ "file_path": "<target>" })

For each type (kind=23 struct, kind=5 class), collect:

  • Type name
  • All fields (children with kind=8 field or kind=7 variable)
  • Whether any field's name or detail contains sync primitives ("Mutex", "RWMutex", "Lock", "Semaphore", "atomic", "Atomic", "sync.", "pthread_mutex", "std::mutex")

If --type was specified, filter to that type only.

Step 2: Blast radius and sync-guarded status

Call blast_radius on the file:

mcp__agent-lsp__blast_radius({
  "changed_files": ["<target>"],
  "scope": "all"
})

From the result, for each method on each target type:

  • Record sync_guarded: true/false from the response
  • Record non_test_callers count (blast radius)
  • Record test_callers count

Step 3: Trace concurrent boundaries

For each method on each target type, call find_callers with cross_concurrent: true:

mcp__agent-lsp__find_callers({
  "file_path": "<target>",
  "line": <method_line>,
  "column": <method_column>,
  "direction": "incoming",
  "cross_concurrent": true
})

Record for each method:

  • concurrent_callers: list of callers that cross concurrent boundaries
  • pattern: the concurrent entry pattern detected (e.g., "go func(", "Thread.start(")

Read the full file on GitHub · 164 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. 25d ago Changed 4d5baf08809a
  2. 3mo ago First seen · 164 lines · 61 tokens per session scan A adeec925366c

Subscribe to this mod's changes

lsp-concurrency-audit is a skill published in the GitHub repository blackwell-systems/agent-lsp (186 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,456 once invoked, about $0.0002 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-08-30.

Related

lsp-concurrency-audit compared with skills from other repositories

lsp-concurrency-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lsp-concurrency-auditblackwell-systems/agent-lspSkill186todayMITA61Claude Code
authoring-smell-rulesagentic-research/macheSkill46todayApache-2.0A102Claude Code
semAtaraxy-Labs/semSkill3.5k2d agoApache-2.0A122Claude Code, Codex
sem-code-reviewAtaraxy-Labs/semSkill3.5k2d agoApache-2.0A39Claude Code, Codex
intentenola-labs/enolaSkill316todayApache-2.0A89Claude Code
reviewenola-labs/enolaSkill316todayApache-2.0A74Claude Code
pr-workflowdimetron/pi-goSkill2326d agoMITA65Claude Code, Codex