Skip to content

Instantly share code, notes, and snippets.

View DavidSeptimus's full-sized avatar

David Septimus DavidSeptimus

  • Tachi Labs
  • Denver, CO
View GitHub Profile
@DavidSeptimus
DavidSeptimus / WorktreeSKILL.md
Last active April 23, 2026 17:46
Git worktree workflow for terminal-based agent sessions with JetBrains IntelliJ as MCP backend. Covers opening each worktree in the existing IntelliJ process (so the agent's MCP tools reach it) and cleanly closing it before git worktree remove.
name worktree
description Create, manage, and clean up git worktrees for feature branches. Use when starting new work that requires a branch (features, fixes, refactors) or when cleaning up after a PR is merged.

Git Worktree Management

Worktrees isolate branch work in .worktrees/ subdirectories within the repo. Every non-trivial change uses a worktree + branch. Trivial changes (single-line typos, comment fixes) may go directly to main.

Creating a Worktree