一键导入
gh-cli
Use when working with GitHub PRs, issues, workflows, or CI/CD - automates GitHub operations from terminal
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when working with GitHub PRs, issues, workflows, or CI/CD - automates GitHub operations from terminal
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when writing documentation, READMEs, explanations, blog posts, or any prose meant for humans to read
This skill should be used when the user asks to "rebase all open PRs", "update all PRs with latest main", "make sure every open PR is up to date with main", "sync all open PRs onto main", "rebase all my PRs", or wants to bring every open pull request current with its base branch by rebasing in parallel git worktrees, resolving conflicts with a team of agents, and force-pushing.
Groom and prioritize a project backlog — verify each candidate issue's claims against the current codebase, pick the most important N, rewrite them to a ready-to-work standard (Problem/Goals/Decisions/Outcomes/Verification), move them to Ready on the board, and close obsolete issues. Use when asked to "groom the backlog", "triage the backlog", "prioritize issues", "move issues to ready", or "what should we work on next".
This skill should be used when the user asks to "summarize a note", "summarize this article", "replace #summarize-later", "add a summary to a note", "generate takeaways", or mentions summarizing Obsidian notes. Replaces the #summarize-later tag with a high-level summary and actionable takeaways.
This skill should be used when the user asks to "update the changelog", "add changelog entries", "what changed since last release", or when updating CHANGELOG.md with user-facing changes. Follows Keep a Changelog format and filters out internal-only commits.
This skill should be used when the user asks to "improve a prompt", "make this prompt better", "optimize this prompt", "refine this system prompt", or wants to apply concept elevation to compress and clarify LLM instructions.
| name | gh-cli |
| description | Use when working with GitHub PRs, issues, workflows, or CI/CD - automates GitHub operations from terminal |
GitHub operations should be fast, scriptable, and verifiable. Stay in terminal flow—use web UI only for complex reviews.
MANDATORY: Always verify gh operations succeeded. Never assume commands worked.
Use gh CLI for: Creating PRs, monitoring CI, managing issues, checking out PRs for review, routine operations.
Use web UI for: Complex PR reviews, large diffs, repository settings, visual context.
git status
git diff main...HEAD
git log main..HEAD --oneline
git push -u origin HEAD
gh pr create --title "feat: add auth middleware" --body "$(cat <<'EOF'
## Summary
- Implements JWT authentication middleware
- Adds login/logout endpoints
## Test plan
- [x] Unit tests pass
- [x] Integration tests cover auth flow
Fixes #142
EOF
)"
gh pr view # Confirm PR created
gh pr checks # Verify CI started
gh run list --limit 5 # Recent runs
gh run view # Latest run details
gh run view --log-failed # Failed job logs
gh run watch # Real-time monitoring
gh issue list --assignee @me
gh issue view 123
gh issue create --title "bug: login fails" --body "..."
gh issue comment 123 --body "Fixed in PR #456"
gh pr list
gh pr view 456
gh pr checkout 456
git log main..HEAD
git diff main...HEAD
# Test locally
gh pr review --approve
# or
gh pr review --request-changes --body "Needs unit tests"
gh pr status # Your PR dashboard
gh pr view 123 # Full details
gh pr checks # CI status
gh pr view 123 --json mergeable,mergeStateStatus
Never do without explicit user request:
gh pr merge - Always confirm firstgh pr close / gh issue closegh pr merge --admin - Bypasses checksAlways verify before operations:
gh auth status - Check authenticationgh repo view - Confirm correct repogh pr checks - CI must pass before merge# Pull Requests
gh pr create --fill # From commit messages
gh pr create --title "..." --body "..."
gh pr list
gh pr view 123
gh pr view --web
gh pr checkout 123
gh pr checks
gh pr review --approve
gh pr review --request-changes --body "..."
gh pr merge --squash
gh pr status
# Workflow Runs
gh run list --limit 10
gh run watch
gh run view
gh run view --log-failed
# Issues
gh issue list
gh issue list --assignee @me
gh issue view 456
gh issue create --title "..." --body "..."
gh issue comment 123 --body "..."
# Repository
gh repo view
gh repo view --web
# Auth
gh auth status
gh auth login
## Summary
- [Main change and why]
- [Secondary change]
## Test plan
- [ ] Unit tests pass
- [ ] Integration tests cover new behavior
Fixes #[issue]
gh pr checks must show green