wt-finish

Completes unfinished Git feature branches by merging them into the base branch and cleaning up the worktree.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/michael-menard/monorepo --skill wt-finish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wt-finish
Source: https://github.com/michael-menard/monorepo/tree/main/.claude/skills/wt-finish
Command: npx skills add https://github.com/michael-menard/monorepo --skill wt-finish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates finishing a feature by merging it back into the base branch and cleaning up the feature worktree.

Core Features & Use Cases

  • Automates finishing a feature by merging it to the base branch.
  • Cleans up the feature worktree and optionally deletes the feature branch after merge.
  • Works within standard Git workflows, prompting for the base branch and allowing optional test runs before merging.

Quick Start

Run the /wt:finish command to complete your current feature, merge into the base branch, push changes, and remove the worktree.

Frequently Asked Questions about wt-finish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate merging a feature branch and cleaning up a git worktree?

You can automate merging a feature branch and cleaning up a git worktree by running a command that enforces a clean state, prompts for the base branch, optionally runs tests, performs checkout, merges the feature, pushes changes, and removes the worktree.

How does git worktree cleanup work after merging a feature?

Git worktree cleanup after merging a feature involves checking out the base branch, merging the feature branch into it, pushing the changes to the remote repository, and then removing the feature worktree directory and optionally deleting the feature branch.

Can I run tests automatically before merging a feature branch into the base branch?

Yes, you can run tests automatically before merging a feature branch into the base branch. The workflow allows optional test runs prior to performing the checkout and merge operations to ensure code stability.

What is the best way to finish a feature branch without leaving leftover worktrees?

The best way to finish a feature branch without leftover worktrees is to use an automated workflow that safely merges the feature into the base branch, pushes the changes, and explicitly removes the worktree and optionally the branch itself.

Does the feature merge workflow prompt me for the base branch?

Yes, the feature merge workflow prompts you for the base branch. It ensures you specify the correct target branch before it performs the checkout, merge, push, and worktree cleanup operations.

When should I not use automated worktree cleanup for feature branches?

You should not use automated worktree cleanup for feature branches if your repository is not in a clean state, as the automated workflow enforces a clean state before proceeding with the merge, push, and worktree removal.