How-toSelected

Codex技能分析代码库复杂度,给出优化建议

Why we picked it

一键扫描代码复杂度热点

Kappaemme发布了Codex技能"codex-complexity-optimizer",可扫描代码库中的计算复杂度热点。

Body

该工具检测O(n²)循环、O(n*m)重复查找、N+1查询模式等性能瓶颈。提供前后复杂度估算和安全优化建议,默认报告模式不修改代码。

通过npx --yes codex-complexity-optimizer一键安装,完全开源。

Original · Greg Brockman

codex for improving computational complexity Kappaemme @Kappaemme1926 CODEX SKILL THAT FINDS COMPLEXITY HOTSPOTS IN YOUR CODEBASE! I made a Codex skill that analyzes your codebase and reports where performance can be improved safely. Scan your project while Codex checks loops, repeated lookups, render-heavy code, N+1 patterns, and places where complexity can potentially be reduced without breaking behavior. -> codebase complexity analysis -> O(n²), O(n*m), repeated scan detection -> before/after complexity estimates -> safe optimization suggestions -> risk level + tests needed -> report-only mode by default -> one-command install Install: npx --yes codex-complexity-optimizer 100% open source. Repo in Bio.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Codex, codex-complexity-optimizer, Kappaemme, code optimization.

Source attribution: curated from Greg Brockman (@gdb).

Spotted an error in the summary or translation? Tell us