SkillsReviewed · Jesse Vincent (obra)

Using Git Worktrees

Using Git Worktrees is a skill for AI-assisted developers who want separate feature workspaces, but its workflow can install dependencies and create commits. It checks for existing isolation, prefers platform-native workspace tools and provides a manual Git fallback with baseline testing.

Researched 12 Nov 2026

In short.

Using Git Worktrees is an instruction skill for developers using AI coding agents to isolate feature work, but following it can change repository configuration and run project setup commands. It distinguishes linked worktrees from ordinary checkouts and submodules, prefers native platform tools, and documents a manual fallback. Its practical strengths are explicit workspace choices and baseline checks. Its sample ignore check and automatic setup commands need project-specific review. Nothing was executed, so compatibility and operational reliability remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete skills/using-git-worktrees/SKILL.md at revision 22f0b463e7a5e579904dd6211a520321035526f7 and the related repository LICENSE notice. Linked pages, other folders and the broader Superpowers system are excluded. No commands, dependency installation, native integration, worktree creation or tests were executed. Runtime behavior, compatibility, performance and total cost remain unassessed or unknown.

The overview

Identity

Using Git Worktrees is the skills/using-git-worktrees/SKILL.md instruction file in obra/superpowers. Its stated purpose is to prepare an isolated workspace before feature work or implementation-plan execution. It supplies agent instructions and shell examples rather than a standalone workspace-management application.

