AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Gh Cli

skill-hamsurang-kit-gh-cli · by hamsurang

>

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-hamsurang-kit-gh-cli

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-hamsurang-kit-gh-cli)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Gh Cli? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

GitHub CLI (gh) — Workflow Guide

Contents

  • [Behavior Guidelines](#behavior-guidelines)
  • [Core Workflows](#core-workflows)
  • [JSON Scripting Patterns](#json-scripting-patterns)
  • [Common Troubleshooting](#common-troubleshooting)
  • [References Loading Guide](#references-loading-guide)

Behavior Guidelines

  1. Always check auth first — run gh auth status before complex operations. If not logged in, run gh auth login.
  2. Prefer --json + --jq for scripting — never parse human-readable gh output with grep/awk. Use structured JSON output.
  3. Use --repo owner/repo for cross-repo ops — avoid cd-ing into directories when you can target repos directly.
  4. Prefer gh pr create over manual push + web UI — it handles branch pushing, PR creation, and linking in one step.
  5. Use --web to hand off to browser — when the user needs to fill forms or review visually, open in browser instead of guessing.

Core Workflows

Pull Requests

# Create PR (interactive — fills title/body from commits)
gh pr create

# Create with details
gh pr create --title "feat: add dark mode" --body "Closes #42"

# Draft PR
gh pr create --draft --title "WIP: refactor auth"

# Review and merge
gh pr review 123 --approve
gh pr merge 123 --squash --auto

# Check PR status
gh pr checks 123
gh pr list --author "@me"

Issues

# Create issue
gh issue create --title "Bug: login fails" --label "bug" --assignee "@me"

# List and filter
gh issue list --label "bug" --state open
gh issue list --search "is:open label:bug created:>2024-01-01"

# Close with comment
gh issue close 42 --comment "Fixed in #123"

CI / Actions

# Watch current run
gh run watch

# List failures
gh run list --branch main --status failure --limit 10

# View logs
gh run view 12345678 --log

# Re-run failed jobs
gh run rerun 12345678 --failed

# Trigger workflow manually
gh workflow run deploy.yml --field environment=staging

JSON Scripting Patterns

# List PR titles and numbers
gh pr list --json number,title --jq '.[] | "\(.number): \(.title)"'

# Check if all PR checks passed
gh pr checks 123 --json name,state --jq '[.[] | select(.state != "SUCCESS")] | length == 0'

# Find failing workflow runs
gh run list --json status,name,url --jq '.[] | select(.status == "failure") | .url'

Common Troubleshooting

| Problem | Fix | |---------|-----| | gh: command not found | brew install gh or see install guide | | Not logged in | gh auth login | | Permission denied | gh auth refresh --scopes repo,workflow | | Wrong repo targeted | Add --repo owner/repo or cd into the repo | | Stale token | gh auth refresh |

References Loading Guide

| Situation | Load | |-----------|------| | PR creation/review/merge details, issue templates, milestones | references/prs-issues.md | | Repo/Actions/Workflow management, secrets, caches | references/repos-actions.md | | Authentication, search syntax, API calls | references/auth-search-api.md |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.