在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用$pwd:
github
// Read-only GitHub CLI commands for querying PRs, reviews, issues, and repo information
$ git log --oneline --stat
stars:2,873
forks:821
updated:2026年4月28日 18:04
SKILL.md
// Read-only GitHub CLI commands for querying PRs, reviews, issues, and repo information
| name | github |
| description | Read-only GitHub CLI commands for querying PRs, reviews, issues, and repo information |
Use the gh CLI to query information from GitHub. All commands
are read-only — never use gh to create, update, delete, or
push anything.
Assume gh is already configured. If a command fails with an
authentication error, the user needs to set up a fine-grained
read-only personal access token:
export GH_TOKEN=<token>NEVER run gh auth commands yourself.
# View PR details
gh pr view <number>
# View PR comments
gh pr view <number> --comments
# List PR files
gh pr diff <number> --stat
# View PR diff
gh pr diff <number>
# List open PRs
gh pr list
# Fetch review comments on a PR
gh api repos/{owner}/{repo}/pulls/{number}/comments
# Fetch review summaries
gh api repos/{owner}/{repo}/pulls/{number}/reviews
# Filter with jq
gh api repos/{owner}/{repo}/pulls/{number}/comments \
--jq '.[] | {id: .id, path: .path, body: .body, user: .user.login}'
# View an issue
gh issue view <number>
# List open issues
gh issue list
# Search issues
gh issue list --search "keyword"
# View repo info
gh repo view
# List branches
gh api repos/{owner}/{repo}/branches --jq '.[].name'
# List recent commits on a branch
gh api repos/{owner}/{repo}/commits?sha=<branch> \
--jq '.[:10] | .[].commit.message'
For any GitHub REST API endpoint, use gh api:
gh api <endpoint> [--jq '<filter>'] [--paginate]
Use --paginate for endpoints that return paginated results.
Use --jq to filter JSON output.
view, list, diff, GET API calls)create, edit, close, merge, delete)gh auth commands--jq to keep output concise