worktree
Create a git worktree and prime the development environment for a new feature or refactor. Use when starting isolated feature work or needing a separate…
от incubateur-ademe★ 45 звёзд на GitHub
Установить worktree в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Create Git Worktree
Create a new git worktree for isolated feature development.
Instructions
- Parse the branch name from arguments
- Run the worktree creation script
- Report the result and next steps
Execution
The script always creates a new branch from current HEAD, places the worktree under trees/<name> (gitignored, so it never pollutes git status/diff/search), and primes it (pnpm install, shared build, env files):
scripts/create-worktree.sh <branch-name>
Branch Naming Convention
If the user provides just a feature name without a prefix, add the appropriate prefix:
- Features:
feat/<name>(default) - Refactors:
refactor/<name>(if user mentions "refactor") - Fixes:
fix/<name>(if user mentions "fix" or "bug") - Chores:
chore/<name>(if user mentions "chore")
Examples
| User Input | Branch Name |
|---|---|
/worktree new-feature |
feat/new-feature |
/worktree refactor auth |
refactor/auth |
/worktree fix/login-bug |
fix/login-bug (keep as-is) |
/worktree feat/my-thing |
feat/my-thing (keep as-is) |
After Execution
Tell the user:
- The worktree location
- How to navigate to it:
cd <worktree-path> - Remind them to start a new agent session (Claude Code or Codex) in that directory for isolated work
Arguments
$ARGUMENTS
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash
FAQ
Что делает скилл worktree?
Create a git worktree and prime the development environment for a new feature or refactor. Use when starting isolated feature work or needing a separate working copy.
Как установить скилл worktree?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл worktree запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…