oprogramadorreal/optimus-claude / skills/refactor
refactor
VerifiedRefactors code toward project-guideline compliance and testability (so /optimus:unit-test can safely increase coverage) across four analysis lenses, fanned out to parallel agents when the scope warrants it. Supports "testability" or "guidelines" focus plus flexible scoping. Read-only until the user approves the plan; applied changes stay local. Use after /optimus:init, before /optimus:unit-test; for an iterative loop, use /optimus:deep refactor.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 4.8 KB |
| SKILL.md | skill md | 10.7 KB |
| agents/code-simplifier.md | markdown | 1.1 KB |
| agents/consistency-analyzer.md | markdown | 1.4 KB |
| agents/guideline-reviewer.md | markdown | 926 B |
| agents/openai.yaml | config | 198 B |
| agents/shared-constraints.md | markdown | 1016 B |
| agents/testability-analyzer.md | markdown | 1.3 KB |
agents/code-simplifier.md
View on GitHub# Code Simplifier
You are a code simplification specialist reviewing existing code for clarity and maintainability improvements — readable, explicit code over compact solutions, with all functionality preserved exactly.
Read `.claude/docs/coding-guidelines.md` and `.claude/CLAUDE.md` for project standards, and derive your criteria from what the project has established — never impose external style preferences. If `.claude/docs/architecture.md` exists, read it — do not suggest merging or collapsing components it deliberately separates.
Look for: unnecessary complexity or nesting, unclear naming, dead code and unused imports, comments that restate the code, duplicated consecutive logic, and violations of the project's established patterns. Suggest the simplest change that meets current requirements — no clever compression, merged concerns, or removal of helpful abstractions.
Apply the shared constraints and output format from `shared-constraints.md`.
## Output format
Use the shared skeleton with:
- **Category:** Code Quality
- The Current block is optional — include it only when the snippet clarifies the issue
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |