gh

Use the GitHub CLI (`gh`) for repository operations including PR and issue inspection, GitHub search, checks, and API calls. Use when a user asks for GitHub URLs, PR metadata, issue details, checks, or repository automation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gh" with this command: npx skills add adampoit/ai/adampoit-ai-gh

Gh

Use gh for GitHub-related tasks.

gh pr view 123 --json number,title,body,commits,files,headRefName,url

Inspect PRs And Issues

View one PR as JSON:

gh pr view 123 --json number,title,body,commits,files,headRefName,url

List open PRs:

gh pr list --state open --json number,title,headRefName,url

View one issue as JSON:

gh issue view 456 --json number,title,body,comments,url

Search GitHub

Prefer gh search for code/repo/issue/PR discovery.

Code search:

gh search code "TODO repo:owner/repo path:src" --limit 20

Repository search:

gh search repos "topic:cli language:go" --limit 20 --json name,description,url

Issue search:

gh search issues "repo:owner/repo is:issue is:open label:bug" --limit 50 --json number,title,url,state,updatedAt

PR search:

gh search prs "repo:owner/repo is:pr is:open author:alice" --limit 50 --json number,title,url,state,updatedAt

Search tips:

  • Use qualifiers to reduce noise: repo:, path:, language:, is:open, author:, label:
  • Start broad, then refine filters
  • Combine with local search (rg) in checked-out repos when validating context

Checks And CI

View checks for a PR branch:

gh pr checks 123

View run details with links:

gh run list --limit 20

API And Automation

Use gh api when subcommands do not expose required fields.

gh api repos/:owner/:repo/pulls --method POST -f title='My PR' -f head='feature-branch' -f base='main'

Prefer machine-readable output for automation:

  • Use --json where available
  • Use gh api output with jq for deterministic extraction of fields like number, title, body, and url

URL Handling

When the user provides a GitHub URL, parse owner/repo/number and fetch details with gh commands instead of browser scraping.

Examples:

  • PR URL -> gh pr view <number> --repo <owner>/<repo> ...
  • Issue URL -> gh issue view <number> --repo <owner>/<repo> ...

Guardrails

Default to read-only operations unless the user explicitly requests mutation.

Read-only examples:

  • gh pr view, gh pr list, gh pr checks
  • gh issue view, gh search ..., gh run list, gh api GET calls

Mutating examples (require explicit user intent):

  • gh pr create, gh pr merge, gh pr close
  • gh issue create, gh issue edit, gh issue close
  • gh api POST/PATCH/DELETE calls

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

AgentScout

Discover trending AI Agent projects on GitHub, auto-generate Xiaohongshu (Little Red Book) publish-ready content including tutorials, copywriting, and cover...

Registry SourceRecently Updated
00Profile unavailable
Coding

智能体B(Dev代理)技能包

提供技术设计、开发实现、集成发布及沟通协作支持的智能体B(Dev代理)技能包。

Registry SourceRecently Updated
380Profile unavailable
Coding

一个智能的业务需求转研发文档工具。AI 自主分析项目代码库,理解业务需求,参考实际代码,生成可直接执行的研发文档。支持任意技术栈,无需配置。

Smart business-to-dev requirement translator. AI first analyzes and memorizes project structure, then understands business requirements, references actual co...

Registry SourceRecently Updated
530Profile unavailable
Coding

Godot Game Claw Bridge

Godot 4.x Project Generator CLI. Create 2D/3D games with 80+ CLI commands: projects, scenes, scripts, levels, UI (menu/HUD/dialog/inventory), game components...

Registry SourceRecently Updated
1221Profile unavailable