AGENT SKILL

github-cli

Use GitHub through the official gh CLI and local git. Use for pull requests, issues, releases, workflow checks, repository metadata, and safe GitHub automation without relying on GitHub MCP.

License 许可
MIT
最近更新
2026-05-20
Stars
★ 0
Forks
0

01 前言 Front Matter

name
github-cli
description
Use GitHub through the official gh CLI and local git. Use for pull requests, issues, releases, workflow checks, repository metadata, and safe GitHub automation without relying on GitHub MCP.

03 SKILL.md 正文

GitHub CLI

Prefer gh plus local git for GitHub workflows.

Checks

gh auth status
gh repo view --json nameWithOwner,url,defaultBranchRef
git status --short

Common Commands

gh pr view --json number,title,state,author,headRefName,baseRefName,url
gh pr diff --patch
gh pr checks
gh issue list --limit 20 --json number,title,state,labels,assignees
gh release list --limit 10

Rules

  • Read first; propose writes unless write actions were explicitly allowed.
  • Use local git diff for working-tree changes.
  • Use gh for GitHub server state.
  • Never use GitHub MCP for this plugin path.

04 同仓库更多 Skills