Checkpoint

สร้าง git safety commit ก่อนให้ Claude ทำงาน เพื่อป้องกัน code หาย ใช้ skill นี้ก่อนทุกครั้งที่จะให้ Claude implement หรือ refactor เช่น "checkpoint ก่อน", "เซฟ code ก่อน", "ก่อน implement ขอ checkpoint"

natthasath eb28be1 1.6 KB Updated

File contents

สร้าง checkpoint commit ที่ปลอดภัยก่อนเริ่มงาน: $ARGUMENTS

อ่าน ../../references/commit-emoji.md เพื่อดู emoji convention ก่อน commit

ทำตามขั้นตอนนี้:

  1. รัน git status เพื่อดูไฟล์ที่เปลี่ยนแปลง
  2. รัน git add . เพื่อ stage ทุกอย่าง
  3. รัน git commit -m "🔧 chore: checkpoint before $ARGUMENTS"
  4. แจ้งผลว่า commit hash คืออะไร พร้อมบอกว่า "ถ้าทุกอย่างพัง ย้อนกลับด้วย: git reset --hard HEAD"

ถ้าไม่มีไฟล์ที่เปลี่ยนแปลง ให้บอกว่า "ไม่มีอะไรต้อง commit — ปลอดภัยที่จะเริ่มงานได้เลย"

─────────────────────────────────────
ถัดไป → /implement $ARGUMENTS
─────────────────────────────────────

natthasath/natthasath-marketplace/tree/main/plugins/projects/skills/checkpoint commit eb28be1976

Frequently asked questions

npx skillmds@latest add natthasath/checkpoint