Install
openclaw skills install @wardlu/codex-doctorAnalyze 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.
openclaw skills install @wardlu/codex-doctorAnalyze Codex usage from local session data, separate evidence from interpretation, and turn recurring patterns into small workflow changes.
codex-cli diagnosis call and may consume Codex usage.openai provider 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.CODEX_DOCTOR_DIR if set;bin/codex-insights.js and the Codex Doctor package;--cache-dir.Telemetry-only example:
node ./bin/codex-insights.js report \
--telemetry-only \
--days 14 \
--limit 20 \
--no-open \
--cache-dir <report-directory>/cache \
--out-dir <report-directory>
AI diagnosis example:
node ./bin/codex-insights.js report \
--ai \
--provider codex-cli \
--days 14 \
--limit 20 \
--no-open \
--cache-dir <report-directory>/cache \
--out-dir <report-directory>
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.
Pay particular attention to these signals:
Prefer operational changes over more prompt text:
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.
Finish with:
After a workflow change, rerun the telemetry-only report after a meaningful sample of new sessions and compare trends rather than one absolute score.