/code:find-plugin-filefrom code
Locates files within the Claude Code plugins cache directory, resolving the latest plugin version. Useful for slash commands and orchestrators needing dynamic plugin file paths.
Ships in code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill provides a utility to dynamically locate files within the Claude Code plugins cache directory. Instead of hardcoding plugin-cache paths, use this skill to find files in ~/.claude/plugins/cache/closedloop-ai/ with automatic latest-version resolution.
To find a file in the plugins cache, run the find_plugin_file.py script:
python3 scripts/find_plugin_file.py <file_pattern>
# Find parse_args.py in any plugin (returns first match)
python3 scripts/find_plugin_file.py parse_args.py
# Find all SKILL.md files across all plugins
python3 scripts/find_plugin_file.py SKILL.md --all
# Find a specific file using path pattern
python3 scripts/find_plugin_file.py plan/parse_args.py
# Find tools in a specific subdirectory
python3 scripts/find_plugin_file.py tools/python/plan/parse_args.py
# Search only in code plugin
python3 scripts/find_plugin_file.py parse_args.py --plugin code
python3 scripts/find_plugin_file.py --list-plugins
To use in a slash command that needs to reference plugin tools, use a two-step approach:
# Step 1: Locate the find_plugin_file.py script (handles multiple plugin versions)
FIND_SCRIPT=`ls ~/.claude/plugins/cache/closedloop-ai/code/*/skills/find-plugin-file/scripts/find_plugin_file.py 2>/dev/null | sort -V | tail -1`
# Step 2: Use the script to find the target file, then derive TOOLS_PATH
TARGET_FILE=`python3 "$FIND_SCRIPT" plan/parse_args.py`
TOOLS_PATH=`dirname \`dirname "$TARGET_FILE"\``
# Step 3: Run with correct PYTHONPATH
PYTHONPATH="$TOOLS_PATH:$PYTHONPATH" python3 "$TARGET_FILE" --help
Important:
`) instead of $() for command substitution — Claude Code's Bash tool escapes $() syntax.code/*/skills/... can match multiple version directories. Always use ls ... | sort -V | tail -1 to select the latest version.| Argument | Description |
|---|---|
file_pattern | File name or path pattern to find |
--plugin, -p | Restrict search to a specific plugin |
--all, -a | Return all matches instead of just the first |
--list-plugins, -l | List available plugins and their latest versions |
--cache-dir | Override the default cache directory |
The script automatically selects the latest version of each plugin using semantic versioning comparison. For example, if a plugin has versions 1.6.0, 1.9.1, and 1.10.0, it will search in 1.10.0.
find_plugin_file.py - Main utility script for locating files in the plugins cacheWhat SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/build-status-cacheSkip Phase 7 rebuild when no code changed since Phase 5 build passed.
Compares git diff hash against stored hash from last successful build validation.
Triggers on: entering Phase 7, checking build status, before final build validation.
Returns BUILD_CACHE_HIT to skip or BUILD_CACHE_MISS to re-run build-validator.
/closedloop-envProvides ClosedLoop environment paths (CLOSEDLOOP_WORKDIR, CLAUDE_PLUGIN_ROOT) to agents. This skill should be used by any agent that needs to access ClosedLoop run directories, plugin schemas, or other path-dependent resources./codex-reviewRun Codex to review a plan file and return structured feedback with a verdict.
Triggers on: debate loop Codex review rounds.
Returns VERDICT:APPROVED or VERDICT:NEEDS_CHANGES plus CODEX_SESSION token.
/critic-cacheCheck if critic reviews are still valid before re-running Phase 2.5 critics.
Compares plan.json + critic-gates.json content hash against stored hash from last critic run.
Triggers on: entering Phase 2.5, checking critic cache, before launching critics.
Returns CRITIC_CACHE_HIT to skip critics or CRITIC_CACHE_MISS to re-run them.
/cross-repo-cacheCheck if cross-repo coordinator results can be reused, avoiding redundant Sonnet agent launches.
Compares peer repo git hashes against stored hashes from last coordinator run.
Triggers on: entering Phase 1.4.1, checking cross-repo cache, before discovering peers.
Returns CROSS_REPO_CACHE_HIT with cached status or CROSS_REPO_CACHE_MISS to re-run coordinator.
/design-inventoryUse to run the Claude Design to ClosedLoop pipeline against the current web-ui. Stage A inventories a design export zip into schema-validated findings (typed design units - screens, regions like nav bars, standalone components like a chat dialog; UX and behavioral changes; Storybook component reuse mapping; token drift vs the live design system), then creates a platform "Design Review" Feature document the team reviews by editing. Stage B is that in-document human review (delete a section to decline, edit a line to amend, leave to accept). Stage C derives decisions from the edited document and generates DRAFT feature tickets grouped per screen (UI plus optional API) for accepted work only. Triggers on "design inventory", "parse claude design export", "design handoff report", "what changed in this design", "generate tickets from design review".npx claudepluginhub closedloop-ai/claude-plugins --plugin codeOther plugins' skills for the same job