Skip to content
Back to skills

Refactor

ASecurity

Code refactoring patterns and techniques. Use when improving code structure without changing behavior.

  • 47 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
code-qualityrefactoring

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add skeletorflet/opencode-supreme-setup --skill refactor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Refactor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refactor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skeletorflet-refactor/badge)](https://www.skillsdirectory.com/skills/skeletorflet-refactor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refactor
description: Code refactoring patterns and techniques. Use when improving code structure without changing behavior.
---

## refactor

Improve code structure while preserving behavior.

### Patterns
- Extract function/method
- Rename for clarity
- Replace conditionals with polymorphism
- Introduce parameter object
- Decompose conditional
- Replace temp with query
- Encapsulate field

### Process
1. Ensure tests exist or write them first
2. Small, incremental changes
3. Run tests after each change
4. Commit frequently
5. Never refactor and add features together

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…