gh
Skill2 starsChanged 13 days agoMITView on GitHub
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.
- Commits and pushes
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- chatgpt-share-markdownSkill
- ddgrSkill
- jiraSkill
- jjSkill
- khalSkill
- notmuchSkill
- skill-creatorSkill
- taskwarriorSkill
- tmux-interactive-processesSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use gh for GitHub-related tasks.
- Very specific: line 36
Prefer gh search for code/repo/issue/PR discovery.
- Very specific: line 64
Use qualifiers to reduce noise: repo:, path:, language:, is:open, author:, label:
- Distinctive: line 65
Start broad, then refine filters
- Very specific: line 84
Use gh api when subcommands do not expose required fields.
- Distinctive: line 90
Prefer machine-readable output for automation:
- Very specific: line 92
Use --json where available
- Very specific: line 93
Use gh api output with jq for deterministic extraction of fields like number, title, body, and url
- Very specific: line 97
When the user provides a GitHub URL, parse owner/repo/number and fetch details with gh commands instead of browser scraping.
- Distinctive: line 106
Default to read-only operations unless the user explicitly requests mutation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gh
Use gh for GitHub-related tasks.
gh pr view 123 --json number,title,body,commits,files,headRefName,urlInspect PRs And Issues
View one PR as JSON:
gh pr view 123 --json number,title,body,commits,files,headRefName,urlList open PRs:
gh pr list --state open --json number,title,headRefName,urlView one issue as JSON:
gh issue view 456 --json number,title,body,comments,urlSearch GitHub
Prefer gh search for code/repo/issue/PR discovery.
Code search:
gh search code "TODO repo:owner/repo path:src" --limit 20Repository search:
gh search repos "topic:cli language:go" --limit 20 --json name,description,urlIssue search:
gh search issues "repo:owner/repo is:issue is:open label:bug" --limit 50 --json number,title,url,state,updatedAtPR search:
gh search prs "repo:owner/repo is:pr is:open author:alice" --limit 50 --json number,title,url,state,updatedAtSearch 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 123View run details with links:
gh run list --limit 20API 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
--jsonwhere available - Use
gh apioutput withjqfor deterministic extraction of fields likenumber,title,body, andurl
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 checksgh issue view,gh search ...,gh run list,gh apiGET calls
Mutating examples (require explicit user intent):
gh pr create,gh pr merge,gh pr closegh issue create,gh issue edit,gh issue closegh apiPOST/PATCH/DELETE calls
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

