Agent skill

View PR GitHub

by oocx in oocx/tfplan2md

View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback).

MITAuto-check passedDevelopment

Install View PR GitHub

skills CLI
$ npx skills add oocx/tfplan2md --skill view-pr-github -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install oocx/tfplan2md view-pr-github --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/oocx/tfplan2md.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/view-pr-github .claude/skills/view-pr-github && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
view-pr-github
GitHub stars
174
Token cost
~1.2k tokens
SKILL.md length
394 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback).

  • Works in 3 steps: FIRST: Use GitHub MCP tools - stable,… → SECOND: Use scripts/pr-github.sh wrapper… → LAST: Use gh CLI as final fallback
  • Tasks that involve MCP servers
  • SKILL.md covers Purpose, GitHub MCP Tools (Preferred), GitHub CLI Fallback (Last… and When To Use Different Approaches
  • Calls gh

What it does

View PR GitHub is an agent skill from oocx/tfplan2md. View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback).

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Preferred: GitHub MCP tools (github-mcp-server-). Fallback: GitHub CLI (gh) authenticated, plus network access.

It sits in Development, covering MCP servers and Pull requests. It works with GitHub. The repository describes itself as: Convert terraform plans (json) into human readable markdown for easier review of changes in pull requests. The licence is MIT.

When your agent uses it

  • Tasks that involve MCP servers
  • Tasks that involve Pull requests

Example prompts

  • “/view-pr-github”

Requirements

  • Compatibility (from SKILL.md): Preferred: GitHub MCP tools (github-mcp-server-*). Fallback: GitHub CLI (gh) authenticated, plus network access.

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. FIRST: Use GitHub MCP tools - stable, structured, no pager/editor issues
  2. SECOND: Use scripts/pr-github.sh wrapper (for create/merge only)
  3. LAST: Use gh CLI as final fallback

What it can do on your machine

Read from SKILL.md and the folder at commit 3fa4b5a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Preferred: GitHub MCP tools (github-mcp-server-*). Fallback: GitHub CLI (gh) authenticated, plus network access.

    From compatibility in the SKILL.md frontmatter.

Context cost

View PR GitHub loads about 1.2k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 394 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from oocx/tfplan2md at commit 3fa4b5a, republished under its MIT licence (© oocx). 394 words, ~1,192 tokens.

Download SKILL.mdSave it as .claude/skills/view-pr-github/SKILL.md (or your agent's skills folder).
name
view-pr-github
description
View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback).
compatibility
Preferred: GitHub MCP tools (github-mcp-server-*). Fallback: GitHub CLI (gh) authenticated, plus network access.

View PR (GitHub)

Purpose

Read pull request status/details from GitHub.

Priority order:

  1. FIRST: Use GitHub MCP tools - stable, structured, no pager/editor issues
  2. SECOND: Use scripts/pr-github.sh wrapper (for create/merge only)
  3. LAST: Use gh CLI 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: 123

Returns: 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: 123

Returns: Full diff of the PR changes

PR Status Checks
github-mcp-server-pull_request_read
  method: "get_status"
  owner: "oocx"
  repo: "tfplan2md"
  pullNumber: 123

Returns: 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: 100

Returns: 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: 100

Returns: 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: 100

Returns: 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: 100

Returns: 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: 1

