doctor

doctor is a skill for Codex from scalarian/oh-my-codex. It costs 22 tokens per session (239 once invoked), scanned B, original, MIT.

A diagnostic workflow for checking whether OMX, the repository setup, plugins, hooks, and team runtime are working correctly. It reports healthy, degraded, and broken parts with concrete fixes.

In plain words
What is it for?
Use it when plugins, hooks, setup, or team behavior seems wrong. It checks tool availability, configuration, repository initialization, tmux, marketplace state, hooks, and team-runtime status.
Why use it?
It replaces general troubleshooting with checks targeted at the actual installation and runtime. It helps locate setup problems before they interfere with coding work.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: mentions Codex.

Good fit Use it when plugins, hooks, setup, or team behavior seems wrong. It checks tool availability, configuration, repository initialization, tmux, marketplace state, hooks, and team-runtime status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scalarian/oh-my-codex/doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scalarian/oh-my-codex --skill doctor
Clone the repo
git clone --depth 1 https://github.com/scalarian/oh-my-codex

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/scalarian/oh-my-codex/doctor/github.svg)](https://agentmods.dev/skills/scalarian/oh-my-codex/doctor)
Your own site
<a href="https://agentmods.dev/skills/scalarian/oh-my-codex/doctor"><img src="https://agentmods.dev/badge/skills/scalarian/oh-my-codex/doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/scalarian/oh-my-codex/doctor"><img src="https://agentmods.dev/badge/skills/scalarian/oh-my-codex/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 239 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00239
Opus 5 $0.00011 $0.00120
Sonnet 5 $0.00004 $0.00048
Haiku 4.5 $0.00002 $0.00024

Measured 10d ago against content hash 5d501128de43, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

doctor scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- MCP server configured in `~/.codex/config.toml`
skills/doctor/SKILL.md · 37 lines

What it actually says

Doctor

Purpose

Use $doctor when setup, runtime behavior, hooks, or plugins feel wrong. This skill is for diagnosis plus the shortest correct remediation path.

Workflow

  1. Run omx doctor.
  2. If the problem is plugin-related, run omx plugins doctor.
  3. If the problem is hook-related, run omx hooks status.
  4. If the problem is team-runtime-related, run:
    • omx explore tmux
    • omx team status
  5. Turn findings into concrete fixes, not generic advice.

What to Check

  • Node and Codex availability
  • MCP server configured in ~/.codex/config.toml
  • .omx/ initialized in the current repo
  • tmux availability vs degraded mock mode
  • plugin marketplace drift
  • hook installation state vs feature availability

Output Standard

  • what is healthy
  • what is degraded
  • what is broken
  • the exact command or file change to fix each issue
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 37 lines · 22 tokens per session scan B 5d501128de43

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository scalarian/oh-my-codex (73 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 239 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

printing-press-polish

Polish a generated CLI to pass verification and become publish-ready. Runs diagnostics (dogfood, verify, scorecard, go vet, gosec), automatically fixes all issues (verify failures, static-analysis findings, dead code, descriptions, README, MCP tool quality), reports the before/after delta, and offers to publish. Use…

mvanhorn/cli-printing-press · 125 tokens

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

printing-press-output-review

Internal sub-skill: agentic review of a printed CLI's sampled command output for plausibility issues that rule-based checks can't encode (substring-match relevance, format bugs, silent source drops, ranking failures). Invoked via the Skill tool by the main printing-press skill at Phase 4.85 and printing-press-polish…

mvanhorn/cli-printing-press · 102 tokens

fix

Dispatch fix subagent for FIX-FIRST gaps from review, re-review, then diagnose unresolved failures after 2 loops.

automagik-dev/genie · 25 tokens

report

Investigate bugs comprehensively — cascade through trace, capture browser evidence, extract observability data, and prepare or explicitly create a GitHub issue with grounded findings.

automagik-dev/genie · 34 tokens

trace

Dispatch trace subagent to investigate unknown issues — reproduces, traces, and reports root cause for fix handoff.

automagik-dev/genie · 25 tokens