/git:cleanfrom git
Delete local branches whose upstream is gone, along with their linked worktrees. Use when the user asks to clean up stale or gone branches (e.g. "clean up old branches", "清理分支", "clean gone"). Deletes only branches whose remote tracking branch is marked [gone].
Ships in git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Delete local branches whose remote tracking branch is marked [gone] — typically the leftovers of merged pull requests. Nothing else is in scope.
git fetch --prune, then list local branches whose upstream is marked [gone] via git branch -vv.main/master).git worktree remove; then delete the branch with git branch -D.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mywsq/plugins --plugin git4 skills in this plugin
/commitCommit and push with a fixed safety floor — stage by name, refuse staged secrets, match the repository's message style. Use when the user asks to commit, save, or push code (e.g. "commit this", "提交代码", "push my changes")./prCommit, push, and open a pull request without ever switching the working tree's branch. Use when the user asks to open a PR, ship changes as a pull request, or says things like "open a PR", "commit and open a PR", "提交并开 PR". On the default branch it publishes the commit as a new remote branch instead of checking one out./pushCommit and push the current branch to its upstream, without opening a PR or changing branches. Use when the user asks to commit and push in one step, or says things like "commit and push", "提交并推送", "push this up". Pushes the branch that is already checked out, including the default branch.