gh
Use the GitHub CLI (`gh`) for repository operations including PR and issue inspection, GitHub search, checks, and API calls.
Skill by adampoit
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/adampoit-gh
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gh
What's inside
- Skill name
gh- Description
- 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.
- License
- MIT
- Instructions
- 114 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Gh Use `gh` for GitHub-related tasks. ```bash gh pr view 123 --json number,title,body,commits,files,headRefName,url ``` ## Inspect PRs And Issues View one PR as JSON: ```bash gh pr view 123 --json number,title,body,commits,files,headRefName,url ``` List open PRs: ```bash gh pr list --state open --json number,title,headRefName,url ``` View one issue as JSON: ```bash gh issue view 456 --json number,title,body,comments,url ``` ## Search GitHub Prefer `gh search` for code/repo/issue/PR discovery. Code search: ```bash gh search code "TODO repo:owner/repo path:src" --limit 20 ``` Repository search: ```bash gh search repos "topic:cli language:go" --limit 20 --json name,description,url ``` Issue search: ```bash gh search issues "repo:owner/repo is:issue is:open label:bug" --limit 50 --json number,title,url,state,updatedAt ``` PR search: ```bash 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: ```bash gh pr checks 123 ``` View run details with links: ```bash gh run list --limit 20 ``` ## API And Automation Use `gh api` when subcommands do not expose required fields. ```bash 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
From adampoit/ai, MIT.
More from adampoit/ai
- 0.557score
taskwarrior
adampoit
Manage tasks with the `task` (Taskwarrior) CLI, including attaching notes with `task-note`.
SkillBFreshness: B★ 2Claude Code +9 - 0.507score
jj
adampoit
Use Jujutsu (`jj`) for version control operations including status, history, diffs, commits, rebases, splits, squashes, and Git interop.
SkillCFreshness: C★ 2Claude Code +9 - 0.504score
tmux-interactive-processes
adampoit
Use tmux instead of background bash for long-running, interactive, inspectable, or user-attachable terminal processes.
SkillCFreshness: C★ 2Claude Code +9 - 0.448score
chatgpt-share-markdown
adampoit
Convert public ChatGPT share links into clean Markdown transcripts for agent context.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
agents-md
adampoit
Create and maintain AGENTS.md files that provide AI coding agents with project context, commands, code style, and boundaries.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
ddgr
adampoit
Search the web with DuckDuckGo using the `ddgr` CLI.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
notmuch
adampoit
Search and read local email with the `notmuch` CLI.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
jira
adampoit
Search Jira issues with JQL or free text, and read Jira issue details with comments using the external jira-cli (`jira`) command.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
khal
adampoit
Read calendar events with the `khal` CLI.
SkillDFreshness: D★ 2Claude Code +9 - 0.441score
skill-creator
adampoit
Guide for creating effective agent skills.
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 22, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/adampoit/ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from adampoit
- 0.557score
taskwarrior
adampoit
Manage tasks with the `task` (Taskwarrior) CLI, including attaching notes with `task-note`.
SkillBFreshness: B★ 2Claude Code +9 - 0.507score
jj
adampoit
Use Jujutsu (`jj`) for version control operations including status, history, diffs, commits, rebases, splits, squashes, and Git interop.
SkillCFreshness: C★ 2Claude Code +9 - 0.504score
tmux-interactive-processes
adampoit
Use tmux instead of background bash for long-running, interactive, inspectable, or user-attachable terminal processes.
SkillCFreshness: C★ 2Claude Code +9 - 0.448score
chatgpt-share-markdown
adampoit
Convert public ChatGPT share links into clean Markdown transcripts for agent context.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
agents-md
adampoit
Create and maintain AGENTS.md files that provide AI coding agents with project context, commands, code style, and boundaries.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
ddgr
adampoit
Search the web with DuckDuckGo using the `ddgr` CLI.
SkillDFreshness: D★ 2Claude Code +9
Cite this page
gh skill. Agent Mart. https://agentmart.dev/skills/adampoit-gh (last updated 2026-10-24)