Agent skill
wt-prune
Clean up stale git worktree references and metadata. Use when git shows worktrees that no longer exist, or after manually deleting worktree directories. Fixes inconsistencies.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/wt-prune
SKILL.md
/wt:prune - Prune Stale Worktree References
Description
Quick command to clean up stale worktree administrative files and references.
Usage
/wt:prune
What It Does
This slash command:
- Runs
git worktree pruneto remove stale worktree metadata - Cleans up references to worktrees that no longer exist on disk
- Shows what was cleaned up
When to Use
Use /wt:prune when:
- You manually deleted a worktree directory (without using git commands)
- Git shows worktrees that don't actually exist anymore
- You want to clean up orphaned worktree references
- After moving or renaming worktree directories
Workflow
The command will:
- Check for stale references - Find worktrees that don't exist on disk
- Show what will be pruned - List stale references
- Run prune command - Execute
git worktree prune - Confirm cleanup - Show what was removed
Benefits
✅ Clean Metadata - Removes orphaned references ✅ Fix Inconsistencies - Resolves git worktree list issues ✅ Safe Operation - Only removes references, not actual files ✅ Quick Fix - Solves common worktree problems
Notes
- This command is safe - it only removes metadata, not actual files
- If you manually deleted a worktree directory, this cleans up git's records
- Different from
/wt:cleanupwhich removes actual worktrees - Automatically run as part of
/wt:cleanup
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
riot-games
Manage Riot Games account, track stats across League, Valorant, and more
parcel
Provides comprehensive guidance for Parcel bundler including zero-configuration setup, asset handling, hot module replacement, and production builds. Use when the user asks about Parcel, needs to set up a build tool quickly, or work with Parcel's automatic configuration.
bbs
Manage issues with The Fold's CAS-native BBS (Bulletin Board System). Use for creating, updating, searching, and tracking issues. Invoke when the user wants to create tickets, find work, check issue status, or manage dependencies.
jito-bundles-and-priority-fees
Master Jito bundles for MEV protection and priority fee optimization on Solana - bundle submission, tip strategies, and transaction landing. Use for trading bots, high-priority transactions, and MEV-aware applications.
observability-monitoring-monitor-setup
You are a monitoring and observability expert specializing in implementing comprehensive monitoring solutions. Set up metrics collection, distributed tracing, log aggregation, and create insightful da
makefile-review
Didn't find tool you were looking for?