paulrberg/agent-skills/cli-gh
Claude Code and agent skill by paulrberg/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
"Use for GitHub CLI automation: repository reads, workflow runs, search, codespaces, releases, configuration, or gh command syntax. Use yeet for contribution writes to PRs, issues, comments, or discussions."
Install
npx vskill@latest install paulrberg/agent-skills/cli-ghSKILL.md
GitHub CLI
This skill is coordination-exempt: skip the ai-coord gate for its declared work.
Routing
Use yeet to author or update a pull request, issue, issue comment, or discussion. yeet owns semantic analysis, repository templates, Paul's writing voice, idempotency, and direct posting. Route repository renames through repo-rename so GitHub and local continuity change together.
Authority
- Read and inspect without confirmation.
- Execute reversible or ordinary GitHub writes only when the user explicitly requested that outcome.
- Never delete repositories, releases/assets, workflow runs/caches, secrets/variables, keys, codespaces, extensions, or
gists.
- Label deletion is the sole destructive exception: show the target repo, exact labels, commands, and issue/PR impact,
then require approval in a subsequent message before gh label delete ... --yes.
Workflow
- Resolve the repository explicitly when cwd is ambiguous. Let the first required read-only command validate
authentication. Run gh auth status only for auth diagnosis.
- Use installed
gh <command> <subcommand> --helpto resolve flags, JSON fields, and command behavior. CLI JSON field
names can differ from API fields. Prefer --json with --jq for structured output.
- Preview broad writes with the repository, exact targets, commands, and issue/PR impact. An already requested ordinary
write does not require a second approval.
CI Failure Triage
Use this workflow when the user asks why CI fails or asks to fix a failing run. Keep each command output bounded.
- Find the failing runs for the branch or the commit:
``sh gh run list --branch <branch> --status failure --limit 5 gh run list --commit <sha> --status failure --limit 5 ``
- Extract only the failed-step lines. Never print the raw log.
``sh gh run view <run-id> --log-failed | rg --no-config -n 'error|FAIL|panic|✗' | head -80 ``
- Check toolchain drift before you change code. Compare the versions pinned in
.github/workflows/*.ymlwith the local
--version output. Common cases are Foundry (forge), Bun (bun), Node.js (node), and Rust (rustc).
- If the user requested a fix, fix the cause and push the commit.
- Get the new run ID with
gh run list --commit <new-sha> --limit 5. Then watch that run:
``sh gh run watch <run-id> --exit-status --compact ``
- Report the run URL from
gh run view <run-id> --json url --jq .urland the final run status.
Notable Flags (gh 2.98+)
gh pr checkout --worktree <path>andgh issue develop --checkout --worktree <path>check out into a linked git
worktree instead of switching the current branch.
gh search issues --search-type semantic|hybridranks by relevance: issues only, one page, no--sort/--order, not
on GitHub Enterprise Server.
gh config set api_host <gateway> --host <host>routes that host's API traffic through a gateway. The feature is
experimental and is not a security boundary.
gh auth loginandgh auth refreshcopy OAuth device codes to the clipboard by default (2.101+). To opt out, run
gh config set clipboard disabled.
gh auth login --expiring(2.103+) prefers expiring OAuth tokens thatghrefreshes. To prefer them on every
sign-in, run gh config set expiring_credentials enabled. Run gh auth token each time you need a token. Never cache its output. GH_TOKEN and GITHUB_TOKEN values never refresh.
gh auth statusrefreshes an expired or near-expiry refreshable token unless you pass--no-refresh. With that flag,
2.103.3+ reports the token as expired, not invalid. To renew it, run the command without the flag. Do not run gh auth refresh for this case.
--attach '<file>#<alt>'on issue/PR create, edit, and comment uploads images or videos. Route those writes through
yeet. Since 2.103.2, GitHub App installation tokens can attach, and the upload endpoint decides permission.
Completion
Complete when command output verifies the requested GitHub data or state. After a write, fetch the resulting resource. On a partial or ambiguous failure, check whether it changed before retrying. Report the verified state and URL or stable identifier. Include the concrete error and next action when incomplete, and distinguish an unknown result from a confirmed failure.
Security
- Security scanPassed, 90 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/cli-gh/SKILL.md
Popularity
- Repository stars
- 65
- Repository forks
- 3
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Mar 2026, 7 months ago.
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/paulrberg/agent-skills/cli-gh)