| name | spk-release-check |
| description | ตรวจ release readiness ของ SPK ด้วย manifest, docs, references, native skills, tests, secrets และ git state |
| argument-hint | [release scope or version] |
spk-release-check
ใช้เช็กความพร้อมก่อน release โดยไม่ commit, push, tag, publish หรือ deploy เอง
สิ่งที่ต้องตรวจ
รันหรือระบุเหตุผลถ้าข้าม:
npm run validate:manifest
npm run regen:check
npm run verify:sync
npm run verify:refs
npm run verify:descriptions
npm run verify:agents
npm run verify:gates
npm run verify:native
npm test -- --runInBand
Git readiness
- ตรวจ
git status --short --branch
- ถ้าอยู่บน main ให้ดู outgoing commits ด้วย
git log --oneline origin/main..HEAD
- ก่อนแนะนำ commit ให้ scan staged added lines ว่าไม่มี secret
Output
สรุปเป็น:
## Release Check
- Scope: <scope>
- Gates: <pass/fail list>
- Git state: <clean/dirty/ahead/behind>
- Secret scan: <pass/fail/not run + reason>
- Blockers: <list>
- Next safe action: <one step>
Safety
- ค่าเริ่มต้นคือ prepare-only
- ห้าม commit, push, tag, publish หรือ deploy โดยไม่มี confirmation ชัดเจน