Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

clean-gone-branches

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when user asks to "clean gone branches", "remove deleted local branches", "prune branches removed from remote", or explicitly…

fcakyonот fcakyon★ 1 223 звезды на GitHub

Об этом скилле

Clean Gone Branches

Remove local git branches whose remote tracking branch has been deleted, cleaning attached worktrees safely first.

Process

  1. Prune remote references

    • Run git fetch --prune.
  2. Inspect branches and worktrees

    • Run git branch -vv to find branches marked [gone].
    • Run git worktree list to check whether any [gone] branch is checked out in a linked worktree (and check git status --short inside each candidate worktree so dirty work is never lost).
  3. Remove clean worktrees first

    • Skip any worktree with uncommitted changes unless the user explicitly asks to discard them.
    • Remove clean [gone] worktrees with git worktree remove <path> before deleting the branch.
  4. Delete gone branches

    • Delete merged [gone] branches with git branch -d <branch>. Confirm with the user before force-deleting unmerged branches (-D), noting squash-merged PRs when relevant.
  5. Report clearly

    • List removed worktrees, deleted branches, and any dirty/unmerged branches kept for safety.
    • If no [gone] branches exist, report that the repo is already clean.

Установить clean-gone-branches в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл clean-gone-branches?

This skill should be used when user asks to "clean gone branches", "remove deleted local branches", "prune branches removed from remote", or explicitly invokes "clean-gone-branches".

Как установить скилл clean-gone-branches?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл clean-gone-branches запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить clean-gone-branches с