用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oocx/tfplan2md --skill view-pr-github命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
Minimum-requirements checklist for any change — code or docs-only. Run this before every PR creation or push to avoid CI failures on the first attempt.
Generate PNG screenshots for release notes using the repository's HtmlRenderer and ScreenshotGenerator tools. Use when asked to add screenshots to release notes or documentation.
Determine the next available issue number across all change types (feature, fix, workflow) by checking both local docs and remote branches, then reserve it by pushing an empty branch.
正在显示 SKILL.md
| name | view-pr-github |
| description | View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback). |
Read pull request status/details from GitHub.
Priority order:
scripts/pr-github.sh wrapper (for create/merge only)gh CLI as final fallbackUse this skill for read-only PR inspection (status, checks, reviewers, files, body). For creating/merging PRs, use the create-pr-github skill.
Use these GitHub MCP tools for PR operations:
github-mcp-server-pull_request_read
method: "get"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
Returns: PR number, title, state, body, author, timestamps, merge status, etc.
github-mcp-server-pull_request_read
method: "get_diff"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
Returns: Full diff of the PR changes
github-mcp-server-pull_request_read
method: "get_status"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
Returns: Status of CI/CD checks, required checks, conclusion
github-mcp-server-pull_request_read
method: "get_files"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100
Returns: List of files changed with stats (additions, deletions, changes)
github-mcp-server-pull_request_read
method: "get_review_comments"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100
Returns: Code review comments with file paths, line numbers, and comment bodies
github-mcp-server-pull_request_read
method: "get_reviews"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100
Returns: Review submissions with state (APPROVED, CHANGES_REQUESTED, etc.)
github-mcp-server-pull_request_read
method: "get_comments"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100
Returns: General conversation comments on the PR
github-mcp-server-list_pull_requests
owner: "oocx"
repo: "tfplan2md"
state: "open" # or "closed", "all"
perPage: 30
page: 1
Returns: List of PRs with basic metadata
⚠️ Only use when GitHub MCP tools are unavailable
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 practicalgh ... without GH_PAGER=cat (it may open less and block)gh config set ...)gh PatternsUse 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]}'
scripts/pr-github.sh create / scripts/pr-github.sh create-and-mergegh CLI when (rare)gh api for custom calls)Rule of thumb: Always start with GitHub MCP tools; only fall back to wrapper scripts for create/merge, and only use gh CLI as final resort.