lsp-fix-all

lsp-fix-all is a skill for Claude Code from blackwell-systems/agent-lsp. It costs 48 tokens per session (1,554 once invoked), scanned A, original, MIT.

A tool instruction for applying every available automatic quick fix to a file’s current language-server diagnostics. A language server is the editor service that reports code errors and warnings.

In plain words
What is it for?
Use it to bulk-fix pre-existing errors and warnings in a file when the language-server connection is available.
Why use it?
It resolves existing fixable diagnostics systematically and rechecks the file after each change.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to bulk-fix pre-existing errors and warnings in a file when the language-server connection is available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/blackwell-systems/agent-lsp/lsp-fix-all
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-fix-all
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-fix-all

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-fix-all"><img src="https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-fix-all.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,554 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.00048 $0.01554
Opus 5.5 $0.00019 $0.00622
Sonnet 5.5 $0.00010 $0.00311
Haiku 4.5 $0.00005 $0.00155

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

Security

Grade A, and why

lsp-fix-all 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-fix-all/SKILL.md · 179 lines

How it starts

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

Requires the agent-lsp MCP server.

lsp-fix-all

Apply available quick-fix code actions for all current diagnostics in a file, one at a time, re-collecting diagnostics between each fix because line numbers shift after each application.

Important distinction from /lsp-safe-edit: This skill fixes pre-existing diagnostics in a file — errors and warnings that already exist before any edit session begins. /lsp-safe-edit has a code-action step (Step 7) for fixing errors introduced by a specific edit you just made. Use this skill for systematic bulk-fixing of existing issues, independent of any edit session.

When to use / not use

Use this skill when:

  • A file has accumulated errors or warnings you want to resolve automatically
  • You want to clean up a file before starting new work
  • You want to apply all available language-server quick-fixes in bulk

Do NOT use this skill when:

  • You just made an edit and want to fix newly introduced errors — use /lsp-safe-edit
  • You want to apply structural refactors — this skill applies quick-fixes only (see filtering below)
  • The file has zero diagnostics (the skill will report clean and stop)

Input

  • file_path: Absolute path to the file to fix.

Workflow

Step 1 — Open and collect initial diagnostics

Call mcp__agent-lsp__open_document with the target file path to ensure it is loaded in the language server. Then call mcp__agent-lsp__get_diagnostics to retrieve all current diagnostics.

If zero diagnostics are returned: report "No diagnostics found — file is clean." and stop. No further steps are needed.

Record the initial count of errors and warnings for the summary output.

Step 2 — Classify and filter code actions

For EACH diagnostic (process one at a time, not in batch):

  1. Call mcp__agent-lsp__suggest_fixes at the diagnostic's position/range.
  2. Filter the returned actions to quick-fix kind only.
  3. Skip any diagnostic for which no applicable quick-fix exists — note it in the summary.

Read the full file on GitHub · 179 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 2ed5e268ec76
  2. 3mo ago First seen · 179 lines · 48 tokens per session scan A 2775255a6d46

Subscribe to this mod's changes

lsp-fix-all is a skill published in the GitHub repository blackwell-systems/agent-lsp (186 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,554 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-fix-all compared with skills from other repositories

lsp-fix-all next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lsp-fix-allblackwell-systems/agent-lspSkill186todayMITA48Claude Code
authoring-smell-rulesagentic-research/macheSkill46todayApache-2.0A102Claude Code
x-raybartolli/codannaSkill7638d agoApache-2.0A25Claude Code
roamCranot/roam-codeSkill5173d agoApache-2.0A86Claude Code
mma-investigatorcockroachdb/cockroachSkill33k11d agononeA47Claude Code
pi-loop-forensicsdimetron/pi-goSkill2326d agoMITA65Claude Code, Codex
verify-history-rewritedimetron/pi-goSkill2326d agoMITA130Claude Code, Codex