Jj Finish — Git skill for Claude Code
Clean up after a PR at the bottom of the stack has been merged.
How to install Jj Finish
Installs to ~/.claude/commands/nandofarias-dotfiles-jj-finish.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/nandofarias/dotfiles/HEAD/.claude/commands/jj-finish.md -o ~/.claude/commands/nandofarias-dotfiles-jj-finish.md Restart Claude Code, or start a new session, for it to be picked up.
What Jj Finish does
Clean up after a PR at the bottom of the stack has been merged.
Steps
**Fetch latest (to get the merge):**
jj git fetch**Identify merged bookmarks:** Look for bookmarks that were in the stack but are now on trunk (merged):
jj bookmark list --all -T 'if(name.starts_with("ffarias/"), name ++ " " ++ if(tracking_present, "tracked", "local") ++ "\n")'Also check which bookmarks were deleted from remote (these were merged + branch deleted):
Alternatives in Git
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Fullstack Dev Skills — by jeffallan - A comprehensive Claude Code plugin with 65 specialized skills covering full-stack development a 7k ★
- Container Use — by dagger - Development environments for coding agents 3.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Stack Sync
Cascade-rebase the current branch and all its descendants onto the new main, after a parent PR has merged. Use
PR Post Merge
Clean up after a PR is merged — close fork issue, update local branch, delete issue branch
Branch Cleanup
Clean up merged, stale, and orphaned git branches. Protects main/develop/release/ automatically. Supports --dr
Clean After Merged
Switch to the repo's main branch, pull, and delete the just-merged local branch.
Autonomy Off
End autonomy mode — finish the in-flight slice to merge, start nothing new, then post a closing summary (merge
Release Tag
tag and push a release after the release PR is merged
Related Agents
B Roll
Plans b-roll cutaways and clean boundaries — graphics finish BEFORE b-roll starts, b-roll plays naked, post-b-
Branch Hygiene
MUST be used whenever the user asks to find stale, merged, or orphaned git branches, or asks to review/clean u
Branch Gardener
Triages local branches and stashes in a managed repo (merged, stale, superseded, unpushed) and proposes deleti