SKILL

lsp-refactor

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.

Target: Target not categorized. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • lsp-refactor
  • Input
  • Phase 1 — Blast-Radius Analysis (inlined from lsp-impact)
  • Phase 2 — Speculative Preview (inlined from lsp-safe-edit)
  • 2a — Open file and capture baseline diagnostics
  • 2b — Speculative simulation
  • 2c — Evaluate simulation result
  • Phase 3 — Apply to Disk

Requires the agent-lsp MCP server. 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. -- 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") workspaceroot: absolute path to the workspace root -- This phase is mandatory. Do not skip it, even for "small" refactors. Call mcplspblastradius with changedfiles set to the file cont

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
OKHP3/skillz
Source file
community/lsp-refactor/SKILL.md
Fixed revision
7b187777d42ab7bc7bab1e5f2c940cd3139ecebf
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: OKHP3/skillz · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T10:00:54.258Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.