/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 qua gh, 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 contract
  • references/command-cookbook.md — snippet gh, GraphQL, REST, Actions
  • references/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

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.
Issue body là hợp đồng; cập nhật theo thời gian thì viết comment.

Skill pipelines


Recipe cho team ECH

Chạy trong checkout của primeproduction/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 project cần token scope project — kiểm gh auth status, thiếu thì gh auth refresh -s project
  • ⚠️ Status loại trừ nhau — chỉ 1 status live; ưu tiên Projects Status, label status:* chỉ là fallback
  • ⚠️ Ghi field Project chính xác dùng gh api graphql (updateProjectV2ItemFieldValue); Project của user thì đổi organization(login:$owner) thành user(login:$owner)
  • ⚠️ Actions ghi Project: nếu GITHUB_TOKEN khô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

Reference

  • SKILL.md: ~/.claude/skills/ghpm/SKILL.md
  • References: ~/.claude/skills/ghpm/references/{schema-and-taxonomy,command-cookbook,skill-pipelines}.md