Automates the cleanup and reset of Git worktrees following a successful Pull Request merge.
The Worktree Reset skill streamlines the post-merge developer experience by automating the tedious manual steps required to clean a workspace. It verifies PR status via GitHub CLI, deletes local and remote feature branches, fetches the latest upstream changes, and resets the environment to a clean, detached state at origin/main. This ensures that your worktree is immediately ready for a new task, preventing configuration drift and reducing the risk of working on stale code bases.
主要功能
01Clean deletion of both local and remote feature branches
02Automatic PR merge verification using GitHub CLI integration
030 GitHub stars
04Built-in safety checks to prevent accidental resets of primary branches
05Comprehensive workspace cleanup of untracked files and modifications
06Pruning of stale remote references and fetching latest main updates
使用场景
01Standardizing post-merge hygiene across a development team using Claude Code
02Preparing a dedicated worktree for a new feature immediately after merging the previous one
03Quickly cleaning up a local environment after an experimental branch is no longer needed