Complexity sweep
Use for explicit COMPLEXITY SWEEP requests, technical debt cleanup, over-engineering removal, codebase bloat, unnecessary abstractions, duplicate knowledge, dead code, avoidable dependencies, shallow wrappers, brittle tests, or requests to make a project smaller and easier to change. Dispatch six parallel subagents to collect simplification findings, synthesize shared complexity mechanisms, build a full cut queue, implement direct refactors, delete replaced paths, and validate every queue entry.From its SKILL.md
npx -y skills add qaz17899/sweep-skills --skill complexity-sweepAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.5 KB, as published. Nobody here has run it
Complexity Sweep
Read:
references/scan-lenses.mdreferences/queue-format.md
Scan
Dispatch six parallel subagents using scan-lenses.md.
Each subagent returns findings in this shape:
Tag:
Surface:
Smell:
Evidence:
Cost:
Cut:
Merge overlapping cuts by smell, owner, and affected callers.
Create .codex/complexity-sweep/QUEUE.md using queue-format.md.
Synthesis
Group findings into simplification clusters.
Each cluster states:
- findings covered
- shared complexity mechanism
- owner
- simpler shape
- deletion scope
- caller impact
- closure proof
Rank clusters by:
- deletion of unused code, dependencies, config, or layers
- duplicate knowledge removed
- caller simplification and interface depth gained
- future maintenance cost removed
- validation risk and dependency order
Record clusters and cut entries in .codex/complexity-sweep/QUEUE.md.
Simplify
Prefer deletion, reuse, inlining, and direct convergence over new abstraction.
For each cut entry:
- Reuse existing code, standard library, native platform behavior, or installed dependency.
- Inline needless pass-through layers and one-off abstractions.
- Collapse duplicate knowledge into one owner.
- Delete replaced paths, dead config, unused flags, and obsolete tests.
- Update callers and behavior tests to the simpler shape.
- Preserve trust-boundary validation, data-loss handling, security, accessibility, and required user behavior.
- Run validation.
- Record proof and covered finding IDs in
.codex/complexity-sweep/QUEUE.md.
Completion
Simplification completion means every finding is Done or Blocked.
Blocked entries need a concrete external blocker: missing credential, unavailable service, missing user decision, missing reproduction evidence, or environment dependency.
Final output includes queue counts, completed clusters, blocked entries, validation proof, and the next queue entry when any work remains.