review-and-refactor
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.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/review-and-refactor/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Review and improve the code in this project, following the best practice instructions.”
5 new skills a week. 1 minute to read.
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.
Technical 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
- #7403
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables 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.
acreadiness-generate-instructions
40kHelps 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.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.