/git-and-pr:shipfrom git-and-pr
Full ship lifecycle — lint, test, branch, commit, push, PR, CI check. Use when work is complete and ready to land. Pass --merge to also merge after CI passes. Pass --no-test to skip tests.
Ships in git-and-pr. 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.
None: SKILL.md is the whole skill.
Full lifecycle for shipping completed work: pre-flight checks, PR creation, and CI monitoring. Invoke with /ship.
Use /ship when implementation is complete and changes are ready to land. This skill runs the full quality gauntlet before creating a PR.
--merge — Also merge the PR after CI passes (default: stop after CI green)--no-test — Skip the test step in pre-flight (lint still runs)A plan or commit review gate still requires user approval. Stop at the gate rather than treating this skill as permission to bypass it.
Detect package manager:
if [[ -f "bun.lockb" ]]; then PM="bun"
elif [[ -f "pnpm-lock.yaml" ]]; then PM="pnpm"
elif [[ -f "yarn.lock" ]]; then PM="yarn"
else PM="npm"; fi
Run checks in order. If any fails, stop and report — do not proceed to PR:
Lint (if package.json has a lint script):
$PM run lint
If lint fails, attempt auto-fix with $PM run lint -- --fix and re-check.
Typecheck (if package.json has a typecheck script):
$PM run typecheck
Tests (if package.json has a test script, skip with --no-test):
$PM run test
Check current branch:
git branch --show-current
If on main or master, create a feature branch:
<type>/<short-description> (e.g., feat/add-auth-middleware)git checkout -b <branch-name>Stage relevant files. Exclude:
.env, .env.* files*.secret, *credentials*, *token*dist/, build/, .next/, node_modules/)git add <specific files or patterns>
git status
git diff --staged
Commit with conventional format:
git commit -m "$(cat <<'EOF'
<type>: <concise description under 72 chars>
EOF
)"
Types: feat, fix, refactor, docs, test, chore, perf, ci. Never include "Claude", "AI", or agent attribution.
Push with tracking:
git push -u origin <branch-name>
Load Matt Pocock's pr skill for the body when installed. In Claude Code, use the Skill tool; in pi, read the discovered pr/SKILL.md (normally ~/.agents/skills/pr/SKILL.md). It supplies the change summary, before/after evidence, and merge risk. It does not own branching, committing, CI monitoring, or merging; those stay here.
If the skill isn't installed, use the fallback below. Do not invent successful verification or hide checks that were skipped.
Create the PR with an explicit title and body:
gh pr create --title "<type>: <description>" --body "$(cat <<'EOF'
## Summary
- <bullet 1>
- <bullet 2>
## Test plan
- [ ] <verification step>
EOF
)"
Output the PR URL.
Monitor CI status with a 5-minute timeout:
timeout 300 gh pr checks <pr-number> --watch
--merge flag was passed.--merge flag)gh pr merge --squash --delete-branch
git checkout main
git pull origin main
If merge is blocked (reviews required, branch protection), report and stop — never force-merge.
After completion, print:
Ship complete
- Lint: passed
- Typecheck: passed (or "no typecheck script")
- Tests: passed / skipped (--no-test) / "no test script"
- PR: #<number> (<url>)
- CI: all checks green / failed / timed out
- Merged: yes (squash) / no (default — use --merge to auto-merge)
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arosenkranz/agent-config --plugin git-and-pr6 skills in this plugin
/address-pr-feedbackSystematic 5-phase workflow for handling PR review comments. Fetches review threads via gh api (not gh pr view), triages by priority, executes fixes via sub-agent, posts inline GitHub replies, and commits. Invoke when asked to "address PR feedback", "respond to review comments", or "handle PR review"./cleanup-worktreesSafely scans all git worktrees, checks merge status and PR state, categorizes them (Merged/PR Closed/Remote Deleted/Active), presents a report, and deletes with user approval. Never deletes the current worktree. Invoke when asked to "clean up worktrees", "remove merged worktrees", or "prune worktrees"./pin-actions