rajivmehtaflex/power-utility/gh-cli-ops

Claude Code and agent skill by rajivmehtaflex/power-utility

Trust tier 3
  • community
Source check pending

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-ops

SKILL.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

TaskCommand groupDetails
Which account am I? / switch account / login / token / scopesgh authreferences/auth-and-config.md
gh settings (git_protocol, editor, pager…), env varsgh config / environmentreferences/auth-and-config.md
Call any REST/GraphQL endpoint, paginategh apireferences/api-and-search.md
Search code/commits/issues/PRs/repos across GitHubgh searchreferences/api-and-search.md
Clone/create/fork/view/sync/delete reposgh reporeferences/repos-and-prs.md
Create/list/check/merge/checkout PRsgh pr (alias co = checkout)references/repos-and-prs.md
Issues, labels, discussionsgh issue, gh label, gh discussionreferences/issues-labels-discussions.md
Workflow runs, logs, watch, caches, enable/disable workflowsgh run, gh workflow, gh cachereferences/actions-runs-workflows.md
Codespaces: list, ssh, stop, portsgh codespacereferences/codespaces.md
Actions secrets & variables, SSH/GPG keysgh secret, gh variable, gh ssh-key, gh gpg-keyreferences/secrets-vars-keys.md
Releases, gists, orgs, Projects v2gh release, gh gist, gh org, gh projectreferences/releases-gists-orgs-projects.md
Extensions, aliases, rulesets, attestations, browsemisc commandsreferences/extensions-misc.md
Exit codes, JSON formatting (--json/--jq/--template)help topicsreferences/exit-codes-formatting.md

Conventions that apply everywhere

  1. 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.
  2. Target a repo without cd'ing: append -R HOST/]OWNER/REPO (supported by pr/issue/release/run/etc.) or export GH_REPO=OWNER/REPO.
  3. Headless/non-interactive: interactive prompts hang agents. Prefer explicit flags (--repo, --user, -R) over prompts; set GH_PROMPT_DISABLED=1 if needed.
  4. Auth via env: GH_TOKEN overrides stored credentials on github.com; GH_HOST+GH_TOKEN for Enterprise. Fine-grained PATs: use GH_TOKEN, not gh auth login --with-token.
  5. Exit codes: 0 ok · 1 fail · 2 cancelled · 4 auth required. See references/exit-codes-formatting.md.
  6. Debugging: GH_DEBUG=1 (or GH_DEBUG=api for HTTP traces).

Multi-account pattern (this machine has 4 accounts)

bash
gh auth status # list accounts + which is active
gh auth switch --user <name> # make another stored account active
gh auth token --user <name> # print a specific account's token

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rajivmehtaflex/power-utility/gh-cli-ops/badge)](https://verified-skill.com/skills/rajivmehtaflex/power-utility/gh-cli-ops)

Something wrong with this skill or its page? Tell us.