No slash command · from health-plugin
Runs bundled scripts to diagnose and repair orphaned projectPath rows and stale enabledPlugins keys in the plugin registry. Use when seeing plugin-already-installed errors or registry drift.
Ships in health-plugin. 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.
Run the bundled registry diagnostic and repair scripts: find orphaned and stale entries, remove them with a backup, and install a plugin into the current project. For what the registry holds, how scopes resolve, and the #14202 background, use health-plugin:plugin-registry.
This skill is model-invoked only (user-invocable: false). The user-facing entry point is /health:check --scope=registry, with --fix to apply repairs; it runs the same bundled scripts.
| Use this skill when... | Use another approach when... |
|---|---|
| Running the orphan/stale-entry diagnostic or its fix script | Comprehensive health check (/health:check) |
| Diagnosing project-scope vs global plugin issues | Auditing plugins for relevance (health-plugin:health-audit) |
| Cleaning up orphaned plugin entries | Settings validation only (health-plugin:settings-configuration) |
| Resolving "plugin already installed" errors | Agentic optimization audit (health-plugin:health-agentic-audit) |
| A project runs an older plugin version than the user install | Registry structure and field reference (health-plugin:plugin-registry) |
pwdfind . -maxdepth 2 -path '*/.claude-plugin/plugin.json' -type ffind . -maxdepth 2 -path './.claude/settings.json' -type ffind . -maxdepth 1 -type d -name '.claude-plugin'Parse these from $ARGUMENTS:
| Parameter | Description |
|---|---|
--fix | Apply fixes to the plugin registry |
--dry-run | Show what would be fixed without making changes |
--plugin <name> | Check/fix a specific plugin only |
Execute this plugin registry diagnostic with the bundled scripts. Both default --home-dir to $HOME and --project-dir to the current directory, so pass only the flags taken from $ARGUMENTS. Run each script exactly as spelled in the steps, so the allowed-tools rule pre-approves it.
bash ${CLAUDE_SKILL_DIR}/scripts/check-registry.sh [--plugin <name>] [--verbose]
Parse the STATUS=, PLUGIN_COUNT=, ORPHANED_ENTRIES=, and ISSUES: lines from output. The === PLUGINS === section lists each installed plugin with scope, version, source, and projectPath.
Print a structured diagnostic report summarising:
--verbose)Use the ISSUES: lines as the authoritative list of problems.
If $ARGUMENTS contains --fix:
Confirm with the user (via AskUserQuestion) which orphaned plugins to remove, unless --dry-run is also set.
Run the fix script:
bash ${CLAUDE_SKILL_DIR}/scripts/fix-registry.sh [--plugin <name>] [--dry-run]
The script creates a timestamped backup at ~/.claude/plugins/installed_plugins.json.backup.<UTC-timestamp> before modifying the registry, validates the resulting JSON, and aborts safely on any error.
Parse STATUS=, REMOVED=, REMOVED_COUNT=, and BACKUP_PATH= lines to report what changed.
Surface durability warnings. If the output includes SETTINGS_CHEZMOI_MANAGED=true, relay the WARNING= line to the user: the edited ~/.claude/settings.json is chezmoi-managed, so the fix reverts on the next chezmoi apply unless the same key is also removed from the chezmoi source (printed as SETTINGS_CHEZMOI_SOURCE=).
When a plugin exists in the registry under a different projectPath and the user wants it in the current project:
Confirm with AskUserQuestion, naming the scope: project records the plugin in the committed .claude/settings.json for everyone who clones the repo; local records it in .claude/settings.local.json for this user only; user covers every project on this machine.
Run the install from the project directory with the chosen scope:
claude plugin install <plugin>@<marketplace> --scope project
Verify the side effect, not the message: claude plugin list --json must show a row for the plugin whose scope is the chosen one and whose projectPath is the current directory (for project and local).
If the install reports the plugin as already installed and no such row exists, that is the upstream #14202 symptom (background in health-plugin:plugin-registry). Report it, and point to the last-resort registry edit in health-plugin:plugin-registry (§ Last resort: edit the registry by hand) rather than editing the registry from this skill.
After applying fixes, re-run Step 1 and confirm the issue count has dropped. Tell the user to run /reload-plugins or start a new session for the changes to load.
| Context | Command |
|---|---|
| Registry diagnostics (user-facing) | /health:check --scope=registry |
| Fix registry issues (user-facing) | /health:check --scope=registry --fix |
| Dry-run (user-facing) | /health:check --scope=registry --fix --dry-run |
| Diagnose only (script) | bash ${CLAUDE_SKILL_DIR}/scripts/check-registry.sh |
| Fix only (script) | bash ${CLAUDE_SKILL_DIR}/scripts/fix-registry.sh |
| Installs per scope | claude plugin list --json |
/health:check — full diagnostic scan; --scope=registry runs this skill's scriptshealth-plugin:plugin-registry — registry structure, install scopes, version lag, issue #14202, last-resort manual editshealth-plugin:settings-configuration — settings hierarchy and permission patternsWhat SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/health-agentic-auditAudit skills, commands, and agents for bare CLI commands lacking compact, fail-fast, or JSON flags, and stale reviews. Use when batch-checking skill documentation quality./health-auditPlugin audit against detected stack (Python, Node, Rust, Go, Terraform, Docker, K8s). Use when cleaning up unused plugins or discovering stack-relevant ones for a project./health-checkClaude Code health check — every environment check in one pass, names the broken layer, `--fix` repairs. Use when asked for a health check, or the install misbehaves and the cause is unknown.npx claudepluginhub laurigates/claude-plugins --plugin health-pluginOther plugins' skills for the same job