health-plugins
БесплатноЗапускает вложенные скриптыНе проверенRun check-registry.sh and fix-registry.sh: find orphaned projectPath rows and stale enabledPlugins keys, back up, remove. Use when seeing…
от laurigates★ 61 звезда на GitHubОб этом скилле
Orphaned-Entry Diagnostic and Repair Scripts
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.
When to Use This Skill
| 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) |
Context
- Current project: !
pwd - Current project has plugins: !
find . -maxdepth 2 -path '*/.claude-plugin/plugin.json' -type f - Project settings exists: !
find . -maxdepth 2 -path './.claude/settings.json' -type f - Project plugins dir: !
find . -maxdepth 1 -type d -name '.claude-plugin'
Parameters
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 |
Execution
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.
Step 1: Diagnose the registry
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.
Step 2: Report findings
Print a structured diagnostic report summarising:
- Registry location, validity, and plugin counts (total / global / project-scoped)
- Orphaned entries (projectPath directory missing) with severity and suggested fix
- Plugins enabled in settings but not in the registry
- Plugins from other projects (INFO only, shown with
--verbose)
Use the ISSUES: lines as the authoritative list of problems.
Step 3: Apply fixes (if --fix)
If $ARGUMENTS contains --fix:
Confirm with the user (via
AskUserQuestion) which orphaned plugins to remove, unless--dry-runis 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=, andBACKUP_PATH=lines to report what changed.Surface durability warnings. If the output includes
SETTINGS_CHEZMOI_MANAGED=true, relay theWARNING=line to the user: the edited~/.claude/settings.jsonis chezmoi-managed, so the fix reverts on the nextchezmoi applyunless the same key is also removed from the chezmoi source (printed asSETTINGS_CHEZMOI_SOURCE=).
Step 4: Handle "plugin needed in current project"
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:projectrecords the plugin in the committed.claude/settings.jsonfor everyone who clones the repo;localrecords it in.claude/settings.local.jsonfor this user only;usercovers every project on this machine.Run the install from the project directory with the chosen scope:
claude plugin install <plugin>@<marketplace> --scope projectVerify the side effect, not the message:
claude plugin list --jsonmust show a row for the plugin whosescopeis the chosen one and whoseprojectPathis the current directory (forprojectandlocal).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 inhealth-plugin:plugin-registry(§ Last resort: edit the registry by hand) rather than editing the registry from thi
Установить health-plugins в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-registry.sh *)Bash(bash ${CLAUDE_SKILL_DIR}/scripts/fix-registry.sh *)Bash(claude plugin list *)Bash(claude plugin install *)ReadGlobGrepTodoWriteAskUserQuestionВложенные файлы
FAQ
Что делает скилл health-plugins?
Run check-registry.sh and fix-registry.sh: find orphaned projectPath rows and stale enabledPlugins keys, back up, remove. Use when seeing plugin-already-installed errors or registry drift.
Как установить скилл health-plugins?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл health-plugins запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic