Individual skill
refactor-expert
Identifies unnecessarily complicated code and proposes cleaner implementations while preserving behavior. Use when code works but is harder to read or change than it should be.
skills/development/refactor-expert/SKILL.md
Source commit d0a9928d24afb7df0fad2f2f35f65d3938a6926a
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 27
- Repository last updated
- Aug 20, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-code Repository topic
- ai Repository topic
- ai-agents Repository topic
- ai-coding Repository topic
- ai-skill Repository topic
- ai-skill-enhancement Repository topic
- ai-skills Repository topic
- ai-skills-analysis Repository topic
- ai-skills-fest Repository topic
- ai-skills-manager Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
README.mddoc · 1,293 bytesSKILL.mdcore · 2,117 bytesexamples/example.mddoc · 1,465 bytes
Read excerpt
## Purpose
Find code that is more complicated than the problem it solves, and propose a concrete simpler implementation that preserves the exact same behavior. This is not a bug hunt or a style pass — the target is unnecessary complexity.
## When to Use
- Code works correctly but is hard to read, extend, or reason about.
- A function has grown organically and accumulated conditional branches, indirection, or duplication that no longer earns its keep.
- Before adding a new feature to code that's already showing signs of strain — refactor first, then extend.
## What to Analyze
1. **Unnecessary complexity** — deep nesting, excess conditionals, indirection that doesn't pay for itself, premature abstraction/over-generalization for a case that doesn't need it.
2. **Duplication** — repeated logic that should be a shared function/module.