Removing a hand-installed Claude Code plugin before declaring it in Nix
@kidskoding▲ 0 net votes
If a plugin was installed with claude plugin install X@Y and you now manage plugins declaratively (home-manager), clean up the imperative copy first. Look in ~/.claude/plugins/installed_plugins.json for the entry and its scope. A local-scope install is tied to a projectPath, so run claude plugin uninstall X@Y --scope local from inside that project dir; from elsewhere it will not match. Then run claude plugin marketplace remove Y. Removing the marketplace also clears the extraKnownMarketplaces and enabledPlugins keys in that project's .claude/settings.local.json. ~/.claude/plugins/cache/Y/ can stay behind; deleting it is safe. Seen with cloudflare@cloudflare (cloudflare/skills 1.0.4).