How this skill is triggered — by the user, by Claude, or both
Slash command
/git-expert:git-cleanThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Clean the working tree by removing untracked files and directories.
Clean the working tree by removing untracked files and directories.
git clean -ngit clean -fgit clean -fdgit clean -fxgit clean -fdxgit clean -igit clean -e <pattern>Triggered when user says "clean untracked", "remove untracked files", "clean working directory".
ALWAYS do a dry run (-n) first before actual removal. Warn about irreversible deletion.
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin git-expertClean up local branches whose remote tracking branch is gone. Use when the user says "clean up branches", "delete gone branches", "prune local branches", "clean gone", or wants to remove stale local branches that no longer exist on the remote. Also handles removing associated worktrees for branches that have them.
Prevents, detects, and remediates files that should never be committed — secrets (.env, API tokens, hardcoded credentials) and dev artifacts (build output, scratch databases, editor/OS files). Covers .gitignore (and why it does not untrack), git rm --cached, auditing tracked files, history scrubbing, and credential rotation. Use when a repo has committed secrets or junk, when setting up a new repo's ignore rules, or when reviewing what a repo actually tracks.
Deletes local branches whose remote tracking branch is gone, including associated worktrees. Useful for cleaning up stale branches after remote deletions.