github-cli
Skill20 starsChanged 7 months agoMITView on GitHub
Apply when using the gh CLI to manage pull requests, issues, releases, or CI workflows on GitHub.
- Reads credentials
- Commits and pushes
17 other projects use a version of this.
Adopted by
Most recently taken up by
- himkt/configtheir own version, first seen Oct 2, 2026
- jonhill90/skillstheir own version, first seen Sep 30, 2026
- kuailexiaozixin/githubtheir own version, first seen Sep 29, 2026
- danilolucasmd/skillstheir own version, first seen Sep 13, 2026
- shalomb/agent-skillstheir own version, first seen Aug 23, 2026
- kuju63/skillstheir own version, first seen Aug 1, 2026
Used with
Projects with it also use playwright-cli.
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.
MicrosoftSkillplaywright-cli
Automate browser interactions, test web pages and work with Playwright tests.
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- himkt/config★ 40same name
- georgekhananaev/claude-skills-vault★ 28same name
- doug-skinner/github-cli-claude-skill★ 10same name
- jonhill90/skills★ 9same name
- abdullahkhawer/devops-skills★ 8same name
- shalomb/agent-skills★ 3same name
- aaronflorey/agent-skills★ 2same name
- chief-builder/cli-vs-mcp★ 2same name
- Kubementat/ai_agent_skills★ 2same name
- magnusrodseth/dotfiles★ 2same name
7 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 repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/brainstorming.mdcCursor rule
- .cursor/rules/branch-finishing.mdcCursor rule
- .cursor/rules/code-quality.mdcCursor rule
- .cursor/rules/db-schema.mdcCursor rule
- .cursor/rules/debugging.mdcCursor rule
- .cursor/rules/docker.mdcCursor rule
- .cursor/rules/domain-template.mdcCursor rule
- .cursor/rules/drawio.mdcCursor rule
- .cursor/rules/error-log.mdcCursor rule
- .cursor/rules/fastapi.mdcCursor rule
- .cursor/rules/git-conventions.mdcCursor rule
- .cursor/rules/github-cli.mdcCursor rule
- .cursor/rules/implementation-plan.mdcCursor rule
- .cursor/rules/langchain.mdcCursor rule
- .cursor/rules/python.mdcCursor rule
- .cursor/rules/react.mdcCursor rule
- .cursor/rules/review-deployment.mdcCursor rule
- .cursor/rules/security-review.mdcCursor rule
- .cursor/rules/self-extension-workflow.mdcCursor rule
- .cursor/rules/shell-scripting.mdcCursor rule
- .cursor/rules/svg-check.mdcCursor rule
- .cursor/rules/tdd.mdcCursor rule
- .cursor/rules/typescript.mdcCursor rule
- skill-everythingSkill
- brainstormingSkill
- branch-finishingSkill
- code-qualitySkill
- db-schemaSkill
- debuggingSkill
- dockerSkill
- domain-templateSkill
- drawioSkill
- error-logSkill
- fastapiSkill
- git-conventionsSkill
- implementation-planSkill
- langchainSkill
- pythonSkill
- reactSkill
- review-deploymentSkill
- security-reviewSkill
- self-extension-workflowSkill
- shell-scriptingSkill
- svg-checkSkill
- tddSkill
- <kebab-case-name>Skill
- typescriptSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 0 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Check auth scope before scripting: Before running gh in CI or scripts, always verify the required scopes are granted with gh auth status.
- Very specific: line 26
Use token env var in CI: Always pass GH_TOKEN (or GITHUB_TOKEN) via environment variable in CI pipelines.
- Very specific: line 30
Include all required labels on PR creation: Always pass --label for every gate-required label when running gh pr create.
- Very specific: line 31
Set reviewer on creation: Always use --reviewer <handle> when creating PRs that require CODEOWNERS approval.
- Very specific: line 32
Open as draft when work is incomplete: Use gh pr create --draft for PRs not yet ready for review.
- Very specific: line 33
Link issues explicitly: Always include --body "Closes #<issue>" or --body "Fixes #<issue>" so GitHub auto-closes the linked issue on merge.
- Very specific: line 37
Assign and label on creation: Use gh issue create --assignee @me --label <label> rather than creating bare issues and editing them in a …
- Very specific: line 38
Use JSON output for scripting: Prefer gh issue list --json number,title,labels over parsing human-readable output.
- Very specific: line 42
Trigger runs explicitly when needed: Use gh workflow run <workflow.yml> --ref <branch> to trigger a workflow rather than pushing an empty …
- Very specific: line 43
Watch run status in scripts: After triggering a workflow, use gh run watch <run-id> or poll gh run view <run-id> --json conclusion rather …
- Very specific: line 47
Create releases from tags, not branches: Always run gh release create <tag> --generate-notes after pushing the tag.
- Very specific: line 48
Use
gh apifor endpoints not covered by subcommands: Prefer gh api repos/{owner}/{repo}/pulls --jq '.[].number' over raw curl with manual … - Very specific: line 49
Define aliases for repeated commands: Use gh alias set to capture long flag combinations used more than twice in a project.
“Common” is measured: kept by at least 6 in 10 of the 14 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
Sub-Skill: GitHub CLI (gh) Conventions
Purpose: Consistent, auditable use of the gh CLI for PRs, issues, releases, and CI — preventing gate bypasses and silent failures.
Rules
Authentication & Scopes
- Check auth scope before scripting. Before running
ghin CI or scripts, always verify the required scopes are granted withgh auth status; missing scopes produce silent 404s rather than auth errors. - Use token env var in CI. Always pass
GH_TOKEN(orGITHUB_TOKEN) via environment variable in CI pipelines; never hard-code tokens or usegh auth login --with-tokeninteractively in automated contexts.
Pull Requests
- Include all required labels on PR creation. Always pass
--labelfor every gate-required label when runninggh pr create; omitting a label silently bypasses automated approval gates. Reference: ERR-2026-023 - Set reviewer on creation. Always use
--reviewer <handle>when creating PRs that require CODEOWNERS approval; adding reviewers after creation delays the review clock. - Open as draft when work is incomplete. Use
gh pr create --draftfor PRs not yet ready for review; never open a ready-for-review PR on a branch with failing CI. - Link issues explicitly. Always include
--body "Closes #<issue>"or--body "Fixes #<issue>"so GitHub auto-closes the linked issue on merge; never rely on branch name alone for issue linkage.
Issues
- Assign and label on creation. Use
gh issue create --assignee @me --label <label>rather than creating bare issues and editing them in a second step; unassigned, unlabelled issues fall out of triage queues. - Use JSON output for scripting. Prefer
gh issue list --json number,title,labelsover parsing human-readable output; the--jsonflag is stable acrossghversions, plain text is not.
CI / Workflows
- Trigger runs explicitly when needed. Use
gh workflow run <workflow.yml> --ref <branch>to trigger a workflow rather than pushing an empty commit; empty commits pollute history. - Watch run status in scripts. After triggering a workflow, use
gh run watch <run-id>or pollgh run view <run-id> --json conclusionrather than sleeping for a fixed duration.
Releases & API
- Create releases from tags, not branches. Always run
gh release create <tag> --generate-notesafter pushing the tag; never target a branch directly, as branch-based releases produce non-reproducible artifacts. - Use
gh apifor endpoints not covered by subcommands. Prefergh api repos/{owner}/{repo}/pulls --jq '.[].number'over rawcurlwith manual auth headers;gh apiinherits the active auth context automatically. - Define aliases for repeated commands. Use
gh alias setto capture long flag combinations used more than twice in a project; aliases are stored in~/.config/gh/config.ymland are portable across machines via dotfiles.
See also
skills/git-conventions/SKILL.mdskills/error-log/SKILL.md
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.

