review-and-refactor

Review and refactor codebases against predefined guidelines while preserving tests.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/dbensmith/agent-library --skill review-and-refactor-dbensmith
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-and-refactor
Source: https://github.com/dbensmith/agent-library/tree/main/.agents/skills/review-and-refactor
Command: npx skills add https://github.com/dbensmith/agent-library --skill review-and-refactor-dbensmith

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The Skill addresses the challenge of maintaining clean and efficient code in long-standing projects, ensuring compliance with coding standards without disrupting the existing project structure.

Core Features & Use Cases

  • Expert Review: Follow coding guidelines and best practices set in .github/instructions/*.md and .github/copilot-instructions.md.
  • Code Refactoring: Refactor code to improve readability and maintainability.
  • Safety: Maintain project structure and pass any associated tests without modification.
  • Use Case: For a project with complex legacy code, this Skill can help streamline code while preserving functionality and performance.

Quick Start

Run the review-and-refactor Skill on your project to clean up and optimize your codebase.

Frequently Asked Questions about review-and-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor legacy code without breaking existing tests?

Code refactoring for maintainability is achieved by applying expert-level reviews to existing codebases, ensuring compliance with predefined guidelines while maintaining code integrity and test pass rates without disrupting the project structure.

How do I ensure my codebase complies with coding best practices?

Code compliance is validated by checking your existing codebase against predefined guidelines and best practices set in `.github/instructions/*.md` and `.github/copilot-instructions.md` files during the review process.

Can I use automated code review for long-term project maintenance?

Automated code review for long-term project maintenance is supported by applying expert-level reviews and refactorings to existing codebases, ensuring clean and efficient code without disrupting the existing project structure.

What is the best way to clean up complex legacy code?

Cleaning up complex legacy code is best handled by running this Skill to streamline code while preserving functionality and performance, applying targeted refactorings and validating test pass rates to ensure project integrity.

Does code refactoring require modifying my current project structure?

Code refactoring does not require modifying your project structure; this Skill maintains the existing project structure and ensures compliance with coding standards without disrupting the current project setup.