Wrap any code edit with before/after diagnostic comparison. Speculatively previews the change first (preview_edit), then applies to disk only if the error delta is acceptable. If post-edit errors appear, surfaces code actions for quick fixes. Handles single and multi-file edits.
安装
npx skills add blackwell-systems/agent-lsp --skill lsp-safe-editnpx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a claude-code -gnpx skills add blackwell-systems/agent-lsp --skill lsp-safe-edit -a codex -ggemini skills install https://github.com/blackwell-systems/agent-lsp.git --path skills/lsp-safe-editgh skill install blackwell-systems/agent-lsp lsp-safe-editgit clone --depth 1 https://github.com/blackwell-systems/agent-lsp /tmp/blackwell-systems__agent-lsp
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/blackwell-systems__agent-lsp/skills/lsp-safe-edit ~/.claude/skills/lsp-safe-edit # Claude Code
cp -R /tmp/blackwell-systems__agent-lsp/skills/lsp-safe-edit ~/.agents/skills/lsp-safe-edit # Codex, Cursor, Gemini CLI, Copilot, OpenCode