oh-my-codex: Skill for Codex

.codex/skills/doctor/SKILL.md

doctor is a skill for Codex from junghwaYang/oh-my-codex. It costs 0 tokens per session (684 once invoked), scanned D, original, MIT.

A diagnostic tool for finding and fixing problems with an Oh My Codex installation, its settings, loaded skills, and connected services.

In plain words
What is it for?
Use it when installation fails, skills do not load, configuration is invalid, connected servers cannot be reached, or performance degrades.
Why use it?
It replaces scattered troubleshooting with checks for the environment, files, configuration, dependencies, and runtime connections.

Skill for Codex

Written for Codex: installed under .codex/. Also seen: mentions Codex.

This is junghwaYang/oh-my-codex's own configuration. It tells Codex how to work on oh-my-codex itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything oh-my-codex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to junghwaYang/oh-my-codex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/junghwaYang/oh-my-codex/main/.codex/skills/doctor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/junghwaYang/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/junghwayang/oh-my-codex/doctor.svg)](https://agentmods.dev/skills/junghwayang/oh-my-codex/doctor)
Your own site
<a href="https://agentmods.dev/skills/junghwayang/oh-my-codex/doctor"><img src="https://agentmods.dev/badge/skills/junghwayang/oh-my-codex/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 684 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. 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.00000 $0.00684
Opus 5 $0.00000 $0.00342
Sonnet 5 $0.00000 $0.00137
Haiku 4.5 $0.00000 $0.00068

Measured 6d ago against content hash 3eeb328c29c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade D, and why

doctor scanned grade D with 3 findings 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 6d 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.

cat ~/.codex/config.toml | grep mcp

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls ~/.codex/skills/

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.codex/skills
.codex/skills/doctor/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Doctor Skill

Diagnose and fix Oh My Codex installation issues.

When to Use

  • Installation problems
  • Configuration errors
  • Skill loading failures
  • Performance issues
  • After updates

Diagnostic Checks

Environment

□ Node.js version (>= 18)
□ Python version (>= 3.10)
□ Codex CLI installed
□ PATH configured correctly
□ Required permissions

Installation

□ Skills directory exists
□ All skills have SKILL.md
□ Config file valid
□ No conflicting configs
□ Dependencies installed

Configuration

□ config.toml syntax valid
□ Model names correct
□ MCP servers configured
□ API keys present (if needed)
□ Profiles defined

Runtime

□ Can spawn agents
□ MCP servers reachable
□ Sessions directory writable
□ No zombie processes
□ Memory usage normal

Common Issues

"omc: command not found"

# Add to PATH
export PATH="$HOME/.local/bin:$PATH"

# Verify
which omc

"Skill not loading"

# Check skill exists
ls ~/.codex/skills/

# Verify SKILL.md present
cat ~/.codex/skills/autopilot/SKILL.md

"MCP connection failed"

# Test MCP server
npx -y codex mcp

# Check config
cat ~/.codex/config.toml | grep mcp

"Agent SDK not available"

# Install full package
pip install oh-my-codex[full]

# Or install SDK directly
pip install openai-agents-sdk

Repair Actions

Reset Configuration

# Backup current
cp ~/.codex/config.toml ~/.codex/config.toml.bak

# Reset to default
omx --reset-config

Reinstall Skills

# Remove and reinstall
rm -rf ~/.codex/skills
./install.sh

Clear Cache

# Clear sessions
rm -rf ~/.codex/sessions/*

# Clear errors
rm -rf ~/.codex/errors/*

Usage

doctor: check my Oh My Codex installation

doctor: why aren't skills loading

doctor: diagnose slow performance

Output Format

## Oh My Codex Health Check

### Environment
✅ Node.js: v22.12.0
✅ Python: 3.12.0
✅ Codex CLI: 1.2.3
⚠️ PATH: ~/.local/bin not in PATH

### Installation
✅ Skills directory: ~/.codex/skills
✅ Skills installed: 20
✅ Config: Valid

### Runtime
✅ Agent SDK: Available
❌ MCP GitHub: Connection failed
✅ Sessions: Writable

### Issues Found
1. **PATH Configuration**
   - ~/.local/bin not in PATH
   - Fix: Add to ~/.zshrc

2. **MCP GitHub**
   - Connection refused
   - Fix: Check GITHUB_TOKEN

### Recommended Actions
1. Run: export PATH="$HOME/.local/bin:$PATH"
2. Set GITHUB_TOKEN environment variable

Read the full file on GitHub · 159 lines

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. 6d ago First seen · 159 lines · 0 tokens per session scan D 3eeb328c29c9

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository junghwaYang/oh-my-codex (5 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 684 tokens. A static security scan graded it D with 3 findings (reads agent configuration directories, enumerates other installed skills, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens