Agent Skills
› NeverSight/learn-skills.dev
› github-cli
github-cli
GitHub指导使用GitHub CLI (gh)进行认证、仓库管理、Issue、PR、Release及Actions等操作。适用于提及gh命令、需脚本化GitHub任务或将UI步骤转为终端指令的场景。
Trigger Scenarios
用户提到 gh 相关命令
需要 GitHub CLI 命令示例
需要脚本化 GitHub 操作
需要将 GitHub UI 步骤转换为终端命令
Install
npx skills add NeverSight/learn-skills.dev --skill github-cli -g -y
SKILL.md
Frontmatter
{
"name": "github-cli",
"source": "https:\/\/cli.github.com\/manual\/gh",
"license": "MIT",
"version": "1.0.0",
"description": "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."
}
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 auth:references/auth.mdgh browse:references/browse.mdgh codespace:references/codespace.mdgh gist:references/gist.mdgh issue:references/issue.mdgh org:references/org.mdgh pr:references/pr.mdgh project:references/project.mdgh release:references/release.mdgh repo:references/repo.md
Actions
gh cache:references/cache.mdgh run:references/run.mdgh workflow:references/workflow.md
Additional
gh agent-task:references/agent-task.mdgh alias:references/alias.mdgh api:references/api.mdgh attestation:references/attestation.mdgh completion:references/completion.mdgh config:references/config.mdgh copilot:references/copilot.mdgh extension:references/extension.mdgh gpg-key:references/gpg-key.mdgh label:references/label.mdgh licenses:references/licenses.mdgh preview:references/preview.mdgh ruleset:references/ruleset.mdgh search:references/search.mdgh secret:references/secret.mdgh ssh-key:references/ssh-key.mdgh status:references/status.mdgh variable:references/variable.md
Notes
- Prefer
--json,--jq, or--templatefor scripts gh apiis the fallback for anything not covered by a dedicated command- For GitHub Enterprise, use
--hostnameor setGH_HOST
Version History
- e0220ca Current 2026-07-05 22:10


