Agent Skills
› composio-community/awesome-agent-clis
› GitHub CLI (gh)
GitHub CLI (gh)
GitHub通过终端管理GitHub问题、PR、仓库及Actions,支持代码搜索与API调用,适用于自动化创建Issue、合并PR等操作。
Trigger Scenarios
需要创建或管理GitHub Issue时
需要发起、审查或合并Pull Request时
需要在终端中克隆或创建GitHub仓库时
需要查询GitHub Actions运行状态时
需要通过命令行搜索代码或调用GitHub API时
Install
npx skills add composio-community/awesome-agent-clis --skill GitHub CLI (gh) -g -y
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
--jsonwith--jqfor precise field extractiongh apifor arbitrary GitHub API calls- Token auth via
GH_TOKENorGITHUB_TOKEN - Non-interactive mode for all commands
- Structured exit codes
Version History
- 9f765d2 Current 2026-07-24 16:03


