view-pr-github
Skill174 starsChanged 2 months agoMITView on GitHub
View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback).
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-runtimeSkill
- arc42-documentationSkill
- authoring-rolesSkill
- context-packSkill
- create-agent-skillSkill
- create-pr-azdoSkill
- create-pr-githubSkill
- detect-diagram-crossingsSkill
- flowchart_layout_optimizerSkill
- generate-demo-artifactsSkill
- generate-release-screenshotsSkill
- git-rebase-mainSkill
- merge-conflict-resolutionSkill
- next-issue-numberSkill
- pre-pr-checklistSkill
- retrospective-evidenceSkill
- run-dotnet-testsSkill
- run-uatSkill
- run-workflowSkill
- update-test-snapshotsSkill
- update-workflow-diagramSkill
- view-pr-githubSkill
- watch-uat-azdo-prSkill
- watch-uat-github-prSkill
- website-accessibility-checkSkill
- website-create-examplesSkill
- website-devtoolsSkill
- website-quality-checkSkill
- website-visual-assetsSkill
- agent-runtimeSkill
- arc42-documentationSkill
- authoring-rolesSkill
- context-packSkill
- create-agent-skillSkill
- create-pr-azdoSkill
- create-pr-githubSkill
- detect-diagram-crossingsSkill
- flowchart_layout_optimizerSkill
- generate-demo-artifactsSkill
- generate-release-screenshotsSkill
- git-rebase-mainSkill
- merge-conflict-resolutionSkill
- next-issue-numberSkill
- pre-pr-checklistSkill
- retrospective-evidenceSkill
- run-dotnet-testsSkill
- run-uatSkill
- run-workflowSkill
- update-test-snapshotsSkill
- update-workflow-diagramSkill
- watch-uat-azdo-prSkill
- watch-uat-github-prSkill
- website-accessibility-checkSkill
- website-create-examplesSkill
- website-devtoolsSkill
- website-quality-checkSkill
- website-visual-assetsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Read pull request status/details from GitHub.
- Distinctive: line 15
FIRST: Use GitHub MCP tools - stable, structured, no pager/editor issues
- Very specific: line 16
SECOND: Use scripts/pr-github.sh wrapper (for create/merge only)
- Very specific: line 17
LAST: Use gh CLI as final fallback
- Very specific: line 19
Use this skill for read-only PR inspection (status, checks, reviewers, files, body).
- Distinctive: line 23
Use these GitHub MCP tools for PR operations:
- Distinctive: line 132
Prefer GitHub MCP tools when they can answer the question
- Very specific: line 133
If using gh, use a non-interactive pager for every gh call:
- Very specific: line 134
Use GH_PAGER=cat (gh-specific, overrides gh's internal pager logic)
- Very specific: line 136
Prefer structured output (--json) and keep output small with --jq when practical
- Very specific: line 137
Never run plain gh ... without GH_PAGER=cat (it may open less and block)
- Very specific: line 138
Never change global GitHub CLI config (no gh config set ...)
- Distinctive: line 142
Use this prefix for every command:
- Very specific: line 190
Rule of thumb: Always start with GitHub MCP tools.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
View PR (GitHub)
Purpose
Read pull request status/details from GitHub.
Priority order:
- FIRST: Use GitHub MCP tools - stable, structured, no pager/editor issues
- SECOND: Use
scripts/pr-github.shwrapper (for create/merge only) - LAST: Use
ghCLI as final fallback
Use this skill for read-only PR inspection (status, checks, reviewers, files, body). For creating/merging PRs, use the create-pr-github skill.
GitHub MCP Tools (Preferred)
Use these GitHub MCP tools for PR operations:
PR Details and Metadata
github-mcp-server-pull_request_read
method: "get"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123Returns: PR number, title, state, body, author, timestamps, merge status, etc.
PR Diff
github-mcp-server-pull_request_read
method: "get_diff"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123Returns: Full diff of the PR changes
PR Status Checks
github-mcp-server-pull_request_read
method: "get_status"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123Returns: Status of CI/CD checks, required checks, conclusion
PR Changed Files
github-mcp-server-pull_request_read
method: "get_files"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100Returns: List of files changed with stats (additions, deletions, changes)
PR Review Comments (inline on code)
github-mcp-server-pull_request_read
method: "get_review_comments"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100Returns: Code review comments with file paths, line numbers, and comment bodies
PR Reviews
github-mcp-server-pull_request_read
method: "get_reviews"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100Returns: Review submissions with state (APPROVED, CHANGES_REQUESTED, etc.)
PR Conversation Comments
github-mcp-server-pull_request_read
method: "get_comments"
owner: "oocx"
repo: "tfplan2md"
pullNumber: 123
perPage: 100Returns: General conversation comments on the PR
List PRs
github-mcp-server-list_pull_requests
owner: "oocx"
repo: "tfplan2md"
state: "open" # or "closed", "all"
perPage: 30
page: 1Returns: List of PRs with basic metadata
GitHub CLI Fallback (Last Resort)
⚠️ Only use when GitHub MCP tools are unavailable
Hard Rules
- Prefer GitHub MCP tools when they can answer the question
- If using
gh, use a non-interactive pager for everyghcall:- Use
GH_PAGER=cat(gh-specific, overrides gh's internal pager logic) - Also set
GH_FORCE_TTY=falseto reduce TTY-driven behavior - Prefer structured output (
--json) and keep output small with--jqwhen practical
- Use
- Never run plain
gh ...withoutGH_PAGER=cat(it may openlessand block) - Never change global GitHub CLI config (no
gh config set ...)
Fallback gh Patterns
Use this prefix for every command:
GH_PAGER=cat GH_FORCE_TTY=false gh ...View PR Summary
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> \
--json number,title,state,isDraft,url,mergeStateStatus,reviewDecisionView Status Checks
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> \
--json statusCheckRollup \
--jq '.statusCheckRollup[] | {name, status, conclusion}'View Reviews
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]}'When To Use Different Approaches
Prefer GitHub MCP Tools when
- You need structured PR metadata (details, changed files, status checks, comments, reviews)
- You want to avoid terminal-side pitfalls (auth prompts, pager behavior, large output)
- You want operations that can be permanently allowed in VS Code
- You are in any interactive agent session
Prefer Wrapper Scripts when
- You're creating or merging a PR: use
scripts/pr-github.sh create/scripts/pr-github.sh create-and-merge
Prefer gh CLI when (rare)
- You need an API surface the MCP tools don't expose (use
gh apifor custom calls) - You need commands for Maintainers to reproduce locally
- A maintainer explicitly requests CLI examples
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

