Setup Worktree — Git skill for Claude Code
Create a git worktree for working on a GitHub issue.
How to install Setup Worktree
Installs to ~/.claude/commands/fotoetienne-gru-setup-worktree.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/fotoetienne/gru/HEAD/.claude/commands/setup-worktree.md -o ~/.claude/commands/fotoetienne-gru-setup-worktree.md Restart Claude Code, or start a new session, for it to be picked up.
What Setup Worktree does
description: Create a git worktree for working on a GitHub issue allowed-tools: Bash(gh:*), Bash(git:*), Read, Glob argument-hint: ""
Create a git worktree using Gru's filesystem structure for working on an issue.
**Issue:** $ARGUMENTS
Steps
1. Fetch Issue Details
- Use
gh issue view $ARGUMENTSto get the issue title and number - Extract the issue number for naming the branch and worktree
2. Determine Repository Info
- Get the repository owner and name fr
Alternatives in Git
- Git Worktree Docs Issue: Dependency Installation — GitHub — Community feedback on official docs with full worktree lifecycle walkthrough 81.1k ★
- Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
- Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Work GitHub Issue
Start working on a GitHub issue with full workflow setup
Ticket Loop Kit
Installs an unattended ticket loop into a repository: implements, verifies, and merges GitHub issue tickets on
Setup Environment
Initialize development environment for git worktree
Setup Gwt
Install the gwt (git worktree manager) script
Start Working On Issue New
GitHub Issue Workflow for Issue #$ARGUMENT$
Worktree Add
Add a new git worktree from branch name or issue URL, copy settings, install deps, and open in current IDE
Related Agents
Worktree Agent Data
Implementer agent specialized in data modeling/migrations, working in ITS OWN git worktree. Launched by the or
Gitter
The only agent that writes git — every other agent is read-only. Delegate each worktree setup, commit, merge,
Flowai Autonomous Task
Autonomous end-to-end task executor. Runs the full flowai pipeline without interactive prompts inside an isola