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 drastic than repo-rebuilder; use for gradual improvements.
- Type
- Skill
- Author
- github
- Category
- Code Review
- GitHub stars
- 40.5K
- Installs
- 22.4K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/github/awesome-copilot --skill refactorUse cases
- Extract a long function into smaller pieces without changing its behavior.
- Rename unclear variables and tighten type safety in an existing module.
- Clean up code smells gradually instead of rebuilding the whole repository.
Frequently Asked Questions
Does refactoring here change behavior?
No, the skill is described as surgical and behavior-preserving.
How does it differ from repo-rebuilder?
It is described as less drastic, intended for gradual improvements rather than a full rebuild.
What kinds of changes does it make?
Extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns.
About this skill
Performs targeted, behavior-preserving refactors that improve maintainability without changing what the code does. It handles extracting functions, renaming variables, breaking down god functions, tightening type safety, eliminating code smells, and applying design patterns. The description positions it as less drastic than a full repo rebuild, so it fits gradual cleanup work.
Summary written with AI assistance from the project's public description.
More from github
Git Commit
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, cr...
by github
Excalidraw Diagram Generator
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "...
by github
Multi Stage Dockerfile
Create optimized multi-stage Dockerfiles for any language or framework
by github
Documentation Writer
Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by the principles an...
by github
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh