Command Palette

Search for a command to run...

Назад к скиллам
скилл № 97927

worktree-create

Create a sibling Git worktree on a feature branch for isolated project work. Use when starting feature planning or implementation off the main checkout, or…

БесплатноБез исполняемых скриптов
Integralistот Integralist★ 31 звезда на GitHub

Установить worktree-create в Claude Code и Claude Desktop

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

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

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

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

Create a sibling Git worktree ../<repo>-<slug>/ on <git-username>/<slug> so the main checkout stays clean on its default branch.

  1. Resolve repo, base, and current checkout. Use --repo=<path> if given (otherwise cwd), passing -C <repo-path> to all git commands; if not inside a Git repository, ask for the repository path. Find the main checkout path and repo directory name <repo> (git worktree list --porcelain first entry), plus <default-branch> (git symbolic-ref refs/remotes/origin/HEAD or main/master). If already inside a linked worktree rather than the main checkout, report its path and branch and ask whether to work here or create a sibling worktree next to the main checkout. Otherwise base the new worktree on <default-branch> (or ask if currently on a non-default branch with unmerged work).

  2. Name the branch and worktree. Lowercase git config user.name and collapse non-alphanumeric runs to single hyphens (First Last → first-last). Derive a short kebab-case <slug> without a Conventional Commit prefix from --slug=<slug>, steering, or the session task (ask if unclear). Set:

    • Branch: <git-username>/<slug>
    • Path: <parent-of-main-checkout>/<repo>-<slug>

    If ../<repo>-<slug> or <git-username>/<slug> already exists, check git worktree list and offer to reuse the existing worktree or pick a new slug.

  3. Create and hand off. Run git -C <main-checkout> worktree add -b <git-username>/<slug> <worktree-path> <base>. Report the absolute <worktree-path> and branch name, and run all subsequent file edits and commands inside <worktree-path> (or ask if the user wants to reopen the session there).

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

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

  1. 01Bash(git branch --show-current)
  2. 02Bash(git branch --list:*)
  3. 03Bash(git config --get:*)
  4. 04Bash(git config user.name)
  5. 05Bash(git rev-parse:*)
  6. 06Bash(git status:*)
  7. 07Bash(git symbolic-ref --quiet --short HEAD)
  8. 08Bash(git symbolic-ref refs/remotes/origin/HEAD)
  9. 09Bash(git worktree list:*)

FAQ

Что делает скилл worktree-create?

Create a sibling Git worktree on a feature branch for isolated project work. Use when starting feature planning or implementation off the main checkout, or when the user asks to create or open a worktree.

Как установить скилл worktree-create?

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

Скилл worktree-create запускает скрипты?

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

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

Сравнить worktree-create с