review-and-refactor
作者: github
根据项目特定的编码指南和指令进行自动化代码审查与重构。从.github/instructions/*.md和.github/copilot-instructions.md中读取编码标准以建立项目规范。执行全面的代码审查和重构,使其符合既定指南,同时保留文件结构。验证重构更改后现有测试仍能通过。通过保持文件完整而非拆分或...来维护代码完整性。
npx skills add https://github.com/github/awesome-copilot --skill review-and-refactorRole
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.