Fernando Ramos← All skills01 of 09
← All skills

/doctor

Orient · Tooling check and hook wiring

Probes declared branch prerequisites, reports known platform install recipes without auto-installing, and wires optional hooks: all three Claude Code hooks, or only the /proof stop gate for Codex and Gemini CLI.

npx skills@latest add luci-efe/skills -s doctor

  • OrientStage
  • 06 Autonomy with ownershipMethod
  • stdout report · .claude/settings.local.json, .codex/hooks.json or .gemini/settings.json (when wiring hooks)Produced artifact / output

Use when

Setting up, or a skill reports a missing tool, repairing discovery, or configuring the hook adapter.

Support & adapters

  • Instructions usable across harnesses
  • Hooks tested: Claude Code
  • /proof stop gate: verified live on Codex
  • /proof stop gate: Gemini CLI, wired from its docs, not watched live

Decision tree

  1. 01

    Inspecting branch readiness

    Run node <this skill dir>/scripts/doctor.mjs (pass provider IDs for a single branch, or --json for automation; missing/failed probe exits 2)

    → Selected provider matrix on stdout
  2. 02

    Missing provider binary

    Display the verified platform install recipe from references/providers.md; never guess or auto-install

    → Actionable diagnostic, fail fast
  3. 03

    Wiring hooks

    Run --install-hooks claude|codex|gemini --dry-run first, inspect merge, then install. claude registers SessionStart, UserPromptSubmit, and Stop in .claude/settings.local.json; codex and gemini install only the /proof stop gate (.codex/hooks.json, .gemini/settings.json)

    → Unrelated settings preserved; hooks installed (the /proof Stop gate arms only after a passing /proof run in that session)

Prerequisites & install recipes

  • noderequired · default branchnode
    brew install node

Completion criteria

  • Selected provider matrix is reported on stdout and missing prerequisites include actionable diagnostics.
  • Hook installation preserves unrelated settings in the harness settings file and only the stop hook (Stop, or AfterAgent on Gemini CLI) blocks claimed proof completion.
  • Never claims every provider, service, browser, or desktop daemon is operational from a binary probe alone.

Example

Run against a checkout of a public TypeScript and Python project: first the provider matrix, then a hook install that must not clobber existing settings.

What was run

node $SKILLS/doctor/scripts/doctor.mjs        # exit 2
node $SKILLS/doctor/scripts/doctor.mjs --install-hooks claude --dry-run   # prints merged settings, writes nothing
node $SKILLS/doctor/scripts/doctor.mjs --install-hooks claude             # writes .claude/settings.local.json

Output (excerpt)

Provider | Available | Version | Install / diagnostic
git | yes | git version 2.50.1 (Apple Git-155) | —
node | yes | v22.23.1 | —
rg | yes | ripgrep 15.1.0 | —
ast-grep | yes | ast-grep 0.51.0 | —
osv-scanner | yes | osv-scanner version: 2.7.0 | —
...
semgrep | no | unknown | brew install semgrep (probe ENOENT)
playwright | no | unknown | npm init playwright@latest (probe ENOENT)
odiff | no | unknown | npm install -g odiff-bin (probe ENOENT)

# with .claude/settings.local.json containing {bad json  (exit 2, file untouched)
Malformed JSON in ~/project/.claude/settings.local.json: Expected property name or '}' in JSON at position 1 (line 1 column 2)

What it found. Exactly which tools are absent (19 providers probed, 16 present; semgrep, playwright and odiff missing), each with an install recipe, and a hook install that is idempotent and non-destructive: an existing permissions entry was preserved and a malformed settings file was left untouched.

Caveat. Probes check that a binary runs, not that it is authenticated or reachable.

View skill source on GitHub

Want something like this built for your company?

Book a callMessage me on LinkedInSee Agentic Engineering
← All skills