utils:find-claude-plugin-root

Installation
SKILL.md

Find Claude Plugin Root

This skill generates a Python resolver script at /tmp/cpr.py that locates a plugin's installation directory by reading ~/.claude/plugins/installed_plugins.json.

Problem It Solves

${CLAUDE_PLUGIN_ROOT} environment variable doesn't expand in markdown command files, making it impossible to reference plugin scripts and resources. This is a known issue: https://github.com/anthropics/claude-code/issues/9354

Solution

Generate a Python script that:

  1. Accepts plugin name as argument
  2. Tries ${CLAUDE_PLUGIN_ROOT} first (backwards compatible)
  3. Reads installed_plugins.json and searches for exact match
  4. If no exact match, finds similar plugin names (fuzzy matching)
  5. Outputs the plugin installation path to stdout
  6. Saves to /tmp/cpr.py (ephemeral, no project pollution)

Usage

Installs
1
GitHub Stars
2
First Seen
Mar 31, 2026
utils:find-claude-plugin-root — aaronbassett/aaronbassett-marketplace