agentsclimarketplace

Gh cli

Skill prof-ramos/skills/skills/gh-cli

Always use when the user needs to work with GitHub from the command line — create or merge PRs, manage issues, run Actions workflows, create releases, manage repos, or automate any GitHub operation. Trigger on: 'gh pr', 'create pull request', 'GitHub CLI', 'gh issue', 'run workflow', 'gh release', 'merge PR', 'clone repo with gh', or any GitHub operation via terminal.From its SKILL.md

Install
npx -y skills add prof-ramos/skills --skill gh-cli

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.0 KB, 717 tokens by cl100k_base, as published. Nobody here has run it

GitHub CLI (gh)

Comprehensive reference for GitHub CLI (gh) - work seamlessly with GitHub from the command line.

Quick Start

# Verify installation
gh --version

Authentication

gh auth login
gh auth status

Common Workflows

# Create PR from issue
gh issue develop 123 --branch feature/issue-123
git add . && git commit -m "Fix issue #123" && git push
gh pr create --title "Fix #123" --body "Closes #123"

# Repository setup
gh repo create my-project --public --clone --gitignore python --license mit

# CI/CD run and watch
RUN_ID=$(gh workflow run ci.yml --ref main --jq '.databaseId')
gh run watch "$RUN_ID"

# Fork sync workflow
gh repo fork original/repo --clone
gh repo sync

# Bulk close stale issues
gh issue list --search "label:stale" --json number --jq '.[].number' | \
  xargs -I {} gh issue close {} --comment "Closing as stale"

Usage

This skill provides full command references for all gh subcommands. See REFERENCE.md for the complete reference organized by:

  • Authentication (gh auth) - login, status, token, refresh, switch, setup-git
  • Repositories (gh repo) - create, clone, list, view, edit, delete, fork, sync
  • Issues (gh issue) - create, list, view, edit, close, comment, pin, transfer
  • Pull Requests (gh pr) - create, list, view, checkout, merge, review, revert
  • GitHub Actions (gh run, gh workflow, gh cache, gh secret, gh variable)
  • Projects (gh project) - create, edit, fields, items
  • Releases (gh release) - create, upload, download, verify
  • Gists (gh gist)
  • Codespaces (gh codespace)
  • Search (gh search) - code, commits, issues, PRs, repos
  • Labels, SSH keys, GPG keys
  • API (gh api) - REST and GraphQL
  • Extensions, Aliases, Configuration
  • Global flags and output formatting
  • Best practices and environment setup

Environment Variables

export GH_TOKEN=ghp_xxxxxxxxxxxx
export GH_HOST=github.com
export GH_PROMPT_DISABLED=true
export GH_EDITOR=vim
export GH_PAGER=less
export GH_TIMEOUT=30
export GH_REPO=owner/repo

Shell Integration

eval "$(gh completion -s bash)"  # or zsh/fish
alias gs='gh status'
alias gpr='gh pr view --web'
alias gir='gh issue view --web'
alias gco='gh pr checkout'

Getting Help

gh --help
gh pr --help
gh help formatting
gh help environment
gh help exit-codes

References

What ships with it: 1 file

25.0 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,149. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.