gh-cli
Skill18 starsChanged 7 months agoMITView on GitHub
Operate GitHub repositories, pull requests, issues, and releases via the `gh` CLI. Use when the user asks to push, create PR, manage issues, edit repo metadata, view repo, or any GitHub workflow operation, including Chinese requests such as “推送”“提 PR”“创建 issue”“改仓库描述”“查看仓库信息”.
- Commits and pushes
22 other projects use a version of this.
Adopted by
Most recently taken up by
- zlliang/skillstheir own version, first seen Oct 5, 2026
- zkmake/skillstheir own version, first seen Oct 3, 2026
- devantler-tech/ksailtheir own version, first seen Oct 3, 2026
- ericmjl/skillstheir own version, first seen Sep 26, 2026
- gspencergoog/skillstheir own version, first seen Sep 8, 2026
- bryanus1/agent-skillstheir own version, first seen Aug 31, 2026
Used with
Projects with it also use glab-cli, pptx and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
DataKnifeAISkillglab-cli
Uses the GitLab CLI (`glab`) for merge requests, issues, CI/CD, releases, and GitLab API access from the terminal. Apply when the remote is GitLab (GitLab.com or self-managed) or when the user mentions MRs, pipelines, or GitLab projects.
Also in 3 projects that use this
AnthropicSkillpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.
Also in 3 projects that use this
AnthropicSkilldocx
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
Also in 3 projects that use this
VercelSkillfind-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Also in 3 projects that use this
AWSSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 3 projects that use this
- +1 more from anthropics
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- devantler-tech/ksail★ 166same name
- ericmjl/skills★ 39same name
- tenequm/skills★ 37same name
- JamesPrial/github-skills★ 17same name
- nicholyx/ai-skills★ 6same name
- gspencergoog/skills★ 2same name
- thesammykins/skills★ 2same name
- X-FRI/skills★ 2same name
- zkmake/skills★ 2same name
- a-ng-d/claude-ui-color-palette★ 1same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- a11y-debuggingSkill
- agent-blueprint-architectSkill
- brainstormingSkill
- chart-visualizationSkill
- chinese-copywritingSkill
- chinese-git-workflowSkill
- chrome-devtoolsSkill
- creating-trae-rulesSkill
- debug-optimize-lcpSkill
- discovering-subagent-capabilitiesSkill
- dispatching-parallel-agentsSkill
- everything-searchSkill
- executing-plansSkill
- find-docsSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- git-commitSkill
- image-manipulation-python-magickSkill
- memory-kernelSkill
- memory-leak-debuggingSkill
- mineru-to-mdSkill
- model-config-lookupSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- self-improvementSkill
- skill-creatorSkill
- skill-language-policySkill
- skill-stability-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- troubleshootingSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- visual-brainstormingSkill
- workflow-runnerSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 7 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use gh CLI for GitHub operations.
- Distinctive: line 13
Create / list / view / close issues or pull requests
- Distinctive: line 15
Search across repos for issues, PRs, code, or users
- Distinctive: line 36
No specific repo: Use git remote from cwd. If no remote found, ask user.
- Very specific: line 38
Ambiguous intent: Run gh <command> --help to clarify options.
- Very specific: line 47
Use structured output: Always prefer --json + --jq over parsing human-readable text.
- Distinctive: line 50
Execute and validate: Run the command. If it fails, interpret the error and retry with adjusted parameters.
- Very specific: line 57
Run with --json and no field list to see available fields first.
- Very specific: line 76
When typed commands don't expose the data you need.
- Very specific: line 82
When not sure about flags or available fields, run gh <command> --help before searching elsewhere.
- Distinctive: line 105
API rate limited: Wait and retry, or inform user if limit is exceeded.
- Distinctive: line 112
When using this skill, include in your response:
- Distinctive: line 115
If failed, the exact error and suggested next step
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gh CLI
Use gh CLI for GitHub operations.
Use This Skill
- Push, commit, or any git remote operation needing GitHub interaction
- Create / list / view / close issues or pull requests
- Edit repository metadata (description, topics, homepage)
- Search across repos for issues, PRs, code, or users
- View repository details or authentication status
- "推送" / "提 PR" / "创建 issue" / "改仓库描述" / "查看仓库信息"
Do Not Use
- Operations that do not involve GitHub (local git, other forges)
- Raw
gitoperations that do not need GitHub API interaction - Managing Agent Skills (use
gh skillsubcommand, not this skill)
Input Contract
Required Inputs:
- A GitHub operation intent (create PR, list issues, edit repo, etc.)
Optional Inputs:
- Target repo (
owner/repo) — if omitted, inferred from cwd's git remotes - Issue or PR number
- Flags specific to the operation
Missing input handling:
- No specific repo: Use git remote from cwd. If no remote found, ask user.
- No PR/issue number for view: List recent items first, then ask which one.
- Ambiguous intent: Run
gh <command> --helpto clarify options.
Execution Protocol
- Verify authentication:
gh auth status. If unauthenticated, report and stop. - Choose the right command path:
- Typed commands (
gh pr,gh issue,gh repo) for standard operations. gh searchfor cross-repo queries.gh apifor anything typed commands do not expose.
- Typed commands (
- Use structured output: Always prefer
--json+--jqover parsing human-readable text. - Handle pagination: Pass
-L Nto control result count. FortotalCount, usegh api graphql. - Target repo: Override with
--repo OWNER/REPO(-R) when not operating on cwd's repo. - Execute and validate: Run the command. If it fails, interpret the error and retry with adjusted parameters.
Core Patterns
Structured output
--json field1,field2,...for structured JSON.- Run with
--jsonand no field list to see available fields first. --jq '<expr>'for filtering inline, no separatejqpipe.--template '<go-template>'for shaped text output.
Pagination
List commands cap results. Default is usually 30. Pass -L N (--limit N) to control count. gh issue list / gh pr list do not expose totalCount via --json. For a true total, use gh api graphql. For raw API pagination: gh api --paginate <path> + --jq + optionally --slurp.
Repo targeting
gh infers repo from cwd's git remotes. Override with --repo OWNER/REPO (-R).
Search vs list
gh search issues|prs|code|repos|commits|users— cross-repo, full search syntax. Prefer for cross-repo or author/label filtering.gh issue list --search "..."/gh pr list --search "..."— same syntax but scoped to one repo.
Fall back to gh api
When typed commands don't expose the data you need. {owner}/{repo} placeholders auto-filled from repo remotes.
Interactivity
In non-TTY contexts gh already skips the pager, strips ANSI, and errors with clear messages instead of prompting.
When not sure about flags or available fields, run gh <command> --help before searching elsewhere.
Common Operations
gh repo edit <owner/repo> — edit metadata. Flags: --description, --homepage, --add-topic, --remove-topic, --default-branch.
gh repo view <owner/repo> — view details.
gh pr create — create. Flags: --title, --body, --draft, --base.
gh pr list — list. Flags: --state open/closed/merged, --author, --assignee, --draft, -L.
gh pr view <number> — view details. --comments for issue-level comments.
gh pr diff <number> — read diff without switching branches.
gh pr checkout <number> — switch to PR branch locally.
gh issue create — create. Flags: --title, --body, --label, --assignee.
gh issue list — list. Flags: --state, --label, --author, --assignee, -L, --search.
gh issue view <number> — view details.
gh issue close <number> — close.
gh issue reopen <number> — reopen.
Failure Handling
- Not authenticated:
gh auth statusfails. Report to user and ask them to rungh auth login. - 404 / not found: Repo or resource does not exist. Verify
owner/repospelling and user's access. - API rate limited: Wait and retry, or inform user if limit is exceeded.
- Command not found:
ghnot installed. Ask user to install GitHub CLI. - Network error: Report the exact error. Do not guess the output.
- Ambiguous result from no field list: Re-run with explicit fields.
Output Contract
When using this skill, include in your response:
- What command was executed (or attempted)
- The structured result (key fields, not raw JSON dump)
- If failed, the exact error and suggested next step
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.

