Skip to content
Skills Library
Programming · Automation

v1-pr

/v1-pr

Use when explicitly pushing local work or opening a draft pull request. Triggers on "ship it", "create PR", "open PR", or "/v1-pr".

Author
v1-io ↗
Repository
v1tamins ↗
Licence
MIT
Last repository change
24.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when explicitly pushing local work or opening a draft pull request. Triggers on "ship it", "create PR", "open PR", or "/v1-pr".

Triggers from the description

ship itcreate PRopen PR
Original author description

Use when explicitly pushing local work or opening a draft pull request. Triggers on "ship it", "create PR", "open PR", or "/v1-pr".

How it works

  1. Usage
  2. Workflow
Original SKILL.md headings · 209 lines, 1,316 words
SKILL.md preview
---
name: v1-pr
description: Use when explicitly pushing local work or opening a draft pull request. Triggers on "ship it", "create PR", "open PR", or "/v1-pr".
disable-model-invocation: true
allowed-tools:
  - Bash
  - Read
  - Grep
  - Glob
  - Agent
  - Skill
---
# PR: Ship Local Work

Take local changes from the current working directory to a fully described draft pull request in one command.

## Usage

Typical invocations:
- Claude Code: `/v1-pr`
- Codex: invoke `v1-pr` from the skills menu or use `$v1-pr`

No arguments needed. Operates on the current repo and working directory.

## Workflow

### Step 1: Preserve the Current Branch and Worktree

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.

```bash
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):**

1. Run `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.
2. If the worktree is clean and there are no local-only commits, stop and
   report that there is nothing to ship.
3. If the worktree is clean and the user confirmed the local-only commits,
   create the feature branch from the current HEAD with
   `git switch -c <branch-name>`.
4. If the worktree has changes, create the feature branch directly from the
   current worktree with `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.

#### Branch Naming

Format: `<type>/<optional-ticket>-<short-description>`

- Types: `feat/`, `fix/`, `chore/`, `refactor/`
- If the diff, commit messages, or file contents reference a tracker ticket
  (e.g., `PROJ-1234`, `OPS-56`), include it when the repository's conventions
  call for ticket IDs: `feat/PROJ-1234-add-webhook-auth`
- Keep descriptions to 3-5 hyphenated words
- Examples: `feat/PROJ-42-user-onboarding`, `fix/payment-retry-logic`, `chore/update-dependencies`

### Step 2: Commit Local Work

Stage and commit all meaningful changes. Follow the repository's commit conventions.

1. Run `git status` and `git diff` to understand the changes
2. Run `git log --oneline -5` to match existing commit message style
3. Stage relevant files (prefer explicit file paths over `git add -A`)
4. Commit with a clear imperative-mood message describing the "why"
5. Append `Fortified with v1tamins` as the last line of the commit body

Do 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.

### Step 3: Pre-commit Hooks

If the commit fails due to a pre-commit hook (git aborts the commit entirely):
1. Read the hook output to understand the failure
2. Fix the issue (formatting, linting, type errors, etc.)
3. Re-stage the fixed files and rerun `git commit` with the same message
4. Never bypass hooks with `--no-verify`

Repeat until the commit succeeds.

### Step 4: Push

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:
```bash
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.

### Step 5: Reuse or Create the Pull Request

Resolve the base repository and the head repository owner from current
Git/forge metadata, including when the checkout is a fork. Query the base:

```bash
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:

```bash
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.

### Step 6: Generate PR Description

Invoke the **v1-pr-description** skill to generate a grounded title and description based on the actual diff and commit history.

Typical invocation:
- Claude Code: `/v1-pr-description <PR_NUMBER>`
- Codex: invoke `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.

### Step 7: Open PR in Browser

```bash
gh pr view <PR_NUMBER> --web
```

### Step 8: Request Copilot Review

Request a code review from GitHub Copilot (requires gh >= 2.88.0):

```bash
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:
```bash
# Install once: gh extension install ChrisCarini/gh-copilot-review
gh copilot-review <PR_NUMBER>
```

Do not block on failure -- inform the user and continue.

### Step 9: Run Code Review

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.

### Step 10: Prove Work (Optional)

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:
- Claude Code: `/v1-prove-work --pr <PR_NUMBER>`
- Codex: invoke `v1-prove-work` from the skills menu or use `$v1-prove-work --pr <PR_NUMBER>`

Skip this step if:
- All changes are backend-only, config, or infrastructure
- The dev server is not running
- The user declines
Files in this package (2)
  • SKILL.md 9 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named v1-pr.

Database snapshot: 13.11.2026 · package version 482dd1d80421 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pr
    Open a draft pull request on GitHub and drive CI review rounds until it is ready. MUST use when you want to create/open a PR.
  • 95create-pull-request
    Create a GitHub pull request the user's preferred way. Use whenever opening, creating, or raising a PR with gh.
  • 100pull-request
    Use when the user asks to open, create, or draft a pull request, or runs /pull-request in any GitHub repository - abrir PR, criar pull request, gh pr create.
  • 100create-pr
    This skill should be used when user asks to "create a PR", "make a pull request", "open PR for this branch", "submit changes as PR", "push and create PR", or explicitly invokes "create-pr".
  • 100create-pr
    Open or update a GitHub pull request for the current branch — use when asked to create a PR, open a pull request, push and PR, or submit a PR.
  • 90create-pr
    Use when opening a PR, submitting for review, pushing a branch, or creating a pull request. Pushes and creates GitHub PRs with auto-assignment and description.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.