branch
Create a git feature branch named for the current session's work. Use when the user asks to start, create, or cut a branch.
от Integralist★ 31 звезда на GitHub
Установить branch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Create a feature branch <git-username>/<slug> from the chosen base, or clean
up a merged branch with --cleanup.
Base. If already on the repository's default branch, branch from it. Otherwise ask:
You're on `<current-branch>`. Create `<name>` by:
1. Switching back to `<default-branch>` and branching from it.
2. Branching from `<current-branch>`.
Name. Lowercase the git username and turn each run of characters other
than letters and digits into one hyphen (First Last → first-last). Draw the
slug from the session's work: a few kebab-case words with no
Conventional Commit type prefix (fix-login-redirect). If there's no clear
task, propose a slug and wait for the user to confirm it.
Create. Run git switch -c <name> <base>. Done when the new branch is
checked out and you've reported its name.
Cleanup (--cleanup[=<branch>])
- Identify and verify. Target
<branch>from--cleanup=<branch>if given, or the current branch when omitted and not on<default-branch>. Stop if<branch>is<default-branch>or any owning worktree has uncommitted or untracked changes. Confirm the branch is merged viagit branch --merged <default-branch>orgh pr list --head <branch> --state merged --json number,url,headRefOid,baseRefName. When relying on a merged PR, verify that it targeted<default-branch>and itsheadRefOidmatchesgit rev-parse <branch>; if local commits exist beyond the PR head, show them and stop unless the user explicitly approves discarding them. Stop if unmerged unless the user explicitly approves. - Resolve worktrees, sync base, and delete. Check
git worktree list --porcelain. If<branch>is checked out in a linked worktree, confirm that worktree is clean and remove it withgit worktree remove <path>(ask first if running from inside that worktree or if the branch was unmerged). Rungit fetch origin --prune, then rebase<default-branch>ontoorigin/<default-branch>in the worktree that already holds<default-branch>if clean (switching to<default-branch>only when no other worktree holds it). Delete<branch>(git branch -d, or-Donly after confirming a matchingMERGEDPR tip and base or explicit user approval). Done when<branch>is removed and<default-branch>is up to date.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(gh pr list:*) - 02
Bash(git branch --show-current) - 03
Bash(git branch --merged:*) - 04
Bash(git config --get:*) - 05
Bash(git config user.name) - 06
Bash(git rev-parse:*) - 07
Bash(git status:*) - 08
Bash(git symbolic-ref --quiet --short HEAD) - 09
Bash(git symbolic-ref refs/remotes/origin/HEAD) - 10
Bash(git worktree list:*)
FAQ
Что делает скилл branch?
Create a git feature branch named for the current session's work. Use when the user asks to start, create, or cut a branch.
Как установить скилл branch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл branch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…