Learn-skills.dev github-cli
Use GitHub CLI, `gh`, for authentication, repository work, issues, pull requests, releases, Actions, projects, and `gh api` calls. Use this skill whenever the user mentions `gh`, `gh pr`, `gh issue`, `gh repo`, `gh run`, `gh workflow`, `gh auth`, wants a GitHub CLI command example, needs to script GitHub operations, or wants to translate GitHub UI steps into terminal commands.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/aaronflorey/agent-skills/github-cli" ~/.claude/skills/neversight-learn-skills-dev-github-cli && rm -rf "$T"
manifest:
data/skills-md/aaronflorey/agent-skills/github-cli/SKILL.mdsource content
GitHub CLI
GitHub CLI is the fastest way to work with GitHub from a terminal.
Start Here
- Authenticate first:
gh auth login - Check active context:
gh auth status - Target another repo when needed:
-R OWNER/REPO - Get command help anytime:
gh <command> --help
Common Workflow
gh auth login gh repo clone OWNER/REPO gh issue list gh pr create --fill gh run watch
References
Core
:gh authreferences/auth.md
:gh browsereferences/browse.md
:gh codespacereferences/codespace.md
:gh gistreferences/gist.md
:gh issuereferences/issue.md
:gh orgreferences/org.md
:gh prreferences/pr.md
:gh projectreferences/project.md
:gh releasereferences/release.md
:gh reporeferences/repo.md
Actions
:gh cachereferences/cache.md
:gh runreferences/run.md
:gh workflowreferences/workflow.md
Additional
:gh agent-taskreferences/agent-task.md
:gh aliasreferences/alias.md
:gh apireferences/api.md
:gh attestationreferences/attestation.md
:gh completionreferences/completion.md
:gh configreferences/config.md
:gh copilotreferences/copilot.md
:gh extensionreferences/extension.md
:gh gpg-keyreferences/gpg-key.md
:gh labelreferences/label.md
:gh licensesreferences/licenses.md
:gh previewreferences/preview.md
:gh rulesetreferences/ruleset.md
:gh searchreferences/search.md
:gh secretreferences/secret.md
:gh ssh-keyreferences/ssh-key.md
:gh statusreferences/status.md
:gh variablereferences/variable.md
Notes
- Prefer
,--json
, or--jq
for scripts--template
is the fallback for anything not covered by a dedicated commandgh api- For GitHub Enterprise, use
or set--hostnameGH_HOST