Posts a concise visual outline of a pull request as a GitHub comment, showing structural changes and reviewer-relevant paths.
Ships in visual-pr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Post a compact visual explanation of a pull request as a comment. Do not replace or append to the pull request description.
gh pr view --json url,number,title,state,baseRefName,headRefName 2>/dev/null
gh pr view to collect metadata and changed files.Read $SKILL_PATH/references/comment-template.md, then write the completed comment to a temporary file:
COMMENT_FILE=$(mktemp "${TMPDIR:-/tmp}/visual-pr-comment.XXXXXX")
Keep the outline concise:
- None. when there are none.diff blocks for changes to an existing shape. Show the complete target shape when most of it is new.COMMENT_URL=$("$SKILL_PATH/scripts/publish-comment.sh" <number> "$COMMENT_FILE")
test -n "$COMMENT_URL"
printf '%s\n' "$COMMENT_URL"
rm -f "$COMMENT_FILE"
The script adds a hidden visual-pr marker. It updates the current GitHub user's existing marked comment, or runs
gh pr comment when none exists. Thus, one pull request has at most one visual-pr comment from that user. Never use
gh pr edit for the visual outline because that replaces the pull request description.
Reply with the pull request URL, the comment URL returned by GitHub, a two-sentence summary, and the verification that the comment command succeeded.
Write as one person to another. Use simple, concise language and avoid jargon.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/visual-pr:visual-prfrom visual-pr
npx claudepluginhub jellydn/my-ai-tools --plugin visual-prOther plugins' skills for the same job