← ClaudeAtlas

worktree-createlisted

Create git worktrees for a task across all repositories in the project. Use when starting parallel work, creating isolated workspaces for subagents, or branching all repos at once.
nanasess/git-worktree-manager · ★ 2 · Code & Development · score 62
Install: claude install-skill nanasess/git-worktree-manager
# Create worktrees for a task Run the following command from the project root: ```bash worktree create $ARGUMENTS ``` ## What this does 1. Detects git repositories (single repo or multiple sub-repos) 2. Runs `git fetch origin` on each repository 3. Creates a worktree for each repository based on origin/HEAD (default branch) 4. Generates CLAUDE.md with worktree context (task name, working directory, project root) 5. Symlinks non-git items into the task directory (multi-repo only) 6. Copies `mise.toml` / `mise.local.toml` into each worktree (inherits mise version pinning even when gitignored) 7. Executes `.worktreerc` `post_create()` hook if present 8. Auto-installs dependencies based on lock files (unless `--no-install`) ## Worktree layout Worktrees are placed outside the project to avoid polluting code search: ### Multi-repo project ``` ~/git-repos/ ├── my-project/ # Original project (you are here) ├── my-project.worktrees/ # Created by this command │ └── <task-name>/ │ ├── CLAUDE.md # Generated with worktree context │ ├── repo-a/ (branch: <task-name>) │ └── repo-b/ (branch: <task-name>) ``` ### Single-repo project ``` ~/git-repos/ ├── my-project/ # Original project (you are here) ├── my-project.worktrees/ │ └── <task-name>/ # Worktree (branch: <task-name>) │ ├── CLAUDE.md # Generated with worktree context │ └── src/ ``` ## After creation The task directo