AGENT SKILL

pr-view

Print a GitHub pull request — a fixed dump of it by default, its canonical host/owner/repo#N reference with `--ref`, or the fields a caller names with `--json`, optionally filtered with `--jq`. Read-only.

License 许可
GPL-3.0
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
pr-view
description
Print a GitHub pull request — a fixed dump of it by default, its canonical host/owner/repo#N reference with `--ref`, or the fields a caller names with `--json`, optionally filtered with `--jq`. Read-only.

03 SKILL.md 正文

PR View

Read one pull request. With no flags you get a fixed dump a human can read; with --ref you get the PR's canonical reference, the form to carry the PR onward in; with --json <fields> you get exactly the fields you named, as gh pr view --json spells them, for a caller that needs specific data — the body, the reviews, the comments, the state, the head and base refs, createdAt.

This skill is GitHub-only by design; there is no CodeCommit (or other source-control) branch.

Invocation

/pr-view <PR> [--ref | --json <fields> [--jq <expression>]]
  • <PR> (required): the pull request, in any form skills/lib/pr-reference.md lists.
  • --ref (optional, never with --json): print the PR's canonical reference alone, as skills/lib/pr-reference.md defines it.
  • --json <fields> (optional): a comma-separated field list, passed through unchanged.
  • --jq <expression> (optional, only with --json): a jq expression over those fields, passed through unchanged. A string result prints raw, without quotes.

Execution

Run the bundled script, spelled as a bare name, with the arguments you were given:

pr-view <PR> [--ref | --json <fields> [--jq <expression>]]

When your caller asked for the output in a file, redirect the script's stdout to that path; the script writes nothing else there.

Output and exit status

  • Exit 0 — stdout is the PR. The default dump is the canonical reference, title, state and draft flag on one line, then the URL, the author, the head and base branches, a blank line, and the body verbatim. With --ref, stdout is the canonical reference alone, <host>/<owner>/<repo>#<N>. With --json, stdout is gh's JSON for those fields, or the --jq result. Hand it to your caller unchanged.
  • Exit 1 — a command the script ran failed, such as the gh call, and its own error is on stderr above the script's line. Surface it verbatim rather than inventing a replacement message.
  • Exit 2 — a usage error; the script called nothing. Its stderr names the argument at fault.

04 同仓库更多 Skills

TheVoskamps
TheVoskamps/claude-plugins-marketplace

mask-inappropriate-language

Replace inappropriate language (profanity, slurs, strong insults) in provided text or a file with asterisks, character-for-character, preserving everything else.

★ 0
TheVoskamps
TheVoskamps/claude-plugins-marketplace

theorem-agents-interface

The interface between the sdlc reviewer and the theorem agents it spawns — what each double-dash brief parameter means, and what each consequence class means. Preloaded into every theorem agent (sdlc:theorem-generator, the disprover, and the verifier) via its skills frontmatter, and read by name by the sdlc:theorem-based-pr-reviewer agent for what its briefs' parameters mean; not invoked from the user's slash menu.

★ 0
TheVoskamps
TheVoskamps/claude-plugins-marketplace

sdlc-config-user

Interactively create or merge-update the repo user sdlc config, `<repo-root>/.sdlc/user-config.yml` (tier 3 — this user, this repo, never committed), and add it to the repo's tracked `.gitignore`.

★ 0
TheVoskamps
TheVoskamps/claude-plugins-marketplace

sdlc-config-repo

Interactively create or merge-update the shared repo sdlc config, `<repo-root>/.sdlc/repo-config.yml` (tier 2 — tracked, every user of this repo).

★ 0
TheVoskamps
TheVoskamps/claude-plugins-marketplace

sdlc-config-global

Interactively create or merge-update the global user sdlc config, `$XDG_CONFIG_HOME/sdlc/user-config.yml` (tier 1 — this user, every repo on this machine).

★ 0
TheVoskamps
TheVoskamps/claude-plugins-marketplace

pr-read-cli-interface

The contract for sdlc's PR-read CLIs — sdlc-pr-round, sdlc-pr-adjustments, sdlc-fixer-brief and sdlc-records-chain — their arguments, exit codes and output grammar. Preloaded into sdlc:theorem-based-pr-reviewer, sdlc:issue-fixer, sdlc:docs-writer and sdlc:pr-finalizer via their skills frontmatter; not invoked from the user's slash menu.

★ 0