lsp-refactoring

Refactor code across multiple languages using LSP features and TDD verification.

142|14|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill lsp-refactoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lsp-refactoring
Source: https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/lsp-refactoring
Command: npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill lsp-refactoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates complex and large-scale code refactoring tasks, ensuring safety, precision, and consistency across your codebase by leveraging Language Server Protocol (LSP) capabilities and robust verification.

Core Features & Use Cases

  • Automated Renaming: Safely rename symbols (variables, functions, classes) across an entire workspace.
  • Structural Changes: Perform operations like function/class extraction and code movement with automatic reference updates.
  • Pattern-Based Transformation: Apply consistent code changes based on AST-aware pattern matching.
  • TDD Verification: Ensures refactoring does not break existing functionality through type checking, build checks, and test suite execution.
  • Use Case: Refactor a widely used function name across a large project, ensuring all call sites are updated correctly and all tests still pass.

Quick Start

Use the lsp-refactoring skill to rename the function getUserData to fetchUserProfile across the entire project.

Frequently Asked Questions about lsp-refactoring

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

FAQPage Schema
How do I safely rename a function across a large codebase without breaking references?

Safe code refactoring uses Language Server Protocol (LSP) features to rename symbols across an entire workspace, ensuring all call sites and references are updated automatically.

How does AST-aware pattern matching work for code transformation?

AST-aware pattern matching analyzes the Abstract Syntax Tree to apply consistent structural code transformations, allowing precise extraction and movement of code blocks.

Can I use TDD verification to validate large-scale refactoring operations?

TDD verification validates large-scale refactoring by executing type checking, build checks, and test suites, ensuring structural changes do not break existing functionality.

What is the best way to extract functions or classes while updating references?

The best way to extract functions or classes is using LSP refactoring, which performs structural code movements while automatically updating all affected references.

Does LSP refactoring work across multiple programming languages?

LSP refactoring works across multiple programming languages by leveraging standardized Language Server Protocol capabilities and AST awareness for consistent code transformation.

When should I not use automated code refactoring?

You should not use automated code refactoring when lacking adequate test coverage for TDD verification, as the process relies on passing test suites to ensure safety.