github – skill Lập trình cho agent AI
GitHub qua CLI gh: PR, issue, review, repo, xác thực.
Cài skill github bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/github-d70ee.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /github – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/github-d70ee.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $github – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/github-d70ee.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /github – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/github-d70ee.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /github – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
GitHub
Work GitHub end to end with the gh CLI (REST fallback where noted): auth,
issues, the PR lifecycle, issue-to-PR delivery, code review, and repo
management. This skill consolidates six former skills; each workflow lives
complete in its reference file — ALWAYS read the matching reference before
starting that workflow, the body below only routes.
Routing
| Task | Read first |
|---|---|
| Auth broken / new machine / token or SSH setup / gh login | references/auth.md |
| Create, triage, label, assign, close issues | references/issues.md |
| Branch, commit, open PR, watch CI, merge | references/pr-workflow.md |
| Carry an ISSUE to a verified PR (full delivery loop) | references/issue-to-pr.md |
| Review someone's PR: diffs, inline comments, verdict | references/code-review.md |
| Clone/create/fork repos, remotes, releases | references/repo-management.md |
Supporting assets: scripts/gh-env.sh + scripts/git-credential-token.py
(auth helpers), templates/ (PR bodies, bug report, feature request),
references/ci-troubleshooting.md, references/conventional-commits.md,
references/github-api-cheatsheet.md, references/review-output-template.md.
Core discipline (applies to every workflow)
- Preflight once per session:
gh auth status— if it fails, go to
references/auth.md before anything else.
- Prefer
ghover raw REST; drop togh apionly for endpoints the
porcelain lacks (the cheatsheet lists them).
- Never report CI green without checking
gh pr checksyourself; never
claim merged without verifying state,mergedAt.
- Read full context before writing:
gh issue view --comments/
gh pr view --comments — decisions live in threads, not titles.
- Sweep for duplicates before creating anything:
gh pr list --search / gh issue list --search.
Verification
- The workflow's own reference file defines done for that task.
- Cross-cutting: every claim about remote state (CI, merge, release,
issue state) is backed by a fresh gh read, never memory.
Skill liên quan
- literature-review – Thực hiện tổng quan tài liệu có hệ thống, phạm vi và tường thuật bằng PubMed, arXiv…
- azure-ai-projects-java – SDK Azure AI Projects cho Java. SDK cấp cao quản lý dự án Azure AI Foundry gồm…
- yeet – Chỉ dùng khi người dùng yêu cầu rõ ràng stage, commit, push và mở pull request trên…
- hunt-nodejs – Săn các lỗ hổng đặc thù Node.js — chuỗi Prototype Pollution → RCE (lodash/merge/assign)…
- google-workspace – Gmail, Calendar, Drive, Docs, Sheets qua gws CLI hoặc Python.
- azure-ai-vision-imageanalysis-java – Xây dựng ứng dụng phân tích ảnh với SDK Azure AI Vision cho Java. Dùng khi triển khai…
- azure-ai-voicelive-java – SDK Azure AI VoiceLive cho Java. Hội thoại giọng nói hai chiều thời gian thực với trợ lý…
- langchain-architecture – Thiết kế ứng dụng LLM bằng LangChain 1.x và LangGraph cho agent, bộ nhớ và tích hợp công…