Manage git worktrees for the current repository. Use when asked to create a worktree, set up parallel development, work on multiple branches simultaneously, or manage existing worktrees. Triggers on phrases like "create worktree", "new worktree", "parallel branch", "list worktrees", or "remove worktree".
Enables parallel git development by creating and managing multiple working directories on different branches. Triggers on phrases like "create worktree", "parallel branch", or "list worktrees" to set up isolated workspaces without cloning the repository again.
/plugin marketplace add franchiseai/claude-code-plugins/plugin install worktree@fsaiThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Manage git worktrees for parallel development.
Git worktrees let you have multiple working directories from the same repo, each on a different branch. This enables running parallel dev servers, working on multiple features, or testing changes side-by-side.
All commands should be run from the main repository directory or use the repo path.
git worktree list
# Creates a new branch from the base branch and checks it out in the new worktree
git worktree add -b <new-branch-name> <path> <base-branch>
# Example: Create ../myrepo-feature on new branch "feature-xyz" based on master
git worktree add -b feature-xyz ../myrepo-feature master
git worktree add <path> <existing-branch>
# Example
git worktree add ../myrepo-hotfix hotfix-branch
git worktree add --detach <path> <commit-or-branch>
git worktree remove <path>
git worktree prune
Creating a worktree:
../<repo-name>-<identifier> (sibling to main repo)After creation, inform user:
Worktree created at <path> on branch <branch>
Next steps:
cd <path>
<package-manager> install
Listing worktrees:
Removing worktrees:
yarn install, npm install, etc.).git directory (saves disk space)--detach flag to create a worktree at a specific commit without a branch../repo-feature)This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.