Review and Refactor
Independent PiSkill directory guide. The original skill remains hosted by GitHub Awesome Copilot.
What is Review and Refactor?
Reviews project code against defined engineering instructions and helps refactor it for clearer structure, maintainability, and alignment with the project's coding expectations.
What does Review and Refactor do?
Review and Refactor is a GitHub Awesome Copilot skill for reviewing a project against its own coding instructions and improving maintainability without unnecessarily restructuring the repository. It emphasizes project-specific standards rather than imposing a generic style guide.
Who is Review and Refactor best for?
- Developers cleaning up an existing codebase
- Teams with repository-specific Copilot instructions
- Projects that need refactoring without broad file reorganization
- Engineers preparing code for long-term maintenance
Common use cases
- Review code against repository instructions
- Refactor maintainability issues while preserving file structure
- Check that existing tests still pass after cleanup
- Bring inconsistent code back in line with project conventions
How does Review and Refactor work?
The skill first reads project guidance such as `.github/instructions` and Copilot instructions, then reviews the code and applies targeted refactoring while keeping the existing files intact. If tests exist, it requires them to continue passing after the changes.
Key benefits
- Uses the repository's own standards as the source of truth
- Aims for maintainability without gratuitous restructuring
- Connects refactoring to existing test coverage
- Useful as a focused code-review assistant
Things to know
- It depends on the quality of the project's written coding instructions
- Keeping files intact may limit larger architectural improvements
- Passing existing tests does not prove that missing behaviors are covered
Compatible tools
Frequently asked questions
What does the Review and Refactor skill do?
Can it be used as an AI code review assistant?
Related skills
Requesting Code Review
Structures code-review requests around the actual implementation, requirements, and git diff so issues can be caught before they reach the main branch.
Receiving Code Review
Helps agents evaluate code-review feedback technically before implementing it, verify suggestions against the codebase, and avoid blindly accepting incorrect or incomplete review comments.
GitHub Copilot Starter
Sets up a production-oriented GitHub Copilot configuration for a repository, including instructions, reusable skills, specialized agents, and optional GitHub Actions setup based on the project's stack.
Third-Party API Integration
Guides third-party API and SDK integration by detecting the project's language, retrieving current API guidance, and applying the right integration patterns to the existing codebase.
Azure Cosmos DB for Python
Provides production-oriented patterns for building Azure Cosmos DB NoSQL services with Python or FastAPI, including authentication, CRUD layers, partitioning, queries, and testing.
Cloudflare Durable Objects
Designs stateful Cloudflare applications with Durable Objects, covering storage, consistency, alarms, WebSockets, migrations, concurrency, and production reliability patterns.