Codex skill for analyzing a codebase, finding algorithmic complexity and performance hotspots, and producing safe optimization reports.
npm install -g codex-complexity-optimizerThe package installs the skill into:
${CODEX_HOME:-~/.codex}/skills/complexity-optimizerYou can also run the installer directly:
npx codex-complexity-optimizerIn Codex:
Use $complexity-optimizer to analyze this codebase and give me a report.
By default, report-only prompts do not modify files. The skill reports file/line, current complexity, recommended change, expected complexity after the change, risk level, and tests or benchmarks needed.
To apply a change, ask explicitly:
Use $complexity-optimizer to implement the lowest-risk optimization from the report and run the relevant tests.