Skip to content

lsp-extract-function

Extract a selected code block into a named function. Primary path uses the language server's extract-function code action; falls back to manual extraction when no code action is available. Validates captured variables, scope shadowing, and compilation after extraction.

Repository Source folder

Details

Path
skills/lsp-extract-function/SKILL.md
License
MIT
Allowed tools
1
Dependencies
4

Allowed tools

mcp__lsp__list_symbols mcp__lsp__suggest_fixes mcp__lsp__execute_command mcp__lsp__apply_edit mcp__lsp__get_diagnostics mcp__lsp__open_document mcp__lsp__format_document mcp__lsp__get_server_capabilities

FAQ