# Checkpoint

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

- Skill: `natthasath/checkpoint` (Agent Skill)
- Install (CLI): `npx skillmds@latest add natthasath/checkpoint`
- Raw SKILL.md: https://api.skillmd.com/api/skills/natthasath/checkpoint/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: natthasath (https://skillmd.com/u/natthasath)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/natthasath/checkpoint

---


สร้าง 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
─────────────────────────────────────
```

