用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oocx/tfplan2md-uat --skill view-pr-github命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | view-pr-github |
| description | View GitHub PR status/details (prefer GitHub chat tools; gh is fallback). |
Read pull request status/details from GitHub.
Preferred: use GitHub chat tools (stable, structured, avoids pager/editor pitfalls).
Fallback: use non-interactive gh patterns.
Use this skill for read-only PR inspection (status, checks, reviewers, files, body). For creating/merging PRs, prefer the repo wrapper scripts (see the create-pr-github skill).
If GitHub chat tools are available in the current session, prefer them for read-only inspection to reduce terminal approvals and avoid pager issues. Typical tool coverage:
mcp_github_get_pull_requestmcp_github_get_pull_request_filesmcp_github_get_pull_request_commentsmcp_github_get_pull_request_reviewsmcp_github_get_pull_request_statusUse the gh CLI patterns below only when there is no matching chat tool (or you need gh api flexibility).
gh, use a non-interactive pager for every gh call:
GH_PAGER=cat (gh-specific, overrides gh’s internal pager logic)GH_FORCE_TTY=false to reduce TTY-driven behavior--json) and keep output small with --jq when practical.gh ... without GH_PAGER=cat (it may open less and block).gh config set ...).Use chat tools for:
If a tool exists that directly answers the question, use it. If not, use the gh fallback patterns below.
Use this prefix for every command:
GH_PAGER=cat GH_FORCE_TTY=false gh ...
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> \
--json number,title,state,isDraft,url,mergeStateStatus,reviewDecision
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> \
--json statusCheckRollup \
--jq '.statusCheckRollup[] | {name, status, conclusion}'
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> \
--json latestReviews,reviewRequests \
--jq '{latestReviews: [.latestReviews[] | {author: .author.login, state, submittedAt}], reviewRequests: [.reviewRequests[].login]}'
These are the “issue comments” on the PR conversation.
GH_PAGER=cat GH_FORCE_TTY=false gh api \
--paginate \
"/repos/{owner}/{repo}/issues/<pr-number>/comments" \
--jq '.[] | {author: .user.login, createdAt: .created_at, url: .html_url, body: .body}'
These are the code-review comments attached to specific lines/paths in the diff.
GH_PAGER=cat GH_FORCE_TTY=false gh api \
--paginate \
"/repos/{owner}/{repo}/pulls/<pr-number>/comments" \
--jq '.[] | {author: .user.login, createdAt: .created_at, url: .html_url, path: .path, line: .line, side: .side, body: .body}'
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> --json files \
--jq '.files[].path'
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> --json body --jq '.body'
scripts/pr-github.sh create / scripts/pr-github.sh create-and-merge.gh patterns.gh CLI vs GitHub Chat Toolsgh CLI whengh api flexibility).gh.Rule of thumb: if a GitHub chat tool can fetch the data you need, use it; otherwise use GH_PAGER=cat GH_FORCE_TTY=false gh ... (or gh api) from this skill.