用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bobcob7/dot-tools --skill gh命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | gh |
| description | GitHub CLI commands for PRs, issues, repos, and workflows |
| argument-hint | [command or question] |
| allowed-tools | Bash, Read |
Help with GitHub CLI (gh) based on $ARGUMENTS.
gh auth login # Interactive login
gh auth status # Check auth status
gh auth token # Print token
# Create
gh pr create # Interactive
gh pr create --title "Title" --body "Description"
gh pr create --draft # Create as draft
gh pr create --base main # Specify base branch
# View
gh pr list # List open PRs
gh pr view # View current branch's PR
gh pr view 123 # View PR #123
gh pr view --web # Open in browser
# Review
gh pr checkout 123 # Check out PR branch
gh pr diff # View diff
gh pr review --approve # Approve PR
gh pr review --comment -b "LGTM"
gh pr review --request-changes -b "Please fix..."
# Merge
gh pr merge # Merge current PR
gh pr merge --squash # Squash merge
gh pr merge --rebase # Rebase merge
gh pr merge --auto # Auto-merge when ready
gh issue create # Interactive
gh issue create --title "Bug" --body "Details"
gh issue list # List open issues
gh issue view 123 # View issue
gh issue close 123 # Close issue
gh issue comment 123 --body "Comment"
gh repo create # Create new repo
gh repo clone owner/repo # Clone repo
gh repo fork # Fork current repo
gh repo view # View repo info
gh repo view --web # Open in browser
gh workflow list # List workflows
gh workflow run <name> # Trigger workflow
gh run list # List runs
gh run view # View latest run
gh run watch # Watch run in progress
gh run rerun 12345 # Rerun failed run
gh api repos/{owner}/{repo} # GET request
gh api repos/{owner}/{repo}/issues --method POST -f title="New issue"
gh api graphql -f query='{ viewer { login } }'
gh alias set pv 'pr view' # Create alias
gh alias list # List aliases