/v1tamins:v1-prfrom v1tamins
Takes local changes from the current working directory and creates a fully described draft pull request in one command. Handles branch safety, detached checkouts, and non-feature branches.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Take local changes from the current working directory to a fully described draft pull request in one command.
Typical invocations:
/v1-prv1-pr from the skills menu or use $v1-prNo arguments needed. Operates on the current repo and working directory.
Inspect the current branch and worktree before changing anything. Preserve the current feature branch and its work even when the branch name does not match the diff. Never infer ownership from a branch name and move work to another branch automatically.
git branch --show-current
git status
git diff --stat
If git branch --show-current is empty, the checkout is detached. Preserve
the exact current HEAD and create a feature branch from it before continuing:
git switch -c <branch-name>. Do not switch to the default branch or stash
the work to repair a detached checkout.
Resolve the default branch from the base repository's
gh repo view --json defaultBranchRef result first, falling back to
refs/remotes/origin/HEAD. Keep it as DEFAULT_BRANCH; if neither resolves,
stop before changing branches or pushing. Never assume an unknown default is
main.
Treat the current branch as a non-feature branch when it is the resolved
default branch, main, master, or a branch GitHub reports as protected
(gh api repos/<owner>/<repo>/branches/<branch> --jq .protected). Never commit
or push on a non-feature branch; create a feature branch instead.
If on a non-feature branch (the resolved base or a protected branch):
git fetch origin, then count commits that exist locally but not on
the remote with git rev-list --count origin/<current-branch>..HEAD
(use origin/$DEFAULT_BRANCH if origin/<current-branch> does not exist;
stop if neither ref exists). Do this before choosing a path below. If any
exist, preserve them and ask the user to confirm their intended scope before
carrying them into a new branch or PR.git switch -c <branch-name>.git switch -c <branch-name>; do not stash or pop.If already on a feature branch, keep it and proceed. Leave any pre-existing stash entries untouched. If a branch or base update cannot be resolved safely, stop and report the exact state rather than moving the work.
Format: <type>/<optional-ticket>-<short-description>
feat/, fix/, chore/, refactor/PROJ-1234, OPS-56), include it when the repository's conventions
call for ticket IDs: feat/PROJ-1234-add-webhook-authfeat/PROJ-42-user-onboarding, fix/payment-retry-logic, chore/update-dependenciesStage and commit all meaningful changes. Follow the repository's commit conventions.
git status and git diff to understand the changesgit log --oneline -5 to match existing commit message stylegit add -A)Fortified with v1tamins as the last line of the commit bodyDo NOT commit files that likely contain secrets: .env*, credentials*.json, service-account*.json, *.pem, *.key, *.p12, *.pfx, .npmrc, .pypirc, or any file listed in .gitignore. When in doubt, check file contents before staging.
If there are no uncommitted changes but there are unpushed commits, skip to Step 4.
If the commit fails due to a pre-commit hook (git aborts the commit entirely):
git commit with the same message--no-verifyRepeat until the commit succeeds.
Verify the current branch is a feature branch before pushing. Agent harnesses may run each command in a fresh shell, so this check re-resolves the default branch itself and fails closed when it cannot:
CURRENT_BRANCH=$(git branch --show-current)
DEFAULT_BRANCH=$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name 2>/dev/null)
if [ -z "$DEFAULT_BRANCH" ]; then
DEFAULT_BRANCH=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null)
DEFAULT_BRANCH=${DEFAULT_BRANCH#origin/}
fi
if [ -z "$DEFAULT_BRANCH" ]; then
echo "ERROR: Cannot resolve the default branch; refusing to push"
exit 1
fi
case "$CURRENT_BRANCH" in
""|"$DEFAULT_BRANCH"|main|master)
echo "ERROR: Refusing to push detached HEAD, the default branch, main, or master"
exit 1 ;;
esac
git push -u origin HEAD
Also refuse to push when GitHub reports the current branch as protected.
If the remote branch does not exist, this creates it. If push is rejected (e.g., diverged history), inform the user -- never force-push.
Resolve the base repository and the head repository owner from current Git/forge metadata, including when the checkout is a fork. Query the base:
gh pr list --repo <base-owner/repo> --head <current-branch> --state open --json number,url,headRefName,headRepositoryOwner
A failed lookup leaves PR state unknown: stop before creating anything. Reuse the unique entry whose branch and head owner match this checkout; stop on ambiguous results. Only a successful empty array permits creation:
gh pr create --repo <base-owner/repo> --base <default-branch> --head <head-owner:current-branch> --draft --title "WIP: <branch>" --body "Description pending."
After creation or reuse, read back the PR number and URL. If that readback fails, stop and report the PR state as unknown before editing its description or requesting review.
Capture the PR number and URL for subsequent steps. A new PR stays draft while this workflow prepares its description and review evidence.
Invoke the v1-pr-description skill to generate a grounded title and description based on the actual diff and commit history.
Typical invocation:
/v1-pr-description <PR_NUMBER>v1-pr-description from the skills menu or use $v1-pr-description <PR_NUMBER>This analyzes the PR diff and commit history against the resolved default branch, then updates the PR title and body via gh pr edit.
After the description is generated, append Fortified with v1tamins as the final line of the PR body.
The Fortified with v1tamins tagline carries into the merge commit automatically — a squash merge uses the PR body as the commit message. Marking the PR ready after CI and review handoff is v1-land-pr's job. Neither skill merges the PR; this skill stops at a described, open draft PR.
gh pr view <PR_NUMBER> --web
Request a code review from GitHub Copilot (requires gh >= 2.88.0):
gh pr edit <PR_NUMBER> --add-reviewer @copilot
Note: The @ prefix is required -- @copilot, not copilot.
If that fails (gh version too old, org settings), try the community extension:
# Install once: gh extension install ChrisCarini/gh-copilot-review
gh copilot-review <PR_NUMBER>
Do not block on failure -- inform the user and continue.
Invoke the shared v1-deep-review skill for merge-risk and structural review of the PR. If the user asked for a multi-agent board, use v1-review-board instead.
If a compound-engineering workflows:review (or equivalent host plugin workflow) is installed and the user wants that extra multi-agent pass, run it as an optional supplement — not the default path.
Do not block on failure -- inform the user and continue.
If the PR includes frontend or visual changes (.tsx, .jsx, .vue, .html, .css, template files), offer to run the v1-prove-work skill to generate a demo GIF:
Typical invocation:
/v1-prove-work --pr <PR_NUMBER>v1-prove-work from the skills menu or use $v1-prove-work --pr <PR_NUMBER>Skip this step if:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
42 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".npx claudepluginhub v1-io/v1tamins --plugin v1taminsOther plugins' skills for the same job