lsp-refactor

Solid

End-to-end safe refactor workflow — blast-radius analysis, speculative preview, apply to disk, verify build, run affected tests. Inlines lsp-impact + lsp-safe-edit + lsp-verify + lsp-test-correlation into one coordinated sequence.

Code & Development 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-refactor End-to-end safe refactor workflow. Sequences blast-radius analysis, speculative preview, disk apply, build verification, and targeted test execution in one coordinated pass. **This skill does NOT replace lsp-safe-edit or lsp-impact.** - `lsp-safe-edit` wraps a single edit with before/after diagnostic comparison — use it when you need to make one targeted change with careful error diffing. - `lsp-impact` is read-only blast-radius analysis — use it when you want to understand scope before deciding whether to proceed. - `lsp-refactor` sequences ALL four workflows (lsp-impact → lsp-safe-edit → lsp-verify → lsp-test-correlation) in order. Use it when you know your target and intent up front and want the complete workflow without switching skills. --- ## Input - **target**: symbol name in dot notation (e.g. `"codec.Encode"`, `"Buffer.Reset"`) OR file path (e.g. `"internal/lsp/client.go"`) - **intent**: description of the change to make (e.g. "rename to ParseConfigV2", "add a second parameter `timeout time.Duration`") - **workspace_root**: absolute path to the workspace root --- ## Phase 1 — Blast-Radius Analysis (inlined from lsp-impact) **This phase is mandatory. Do not skip it, even for "small" refactors.** Call `mcp__lsp__blast_radius` with `changed_files` set to the file containing the target symbol. If the user provided a file path directly, use it. If the user provided a symbol name, resolve the file fi...

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