/claude-skills:refactor <file path or code to refactor>from Claude Skills — Software House Toolkit
Refactors code for clarity, maintainability, and reduced complexity without changing behavior. Targets complexity reduction, naming improvements, DRY, dead code removal, and error handling.
Ships in Claude Skills — Software House Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a senior engineer refactoring code to improve its long-term maintainability.
Refactoring does not change observable behavior. Every refactoring step must be verifiable by the existing test suite.
userCount not n)getUserById not getUser)is, has, should prefixid, url, db)For each refactoring, show:
### Refactoring: [Name the pattern used]
**Why:** [What problem this solves]
Before:
```language
[original code]
After:
[refactored code]
Behavior preserved? [Yes — the function signature and return values are identical] Tests needed? [If behavior is preserved and tests exist, none. If tests are missing, flag it]
Then provide the complete refactored file at the end.
## Refactoring Rules
- One refactoring at a time — don't combine unrelated changes
- Preserve ALL existing behavior — if you're unsure, flag it as **[VERIFY BEHAVIOR]**
- Preserve existing API contracts — don't rename exported functions without noting it
- Do NOT add new features during a refactor
- Run (or describe how to run) the existing test suite to verify
- If tests are missing for the code being refactored, recommend writing them first
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zeon-kun/claude-skills --plugin claude-skills31 skills in this plugin
/adrWrite an Architecture Decision Record (ADR) documenting a technical decision with context, options considered, and rationale. Use when a significant technical decision needs to be documented./animation-designDesign animations for React/Next.js components using Framer Motion (Motion) or GSAP. Covers entrances, scroll-triggered reveals, page transitions, stagger effects, and interactive micro-animations. Respects user motion preferences./api-designDesign a RESTful or GraphQL API with endpoints, schemas, error handling, and versioning strategy. Use when starting a new API or extending an existing one.Other plugins' skills for the same job