Command Palette

Search for a command to run...

Назад к скиллам
скилл № 27756

crew-doctor

Health-check the install — hooks, git hooks, gates, discipline.

БесплатноБез исполняемых скриптов
crewforthот crewforth★ 26 звёзд на GitHub

Установить crew-doctor в Claude Code и Claude Desktop

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

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

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

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

/crew-doctor

Verify Crewforth is actually active in this project (not just present on disk):

  1. Run bash .claude/eval/doctor.sh (Bash tool, not PowerShell).
  2. Read its report. It checks: VERSION present · every hook executable · the required git hooks (pre-commit, commit-msg) present · guard-bash actually blocks a force-push (catches a hook that is present but neutered) · core.hooksPath points at .claude/hooks, or at .claude/git-shim when the project has hooks of its own (else the §4.1/§4.2 commit trace + secret/bloat scan never runs) · settings.json valid and wiring the PreToolUse / UserPromptSubmit / Stop gates to non-empty hook arrays (an empty [] wires nothing); SessionStart (rehydration) is reported as a warning if absent · ./CLAUDE.md actually imports .claude/DISCIPLINE.md — without that line the discipline sits on disk and never loads, which every other check is blind to.
  3. For each ❌, apply the printed fix. Anything that changes git config or file permissions needs approval first — show the exact command and wait.
  4. Read the Readiness block too. It is advisory (never changes the verdict) and asks a different question — is this project set up to be worked on by agents: CLAUDE.md project section filled in · a project-specific skill alongside Crewforth's generic ones · a devcontainer to sandbox agent commands · an MCP server · CLAUDE.md not drifted behind the code. Report the gaps as suggestions, not as failures, and never "fix" them unasked — adding a devcontainer or an MCP server is the user's call. Which MCP tools this session actually has is read from your own tool list (names starting mcp__), never by running a command such as claude mcp list, which can prompt.
  5. Summarise: healthy, or the precise fixes applied/needed, plus the readiness score. If it's not a git repo, note that the commit-time gates need git init + the update (npx crewforth update), which arms them. Where it lists verify commands never run, each /crew-allow-verify <command> line is a message only the user can send: show them as they stand, and do not send one. If the output contains a line starting with ⭐, pass it to the user verbatim as the LAST line of your summary — it prints once per Crewforth version here (the installer has its own once), and it is meant for the user, not for you.

If .claude/eval/doctor.sh doesn't exist, this is not a full (start.sh / adopt.sh) install — Crewforth is likely running as a plugin, whose hooks are managed by Claude Code itself; there's nothing for the doctor to check, with one exception: the skill listing, which a plugin cannot size for itself (its settings cannot set skillListingBudgetFraction). Count it the way the full install's doctor does: LC_ALL=C awk -f "${CLAUDE_PLUGIN_ROOT}/eval/lib/skill-listing.awk" "${CLAUDE_PLUGIN_ROOT}"/skills/*/SKILL.md (prints characters, then skills). At the default fraction a 200,000-token model has 8,000 characters for the whole listing, and Claude Code's own skills take about 5,900 of them (measured on v2.1.282). If Crewforth's number plus 5,900 is over 8,000, tell the user plainly: on such a model the least-used skills lose their descriptions and are less likely to be picked on their own; one line in ~/.claude/settings.json fixes it — "skillListingBudgetFraction": 0.04; the cost is that the listing is then sent whole every turn, about (that total ÷ 4) tokens, (tokens ÷ 2,000)% of a 200k window. It is their call — show the line and the cost, do not edit their settings. On a 1,000,000-token model the default already fits.

On Windows, check Git Bash too. Without a Git Bash where Claude Code looks, it runs every hook through PowerShell and Crewforth's gates do not run. The full install's doctor runs the same script: bash "${CLAUDE_PLUGIN_ROOT}/eval/lib/git-bash.sh" (Bash tool, not PowerShell). Pass its lines to the user verbatim; a ❌ is a failure with its fix. If this session has no Bash tool at all, that is the finding itself — Claude Code found no Git Bash: tell the user the gates do not run and that the fix is Git for Windows in its default folder, or CLAUDE_CODE_GIT_BASH_PATH set to its bin\bash.exe, and then the terminal and Claude Code closed and opened again (an open terminal keeps the old value). Do not run the script through PowerShell.

The eval scripts are installer-only, by decision. eval/ — doctor.sh, smoke-test.sh, routing-eval.sh, scan-skill.sh, utilization.sh — ships with start.sh and adopt.sh and NOT with the plugin edition; eval/lib/ (the JSON reader, the listing counter, the Git Bash check) ships with both. The eval scripts are developer instruments: they inspect an installation from outside it, and the plugin edition has no installation to inspect. Say this plainly when someone asks why /crew-doctor reports only the listing (and, on Windows, Git Bash) on a plugin install, rather than t

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

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

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

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл crew-doctor?

Health-check the install — hooks, git hooks, gates, discipline.

Как установить скилл crew-doctor?

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

Скилл crew-doctor запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить crew-doctor с