using-git-worktrees · Isolated Git Workspaces

using-git-worktrees

using-git-worktrees sets up an isolated workspace before feature work: it first detects whether you're already isolated (telling worktrees apart from submodules) and skips creation if so; prefers the platform's native worktree tool, falling back to manual git worktree when none exists.

Directory choice follows a priority order (explicit preference → project-local .worktrees/ → default .worktrees/), and project-local directories are verified git-ignored before creation. Dependencies install automatically by language, then baseline tests confirm a clean starting point.

Example invocation: "Set up an isolated worktree — I'm starting the login feature."

Full brief

Positioning

using-git-worktrees is the environment isolator before feature work: it makes sure implementation happens in an isolated workspace so the current branch stays clean. It sets up the environment and verifies the baseline — it writes no product code.

Core capabilities

Workflow

  1. Detect existing isolation (Step 0): already in a linked worktree → skip creation
  2. Create the workspace: consent (unless a preference is declared) → native tool first → git fallback (with .gitignore verification)
  3. Project setup: auto dependency install
  4. Baseline tests: Worktree ready at <path> / Tests passing (<N> tests, 0 failures)

Inputs & outputs

Input Notes
Feature / branch name Names the workspace and branch
Workspace directory preference Optional; auto-selected by priority otherwise

Output: isolated workspace path + baseline test verdict (test and failure counts) + ready report.

Boundaries with adjacent skills

Fit

Before you start


using-git-worktrees is part of the Aiglade Skill library. Invoke it from the Aiglade chat box in plain language.

← All 155 skills