lsp-fix-all

Solid

Apply available quick-fix code actions for all current diagnostics in a file, one at a time with re-collection between each fix. Use to bulk-resolve errors and warnings the language server can fix automatically.

AI & Automation 56 stars 2 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> 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__lsp__open_document` with the target file path to ensure it is loaded in the language server. Then call `mcp__lsp__get_diagnostics` to retrieve all current diagnostics. If zero dia...

Details

Author
blackwell-systems
Repository
blackwell-systems/agent-lsp
Created
2 months ago
Last Updated
today
Language
Go
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category