/v1tamins:v1-pr-descriptionfrom v1tamins
Generates or updates GitHub PR titles and descriptions from the actual diff, PR metadata, and repo guidance. Invoke with a PR URL or number.
Ships in v1tamins. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write or update the PR title and description from the actual diff, current PR metadata, repo guidance, and the user's constraints.
Typical invocations:
/v1-pr-description <PR_URL_or_NUMBER>v1-pr-description from the skills menu or use $v1-pr-description <PR_URL_or_NUMBER>Examples:
/v1-pr-description https://github.com/your-org/your-repo/pull/123
/v1-pr-description 123
In Codex, the slash examples above map directly to $v1-pr-description ....
Use the PR itself as the source of truth for base/head instead of assuming main:
gh pr view {pr} --json number,url,title,body,baseRefName,baseRefOid,headRefName,headRefOid,headRepository,headRepositoryOwner,files,commits
Treat the repository named by the PR URL as the base repository. Confirm its primary GitHub identity before using local refs:
gh repo view {host}/{owner}/{repo} --json nameWithOwner
The base identity, the current base branch ref from the Git ref API, and local
HEAD are one contract. The PR metadata baseRefOid is historical context;
an open PR can retain it after the base branch advances. The local checkout is
usable only when HEAD equals headRefOid, a local remote URL maps to the
GitHub base repository, the authoritative API response is a commit for the
requested refs/heads/{baseRefName}, and a successful fetch resolves to that
same current SHA. Re-read the repository identity after resolving the ref so a
concurrent repository change fails closed. Do not choose a remote because it
is named origin or upstream, and do not use an existing remote-tracking ref
after a failed fetch. If any check fails, stop with an explicit unavailable
diff context and do not draft or update the description from that local diff.
Optional helper:
Run this shell block with Bash. If your tool defaults to zsh or another shell, select Bash first; cache glob handling depends on it.
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
RESOLVER=""
for candidate in \
"$REPO_ROOT/plugins/v1tamins/scripts/resolve-skill-root.sh" \
"${CLAUDE_PLUGIN_ROOT:-}/scripts/resolve-skill-root.sh" \
"$HOME/.claude/skills/v1-pr-description/../../scripts/resolve-skill-root.sh" \
"$HOME/.codex/skills/v1-pr-description/../../scripts/resolve-skill-root.sh" \
"$HOME/.claude/plugins/cache"/*/v1tamins/*/scripts/resolve-skill-root.sh \
"$HOME/.codex/plugins/cache/v1tamins/v1tamins"/*/scripts/resolve-skill-root.sh; do
[ -x "$candidate" ] && RESOLVER="$candidate" && break
done
if [ -z "${RESOLVER:-}" ]; then
echo "ERROR: Could not find resolve-skill-root.sh" >&2
exit 1
fi
SKILL_ROOT="$("$RESOLVER" v1-pr-description generate.sh)"
"$SKILL_ROOT/generate.sh" {PR_URL_or_NUMBER}
Use the helper to collect metadata, changed files, commits, and verified diff
context. Treat its output as evidence, not as the finished PR description. A
successful helper run (exit 0) is required before using its local diff; exit
2 means the metadata was collected but the diff context is unavailable.
If you need to inspect the context manually, fetch the mapped base remote and resolve the current branch revision from the primary Git ref API, then prove the exact revision before diffing:
base_sha="$(gh api --hostname {host} repos/{owner}/{repo}/git/ref/heads/{baseRefName} \
--jq 'select(.ref == "refs/heads/{baseRefName}" and .object.type == "commit") | .object.sha')"
test -n "$base_sha"
git fetch <base-remote> refs/heads/{baseRefName}
test "$(git rev-parse FETCH_HEAD^{commit})" = "$base_sha"
git diff --stat "$base_sha"...HEAD
git diff --name-only "$base_sha"...HEAD
git log --oneline "$base_sha"..HEAD
If the current checkout does not match the PR head SHA, or the base identity or exact base revision cannot be proved, say so and stop the local-diff workflow. Do not write a description from an unknown local branch or stale base ref.
Before drafting, build a compact ledger:
| Source | Evidence | Use |
|---|---|---|
| PR metadata | title, body, base/head, files | preserve existing context and detect stale claims |
| Diff | changed files and meaningful hunks | describe actual behavior changes |
| Commits | commit subjects and range | identify intent and follow-up fixes |
| Validation | test commands in commits, comments, checks, or user notes | report only verified validation |
| Repo guidance | AGENTS.md, CLAUDE.md, .github/pull_request_template*, .github/CODEOWNERS, relevant workflows | match local expectations |
| User constraints | required phrases, prohibited terms, title/body preferences | preserve exactly |
Read only the relevant files. Do not crawl all of .github/; inspect files that explain PR templates, ownership, or checks touched by the PR.
If the existing PR body has required footer text, checklist state, reviewer notes, linked tickets, or user-requested wording, preserve it unless the user explicitly asks to replace it.
Title:
Body:
## Summary
- ...
## Changes
- ...
## Validation
- ...
## Risk / Rollback
- ...
## Notes for Reviewers
- ...
Use bullets over prose when the PR has multiple concrete changes. Keep the description grounded in files, behavior, validation, and reviewer impact.
Choose the smallest representation that clarifies a consequential change:
a structural before/after for responsibilities, a call-tree for execution,
pseudocode for a branch, or Mermaid for relationships. Include it only when it
adds information beyond the prose and fits the repository template. Ground
it in the ledger; skip it when ordinary prose is sufficient. Use
v1-pr-walkthrough for a fuller explanation, not a larger artifact by default.
For an actual responsibility change, a small structural comparison may suffice:
Before: command → parse + authorize + mutate + format
After: command → validated request → scoped mutation → result formatter
Keep Mermaid diagrams small and maintainable. Do not add a diagram for a simple list of changes.
flowchart LR
"Old path" --> "Changed component"
"Changed component" --> "New behavior"
If a relevant explainer video already exists, link it as supplementary explanation alongside the concise written summary. Verify which PR revision it covers and whether reviewers can access its destination; disclose material staleness and keep an inaccessible local file out of the posted body. Creating or uploading a video is not part of writing a PR description unless requested. A video explains the change; it does not replace validation evidence.
Before editing GitHub:
If the implementation no longer matches the existing PR description, update the stale description rather than preserving inaccurate text.
Use gh pr edit when the user asked to update GitHub:
gh pr edit {pr} --title "..." --body-file /path/to/body.md
If gh is unavailable or unauthenticated, do not claim the PR was updated. Return the proposed title/body and the exact blocker.
If the user only asked for a draft, return the proposed title/body without running gh pr edit.
Report:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub v1-io/v1tamins --plugin v1tamins42 skills in this plugin
/v1-address-reviewUse when resolving existing PR review comments or threads. Triggers on "address review feedback", "fix review comments", or "resolve review threads"./v1-autoresearch-skillUse when explicitly running a measured optimization loop against a target. Triggers on "run autoresearch" or "keep only measured improvements"./v1-bare-bonesUse when reducing a plan, PRD, or proposal to the smallest useful scope. Triggers on "strip this plan", "MVP only", or "remove scope"./v1-bigxtha-pluginUse when designing or reviewing a skill plugin's architecture, shared resources, skill handoffs, or cross-skill change impact./v1-canon2skillUse when extracting reusable Agent Skill ideas from books, PDFs, articles, courses, or notes. Triggers on "extract skills from this" or "what skills could come from this?"./v1-changelogUse when writing release notes from merged PRs. Triggers on "write changelog", "release notes", or "what shipped".Other plugins' skills for the same job