Loading...
Loading...
Use when implementation is complete, tests pass, and code needs to reach main — via PR with auto-merge (CI up) or local shallow-clone merge (CI down)
npx skill4agent add camacho/ai-skills ship/reviewpnpm validategit -C <worktree> symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||'mainReady to ship.
1. Open PR + auto-merge
2. Keep branch as-is
3. DiscardReady to ship (CI down — local merge with review gate).
1. Local merge to main
2. Keep branch as-is
3. Discardgit -C <worktree> push -u origin <branch>
GH_REPO=<owner/repo> gh pr create \
--title "<conventional-commit-title>" \
--body "$(cat <<'EOF'
## Summary
<2-3 bullets>
## Test plan
- [ ] <verification steps>
EOF
)"
GH_REPO=<owner/repo> gh pr merge --auto --mergecode-reviewerclaude --agent code-reviewer "Review diff: git -C <worktree> diff main..HEAD"SHIP_DIR="$CLAUDE_SESSION_DIR/ship-merge"
[ -d "$SHIP_DIR" ] && rm -rf "$SHIP_DIR"
git clone --depth 1 "$(git -C <worktree> remote get-url origin)" "$SHIP_DIR"
git -C "$SHIP_DIR" fetch origin <branch>
git -C "$SHIP_DIR" merge FETCH_HEAD -m "merge: <branch> into main
Co-Authored-By: Claude <model>"
git -C "$SHIP_DIR" pushgit -C "$SHIP_DIR" pull --rebaserm -rf "$SHIP_DIR"<name><path>git -C <primary> worktree remove <worktree-path>
git -C <primary> branch -D <branch>
git push origin --delete <branch> 2>/dev/null || truegit -C <primary> worktree remove <worktree-path>| Path | Cleanup worktree? |
|---|---|
| PR + auto-merge | Yes |
| Local merge | Yes |
| Discard | Yes (in discard step) |
| Keep as-is | No |