GitHub CLI (gh)

GitHub

提供 GitHub CLI (gh) 的使用指南,涵盖安装、关键命令及 Agent 友好特性。支持在终端管理 Issue、PR、仓库、Actions 和代码搜索,适用于自动化创建 PR、合并代码及查询 GitHub API 等场景。

Trigger Scenarios

需要创建或管理 GitHub Issue 需要提交或合并 Pull Request 需要在终端执行 GitHub API 操作

Install

npx skills add composio-community/awesome-agent-clis --skill GitHub CLI (gh) -g -y
More Options

Non-standard path

npx skills add https://github.com/composio-community/awesome-agent-clis/tree/master/github-cli -g -y

Use without installing

npx skills use composio-community/awesome-agent-clis@GitHub CLI (gh)

指定 Agent (Claude Code)

npx skills add composio-community/awesome-agent-clis --skill GitHub CLI (gh) -a claude-code -g -y

安装 repo 全部 skill

npx skills add composio-community/awesome-agent-clis --all -g -y

预览 repo 内 skill

npx skills add composio-community/awesome-agent-clis --list

SKILL.md

Frontmatter
{
    "name": "GitHub CLI (gh)",
    "description": "Manage GitHub issues, PRs, repos, actions, and code search from the terminal. Use when an agent needs to create issues, open pull requests, manage releases, or search code on GitHub."
}

GitHub CLI (gh)

Issues, PRs, repos, actions, and code search from the terminal.

Installation

brew install gh
gh auth login

Key Commands

gh issue list --json number,title,state
gh issue create --title "Bug" --body "Description"
gh pr list --json number,title,headRefName
gh pr create --title "Feature" --body "Description"
gh pr merge <number> --squash
gh repo clone owner/repo
gh repo create my-repo --public
gh run list --json status,name,conclusion
gh api repos/owner/repo/releases --jq '.[0].tag_name'
gh search code "function_name" --json path,repository

Agent-Friendly Features

  • --json with --jq for precise field extraction
  • gh api for arbitrary GitHub API calls
  • Token auth via GH_TOKEN or GITHUB_TOKEN
  • Non-interactive mode for all commands
  • Structured exit codes

Version History

  • 9f765d2 Current 2026-07-24 16:03

Same Skill Collection

aws-cli/SKILL.md
coderabbit-cli/SKILL.md
composio-cli/SKILL.md
elevenlabs-cli/SKILL.md
gcloud-cli/SKILL.md
gitlab-cli/SKILL.md
google-workspace-cli/SKILL.md
mailcoach-cli/SKILL.md
neon-cli/SKILL.md
ntn/SKILL.md
planetscale-cli/SKILL.md
posthog-cli/SKILL.md
railway-cli/SKILL.md
ramp-cli/SKILL.md
remotion-cli/SKILL.md
resend-cli/SKILL.md
sendblue-cli/SKILL.md
sentry-cli/SKILL.md
sonoscli/SKILL.md
stripe-cli/SKILL.md
stripe-projects-cli/SKILL.md
supabase-cli/SKILL.md
tavily-cli/SKILL.md
turso-cli/SKILL.md
vercel-cli/SKILL.md
visa-cli/SKILL.md
wacli/SKILL.md
kapso-cli/SKILL.md

Metadata

Files
0
Version
9f765d2
Hash
0805a95e
Indexed
2026-07-24 16:03

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-18 05:41
浙ICP备14020137号-1 $mapa de visitantes$