refactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less
- License
- MIT
- SKILL.md tokens
- 4,210
- Bundled files
- 0
- Bundled tokens (estimated)
- 0
Cost per 1,000 loads
Estimated input cost per 1,000 loads of SKILL.md only (characters ÷ 4). Bundled files, output tokens and execution are excluded.
| Model | Input / 1M tokens | 1,000 loads |
|---|---|---|
| Claude Opus 5 | $5.00 | $21.05 |
| Claude Sonnet 5 | $2.00 | $8.42 |
| Claude Haiku 4.5 | $1.00 | $4.21 |
Safety flags
Detected automatically from files; not a security audit.
- Runs scripts
- No
- Network access
- No
- Shell commands
- Yes
Works with
Open SKILL.md format
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Gemini CLI
- OpenCode
- Goose
Install
npx skills add github/awesome-copilot --skill refactorLast verified:
refactor FAQ
What does the refactor skill do?
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less Source: https://github.com/github/awesome-copilot/blob/main/skills/refactor/SKILL.md
What does the refactor skill cost to load?
SKILL.md is about 4,210 tokens. Estimated input cost per 1,000 loads: Claude Opus 5 $21.05; Claude Sonnet 5 $8.42; Claude Haiku 4.5 $4.21. Estimated input cost per 1,000 loads of SKILL.md only (characters ÷ 4). Bundled files, output tokens and execution are excluded. Prices: https://docs.anthropic.com/en/docs/about-claude/pricing
How do I install the refactor skill?
Skills CLI: npx skills add github/awesome-copilot --skill refactor. Download the refactor skill folder as a ZIP and upload it in Claude.ai skills settings.
Is the refactor skill safe?
Automatically detected flags: shell commands. Flags are detected automatically from the skill's files and are not a security audit; review the SKILL.md before installing.