plugin-rescope
v1.0.1
Published
Workarounds to rescope Claude Code plugins across projects
Readme
plugin-rescope
Rescope Claude Code plugins across projects.
Claude Code has a bug where installing a plugin at the local or user scope prevents you from reinstalling it into a different project (anthropics/claude-code#14202). plugin-rescope works around this by rescoping plugins across projects.
Install
npm install -g plugin-rescopeUsage
npx plugin-rescope [add|remove] [options] <plugin> [<plugin> ...]Run from the project directory where you want the plugin.
Commands
| Command | Description |
| -------- | --------------------------------------------------- |
| add | Register plugin(s) for the current project (default)|
| remove | Unregister plugin(s) from the current project |
When no command is specified, add is used.
Options
| Option | Description |
| ---------------- | -------------------------------------------- |
| --scope <scope>| Override the plugin scope (e.g. local, global)|
| --help | Show the help message |
Recommended: Use npx
The easiest way to run plugin-rescope is with npx, which comes bundled with Node.js. It downloads and runs the package on the fly -- no global install required and you always get the latest version:
npx plugin-rescope my-plugin@marketplaceExamples
Add a single plugin to the current project:
npx plugin-rescope my-plugin@marketplaceExplicitly use the add command with a scope override:
npx plugin-rescope add --scope local my-plugin@marketplaceAdd multiple plugins at once:
npx plugin-rescope my-plugin@marketplace another-plugin@marketplaceRemove a plugin from the current project:
npx plugin-rescope remove my-plugin@marketplaceShow help:
npx plugin-rescope --helpGlobal Install
If you prefer not to use npx, install globally:
npm install -g plugin-rescopeThen run the command directly:
plugin-rescope my-plugin@marketplace
plugin-rescope remove my-plugin@marketplaceRequirements
- Node.js >= 18.0.0
License
Apache-2.0 -- see LICENSE for details.
