Agent skill
wt-finish
Finish a feature by merging it to the base branch and cleaning up the worktree. Use when completing a feature or story, handles merge, push, and cleanup automatically.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/wt-finish
SKILL.md
/wt:finish - Finish Feature and Merge
Description
Quick command to finish a feature, merge it back to the base branch, and clean up the worktree.
Usage
/wt:finish
What It Does
This slash command:
- Activates the Git Worktree Manager skill (
@git-worktree) - Automatically runs the
*finish-featurecommand - Guides you through merging and cleanup
Workflow
The command will:
- Verify clean state - Ensure all changes are committed
- Ask for base branch - Which branch to merge into (e.g.,
main) - Run tests - Optional: run tests before merging
- Checkout base branch - Switch to the target branch
- Merge feature - Merge your feature branch
- Push changes - Push the merged changes
- Remove worktree - Clean up the feature worktree
- Delete branch - Optionally delete the feature branch
Benefits
✅ Complete Workflow - Handles entire merge process ✅ Safe Merging - Verifies tests and clean state ✅ Automatic Cleanup - Removes worktree and branch ✅ Guided Process - Interactive prompts for all steps
Notes
- Ensures all changes are committed before merging
- Optionally runs tests before merging
- Cleans up both worktree and branch
- Returns you to the base branch
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?