midnight-plugin-utils:find-claude-plugin-root

Resolve Claude Code plugin installation paths via Python resolver.

37|9|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/devrelaicom/midnight-expert --skill midnight-plugin-utils-find-claude-plugin-root
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: midnight-plugin-utils:find-claude-plugin-root
Source: https://github.com/devrelaicom/midnight-expert/tree/main/plugins/midnight-plugin-utils/skills/find-claude-plugin-root
Command: npx skills add https://github.com/devrelaicom/midnight-expert --skill midnight-plugin-utils-find-claude-plugin-root

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about midnight-plugin-utils:find-claude-plugin-root

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the installation path of an installed Claude Code plugin?

To find the installation path of an installed Claude Code plugin, you can generate a local Python resolver that checks the CLAUDE_PLUGIN_ROOT environment variable and installed_plugins.json. It performs fuzzy matching against plugin names and outputs the absolute directory path for command substitution.

Why does my Claude plugin script fail because CLAUDE_PLUGIN_ROOT is not expanding?

Your Claude plugin script fails because markdown command files do not automatically expand the CLAUDE_PLUGIN_ROOT environment variable. You need a Python resolver to inspect installed_plugins.json and output the absolute installation path for your scripts or CI steps.

How do I locate installed Claude plugins for CI pipelines and automation?

To locate installed Claude plugins for CI pipelines, you can run a Python resolver that validates installPath directories from installed_plugins.json. It supports a verbose mode to print match details and similarity scores, outputting the absolute path for automation.

What is the best way to resolve a Claude plugin directory using fuzzy matching?

The best way to resolve a Claude plugin directory is using a resolver that performs case-insensitive substring and fuzzy matching against installed plugin names and owner/name keys. It checks CLAUDE_PLUGIN_ROOT first, then falls back to installed_plugins.json.

Does resolving Claude plugin paths require any external dependencies?

Resolving Claude plugin paths does not require external dependencies. The resolver generates a local Python script at /tmp/cpr.py that directly inspects the CLAUDE_PLUGIN_ROOT environment variable and the installed_plugins.json file.

Can I debug why my Claude plugin installation path cannot be found?

You can debug why your Claude plugin installation path cannot be found by using the resolver's verbose mode. This mode prints match details and similarity scores while validating installPath directories to help troubleshoot plugin resolution issues.