rajivmehtaflex/power-utility/gh-cli-ops
Claude Code and agent skill by rajivmehtaflex/power-utility
- community
Checking that the SKILL.md file is still in the repository.
Use for any gh CLI or GitHub-via-terminal task; routes refs.
Install
npx vskill@latest install rajivmehtaflex/power-utility/gh-cli-opsSKILL.md
The same SKILL.md was published earlier as rajivmehtaflex/power-utility/gh-cli-ops.
gh CLI Operations (gh-cli-ops)
When to use
Load this skill whenever a task involves the gh CLI or doing GitHub work from the terminal: checking/switching accounts, calling the GitHub API, searching GitHub, repos, PRs, issues, Actions runs, secrets/variables, releases, gists, Projects, or codespaces. It routes each task to the right command group and reference file.
Command map + operational conventions for gh (verified against gh v2.98.0). Deep workflows live in sibling github-* skills — this skill routes to them and covers everything they don't.
Routing table: task → command group → reference
| Task | Command group | Details | |
|---|---|---|---|
| Which account am I? / switch account / login / token / scopes | gh auth | references/auth-and-config.md | |
| gh settings (git_protocol, editor, pager…), env vars | gh config / environment | references/auth-and-config.md | |
| Call any REST/GraphQL endpoint, paginate | gh api | references/api-and-search.md | |
| Search code/commits/issues/PRs/repos across GitHub | gh search | references/api-and-search.md | |
| Clone/create/fork/view/sync/delete repos | gh repo | references/repos-and-prs.md | |
| Create/list/check/merge/checkout PRs | gh pr (alias co = checkout) | references/repos-and-prs.md | |
| Issues, labels, discussions | gh issue, gh label, gh discussion | references/issues-labels-discussions.md | |
| Workflow runs, logs, watch, caches, enable/disable workflows | gh run, gh workflow, gh cache | references/actions-runs-workflows.md | |
| Codespaces: list, ssh, stop, ports | gh codespace | references/codespaces.md | |
| Actions secrets & variables, SSH/GPG keys | gh secret, gh variable, gh ssh-key, gh gpg-key | references/secrets-vars-keys.md | |
| Releases, gists, orgs, Projects v2 | gh release, gh gist, gh org, gh project | references/releases-gists-orgs-projects.md | |
| Extensions, aliases, rulesets, attestations, browse | misc commands | references/extensions-misc.md | |
| Exit codes, JSON formatting (--json/--jq/--template) | help topics | references/exit-codes-formatting.md |
Conventions that apply everywhere
- JSON output: most listing/view commands accept
--json <fields>,... --jq '<expr>'. Omit the field list (--json) to see valid fields. jq is built in — no local jq needed. - Target a repo without cd'ing: append
-R HOST/]OWNER/REPO(supported by pr/issue/release/run/etc.) or exportGH_REPO=OWNER/REPO. - Headless/non-interactive: interactive prompts hang agents. Prefer explicit flags (
--repo,--user,-R) over prompts; setGH_PROMPT_DISABLED=1if needed. - Auth via env:
GH_TOKENoverrides stored credentials on github.com;GH_HOST+GH_TOKENfor Enterprise. Fine-grained PATs: useGH_TOKEN, notgh auth login --with-token. - Exit codes: 0 ok · 1 fail · 2 cancelled · 4 auth required. See references/exit-codes-formatting.md.
- Debugging:
GH_DEBUG=1(orGH_DEBUG=apifor HTTP traces).
Multi-account pattern (this machine has 4 accounts)
Accounts: rajivmehtapy (primary), rajivmehtaflex, rajivmehtajs, mantramehtapy. Before push/PR work as a specific identity: check gh auth status, switch if needed (gh auth switch --user <account>), verify with gh api user --jq .login.
When to hand off to sibling skills
- Auth setup (new machine, tokens, SSH keys):
github-auth - Full PR lifecycle (branch → PR → CI → merge):
github-pr-workflow - PR review comments:
github-code-review - Issue triage/creation at scale:
github-issues - Repo create/fork/mirror ops:
github-repo-management - Codespace SSH setup:
github-codespace-ssh
Regenerating the command corpus
Full --help dump used to build this skill: regenerate with scripts/gh_help_crawl.sh from the pi-local-dev-exp-v1 workspace (./scripts/gh_help_crawl.sh gh_cli_help.md). Re-run after gh upgrades; update the version pin above.
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 repositoryCheckingprofile/github/gh-cli-ops/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/rajivmehtaflex/power-utility/gh-cli-ops)