Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
Documents
Ward Codex Doctor
Try itAnalyze local Codex session telemetry and produce privacy-safe efficiency reports with actionable workflow recommendations. Use when the user asks to run Codex Doctor, inspect Codex productivity, diagnose context bloat, repository exploration, validation or retry patterns, compare recent sessions, or interpret a codex-efficiency-report HTML/JSON file. Default to local telemetry-only analysis; use the optional compact AI diagnosis only when the user explicitly requests AI interpretation.
What it does
Analyze Codex usage from local session data, separate evidence from interpretation, and turn recurring patterns into small workflow changes.
The skill document
Codex Doctor
Analyze Codex usage from local session data, separate evidence from interpretation, and turn recurring patterns into small workflow changes.
Choose the analysis mode
- Use telemetry-only mode by default. It is local, deterministic, strict-privacy, and does not invoke a model.
- Use AI mode only when the user explicitly asks for AI diagnosis or a deeper interpretation. It makes one compact
codex-clidiagnosis call and may consume Codex usage. - Never use the
openaiprovider unless the user explicitly requests it and provides the required authorization. Do not use paid production APIs, production credentials, or real user data for this analysis.
Locate and run the analyzer
- Resolve the analyzer directory in this order:
- a path supplied by the user;
CODEX_DOCTOR_DIRif set;- the current workspace when it contains
bin/codex-insights.jsand the Codex Doctor package; - a narrowly scoped local path the user has already mentioned.
- If no analyzer directory is available, ask for its path. Do not scan the whole home directory or install dependencies without a reason.
- Run from the analyzer directory and write output and, when needed, cache data to dedicated temporary or user-selected directories. If the default cache location is not writable, pass an explicit
--cache-dir.
Telemetry-only example:
node ./bin/codex-insights.js report \
--telemetry-only \
--days 14 \
--limit 20 \
--no-open \
--cache-dir /cache \
--out-dir
AI diagnosis example:
node ./bin/codex-insights.js report \
--ai \
--provider codex-cli \
--days 14 \
--limit 20 \
--no-open \
--cache-dir /cache \
--out-dir
Do not combine --ai with --telemetry-only. Preserve the generated JSON and HTML paths in the result. Read JSON for facts and use HTML for the human-readable report; do not treat the HTML layout as the data source.
Interpret the result
- Report the analysis mode, date range, session count, output paths, and whether AI ran.
- Treat deterministic telemetry as the numeric source of truth. Treat AI output as advisory and evidence-bound.
- Check sample size, data quality, estimated fields, and trend direction before drawing conclusions.
- Separate observations, inferences, and recommendations. Do not turn a heuristic score into a claim about exact cost, quality, or time saved.
- Rank no more than three actions by expected benefit and effort. For each action, state the evidence, the smallest behavior change, and how to verify improvement.
- Distinguish recommendations that belong in global rules, project rules, a reusable Skill, or a one-off task handoff. Keep raw metrics and project-specific paths out of global rules.
Pay particular attention to these signals:
- context bloat and long sessions;
- exploration that does not converge on an affected boundary;
- validation repeated beyond the changed risk surface;
- repeated failures and retries without a changed hypothesis;
- trends that worsen in recent sessions rather than isolated outliers.
Convert findings into action
Prefer operational changes over more prompt text:
- At a phase boundary, summarize the current objective, completed evidence, unresolved risks, and next step before starting an independent sub-goal.
- Before broad exploration, name the initial files, commands, and acceptance conditions; expand only when evidence requires it and record why.
- Route validation by the changed boundary and risk. Keep low-risk feedback small and reserve integration, security, build, release, and production checks for the boundaries that require them.
- After repeated failures, classify the failure and change the command, environment, input, or strategy instead of replaying the same attempt.
Do not automatically edit AGENTS.md, install Skills, commit changes, open or merge PRs, or change production state from a report. Present the recommendation first and make those changes only when the user explicitly requests them.
Completion report
Finish with:
- conclusion first;
- analysis mode and scope;
- top findings with supporting evidence;
- up to three concrete next actions;
- what is already covered by existing rules or Skills;
- unverified areas, data-quality limits, and any environment blocker;
- exact report paths.
After a workflow change, rerun the telemetry-only report after a meaningful sample of new sessions and compare trends rather than one absolute score.
Related skills
Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.
Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
Query and manage Linear issues, projects, teams, cycles, labels, and comments through a managed OAuth GraphQL endpoint.
Trade crypto, manage a multi-chain wallet, and query an AI analyst from one CLI.
More from wardlu
Browse all skillsAudit an AI agent's reachable data, external data paths, and untrusted instructions, then explain the result in plain language with Low, Medium, High, or Critical severity. Use when a user asks what an agent can see, where data may go, whether a skill, plugin, or tool is safe, or how to reduce agent privacy risk across Codex, Claude Code, or another agent.
Route validation by changed boundaries and risk, choosing the smallest sufficient checks for code, docs, UI, data, auth, sync, build, security, and release work. Use when deciding test commands, reducing unnecessary full-suite runs, auditing test layering, or documenting what was and was not verified.
Repair Codex Desktop sessions that fail after switching model providers or importing/forking old conversations. Use this skill whenever a user mentions an old Codex session becoming invalid, “model provider not found”, “Codex cannot load config.toml”, remote context compaction 404s, “Item with id rs_... not found”, repeated reconnecting during resume, or a migrated Codex conversation that cannot continue—even when the user only asks to inspect or explain the failure. Diagnose the target session across its JSONL rollout, root state_5.sqlite, config.toml, and logs_2.sqlite, then make a target-scoped backup-first repair with verification and restart instructions.
Internationalize the user-facing language layer of a GitHub repository, including its repository description, repository topics, README files, release notes, changelogs, and other explicitly selected documentation, with English as the default and any user-requested locales as mirrors. Use when a user asks to translate, localize, add language mirrors, or check cross-locale parity for a GitHub repository. Confirm the exact document and metadata scope when it is not explicit, identify existing locales, preserve facts, code, commands, links, images, and structure, and provide local Markdown plus GitHub-style previews. Do not use for product UI or runtime i18n, database content, visual README redesign or assets, public-release suitability or security scans, Issue or PR label taxonomies, Git tags, or Git, PR, release, deployment, or production operations.
Review a public repository release across version and tag consistency, final build artifacts, archives, secrets and internal material, third-party licenses, production response headers, and GitHub Release attachments. Use when the user asks to publish, create a tag or Release, verify a launch, or run the complete public-release gate, adapting checks to the project's configuration.
Run the public-repository gates for Git commits, pushes, and pull requests. Check staged and untracked scope, secrets and personal data, internal material, branches and remotes, PR base/head, CI, and merge prerequisites. Use when the user asks to commit, push, open a PR, review public repository content, or run the complete public-repository gate.