review-and-refactor

par github

Révision et refactorisation automatisées du code selon les directives et instructions de codage spécifiques au projet. Lit les normes de codage depuis .github/instructions/*.md et .github/copilot-instructions.md pour établir les conventions du projet. Effectue une révision complète du code et une refactorisation pour s'aligner sur les directives définies tout en préservant la structure des fichiers. Valide que les tests existants continuent de passer après les modifications de refactorisation. Maintient l'intégrité du code en conservant les fichiers intacts plutôt qu'en les divisant ou...

npx skills add https://github.com/github/awesome-copilot --skill review-and-refactor

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.