一键导入
uninstall-plugin
Use when a user asks to fully remove a Neovim plugin, including plugin files, keymaps, config references, and README documentation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a user asks to fully remove a Neovim plugin, including plugin files, keymaps, config references, and README documentation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | uninstall-plugin |
| description | Use when a user asks to fully remove a Neovim plugin, including plugin files, keymaps, config references, and README documentation. |
Remove a Neovim plugin cleanly, including plugin files, related configuration, and docs.
/uninstall-plugin <plugin-name|github-url|owner/repo>
Examples:
/uninstall-plugin flash.nvim/uninstall-plugin folke/flash.nvim/uninstall-plugin https://github.com/folke/flash.nvimNormalize input to these identifiers:
owner/repo (if available)repo (for example flash.nvim)plugin_name (strip .nvim or .vim, for example flash)Find candidate files under ./lua/plugins/:
# Direct repo match in specs
rg -n '"owner/repo"' lua/plugins
# Fallback by filename patterns
rg --files lua/plugins | rg 'plugin-name|repo|short-name'
If multiple candidates match, stop and ask the user which one to remove.
Scan for references in code and docs:
rg -n 'owner/repo|repo-name|plugin_name|require\("module"\)' lua lsp README.md init.lua
Classify matches into:
Delete plugin-owned files only:
./lua/plugins/<plugin>.lua./lsp/<plugin-related>.lua./lua/dev/<plugin-related>/Do not delete shared files unless only plugin-owned sections are removed.
Edit remaining files to remove plugin-specific blocks:
./lua/keymap.lua or other plugin specs./lua/*.luaRules:
Update ./README.md and remove plugin-related content:
If a section becomes empty, collapse or clean it.
Run post-removal checks:
# Ensure no stale references remain
rg -n 'owner/repo|repo-name|plugin_name' lua lsp README.md init.lua
# Formatting and tests (required by this repository)
stylua --indent-type Spaces .
make test
# Markdown lint when docs changed
markdownlint-cli2 "**/*.md"
Do not manually edit lazy-lock.json; it is generated and should be updated by the plugin manager workflow.
After removal, report:
✅ Removed plugin: <owner/repo or plugin>
Deleted files:
- <path>
Updated files:
- <path>: removed <what>
Verification:
- stylua: <pass/fail>
- make test: <pass/fail>
- markdownlint: <pass/fail or skipped>
Notes:
- <dependency or tool cleanup decisions>