360 Secure SkillHub
360 安全技能中心

review-and-refactor

该 Skill 让代理以资深软件工程师身份,先读取项目中的编码规范文档,再通读代码并按规范进行重构,要求不拆分代码、保留现有文件,并在项目含测试时确保测试仍然通过。

github
热度 0.00
最近更新 2026-10-18 22:11:31
分类:开发依赖:读写文件应用场景:代码审查 / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add github/awesome-copilot/review-and-refactor
Metadata
name
review-and-refactor
description
Review and refactor code in your project according to defined instructions

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.