Command Palette

Search for a command to run...

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

worktree

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

Create a git worktree in a peer directory using the plugin worktree script. Use when the user asks for a new worktree or a branch checked out beside the repo.

motlinот motlin★ 20 звёзд на GitHub

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

Worktree

Resolve <plugin-root> before running plugin scripts:

  • In Claude Code, use ${CLAUDE_PLUGIN_ROOT}.
  • In Codex, use the plugin root that contains this skills/worktree/SKILL.md file.

Create the Worktree

Use the user's text as the branch name if it is already kebab-case (e.g., auth-feature); otherwise derive a short kebab-case name from it. From the repository root, run:

<plugin-root>/scripts/worktree.sh <branch-name>

On failure, stop and summarize the error. On success, report the worktree path.

Opening a Terminal Tab

Open a terminal tab in the worktree only if the user explicitly asks.

In iTerm:

osascript -e 'tell application "iTerm"
    tell current window
        create tab with default profile
        tell current tab
            tell current session
                write text "cd <worktree-absolute-path>"
            end tell
        end tell
    end tell
end tell'

In xfce4-terminal:

xfce4-terminal --tab --working-directory="<worktree-absolute-path>" -x bash -c "cd <worktree-absolute-path>; exec bash"

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

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

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

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

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

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

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

FAQ

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

Create a git worktree in a peer directory using the plugin worktree script. Use when the user asks for a new worktree or a branch checked out beside the repo.

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

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

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

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

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

Сравнить worktree с