Individual skill
codex-doctor
Audit Codex installation health and workspace context quality by combining the built-in `codex doctor` report with read-only checks for AGENTS.md scope, instruction bloat or duplication, Skills, MCP, hooks, config, thread-provider history scope, Git state, and repository-root hygiene. Use whenever the user asks for `/doctor`, `/checkup`, Codex health checks, context cleanup, AGENTS.md cleanup, unused or broken Skills/MCP/hooks, missing history after provider changes, slow or polluted context, or asks why Codex is ignoring rules. Default to diagnosis only; never edit, disable, delete, trust, install, update, authenticate, move, or clean anything without a separately approved finding-level diff.
skills/codex-doctor/SKILL.md
Source commit d09cc28cd0915808534ea3bf199f17efa75553a6
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 10, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 786
- Repository last updated
- Nov 6, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- security Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
.gitignoreasset · 58 bytesLICENSEasset · 1,067 bytesSKILL.mdcore · 6,046 bytesSKILL.mdcore · 6,046 bytesSKILL.mdcore · 6,046 bytesSKILL.mdcore · 6,046 bytesSKILL.mdcore · 6,046 bytesSKILL.mdcore · 6,046 bytesSKILL.mdcore · 6,046 bytesSKILL.mdcore · 6,046 bytesagents/openai.yamlasset · 213 bytesevals/evals.jsonasset · 2,836 bytesreferences/checks-and-repair-policy.mddoc · 4,616 bytesscripts/scan_workspace.pyruns · 53,801 bytestests/test_scan_workspace.pyruns · 16,767 bytes
Read excerpt
# Codex Doctor
Run a two-layer health check:
1. Reuse Codex's stable built-in `codex doctor --json` for installation, config, auth, runtime, Git environment, terminal, app-server, update, and thread-inventory checks. Derive one narrow provider-scope warning when the default provider represents only a small minority of indexed history.
2. Run the bundled read-only scanner for workspace context governance that the built-in command does not cover.
The scanner gathers deterministic evidence. You make the semantic judgment. This separation matters because a script can prove that text repeats, but it cannot safely decide that a business fact, safety boundary, brand voice, or directory rule is disposable.
## Run the check
Resolve the Skill directory from the loaded Skill path, then run:
```bash