A Claude Code slash command for creating git worktrees for GitHub issues.
# Clone to your preferred location
git clone git@github.com:claude-commands/command-start-issue.git <clone-path>/command-start-issue
# Symlink (use full path to cloned repo)
ln -s <clone-path>/command-start-issue/start-issue.md ~/.claude/commands/start-issue.md/start-issue 123
Where 123 is the GitHub issue number.
Set the WORKTREE_PREFIX environment variable to customize the worktree naming:
export WORKTREE_PREFIX="my-project"This will create worktrees named like: my-project-issue-123-feature-title
Default prefix is project.
- Fetches issue details from GitHub
- Validates the issue exists
- Creates a worktree directory named
{prefix}-issue-{number}-{title} - Creates a feature branch from
dev - Copies your
.claudedirectory to the new worktree - Displays the path to switch to
ghCLI installed and authenticated- Git repository with GitHub remote
- A
devbranch to base worktrees from
Use with /prune-worktree to clean up completed worktrees.
cd <clone-path>/command-start-issue && git pull