From git-plugin
Performs Git repository maintenance: prunes unreachable objects, runs aggressive garbage collection, verifies integrity, cleans merged branches and old stashes with confirmation.
npx claudepluginhub laurigates/claude-plugins --plugin git-pluginThis skill uses the workspace's default tool permissions.
- Current branch: !`git branch --show-current`
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
git branch --show-currentgit status --porcelain=v2 --branchgit branch -vv --format='%(refname:short) %(upstream:short) %(upstream:track)'git stash listdu -sh .gitParse these parameters from the command (all optional):
--prune: Remove unreachable objects and optimize repository--gc: Run git garbage collection (aggressive)--verify: Verify integrity of git objects--branches: Clean up merged branches only--stash: Clean up stashes only--all: Run all maintenance tasks (default if no flags specified)Perform repository maintenance and cleanup based on the flags provided.
.gitignore and removing with git rm --cachedgit branch -d# Prune unreachable objects
git prune
# Run garbage collection
git gc --aggressive
# Repack objects
git repack -ad
# Show size improvement
du -sh .git
git fsck --full --strict
Report any issues found.
These operations are safe and non-destructive:
git gc - Garbage collectiongit prune - Prune unreachable objectsgit fsck - Verify integrityThese require user confirmation:
git branch -d - Delete branchesgit stash drop - Drop stashes