Command Palette

Search for a command to run...

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

omc-doctor

БесплатноБез исполняемых скриптовНе проверен

Diagnose and fix oh-my-claudecode installation issues

Yeachan-Heoот Yeachan-Heo★ 41 149 звёзд на GitHub

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

Doctor Skill

Note: All ~/.claude/... paths in this guide respect CLAUDE_CONFIG_DIR when that environment variable is set. Surrounding spaces are ignored and an empty value means ~/.claude. A value that is ~, or starts with ~/ or ~\, means the home directory (OMC's runtime reads it that way; the shell does not expand a ~ stored in a variable), and a ~ anywhere else is literal. The checks that read the plugin installation are commands of one script that ships with the plugin, scripts/omc-doctor.mjs, which expands the variable with one expression, and each shell block that does not run it starts with the same expansion line; expand a path you read or write yourself the same way. Run every shell block whole, in one Bash call: the tool keeps no variable from one call to the next, so a line that uses $C or $S alone, without the first line of its block that sets it, sees an empty value. How a .. in the value is folded and how the locator line of a block finds the script: guide section paths-and-locator.

Task: Run Installation Diagnostics

You are the OMC Doctor - diagnose and fix installation issues.

Guide: the details on request

This text leaves out the details of the rarer cases. They are in scripts/omc-doctor-guide.md, beside the script, one section per name: channel-unknown, channel-plugin-dir, latest-grammar, versions-order and paths-and-locator (read one when a rule below sends you there and you need the reason or the exact rule) and cache-guard (read before every cache repair command, see "Fix: Outdated Plugin"). Print a section by running this block with the name in place of SECTION; it ends with exit code 1 and a message when the file is missing, and with exit code 2 for a name that is no section:

# Print one section of the guide (cross-platform)
S=; for R in "${CLAUDE_PLUGIN_ROOT}" "${OMC_PLUGIN_ROOT:-}"; do [ "${R#*[![:space:]]}" != "$R" ] && [ -f "$R/scripts/omc-doctor.mjs" ] && { S="$R/scripts/omc-doctor.mjs"; break; }; done; [ -n "$S" ] || { R=$(node -p '(require("child_process").spawnSync("npm root -g",{encoding:"utf8",timeout:5000,shell:true}).stdout||"").trim()' 2>/dev/null)/oh-my-claude-sisyphus; [ -f "$R/scripts/omc-doctor.mjs" ] && S="$R/scripts/omc-doctor.mjs"; }; [ -n "$S" ] || { echo "omc-doctor: plugin files not found: scripts/omc-doctor.mjs is missing under CLAUDE_PLUGIN_ROOT, under OMC_PLUGIN_ROOT and in the global npm package, or the variables are unset. Reinstall or update the plugin (omc update, or claude plugin update oh-my-claudecode), restart Claude Code and run the doctor again"; exit 1; }
node "$S" guide SECTION

Step 1: Check Plugin Version

# Get the plugin ID, install channel (marketplace, plugin-dir or npm), installed version, the channel's latest version and its updater (cross-platform)
S=; for R in "${CLAUDE_PLUGIN_ROOT}" "${OMC_PLUGIN_ROOT:-}"; do [ "${R#*[![:space:]]}" != "$R" ] && [ -f "$R/scripts/omc-doctor.mjs" ] && { S="$R/scripts/omc-doctor.mjs"; break; }; done; [ -n "$S" ] || { R=$(node -p '(require("child_process").spawnSync("npm root -g",{encoding:"utf8",timeout:5000,shell:true}).stdout||"").trim()' 2>/dev/null)/oh-my-claude-sisyphus; [ -f "$R/scripts/omc-doctor.mjs" ] && S="$R/scripts/omc-doctor.mjs"; }; [ -n "$S" ] || { echo "omc-doctor: plugin files not found: scripts/omc-doctor.mjs is missing under CLAUDE_PLUGIN_ROOT, under OMC_PLUGIN_ROOT and in the global npm package, or the variables are unset. Reinstall or update the plugin (omc update, or claude plugin update oh-my-claudecode), restart Claude Code and run the doctor again"; exit 1; }
node "$S" step1
# npm latest: for a Channel: npm install only; a marketplace channel's latest is its own Latest: line above, never this one
node "$S" npm-latest

Diagnosis:

  • If a block of this step printed omc-doctor: plugin files not found, no root variable and no global npm package names a directory that holds scripts/omc-doctor.mjs: the plugin install is incomplete, or the install is too old to ship the script. That is the diagnosis: CRITICAL - plugin files missing (reinstall or update the plugin with the line the message names, then run the doctor again). Name no channel, version or updater, and do not run the other script commands (Steps 4 and 6 and the cache fixes print the same line)
  • Read the Channel: line of each plugin before any rule below: it decides what that plugin's other lines mean, and a rule that reads Installed:, Latest: or Updater: applies only to the channels it names. Channel: unknown prints none of the three lines (none of them is missing). Channel: plugin-dir is a loaded checkout: it has no install record and no update channel, its Installed: is whatever version the checkout's own files hold, and Latest: (unavailable) and Updater: none are fixed answers, not failed checks. Channel: npm and Channel: marketplace are installs: Installed: (none) means nothing is installed (only `Channel: npm
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

node-hook-fingerprints.json

FAQ

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

Diagnose and fix oh-my-claudecode installation issues

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

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

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

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

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

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