What problem does it solve?
Locating where a Claude Code plugin is installed can be fragile because markdown command files do not expand the CLAUDE_PLUGIN_ROOT environment variable and plugin installation paths are stored in a user-specific installed_plugins.json file. This Skill provides a reliable way to resolve a plugin's installation directory for use in scripts, CI steps, or manual troubleshooting.
Core Features & Use Cases
- Environment-aware resolution: Checks CLAUDE_PLUGIN_ROOT first for backward compatibility and falls back to inspecting ~/.claude/plugins/installed_plugins.json.
- Robust matching: Performs case-insensitive substring matching and fuzzy matching against installed plugin names and owner/name keys.
- Diagnostics and automation: Validates installPath directories, supports a verbose mode that prints match details and similarity scores, and prints the absolute path for command substitution.
- Use Cases: Run plugin scripts that require the plugin root, automate license population or project detection across installed plugins, or debug plugin resolution in CI pipelines.
Quick Start
Run the skill to create a resolver at /tmp/cpr.py and then use it to print the installation path for a plugin by name.