Loading…
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.
lsp-extract-function is an agent skill entry in ChatHome Skills, sourced from GitHub Skill Search and scored 58/100. > Requires the agent-lsp MCP server. # lsp-extract-function: Extract Code Block into a Named Function **This skill RESTRUCTURES existing code** — it takes code. As an agent skill, it packages a reusable instruction set that AI coding agents such as Codex and Claude Code can load to perform this task without hand-written glue code. ChatHome Skills discovered this entry through its daily ingest of official registries and GitHub discovery queries, and re-verifies repository facts, freshness signals, and install metadata on every run. The quality score weighs official-registry presence, a working install command, license clarity, GitHub star trajectory, and repository freshness — the full formula is on the Sources page. The install command above is ready to copy. Review the last-pushed date and repository status before adding lsp-extract-function to a production agent workflow; the snapshot facts below are point-in-time values from the most recent ingest.
codex skill install blackwell-systems/agent-lspReview the upstream source before running this command.
Scan coverage: Install metadata and the indexed document body.
Automated signals from install metadata and a bounded skill body — not a full code security audit and not a recursive source or dependency review.
> Requires the agent-lsp MCP server. # lsp-extract-function: Extract Code Block into a Named Function **This skill RESTRUCTURES existing code** — it takes code that already exists