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.