xencon

Finish PR — Git skill for Claude Code

Git community

Post-merge cleanup -- verify merge state, sync dev, delete branch, close issue.

How to install Finish PR

Installs to ~/.claude/commands/xencon-aixcl-finish-pr.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/xencon/aixcl/HEAD/.claude/commands/finish-pr.md -o ~/.claude/commands/xencon-aixcl-finish-pr.md

Restart Claude Code, or start a new session, for it to be picked up.

What Finish PR does


description: Post-merge cleanup -- verify merge state, sync dev, delete branch, close issue

The human says a PR is merged. VERIFY IT FIRST -- humans are sometimes mistaken, and a PR can be CLOSED without being merged:

!`gh pr list --repo xencon/aixcl --state all --limit 5 --json number,state,title --jq '.[] | "#\(.number) \(.state) \(.title)"'`

For the PR in question (ask which one if ambiguous, or take it from $ARGUMENTS):

  1. Confirm the state is exactly MERGED: `gh pr view --

Alternatives in Git

  • GitHub Review PR — Use when a PR needs full review — resolves merge conflicts with the base first, then fixes CI failures, then a 1.5k ★
  • Worktree Rm — Remove a git worktree and optionally delete its branch 387 ★
  • Drive Acquisition — Work GitHub issues that drive acquisition — verify relevance, close stale ones, fan out at most two engineer a 324 ★

Full documentation available on GitHub

View Source Repository