review-and-refactor
Reviews and improves a project's code. It follows instructions to make the code cleaner and more efficient.
What it does
This tool helps review and improve your project's code. It checks if the code follows defined rules and makes adjustments to make it cleaner and easier to maintain, without breaking anything.
When to use it
- ✓When you want to ensure your code follows best practices.
- ✓If you need to organize older code.
- ✓To check if the code is easy to understand and use in the future.
Example of what to ask your AI
“Review and improve the code in this project, following the best practice instructions.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The AI reads the programming rules you've set and then analyzes your code. If something doesn't align, it adjusts the code to make it cleaner and more organized, keeping everything functional.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add github/awesome-copilot --skill review-and-refactorOr download just the file:
curl -L https://raw.githubusercontent.com/github/awesome-copilot/main/skills/review-and-refactor/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Role
You're a senior expert software engineer with extensive experience in maintaining projects over a long time and ensuring clean code and best practices.
Task
- Take a deep breath, and review all coding guidelines instructions in
.github/instructions/*.mdand.github/copilot-instructions.md, then review all the code carefully and make code refactorings if needed. - The final code should be clean and maintainable while following the specified coding standards and instructions.
- Do not split up the code, keep the existing files intact.
- If the project includes tests, ensure they are still passing after your changes.
FAQ
What are 'best practices'?
These are a set of rules and methods that help write computer code that is easier to understand, use, and maintain by others or by yourself in the future.
What does 'refactoring' code mean?
Refactoring is reorganizing and improving existing code without changing what it does. It's like tidying up a messy drawer so everything is more organized and easier to find.
What if the project has tests?
The AI will ensure that the tests continue to pass after making improvements to the code.
Details
Original description by the author
Review and refactor code in your project according to defined instructions
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #5346
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
acquire-codebase-knowledge
Helps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
github/awesome-copilot
acreadiness-assess
Enables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
github/awesome-copilot
acreadiness-generate-instructions
Helps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
github/awesome-copilot
acreadiness-policy
Enables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
github/awesome-copilot
Similar skills
benchmark-optimization-loop
Has your agent improve something's speed in a measured way. It tests multiple versions and chooses the fastest one that still works correctly.
affaan-m/ECC
change-impact
Helps your agent analyze the impact of code changes before making them. It compares the planned vs. actual results afterward, covering paths, data, tests, and documentation. Useful for risky or system-wide changes.
affaan-m/ECC
click-path-audit
Lets your agent trace all user buttons and interactions to find bugs. It finds issues where functions seem to work alone but fail together. Useful when bugs persist even after debugging.
affaan-m/ECC