Skip to main content

Using Git Worktrees

Skill Verified Active
Part of:Superpowers

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

Purpose

Ensure feature work is conducted in an isolated and clean workspace, protecting the main development branch and ensuring a reliable starting point for new tasks.

Features

  • Detect existing isolation before creating new workspaces
  • Prioritize native worktree tools over manual Git commands
  • Implement a robust fallback to `git worktree add` with safety checks
  • Automate project setup for common languages (Node.js, Rust, Python, Go)
  • Verify a clean test baseline after workspace setup

Use Cases

  • Starting new feature development that requires a clean, isolated environment.
  • Before executing implementation plans to ensure a stable and predictable workspace.
  • When needing to switch between multiple isolated development tasks without impacting the main branch.
  • Ensuring a reliable and reproducible starting state for development tasks.

Non-Goals

  • Managing code reviews or pull requests.
  • Directly writing or debugging code within the workspace.
  • Handling project-specific build or deployment processes beyond initial setup.
  • Interacting with remote Git repositories beyond worktree creation and status checks.

Installation

First, add the marketplace

/plugin marketplace add obra/superpowers
/plugin install superpowers@superpowers-dev

Quality Score

Verified
100 /100
Analyzed about 14 hours ago

Trust Signals

Last commit1 day ago
Stars189.3k
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.