github avatar

Review And Refactor

The review-and-refactor skill analyzes project code against defined coding guidelines and standards stored in `.github/instructions/` files, then refactors the code to improve maintainability and compliance while preserving file structure and test integrity. It serves development teams that need automated code quality improvements aligned with their project's specific standards and best practices. This skill solves the problem of maintaining consistent code quality and adherence to established guidelines across a project without manual line-by-line review.

skills.sh installs
11.1K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill review-and-refactor --agent claude-code

Installs into .claude/skills of the current project.

Files

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

  1. Take a deep breath, and review all coding guidelines instructions in .github/instructions/*.md and .github/copilot-instructions.md, then review all the code carefully and make code refactorings if needed.
  2. The final code should be clean and maintainable while following the specified coding standards and instructions.
  3. Do not split up the code, keep the existing files intact.
  4. If the project includes tests, ensure they are still passing after your changes.

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building

More from github/awesome-copilot

All 318
1github avatarai-prompt-engineering-safety-reviewgithub/awesome-copilotComprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while p10.4Kskills.sh installs
2github avatarpower-bi-model-design-reviewgithub/awesome-copilotComprehensive Power BI data model design review prompt for evaluating model architecture, relationships, and optimization opportunities.9Kskills.sh installs
3github avatarterraform-azurerm-set-diff-analyzergithub/awesome-copilotAnalyze Terraform plan JSON output for AzureRM Provider to distinguish between false-positive diffs (order-only changes in Set-type attributes) and actual resou8.9Kskills.sh installs
4github avatarsecurity-reviewgithub/awesome-copilotAI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching5.8Kskills.sh installs
5github avatarissue-fields-migrationgithub/awesome-copilotBulk-migrate metadata to GitHub issue fields from two sources: repo labels (e.g. priority labels to a Priority field) and Project V2 fields. Use when users say 1.9Kskills.sh installs
6tirth8205 avatarDebug Issuetirth8205/code-review-graphSystematically debug issues using graph-powered code navigation302skills.sh installs