/ghpm — GitHub làm nguồn sự thật cho việc dự án
Kit: CK Engineer v2.20.1-beta.14 · Skill version: 1.0.0 · Category: utilities · Updated: 2026-10-05 Skill dùng GitHub làm SSOT (single source of truth) cho công việc chung giữa người và AI agent: nhận việc (intake), triage, schema issue/project, cập nhật status, handoff log, và automation quagh, git, GraphQL, REST, Actions.
Skill không thay thế: quyết định sản phẩm, planning riêng tư, quản lý secrets, code review.
/ghpm không có sub-command hay cờ. Gọi bằng yêu cầu tự nhiên, agent tự chọn chế độ (Bootstrap / Intake / Execute / Handoff / Audit) rồi chạy lệnh gh tương ứng.Khi nào dùng
- Quản lý task, status, roadmap, project board, label, GitHub Projects, handoff/handover
- Việc trải qua cả người + AI agent, cần giữ context bền giữa các session
- Chuyển chat / plan / TODO thành GitHub Issues có evidence, owner, dependency, status
- Nối các skill thành pipeline thực thi và báo tiến độ từ trạng thái GitHub
- Tự động hoá triage / status / comment bằng GitHub Actions hoặc
gh api
Cú pháp
5 chế độ vận hành
Workflow
1
Định vị repo + auth
2
Chọn chế độ
Bootstrap / Intake / Execute / Handoff / Audit.
3
Chỉ load reference cần dùng
references/schema-and-taxonomy.md— labels, fields, issue body contractreferences/command-cookbook.md— snippetgh, GraphQL, REST, Actionsreferences/skill-pipelines.md— chuỗi skill
4
Cập nhật GitHub trước, file local sau
Task đổi → sửa issue/project/comment. Code đổi → link PR/branch/checks về issue. Plan/docs đổi → trạng thái chuẩn nằm trên GitHub, link file local.
5
Báo cáo từ evidence
Dẫn URL issue/PR/project, tên check, tên branch, timestamp.
Schema & taxonomy
Label prefix đề xuất
Label prefix đề xuất
Trước khi thêm:
gh label list --limit 200 — chỉ thêm label còn thiếu.Status label loại trừ nhau: trước khi gắn 1
status:*, gỡ các status:* khác.Project fields (ưu tiên cho trạng thái live)
Project fields (ưu tiên cho trạng thái live)
Task contract (issue body)
Task contract (issue body)
Handoff comment template
Handoff comment template
Output format của skill
Output format của skill
Skill pipelines
Recipe cho team ECH
Chạy trong checkout củaprimeproduction/ech-prime-web-v2. Repo này đã có sẵn issue template + workflow riêng trong .github/ → theo rule của skill, kiểm cái đang có và chỉ bổ sung tối thiểu, không dựng taxonomy mới.
Recipe 1 — Kiểm label trước khi bootstrap
Recipe 2 — Tạo task + chuyển trạng thái
Recipe 3 — Handoff audit cuối ngày
Gotchas
- ⚠️
gh projectcần token scopeproject— kiểmgh auth status, thiếu thìgh auth refresh -s project - ⚠️ Status loại trừ nhau — chỉ 1 status live; ưu tiên Projects
Status, labelstatus:*chỉ là fallback - ⚠️ Ghi field Project chính xác dùng
gh api graphql(updateProjectV2ItemFieldValue); Project của user thì đổiorganization(login:$owner)thànhuser(login:$owner) - ⚠️ Actions ghi Project: nếu
GITHUB_TOKENkhông đủ quyền → dùng GitHub App token least-privilege - ⚠️ Blocker ghi cả field/label lẫn comment, kèm owner + điều kiện gỡ
- ⚠️ Chưa được Done khi AC chưa tick, chưa link evidence PR/check/test, handoff log còn việc, chưa tạo issue follow-up cho việc hoãn
- 🔒 Không dán secrets vào issue, project field, PR body, workflow log, comment. Repo public = sổ evidence public → che dữ liệu khách hàng
- 🔒 Actions dùng
GH_TOKEN, không ghi PAT vào workflow file
Related
- /ck:issue-to-plan — issue → plan validated
- /ck:review-pr — review / fix / reply / merge PR
- /vibe — pipeline issue → PR
Reference
- SKILL.md:
~/.claude/skills/ghpm/SKILL.md - References:
~/.claude/skills/ghpm/references/{schema-and-taxonomy,command-cookbook,skill-pipelines}.md