The original resource address is [https://github.com/obra/superpowers/tree/main/skills/using-git-worktrees]. The supplied source is pinned to revision 22f0b463e7a5e579904dd6211a520321035526f7.

Assessment

The written procedure offers useful structure for an agent that might otherwise create duplicate workspaces or bypass platform-managed tools. It checks existing isolation first, includes a submodule guard, respects declared workspace preferences and requires a baseline test step.

The document is detailed enough to guide workspace preparation, but correct results depend on the host agent, available tools and repository conventions. No observed runs or measured improvements are supplied.

Users

The strongest fit is developers delegating feature work to an agent with shell or native workspace tools. The procedure also addresses environments that already place the agent in a linked worktree.

Beginners will need enough Git knowledge to understand branches, detached HEAD, ignored directories and commits. Experienced developers can use the decision sequence while reviewing its setup commands against their project's actual tooling.

Capabilities

The instructions cover detecting linked worktrees, distinguishing submodules, reporting branch or detached-HEAD state, requesting consent when no workspace preference exists, and choosing native workspace tools before manual Git commands.

The manual path covers directory selection, ignore checking, branch and worktree creation, and a permission-denial fallback. Later steps prescribe dependency setup, baseline tests and a readiness report. These are documented behaviors, not demonstrated capabilities.

Using it

Requirements

Following the shell examples requires a Git checkout, Git commands and a shell supporting the shown syntax. The manual fallback needs permission to create directories and branches; its unignored-directory path also calls for editing .gitignore and making a commit.

Project setup may require npm, Cargo, pip, Poetry or Go, depending on which manifest files exist. Baseline testing requires an appropriate project test command. Supported tool versions, host-agent compatibility and native workspace API requirements are not specified.

Mechanism

The detection examples resolve paths returned by git rev-parse --git-dir and --git-common-dir. Different paths indicate a linked worktree only after git rev-parse --show-superproject-working-tree rules out a submodule. An existing linked worktree proceeds directly to project setup.

For a normal checkout, the instructions honor an existing preference or request consent. If a new workspace is wanted, native tools take priority. The Git fallback chooses an explicit directory preference first, then an existing .worktrees or worktrees directory, and otherwise defaults to .worktrees at the project root.

Setup

The supplied file does not explain how to install or register the skill with a particular agent. Its setup instructions concern the project workspace after isolation has been detected, created or declined.

The examples invoke npm install for package.json, cargo build for Cargo.toml, pip install -r requirements.txt for requirements.txt, poetry install for pyproject.toml and go mod download for go.mod. These are separate conditions, so multiple matching manifests can trigger multiple commands. Baseline tests follow; failures are to be reported before asking whether to proceed or investigate.

Example

For a Node.js feature in a normal checkout, with consent and no native workspace tool, the documented fallback could create .worktrees/example-feature using git worktree add .worktrees/example-feature -b example-feature. This assumes no overriding directory preference or existing alternative. The procedure first checks ignore status and calls for a .gitignore commit if needed, then enters the workspace, runs npm install and checks npm test.

If the agent is already in a linked worktree, creation is skipped. This example illustrates the supplied instructions; it is not an observed execution.

Assessment & evidence

Limitations

The sample ignore check joins checks for .worktrees and worktrees with an OR. By inspection, an ignored alternative directory could make that check succeed even when the chosen directory is not ignored. The check therefore does not reliably establish the stated requirement for the actual destination.

The setup examples assume Poetry whenever pyproject.toml exists, without establishing that the project uses Poetry. Native-tool discovery and invocation are described conceptually, without a concrete host integration. If worktree creation is blocked by permissions, the documented fallback runs setup and baseline tests in the current checkout.

These are findings from the written instructions. Their behavior in particular repositories, shells and agent platforms was not tested.

Reasoning

The sequence has a clear rationale: detect isolation before creating more state, let platform tools manage workspaces when available, and establish test results before feature changes. These choices could reduce duplicate workspaces and make later failures easier to interpret, but those benefits are inferred from the procedure rather than measured.

The key adoption tradeoff is convenience versus project-specific control. Automatic dependency commands and an instructed configuration commit make this more consequential than a read-only Git checklist.

Alternatives

The file itself describes the relevant alternatives: reuse an existing linked worktree, create a workspace through native platform tools, or use the manual Git fallback. It prefers native tools because they manage placement, branching and cleanup.

It also permits working in the current checkout when the user declines a worktree or creation encounters a permission denial. No named competing skills or comparative results are supplied.

Evidence

The source consists of the complete skill file and the related repository LICENSE at revision 22f0b463e7a5e579904dd6211a520321035526f7. The pinned skill is available at [https://raw.githubusercontent.com/obra/superpowers/22f0b463e7a5e579904dd6211a520321035526f7/skills/using-git-worktrees/SKILL.md], and the pinned licence at [https://raw.githubusercontent.com/obra/superpowers/22f0b463e7a5e579904dd6211a520321035526f7/LICENSE].

The supplied SHA-256 is 8cfb86f121269e8f7f12361e6795c4f6738828340e28964c9229d365666c9edd for the skill and a37e0e9697144819e1d965176ac4ae5bc3fa02d11e7812036bbcadf6dafe2400 for LICENSE. The evidence establishes the written procedure and licence terms; it contains no execution results.

Access & freshness

Costs

The evidence provides no pricing, model-usage figures, execution-time estimates or storage estimates. Charges associated with a host agent, platform or project setup are unknown, so total cost cannot be estimated from these files.

Rights

The supplied repository licence is MIT, with copyright attributed to Jesse Vincent in 2025. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notice accompany copies or substantial portions.

The licence supplies the software without warranty and limits author liability. Redistribution of the captured skill should retain the supplied LICENSE notice.

Freshness

The supplied capture timestamp is 2026-11-12T15:00:25.353Z. This identifies when the pinned source was captured, not when the skill was last changed.

No release number, modification history or comparison with the current main branch is supplied. Whether the live folder now differs from the captured revision is unknown.

Actions

Before adoption, establish how the intended agent loads the skill and which native workspace tools it can use. Review the dependency and test commands against the repository's own instructions, including whether Poetry is appropriate.

For the manual fallback, make the ignore check target the actual chosen directory. Review the prescribed .gitignore commit and the possibility of setup running in the original checkout after a permission denial. Any evaluation should record actual workspace paths, branch state and baseline results; none are available here.

Evidence for this report

LICENSEnotice · checked 2026-11-12
skills/using-git-worktrees/SKILL.mdselected · checked 2026-11-12