lsp-refactor

Automate project-wide refactors by applying LSP-computed WorkspaceEdits via lspeasy CLI.

2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/pradeepmouli/lspeasy --skill lsp-refactor-pradeepmouli
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lsp-refactor
Source: https://github.com/pradeepmouli/lspeasy/tree/main/skills/lsp-refactor
Command: npx skills add https://github.com/pradeepmouli/lspeasy --skill lsp-refactor-pradeepmouli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates complex multi-file refactors by using a real LSP server to compute and apply a complete WorkspaceEdit, ensuring all references are updated across the codebase.

Core Features & Use Cases

  • End-to-end refactors: Rename, move-file, and move-symbol actions are performed with a live language server to update all affected declarations, imports, and re-exports.
  • Reference-safe edits: Updates aliased imports, type-only imports, and documentation references to preserve correctness.
  • CLI-driven workflow: Coordinates with the lspeasy CLI to apply WorkspaceEdits automatically in your project.

Quick Start

Run the lspeasy CLI with a rename or move operation to apply a complete WorkspaceEdit across the project.

Frequently Asked Questions about lsp-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I rename a symbol across an entire project with cross-file dependencies?▼

To rename a symbol across a project, this Skill drives a real language server to compute a complete WorkspaceEdit, automatically updating all affected declarations, imports, and re-exports across the codebase.

What is the best way to move a file without breaking import paths in a large codebase?▼

Moving a file without breaking imports requires updating all references. This Skill coordinates the lspeasy CLI to execute a move-file operation, calculating and applying a WorkspaceEdit that automatically fixes import paths.

How does a language server handle aliased and type-only imports during a refactor?▼

A language server handles aliased and type-only imports during refactors by computing reference-safe edits. This ensures that aliased imports, type-only imports, and documentation references are correctly preserved.

Can I move a symbol into a new module and update re-exports automatically?▼

Yes, you can move a symbol into a new module and update re-exports automatically. The Skill performs a move-symbol action using a live language server to update all affected declarations and re-exports.

Do I need a live language server running to apply a workspace edit for refactoring?▼

Yes, a live language server is required to apply a workspace edit for refactoring. The Skill automates end-to-end project-wide refactors by driving a real LSP server to compute the necessary edits.