tangcent/ai-cookbook/github-cli
Claude Code and agent skill by tangcent/ai-cookbook
- community
Checking that the SKILL.md file is still in the repository.
Operate GitHub from terminal with `gh` for repositories, pull requests, issues, releases, actions, and API calls. Use for any GitHub task. For template-compliant PR or issue creation, load reference workflows under references/.
Install
npx vskill@latest install tangcent/ai-cookbook/github-cliSKILL.md
GitHub CLI
Execution Policy
For GitHub tasks, use gh as the primary interface.
Rules:
- Always run
ghcommands before falling back to raw APIs. - Use
gh apiinstead ofcurlfor GitHub REST/GraphQL. - Do not hardcode tokens in commands or scripts.
- Confirm destructive operations (merge/close/delete/release delete).
Preflight
- Verify CLI and auth:
``bash gh --version gh auth status ``
- Resolve repository context:
- In repo: use current remote context.
- Outside repo: require
-R owner/repo.
- Prefer machine-readable output when summarizing:
--json ... --jq ...
Conditional References
Load detailed flows only when needed:
- PR creation with template compliance:
- read
references/create-pr.md - Issue creation with template compliance:
- read
references/create-issue.md
Keep this file focused on common gh operations and routing.
High-Value Commands
Common Workflows
Review and merge a PR
- Inspect:
``bash gh pr view <number> --json title,author,mergeStateStatus,url gh pr diff <number> ``
- Approve/comment:
``bash gh pr review <number> --approve ``
- Merge (confirm strategy with user if not specified):
``bash gh pr merge <number> --squash --delete-branch ``
Investigate an issue
- Read issue:
``bash gh issue view <number> --json title,body,labels,assignees,url ``
- Search related PR/code:
``bash gh search prs "<keyword>" --repo owner/repo --state all gh search code "<keyword>" --repo owner/repo ``
Monitor CI
Troubleshooting
gh: command not found-> installgh.not logged in->gh auth login.- Wrong repo context -> use
-R owner/repo. - Missing scopes ->
gh auth refresh -s <scope>.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/github-cli/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tangcent/ai-cookbook/github-cli)