
Description
review-and-refactor is an agent skill from the github/awesome-copilot collection that reviews a project's code against its own coding guidelines and refactors it where needed. The agent takes the role of a senior engineer who has maintained a project for a long time. Before it reviews anything, it reads the coding guideline files in the .github/instructions folder and the .github/copilot-instructions.md file, so the standards it applies are the ones the project has written. It then reviews the code carefully and makes refactorings where they are needed, aiming for clean, maintainable code that follows those standards. Two constraints apply: it should not split up the code, keeping the existing files intact, and if the project has tests, they must still pass after the changes. It is useful for keeping a long-lived codebase tidy and consistent with its own rules, and for catching drift from the team's standards. Refactoring changes the code, so the changes should be reviewed as a diff and tested before they are merged. The skill's security scan reported a failure at the time of review, so the skill's contents should be read before it is installed. The skill is installed with the skills CLI from the github/awesome-copilot repository. Its skills.sh page showed about 11.0K installs, with Socket and Snyk passing and Gen Agent Trust Hub reporting a failure at the time of the scan.…
Highlights
- Reads the project's own instruction files first
- Reviews and refactors against the stated standards
- Keeps existing files intact
- Requires tests to keep passing
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate review-and-refactor.
People also visit

principle-minimize-reader-load
Apply when reviewing or shaping code that's hard to trace

thermo-nuclear-code-quality-review
Run an extremely strict maintainability review for abstraction quality

coding-standards
Baseline cross-project coding conventions for naming, readability, immutability

cpp-coding-standards
C++ coding standards based on the C++ Core Guidelines (isocpp.github.io)
review-and-refactor FAQ
What standards does it use?
The guidelines in .github/instructions/*.md and .github/copilot-instructions.md, read before the review.
Does it split files?
No. It is told to keep the existing files intact.
What about tests?
If the project has tests, they must still pass after the changes.
How do I install it?
Run npx skills add https://github.com/github/awesome-copilot --skill review-and-refactor.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Fail, Socket Pass and Snyk Pass. A Warn or Fail is worth reading before you install.
What are the best review-and-refactor alternatives?
Popular alternatives to review-and-refactor include principle-minimize-reader-load, thermo-nuclear-code-quality-review and chakra-ui-refactor. See all review-and-refactor alternatives






