About github-cli
A skill for using GitHub CLI (gh) to work with repositories, issues, pull requests, Actions, and other GitHub features. It serves developers who need command-line operations and scripting guidance across common GitHub workflows.
Key features
- 01Repository, issue, and PR operations
- 02Manage Actions runs and secrets
- 03Projects, releases, and gists
- 04Search and API commands
- 05JSON output and shell setup
Use cases
- 01Reviewing and merging pull requests from a terminal
- 02Checking or rerunning Actions workflows
- 03Scripting GitHub tasks with JSON and jq
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ hairyf/ skills --skill github-cliAfter installing, type/github-cliin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
GENERATION.mdreferences/best-practices-workflows.mdcore-auth-config.mdcore-cli-structure.mdcore-install.mdcore-issue-pr-advanced.mdcore-repo-extras.mdcore-repo-issues-prs.mdfeatures-actions-secrets.mdfeatures-preview-agent-task.mdfeatures-projects-releases-gists.mdfeatures-search-api-misc.mdDetails
From the project READMEGitHub CLI (gh)
Use this skill when working with GitHub from the command line: repos, issues, PRs, Actions, projects, releases, gists, codespaces, search, secrets, and API. Content is based on gh 2.85.0 (January 2026).
Core References
| Topic | Description | Reference |
|---|---|---|
| CLI Structure | Full command tree for discovery | core-cli-structure |
| Install & Verify | Install on macOS, Linux, Windows; verify | core-install |
| Auth & Config | Login, token, config, env vars, browse, global flags, JSON/template output | core-auth-config |
| Repos, Issues, PRs | Create/list/view/edit repo, issue, PR; merge, review, checkout | core-repo-issues-prs |
| Repo Extras | Autolinks, deploy keys, gitignore/license, rename, archive | core-repo-extras |
| Issue & PR Advanced | Status, pin, lock, transfer, delete, review types, merge options | core-issue-pr-advanced |
Features
Actions & Secrets
| Topic | Description | Reference |
|---|---|---|
| Runs, Workflows, Cache | List/watch/rerun/delete runs, run workflows, manage caches | features-actions-secrets |
| Secrets & Variables | Repository, environment, org secrets/variables | features-actions-secrets |
Projects, Releases & More
| Topic | Description | Reference |
|---|---|---|
| Projects | Fields, items, link/unlink, copy, mark-template | features-projects-releases-gists |
| Releases | Create, upload, download, verify, verify-asset | features-projects-releases-gists |
| Gists & Codespaces | Gist rename/multi-file; codespace cp, jupyter, logs, ports | features-projects-releases-gists |
| Orgs | List, view, JSON output | features-projects-releases-gists |
| Preview & Agent Tasks | gh preview, gh agent-task | features-preview-agent-task |
| Search, API, Misc | Search, labels, SSH/GPG keys, gh api, aliases, extensions, rulesets, attestation | features-search-api-misc |
Best Practices
| Topic | Description | Reference |
|---|---|---|
| Environment Setup | Shell completion, aliases, git credential helper | best-practices-workflows |
| Workflows & Practices | Automation tips, bulk ops, repo setup, CI/CD, fork sync, help | best-practices-workflows |
Quick Tips
- Use
GH_TOKENandGH_REPOfor non-interactive use. - Prefer
--json+--jqfor scripting. - Use
gh repo set-default owner/repoto avoid repeating--repo.
Comments
Markdown supported