One-click install
npx skills add https://github.com/leing2021/super-pi --skill 07-worktree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 07-worktree
Source: https://github.com/leing2021/super-pi/tree/main/skills/07-worktree
Command: npx skills add https://github.com/leing2021/super-pi --skill 07-worktree

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents risky or parallel feature development from interfering with your main branch or each other by isolating changes in dedicated git worktrees.

Core Features & Use Cases

  • Creates and manages isolated work environments: spins up a new worktree tied to a feature branch so execution happens in a separate directory.
  • Ensures non-destructive, safe operations: detects existing worktrees and reports status instead of duplicating; never forces destructive actions.
  • Supports safe lifecycle completion: guides merge and cleanup with user confirmation and uses documented worktree lifecycle rules.
  • Use Case: Start a large refactor or a parallel feature that could destabilize your main line; run the implementation steps in the worktree, then merge and clean up once verified.

Quick Start

Ask the agent to run 07-worktree to create an isolated worktree for a feature and report the worktree path so subsequent work can execute inside it.

Frequently Asked Questions about 07-worktree

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I isolate risky feature development from my main branch?

Git worktrees isolate risky feature development by creating a dedicated directory tied to a feature branch, keeping your main line stable while execution happens separately.

How do I manage multiple parallel feature branches without conflicts?

Managing parallel feature branches without conflicts involves setting up isolated git worktrees for each task, preventing nested setups and allowing independent execution in separate directories before merging.

When should I use git worktree for branch isolation?

Use git worktree for branch isolation when starting large refactors or parallel features that could destabilize your main line, requiring execution in a dedicated directory with clear lifecycle control.

How do I safely merge and clean up a git worktree after feature work?

Safely merge and clean up a git worktree by following documented lifecycle rules that guide the merge process and require explicit user confirmation before removing the isolated work directory.

What happens if I try to create a worktree for a branch that already has one?

When a worktree already exists for a branch, the system detects it and reports the current status without duplicating the setup, ensuring non-destructive operations across your repository.

Can I run large refactors in a dedicated directory without affecting the main repository?

Running large refactors in a dedicated directory is supported by spinning up a new worktree tied to a feature branch, so execution happens entirely outside your main repository working directory.