review-and-refactor

โดย github

การตรวจสอบโค้ดและปรับโครงสร้างโค้ดอัตโนมัติตามแนวทางและคำแนะนำการเขียนโค้ดเฉพาะโครงการ อ่านมาตรฐานการเขียนโค้ดจาก .github/instructions/*.md และ .github/copilot-instructions.md เพื่อกำหนดข้อตกลงของโครงการ ดำเนินการตรวจสอบโค้ดอย่างครอบคลุมและปรับโครงสร้างให้สอดคล้องกับแนวทางที่กำหนดไว้ ในขณะที่คงโครงสร้างไฟล์เดิมไว้ ตรวจสอบให้แน่ใจว่าการทดสอบที่มีอยู่ยังคงผ่านหลังจากการเปลี่ยนแปลงปรับโครงสร้าง รักษาความสมบูรณ์ของโค้ดโดยเก็บไฟล์ไว้เหมือนเดิมแทนที่จะแยกหรือ...

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.

Skills เพิ่มเติมจาก github

console-rendering
github
คำแนะนำสำหรับการใช้ระบบเรนเดอร์คอนโซลที่ใช้ struct tag ใน Go
official
github-pr-query
github
สอบถาม Pull Request บน GitHub อย่างมีประสิทธิภาพ พร้อมรองรับการกรองด้วยอาร์กิวเมนต์ jq
official
jqschema
github
ยูทิลิตี้ค้นพบสคีมา JSON ที่แยกข้อมูลโครงสร้างและประเภทจากข้อมูล JSON
official
gh-agent-session
github
ส่วนขยายเซสชันเอเจนต์ CLI ของ GitHub
official
gh-agent-task
github
ส่วนขยายงานตัวแทน GitHub CLI
official
github-copilot-agent-tips-and-tricks
github
เคล็ดลับและเทคนิคสำหรับการทำงานกับ Pull Requests ของ GitHub Copilot Agent
official
rust-coding-skill
github
Use this skill whenever editing `*.rs` files in the `rust/` SDK in order to write idiomatic, efficient, well-structured Rust code
official
ai-ready
github
ทำให้ repo ใดๆ พร้อมสำหรับ AI — วิเคราะห์โค้ดเบสของคุณและสร้าง AGENTS.md, copilot-instructions.md, ขั้นตอนการทำงาน CI, เทมเพลต issue และอื่นๆ ขุดรีวิว PR ของคุณ…
official