Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnoses and repairs oh-my-claudecode plugin installation problems, including outdated plugin caches and config paths.
32% 86%+55 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 7 of 22 without it.
This test ran on v3. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
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.
You are the OMC Doctor - diagnose and fix installation issues.
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
# 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:
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)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 prints it), and Installed: (unknown) means an install is there whose version cannot be establishedInstalled: (none) under Channel: npm, never under Channel: marketplace, where a registry entry is an install whose version may be unknown (next rule), and never under Channel: plugin-dir): CRITICAL - plugin not installedInstalled: (unknown) under Channel: marketplace or Channel: npm: WARN - an install is there (a registry entry, or the root the session runs) but its version cannot be established, which is not a missing install and never CRITICAL. A Registry mismatch: line names the two versions an entry gives (its version and the one its installPath names: neither is the code, and no manifest of the running root settles it); a Note: line says why when nothing names a version (an entry with only an installPath that names none, a manifest of the running root without a usable version, a plugin cache that cannot be read). Recommend the Updater: line, compare nothing with Latest: and report no outdated WARNChannel: unknown: CRITICAL - the install channel cannot be established, so the install cannot be diagnosed. Say so, name no updater and do not compare versions (what makes a channel unknown: guide section channel-unknown)Channel: plugin-dir: the session loads the checkout named by OMC_PLUGIN_ROOT (or CLAUDE_PLUGIN_ROOT). Installed: is the version in that checkout's package.json or .claude-plugin/plugin.json ((none) means it has neither, or that the version it holds is not a semantic version of that grammar, or that reading it failed), there is no channel latest, so no outdated WARN, and the npm latest: line is ignored. Installed: (none) here is an unknown version of a checkout the session is running, not a missing install: it is never CRITICAL - plugin not installed, the Plugin Version check is OK with the detail plugin-dir checkout, version unknown, and the report names the checkout (Plugin root:) and does not call the plugin absent (how a checkout becomes the install, and which roots are ignored: guide section channel-plugin-dir)Channel: marketplace it is the Latest: line the command prints (the version in that marketplace clone, accepted only when it is a semantic version in the grammar of the runtime's parseSemver in scripts/session-start.mjs: optional leading v, three numeric parts without leading zeros, optional prerelease and build metadata; Step 1 drops the v, and anything else, such as 999x.0.0, 1.2, 1.2.3.4 or 01.2.3, is Latest: (unavailable), which no update is recommended from), and npm view (the npm latest: line, printed by a command of its own that gives npm 20 seconds) is consulted only for Channel: npm, so ignore that line for a marketplace install. A marketplace install is never compared with an npm-only release, because the marketplace update cannot install one. If Step 1 lists several plugin IDs, judge each against its own Latest: line (the version grammar and what counts as a version: guide section latest-grammar)5.10.0 is newer than 5.9.0, and 5.1000000000000000000000.0 is newer than 5.999999999999999999999.0: the commands compare digit strings, leading zeros dropped, the longer one is the larger number and equal lengths compare as text, because a number past 2^53 is not exact) and a prerelease is older than the stable release it precedes (5.9.0-beta is older than 5.9.0, 5.9.0-beta.2 is older than 5.9.0-beta.10). Installed: is the highest version in that order, among the registry entries of a plugin ID (among the cache versions of its marketplace when no entry of it names a version) or, for the npm channel, among the cache versions, and the Latest cached plugin version of Step 4 is chosen the same way. When that root holds a package.json or .claude-plugin/plugin.json with a semantic version, Installed: is that version (the code the session loads) and a different recorded version is printed on a Registry mismatch: line: WARN - registry and loaded code disagree (a partial update or a damaged registry), update or reinstall through the Updater: line; a manifest without a usable version leaves the registry's version and prints a Note: line (INFO); no manifest changes nothing, except that an entry whose version and installPath version (its last component if that is a version name, else the manifest under it) differ, build metadata and a leading v aside, gives Installed: (unknown) and a Registry mismatch: line, no Note:. (the cache read by Steps 4 and 6, scopes, a v prefix and ties: guide section versions-order)Updater: line Step 1 printed for that plugin ID, see "Fix: Outdated Plugin"; the cache commands only clean up and never update it). If INSTALLED equals the channel's latest, there is no WARN, and there is none when it is newer than that latest either. If Latest: (unavailable) on a marketplace channel or npm latest: (unavailable) on the npm channel: report that the latest version could not be checked, not a WARNNext to this one in the catalogue, plus more from the same author.