lsp-edit-symbol

Resolve a named symbol via workspace queries and apply edits across files.

102|5|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/blackwell-systems/agent-lsp --skill lsp-edit-symbol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lsp-edit-symbol
Source: https://github.com/blackwell-systems/agent-lsp/tree/main/skills/lsp-edit-symbol
Command: npx skills add https://github.com/blackwell-systems/agent-lsp --skill lsp-edit-symbol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Edit a named symbol across a codebase without knowing its file path or exact location. Resolve the symbol to its definition, retrieve its full range, and apply the edit across files as needed.

Core Features & Use Cases

  • Resolve a symbol to its definition across the workspace and retrieve the symbol's full range.
  • Apply edits across the workspace to rename or modify the symbol consistently across files and languages.
  • Use cases include refactoring a function, type, or variable by name when exact coordinates are unavailable.

Quick Start

Tell your AI to locate a symbol by name, fetch its definition, and apply the desired changes.

Frequently Asked Questions about lsp-edit-symbol

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

FAQPage Schema
How do I edit a function or variable by name without knowing its file path?

To edit a symbol by name without a file path, you can use workspace symbol queries to resolve its definition and apply edits across the codebase. This allows refactoring functions or types by name alone.

What is the best way to refactor a code symbol across multiple files when I only have its name?

Refactoring a code symbol across multiple files by name involves querying the workspace for symbol definitions, retrieving their full ranges, and applying edits consistently. This ensures changes propagate wherever the symbol appears.

How do I disambiguate between multiple matching symbols when editing code?

To disambiguate between multiple symbol matches during editing, use the container name or file context. This narrows the workspace symbol query results to the correct definition before applying changes.

Can I apply code refactoring across different languages in a workspace?

Yes, you can apply code refactoring across different languages in a workspace. The symbol resolution and edit application workflow operates consistently across files and languages within the resolved workspace.

How does LSP workspace symbol resolution work for code edits?

LSP workspace symbol resolution works by querying the codebase for a named symbol, retrieving its full definition range, and applying the requested edits. This workflow ensures accurate modifications without manual file location.

Do I need exact line coordinates to modify a type definition in my codebase?

No, you do not need exact line coordinates to modify a type definition. The tool resolves the symbol to its definition and retrieves its full range automatically, allowing edits by name alone.