Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

health-check

БесплатноЗапускает вложенные скриптыНе проверен

Claude 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…

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

/health:check

Single entry point for Claude Code health diagnostics. Runs environment checks (plugin registry, settings, hooks, MCP servers, SessionStart executability, pre-commit validity, permissions coverage, marketplace enrollment) plus optional deeper audits, and routes --fix to the appropriate internal workflow.

When to Use This Skill

Use this skill when... Use another approach when...
Running Claude Code diagnostics Viewing raw settings (use Read on settings.json)
Troubleshooting plugin registry issues Inspecting marketplace metadata manually
Auditing plugins for project fit Installing a specific plugin (use /plugin install)
Checking skill agentic-optimisation quality Editing a single known skill
One-stop --fix across registry/stack/agentic Precise surgical edits to a single file

Context

  • Current project: !pwd
  • Project settings exists: !find . -maxdepth 2 -path '*/.claude/settings.json'
  • Local settings exists: !find . -maxdepth 2 -path '*/.claude/settings.local.json'

Parameters

Parse these from $ARGUMENTS:

Parameter Description
--scope=<all|registry|stack|agentic|runtime|usage> Which audits to run. Default all.
--fix Apply fixes to findings (prompts for confirmation).
--dry-run Preview fixes without modifying files.
--verbose Include detailed diagnostics.

Scope semantics:

Scope Covers
registry Plugin registry health (orphaned projectPath, stale enabledPlugins, registry-vs-settings drift)
stack Enabled plugins vs detected project tech stack
agentic Skill/command/agent agentic-optimisation compliance
runtime ~/.claude.json bloat, history.jsonl growth, cleanupPeriodDays validity. Read-only.
usage Never-fired and dormant skills and plugin agents, mined from session transcripts. Read-only; SKIPs when history is insufficient.
all Environment checks + all five audits

Execution

Execute this diagnostic router. Default scope is all when --scope is not provided.

Run every bundled script exactly as spelled in this file, path unquoted: each allowed-tools rule pre-approves only the command text it spells, and any other spelling goes through the normal permission flow. Add no $(…) substitution: Claude Code does not pre-approve a command containing one, and every script already defaults --project-dir to the working directory.

Step 1: Run environment checks (always)

These run regardless of --scope.

1a. Core environment scripts (including 1d permissions coverage and 1e marketplace enrollment)

bash ${CLAUDE_SKILL_DIR}/scripts/check-plugins.sh --home-dir "$HOME"
bash ${CLAUDE_SKILL_DIR}/scripts/check-plugin-scope-lag.sh --home-dir "$HOME"
bash ${CLAUDE_SKILL_DIR}/scripts/check-settings.sh --home-dir "$HOME"
bash ${CLAUDE_SKILL_DIR}/scripts/check-hooks.sh --home-dir "$HOME"
bash ${CLAUDE_SKILL_DIR}/scripts/check-mcp.sh --home-dir "$HOME"
bash ${CLAUDE_SKILL_DIR}/scripts/check-permissions-coverage.sh --home-dir "$HOME"
bash ${CLAUDE_SKILL_DIR}/scripts/check-marketplace-enrollment.sh --home-dir "$HOME"

Parse STATUS=, REASON= (when present), CONFIGURED= (hooks, MCP) and ISSUES: from each. Pass --verbose when set on $ARGUMENTS. Read each script's extra keys as described in references/environment-checks.md, and name the file each finding came from: the settings or .mcp.json file, the plugin that declared a hook, the project path and both versions for scope_lag, the tool and task file for missing_permission.

1b, 1c. SessionStart smoke test, pre-commit config

Run each check as specified in references/environment-checks.md and score it OK/WARN/ERROR (pre-commit may SKIP when the tool is absent).

Step 2: Run scope-specific audits

For --scope=registry or all:

bash ${CLAUDE_PLUGIN_ROOT}/skills/health-plugins/scripts/check-registry.sh --home-dir "$HOME"

Parse STATUS=, PLUGIN_COUNT=, ORPHANED_ENTRIES=, STALE_ENABLED_ENTRIES=, and ISSUES:.

For --scope=stack or all: invoke the health-plugin:health-audit skill with the Skill tool, passing --verbose when set. Load it through the Skill tool rather than reading its SKILL.md: only a loaded skill gets its own ${CLAUDE_SKILL_DIR} substituted and its own allowed-tools (its enabled-plugins.sh and claude plugin list commands are not granted here).

For --scope=agentic or all: invoke the health-plugin:health-agentic-audit skill with the Skill tool the same way, passing --verbose when set.

For --scope=runtime or all:

bash ${CLAUDE_SKILL_DIR}/scripts/check-runtime.sh --home-dir "$HOME"

Parse STATUS=, ISSUES:, CLEANUP_SUGGESTED= and the per-findi

Полный SKILL.md на GitHub

Установить health-check в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-plugins.sh *)
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-plugin-scope-lag.sh *)
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-settings.sh *)
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-hooks.sh *)
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-mcp.sh *)
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-permissions-coverage.sh *)
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-runtime.sh *)
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-usage.sh *)
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-marketplace-enrollment.sh *)
Bash(bash ${CLAUDE_PLUGIN_ROOT}/skills/health-plugins/scripts/check-registry.sh *)
Bash(bash ${CLAUDE_PLUGIN_ROOT}/skills/health-plugins/scripts/fix-registry.sh *)
Bash(pre-commit validate-config *)
Read
Glob
Grep
TodoWrite
AskUserQuestion

Вложенные файлы

REFERENCE.mdreferences/audit-scopes.mdreferences/command-reference.mdreferences/environment-checks.mdreferences/known-issues.mdscripts/check-hooks.shscripts/check-marketplace-enrollment.shscripts/check-mcp.shscripts/check-permissions-coverage.shscripts/check-plugin-scope-lag.shscripts/check-plugins.shscripts/check-runtime.shscripts/check-settings.shscripts/check-usage.shscripts/lib/retention.shscripts/lib/summary.sh

FAQ

Что делает скилл health-check?

Claude 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.

Как установить скилл health-check?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл health-check запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить health-check с