一键导入
github-cli
Apply when using the gh CLI to manage pull requests, issues, releases, or CI workflows on GitHub.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply when using the gh CLI to manage pull requests, issues, releases, or CI workflows on GitHub.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Git-versioned agent memory — agents that never make the same mistake twice.
Apply when generating ideas, exploring solution space, or facilitating divergent thinking before committing to an approach.
Apply when closing out a feature branch — pre-merge checklist, rebase, CI verification, cleanup, and post-merge steps.
Apply when writing or refactoring code. Generic rules to prevent the most common review comments — function length, naming, error handling, security, and tooling.
Apply when designing database schemas, writing migrations, or reviewing table structure. Covers naming, keys, indexes, constraints, nullability, and migration safety.
Apply when diagnosing a bug, reproducing a failure, or performing root cause analysis. Covers systematic isolation, binary search, logging strategy, and hypothesis-driven investigation.
基于 SOC 职业分类
| name | github-cli |
| description | Apply when using the gh CLI to manage pull requests, issues, releases, or CI workflows on GitHub. |
| license | MIT |
| version | 1.0.0 |
| tokens_target | 1200 |
| triggers | ["gh cli","github pr create","github issues"] |
| loads_after | ["git-conventions"] |
| supersedes | [] |
gh) ConventionsPurpose: Consistent, auditable use of the gh CLI for PRs, issues, releases, and CI — preventing gate bypasses and silent failures.
gh in CI or scripts, always verify the required scopes are granted with gh auth status; missing scopes produce silent 404s rather than auth errors.GH_TOKEN (or GITHUB_TOKEN) via environment variable in CI pipelines; never hard-code tokens or use gh auth login --with-token interactively in automated contexts.--label for every gate-required label when running gh pr create; omitting a label silently bypasses automated approval gates. Reference: ERR-2026-023--reviewer <handle> when creating PRs that require CODEOWNERS approval; adding reviewers after creation delays the review clock.gh pr create --draft for PRs not yet ready for review; never open a ready-for-review PR on a branch with failing CI.--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.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.gh issue list --json number,title,labels over parsing human-readable output; the --json flag is stable across gh versions, plain text is not.gh workflow run <workflow.yml> --ref <branch> to trigger a workflow rather than pushing an empty commit; empty commits pollute history.gh run watch <run-id> or poll gh run view <run-id> --json conclusion rather than sleeping for a fixed duration.gh release create <tag> --generate-notes after pushing the tag; never target a branch directly, as branch-based releases produce non-reproducible artifacts.gh api for endpoints not covered by subcommands. Prefer gh api repos/{owner}/{repo}/pulls --jq '.[].number' over raw curl with manual auth headers; gh api inherits the active auth context automatically.gh alias set to capture long flag combinations used more than twice in a project; aliases are stored in ~/.config/gh/config.yml and are portable across machines via dotfiles.skills/git-conventions/SKILL.mdskills/error-log/SKILL.md