mit einem Klick
view-pr-github
// View GitHub PR status/details (prefer GitHub chat tools; gh is fallback).
// View GitHub PR status/details (prefer GitHub chat tools; gh is fallback).
| 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.
Create and (optionally) merge a GitHub pull request (prefer GitHub chat tools; gh/wrappers are fallback), following the repo policy to use rebase and merge for a linear history.
Export and analyze VS Code Copilot chat logs for retrospective metrics. Extracts model usage, tool invocations, approval patterns, and timing data.
Generate the comprehensive demo markdown artifacts from the current codebase. Use before UAT to ensure test artifacts reflect the latest code.
Regenerate test snapshot files after intentional markdown output changes. Use after modifying templates or rendering logic.
Run User Acceptance Testing by creating a PR with rendered markdown on GitHub or Azure DevOps. Use when validating markdown rendering in real platforms.
Simulate the UAT workflow (create PR, comment, poll) on GitHub or Azure DevOps using a minimal test artifact and simulated fixes.