Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 893 Bytes

File metadata and controls

37 lines (24 loc) · 893 Bytes

Codex Complexity Optimizer

Codex skill for analyzing a codebase, finding algorithmic complexity and performance hotspots, and producing safe optimization reports.

Install

npm install -g codex-complexity-optimizer

The package installs the skill into:

${CODEX_HOME:-~/.codex}/skills/complexity-optimizer

You can also run the installer directly:

npx codex-complexity-optimizer

Use

In 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.