원클릭으로
worktree
Create and manage git worktrees for parallel agent sessions
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create and manage git worktrees for parallel agent sessions
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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 |