Returns: 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 every gh call:
    • Use GH_PAGER=cat (gh-specific, overrides gh's internal pager logic)
    • Also set GH_FORCE_TTY=false to reduce TTY-driven behavior
    • Prefer structured output (--json) and keep output small with --jq when practical
  • Never run plain gh ... without GH_PAGER=cat (it may open less and block)
  • Never change global GitHub CLI config (no gh config set ...)
Show full SKILL.md (144 more words)Show less
Fallback gh Patterns

Use this prefix for every command:

bash
GH_PAGER=cat GH_FORCE_TTY=false gh ...
View PR Summary
bash
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> \
  --json number,title,state,isDraft,url,mergeStateStatus,reviewDecision
View Status Checks
bash
GH_PAGER=cat GH_FORCE_TTY=false gh pr view <pr-number> \
  --json statusCheckRollup \
  --jq '.statusCheckRollup[] | {name, status, conclusion}'
View Reviews
bash
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 api for 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.

© oocx, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/view-pr-github of oocx/tfplan2md.

Open the folder on GitHubat commit 3fa4b5a

Compare with similar skills

View PR GitHub next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

View PR GitHub compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
View PR GitHub this skilloocx/tfplan2md174—~1.2kAutomated safety check: PassMIT
Project Pull Requestswimmwatch/cloakbrowser-mcp161—~1kAutomated safety check: PassMIT
GitHub Commentingjuspay/neurolink143—~698Automated safety check: PassMIT
Open PRArcadeAI/arcade-mcp1k—~2.9kAutomated safety check: PassMIT
Memtrace Code Reviewsyncable-dev/memtrace-public486—~818Automated safety check: PassCustom licence
Diagnosing CI And Merge BottlenecksPostHog/posthog-foss721—~3.7kAutomated safety check: PassMIT

Similar skills

  • Project Pull Request

    swimmwatch/cloakbrowser-mcp

    Create, update, prepare, or review a cloakbrowser-mcp GitHub Pull Request only when the user explicitly requests PR work.

    161 GitHub stars~1k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • GitHub Commenting

    juspay/neurolink

    How to post clean, rich, deduplicated GitHub PR review comments — suggestion blocks, multi-line anchors, markers, formatting rules.

    143 GitHub stars~698 tokensUpdated today
    DevelopmentAuto-check passed
  • Open PR

    ArcadeAI/arcade-mcp

    Prepare arcade-mcp changes for review by verifying intended behavior, filling the repository PR template, and creating or updating the PR.

    1k GitHub stars~2.9k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Memtrace Code Review

    syncable-dev/memtrace-public

    Review GitHub pull requests with Memtrace's local graph-backed review engine.

    486 GitHub stars~818 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Official

    Diagnoses CI and pull-request pipeline health for a GitHub repo using the engineering analytics MCP tools — pull-requests (PR list with CI status), workflow-health (per-workflow CI trends), and…

    721 GitHub stars~3.7k tokensUpdated today
    DevelopmentAuto-check passed
  • GitHub MCP

    vibeeval/vibecosystem

    GitHub MCP Server ile GitHub API erisimi. An agent skill from vibeeval/vibecosystem.

    531 GitHub stars~2.3k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check: notes

More from oocx/tfplan2md

All 28 skills in this repo
  • Create Agent Skill

    oocx/tfplan2md

    Create a new Agent Skill following project standards and templates.

    174 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Detect and analyze edge crossings and overlaps in SVG workflow diagrams using geometric intersection algorithms and visual analysis.

    174 GitHub stars~4.3k tokensUpdated yesterday
    Auto-check passed
  • Generate PNG screenshots for release notes using the repository's HtmlRenderer and ScreenshotGenerator tools.

    174 GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Git Rebase Main

    oocx/tfplan2md

    Safely rebase the current feature branch on top of the latest origin/main.

    174 GitHub stars~456 tokensUpdated yesterday
    Auto-check passed
  • Next Issue Number

    oocx/tfplan2md

    Determine the next available issue number across all change types (feature, fix, workflow, website) by checking both local docs and remote branches, then reserve it by pushing an empty branch.

    174 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Run Uat

    oocx/tfplan2md

    Run User Acceptance Testing by creating a PR with rendered markdown on GitHub or Azure DevOps.

    174 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about View PR GitHub

What does View PR GitHub do?

View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback). View PR GitHub is an agent skill from oocx/tfplan2md. View GitHub PR status/details using GitHub MCP tools (preferred) or gh CLI (fallback).

When should I use View PR GitHub?

View PR GitHub fits situations like: tasks that involve MCP servers; tasks that involve Pull requests.

How do I install View PR GitHub in Claude Code?

Run `npx skills add oocx/tfplan2md --skill view-pr-github -a claude-code`. Or copy the skill folder (.agents/skills/view-pr-github in oocx/tfplan2md) into .claude/skills/view-pr-github in your project. Claude Code loads it when a task matches its description.

How do I install View PR GitHub in Codex?

Run `npx skills add oocx/tfplan2md --skill view-pr-github -a codex`. Or copy the skill folder (.agents/skills/view-pr-github in oocx/tfplan2md) into .agents/skills/view-pr-github in your project. Codex loads it when a task matches its description.

Can I use View PR GitHub in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add oocx/tfplan2md --skill view-pr-github -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/view-pr-github, .gemini/skills/view-pr-github, .github/skills/view-pr-github and .opencode/skills/view-pr-github in your project.

What does View PR GitHub need to run?

Going by SKILL.md and its folder, View PR GitHub needs the command-line tools its instructions call (gh). Compatibility (from SKILL.md): Preferred: GitHub MCP tools (github-mcp-server-*). Fallback: GitHub CLI (gh) authenticated, plus network access..

Does View PR GitHub access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is View PR GitHub safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does View PR GitHub use?

View PR GitHub is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does View PR GitHub use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to View PR GitHub?

Skills that share tags, products or a category with View PR GitHub: Project Pull Request (swimmwatch/cloakbrowser-mcp, 161 stars), GitHub Commenting (juspay/neurolink, 143 stars), Open PR (ArcadeAI/arcade-mcp, 1k stars) and Memtrace Code Review (syncable-dev/memtrace-public, 486 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains View PR GitHub?

oocx (a GitHub user) maintains it in oocx/tfplan2md, which has 174 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 6, 2026.

Source: oocx/tfplan2md on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.