/cc-skills-utils:plugin-installerfrom cc-skills-utils
Manage development plugins — audit, validate, install, sync, add, remove, refresh, bump, status. Trigger when asked to "setup plugins", "install plugins", "audit plugins", "validate plugin manifests", "add plugin to marketplace", "remove plugin from marketplace", or "check plugin status".
Ships in cc-skills-utils. 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.
None: SKILL.md is the whole skill.
Manage, audit, validate, install, and sync all development plugins.
All plugins live directly in P:/packages/.claude-marketplace/plugins/<name>/. This IS the source — no separate source directory, no junctions. After editing plugin files, bump the version and reload to propagate to the version-keyed cache.
Excluding packages: Place a .marketplace-exclude file in a package directory to exclude it from marketplace requirements. The audit will skip it.
When invoked without an action, run the complete check-fix-verify workflow.
P:/packages/.claude-marketplace/plugins/ for all directories with .claude-plugin/plugin.json, detects unregistered packages, and checks drift:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --packages-root "P:/packages/.claude-marketplace/plugins" --auto-fix --summarize
The --summarize flag pipes results through summarize_audit.py automatically, emitting a per-plugin prioritized action list with copy-paste fix commands. Without --summarize, the audit outputs raw structured findings only.Plugins live in the marketplace directory. Cache at C:\Users\brsth\.claude\plugins\cache\local\<name>\<version>/ is an install mirror.
The audit script uses quality-aware conflict resolution when both sides have different content:
JSON files: parsed for validity + schema structure (e.g., hooks.json must have "hooks" key — {"hooks": {}} beats {})
Python files: ast.parse validity — syntax errors lose
Text files: encoding validity + non-trivial content
Both pass quality checks → source wins (canonical location)
One fails quality → the passing side wins regardless of location
Both fail → flagged for manual review
File only in source → copy to cache
File only in cache → quality-checked before restoring to source (broken files left as stale)
Sync marketplace index:
claude plugin marketplace update local
Verify cache is clean:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --packages-root "P:/packages/.claude-marketplace/plugins" --drift
If drift detected, auto-bump each drifted plugin to propagate source changes to cache:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --bump <name> --marketplace-root "P:/packages/.claude-marketplace"
--bump runs marketplace update and drift verification automatically — no manual sync needed.
Skip bump only for plugins with conflicts (flagged during step 1) — those need manual review first.
3.5. Bump every plugin the audit modified (even if no drift was reported):
The drift check only compares content hashes — it does not catch config-file edits that change runtime behavior without changing bytes the cache considers drifted. The audit's --auto-fix step can also write to plugin source files (orphaned junctions, malformed hooks.json, marketplace.json registration), and those changes are also invisible to the runtime until a version bump creates a new cache dir.
Collect the list of plugins the audit touched (anything with auto-fix actions emitted in step 1) and bump each one, even if step 3 reported zero drift:
for plugin in <list-of-touched-plugins>; do
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --bump "$plugin" --marketplace-root "P:/packages/.claude-marketplace"
done
If step 1 ran without --auto-fix (audit-only), or the audit reported no actions for any plugin, this step is a no-op and you can skip it.
Why this is step 3.5 and not part of --auto-fix itself: A version bump is a semver event — it writes to plugin.json, both marketplace.json files, and installed_plugins.json, and creates a new cache directory. Bumping without a reason pollutes git history and version metadata. The audit's auto-fix changes are the reason here, and the bump must follow them, but it does not need to happen on every read-only audit run.
Validate all marketplace plugins:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --validate --marketplace-root "P:/packages/.claude-marketplace"
Final sync + report:
claude plugin marketplace update local
claude plugin list
⚠️ Then type /reload-plugins manually.
/cc-skills-utils:plugin-installer audit [name] — Audit plugin manifestsWith no argument, audits all marketplace plugins:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --packages-root "P:/packages/.claude-marketplace/plugins" --auto-fix --summarize
With a plugin name, audits only that plugin:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --packages-root "P:/packages/.claude-marketplace/plugins" --auto-fix --summarize --plugins <name>
Then refresh:
claude plugin marketplace update local
⚠️ Then type /reload-plugins manually.
/cc-skills-utils:plugin-installer validate [name] — Validate pluginsWith no argument, validates all:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --validate --marketplace-root "P:/packages/.claude-marketplace"
With a plugin name, validates only that plugin:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --validate --marketplace-root "P:/packages/.claude-marketplace" --plugins <name>
/cc-skills-utils:plugin-installer inventory [event] — Hook entry-point mapThe single source of truth for what hooks run for each event. Enumerates every
entry point across global + project settings.json and all plugin hooks.json,
expands each dispatch router's leaf list, and tags every command SOURCE (absolute
packages path, edits live), CACHE ($CLAUDE_PLUGIN_ROOT, needs bump+reload), or
LOCAL. Flags leaves registered in both a settings router and a plugin
hooks.json as [!] DUAL (they fire twice).
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --inventory
# Limit to one event:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --inventory-event Stop
Use this first when diagnosing a block ("which hook denied this?") instead of hand-assembling the chain from settings.json + every hooks.json.
audit)audit (via _hook_correctness_audit.py) flags, in addition to syntax/import issues:
missing_external_dependency — a .py or .sh hook invokes an external CLI
(jq, rg, fzf, fd, bat, gh, node, curl, …) that is NOT on PATH, with
no command -v / shutil.which guard. This hook WILL crash at runtime — the
"jq: command not found" class of error. Install the dependency or add a guard.guarded_external_dependency — same, but the hook DOES guard with command -v
/ shutil.which, so it degrades gracefully when the CLI is absent. Advisory only —
install the CLI for full functionality. Git-Bash builtins (grep/sed/awk/cat) are
excluded (they ship with the hook's runtime).block_reason_not_on_stderr — a __lib/router.py that blocks via sys.exit(2)
but never writes sys.stderr. The harness shows ONLY stderr on exit-2, so the block
reason is lost (bare "Blocked by hook"). Route blocks through an _emit_block() helper.dirname_global_resource_path — a hook that builds a config/rules/templates
path from a dirname(__file__)-derived var instead of the bootstrap _hooks_dir.
After plugin migration this resolves to the hook's own hooks/<phase>/ subdir, so the
resource is silently never found (this is what left directory_policy's allowlist empty
and blocked every external write). Use _hooks_dir./cc-skills-utils:plugin-installer install — Install all marketplace pluginsclaude plugin marketplace update local
ls P:/packages/.claude-marketplace/plugins/
# For each plugin directory:
claude plugin install <name>@local
claude plugin marketplace update local
⚠️ After each install, type /reload-plugins manually, then:
claude plugin list
/cc-skills-utils:plugin-installer sync — Sync plugin to marketplacePlugins live directly in the marketplace. No sync needed — edit files in place, then bump version to propagate to cache.
/cc-skills-utils:plugin-installer add <name> — Add a plugin to marketplaceCheck before creating:
ls P:/packages/.claude-marketplace/plugins/<name>.claude-plugin/plugin.jsonCreates a new plugin in the marketplace directory:
# 1. Create plugin directory
mkdir -p "P:/packages/.claude-marketplace/plugins/<name>/.claude-plugin"
# 2. Register in BOTH marketplace.json index files (install fails without this)
python3 -c "
import json
from pathlib import Path
name = '<name>'
src = Path('P:/packages/.claude-marketplace/plugins') / name
manifest = json.loads((src / '.claude-plugin/plugin.json').read_text())
entry = {
'name': manifest['name'],
'version': manifest['version'],
'description': manifest.get('description', ''),
'source': f'./plugins/{name}',
'keywords': manifest.get('keywords', [])
}
for mp_path in [
Path('P:/packages/.claude-marketplace/marketplace.json'),
Path('P:/packages/.claude-marketplace/.claude-plugin/marketplace.json'),
]:
if not mp_path.exists():
continue
data = json.loads(mp_path.read_text())
names = [p['name'] for p in data.get('plugins', [])]
if manifest['name'] not in names:
data['plugins'].append(entry)
mp_path.write_text(json.dumps(data, indent=2) + '\n')
print(f'Added to {mp_path}')
else:
print(f'Already in {mp_path}')
"
# 3. Sync and install
claude plugin marketplace update local
claude plugin install <name>@local
claude plugin marketplace update local
claude plugin list
⚠️ After install, type /reload-plugins manually.
/cc-skills-utils:plugin-installer remove <name> — Remove a plugin from marketplaceRemoves the plugin directory from marketplace and uninstalls it.
# 1. Remove plugin directory
Remove-Item "P:/packages/.claude-marketplace/plugins/<name>" -Recurse -Force
# 2. Remove from BOTH marketplace.json index files
python3 -c "
import json
from pathlib import Path
name = '<name>'
for mp_path in [
Path('P:/packages/.claude-marketplace/marketplace.json'),
Path('P:/packages/.claude-marketplace/.claude-plugin/marketplace.json'),
]:
if not mp_path.exists():
continue
data = json.loads(mp_path.read_text())
before = len(data.get('plugins', []))
data['plugins'] = [p for p in data.get('plugins', []) if p['name'] != name]
if len(data['plugins']) < before:
mp_path.write_text(json.dumps(data, indent=2) + '\n')
print(f'Removed from {mp_path}')
else:
print(f'Not in {mp_path}')
"
# 3. Uninstall and sync
claude plugin uninstall <name>@local
claude plugin marketplace update local
claude plugin list
⚠️ After uninstall, type /reload-plugins manually.
/cc-skills-utils:plugin-installer status — Check plugin statusclaude plugin list
/cc-skills-utils:plugin-installer refresh [name] — Nuke stale cache and reinstallFixes the common issue where source edits don't appear in the running session because the plugin loads from a version-keyed cache, not source. The official Claude Code docs recommend clearing the cache and reinstalling.
With a plugin name — targeted nuke (preferred):
# 1. Remove stale cache for this plugin only
rm -rf "C:/Users/brsth/.claude/plugins/cache/local/<name>"
# 2. Remove from installed_plugins.json
python3 -c "
import json
f = 'C:/Users/brsth/.claude/plugins/installed_plugins.json'
d = json.load(open(f))
d['plugins'].pop('<name>@local', None)
json.dump(d, open(f, 'w'), indent=2)
"
# 3. Sync marketplace + reinstall
claude plugin marketplace update local
claude plugin install <name>@local
claude plugin marketplace update local
# 4. Verify enabledPlugins registration (critical — install silently skips this for some plugins)
python3 -c "
import json
f = 'C:/Users/brsth/.claude/settings.json'
d = json.load(open(f))
key = '<name>@local'
if key not in d.get('enabledPlugins', {}):
d.setdefault('enabledPlugins', {})[key] = True
json.dump(d, open(f, 'w'), indent=2)
print(f'FIXED: added {key} to enabledPlugins')
else:
print(f'OK: {key} already in enabledPlugins')
"
⚠️ After install, type /reload-plugins manually.
With no argument — nuke all local plugin caches:
rm -rf "C:/Users/brsth/.claude/plugins/cache/local"
claude plugin marketplace update local
# Then reinstall each plugin:
ls P:/packages/.claude-marketplace/plugins/
claude plugin install <name>@local
⚠️ After each install, type /reload-plugins manually.
When to use (vs bump):
bump — source files changed, want a clean new version dir. Keeps old cache.refresh — cache is corrupted, stale, or mismatched. Nukes and reinstalls from marketplace.bump + /reload-plugins doesn't pick up changes, use refresh./cc-skills-utils:plugin-installer bump <name> — Bump plugin versionBumps the patch version (e.g., 2.0.0 → 2.0.1) in all version files AND updates installed_plugins.json so Claude Code loads the new version:
python3 "P:/packages/.claude-marketplace/plugins/cc-skills-utils/scripts/plugin-audit-and-fix.py" --bump <name> --marketplace-root "P:/packages/.claude-marketplace"
What --bump does automatically:
plugin.json and both marketplace.json filesinstalled_plugins.json version and lastUpdated timestampclaude plugin marketplace update local automaticallyAfter bumping, reload:
/reload-plugins
When to use: After editing any plugin files under P:/packages/.claude-marketplace/plugins/<name>/ that should propagate to the running session. The plugin system loads from version-keyed cache, not source — without a version bump, changes are invisible.
If install succeeds but plugin doesn't load:
/plugin install may silently fail to register the plugin in enabledPlugins in settings.json. Verify and fix:
python3 -c "
import json
f = 'C:/Users/brsth/.claude/settings.json'
d = json.load(open(f))
key = '<name>@local'
if key not in d.get('enabledPlugins', {}):
d.setdefault('enabledPlugins', {})[key] = True
json.dump(d, open(f, 'w'), indent=2)
print(f'FIXED: added {key} to enabledPlugins')
else:
print(f'OK: {key} already in enabledPlugins')
"
Then /reload-plugins. This is the most common cause of "plugin installed but not loading."
"failed to load" with hooks.json error:
Plugin hooks/hooks.json must be {"hooks": {}} (valid but empty), not {}. The audit auto-fix corrects this. Plugins that register hooks via settings.json router hooks (not hooks.json) still need a valid {"hooks": {}} file — Claude Code validates the structure on load even when hooks.json has no entries.
If install fails:
claude plugin marketplace update local then type /reload-pluginsclaude plugin validate <path>/cc-skills-utils:plugin-installer auditTo uninstall all marketplace plugins:
# Discover what's installed:
claude plugin list
# Uninstall each:
claude plugin uninstall <name>@local
claude plugin marketplace update local
⚠️ After uninstall, type /reload-plugins manually.
To add a new plugin to the marketplace:
/cc-skills-utils:plugin-installer add <plugin-name>
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
Other plugins' skills for the same job
/mainMain Cognitive Steering Framework - system health checks and workspace validation (with optional enforcement hooks)Generated from the plugin's indexed repository (enduser123/cc-skills-utils) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-utils