用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/marcellocurto/skills --skill audit-code-complexity命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | audit-code-complexity |
| description | Find needless code complexity and suggest simpler designs that preserve behavior. |
Find what is materially harder to understand, change, or verify than the problem requires.
Choose from the user's wording:
Do not infer change scope merely because a repository has changes. If both modes are requested, report them separately. Ask only when genuine ambiguity would materially change the audit.
Inspect the target, repository instructions, callers, tests, configuration, and only the requirements or docs needed to understand behavior and constraints.
Look for:
Useful smell labels include Mysterious Name, Duplicated Code, Feature Envy, Data Clumps, Primitive Obsession, Repeated Conditionals, Shotgun Surgery, Divergent Change, Speculative Generality, Message Chain, and Middle Man. Treat them as clues, not automatic violations.
Include a finding only when:
Line count, nesting, complexity metrics, and unfamiliarity are clues, not findings.
Inspect tests when they establish a contract, explain intended behavior, or provide evidence for a complexity finding.
Report test-related complexity only when the test architecture creates or conceals a concrete cost. Examples include shared setup with hidden state, helper layers that obscure behavior, duplicated fixtures that encode policy in several places, test-only seams that force production indirection, or mocks that hide unclear ownership.
Do not turn this into a general review of test value, coverage, snapshots, assertions, or missing cases. When tests are the main subject, use test-quality-audit instead.
Lead with a verdict, then prioritized findings. For each finding include:
Add justified complexity, simplification order, and validation only when useful. If no material findings exist, say so directly.