con un clic
worktree
Create and manage git worktrees for parallel agent sessions
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Create and manage git worktrees for parallel agent sessions
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Generate C4 architecture diagrams from system notes
Create and edit Obsidian Canvas files for architecture visualization
Visualize system dependencies and relationships
Analyse architecture diagrams and flowcharts
Generate architecture diagrams using Python diagrams library
Batch populate summary fields using content analysis
| name | worktree |
| description | Create and manage git worktrees for parallel agent sessions |
| model | opus |
Manage git worktrees for parallel Claude Code sessions and subagent dispatch.
| Command | Usage | Purpose |
|---|---|---|
/worktree create <slug> | Create a new worktree | Isolated workspace for parallel work |
/worktree list | List active worktrees | See what's running |
/worktree merge <slug> | Merge and clean up | Bring work back to main |
/worktree cleanup <slug> | Remove without merging | Abandon a worktree |
All commands delegate to .claude/scripts/worktree-manager.sh:
.claude/scripts/worktree-manager.sh <command> [slug]
IMPORTANT: The script operates on the vault root. Always run from the vault directory. Use dangerouslyDisableSandbox: true because worktrees are created outside the vault directory (sibling path).
meeting-notes-batch, architecture-reviewworktree/<slug>../<vault>-worktrees/<slug>/After creating a worktree, dispatch subagents with the worktree path as their working directory:
1. Create worktree: /worktree create meeting-notes-batch
2. Note the path from output (e.g. /Users/.../BA-DavidOliver-ObsidianVault-worktrees/meeting-notes-batch)
3. Dispatch subagent with Task tool, including in the prompt:
"Work in /Users/.../BA-DavidOliver-ObsidianVault-worktrees/meeting-notes-batch"
4. When subagent completes: /worktree merge meeting-notes-batch
For separate Claude Code terminals working in parallel:
/worktree create feature-alpha → opens terminal in worktree path/worktree create feature-beta → opens terminal in worktree path/worktree merge feature-alpha (from the main vault session)worktree/<slug> — visually distinct in git log--no-ff for clean merge commits.claude/ and .mcp.json are copied to each worktree.obsidian/ — worktrees are agent workspaces, not Obsidian vaults../<vault>-worktrees/<slug>/ (outside vault, invisible to Obsidian)| Issue | Fix |
|---|---|
| "slug required" | Provide a slug: /worktree create my-task |
| Merge conflicts | Resolve manually in main, then git worktree remove |
| Sandbox blocks worktree creation | Use dangerouslyDisableSandbox: true |
| Worktree already exists | Idempotent — reuses existing worktree |