The workflow finds or creates a pull request, examines its changes, and writes a focused visual outline using the comment template. It publishes the outline as a marked comment, verifies the result, and reports the pull request and comment URLs.
The canonical home for this skill is visual-pr in jellydn/my-ai-tools
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/nullgh 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.
jellydn/my-ai-tools
1524f4a
ghgh prgh pr viewgh pr commentgh pr editmktemptestprintfrmpublish-comment.shCanonical home
since Nov 30, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.