using-git-worktrees

Create isolated Git worktrees with directory selection and safety verification.

14|5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/cloudbro-kube-ai/k13d --skill using-git-worktrees-cloudbro-kube-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/cloudbro-kube-ai/k13d/tree/main/skills/superpowers/using-git-worktrees
Command: npx skills add https://github.com/cloudbro-kube-ai/k13d --skill using-git-worktrees-cloudbro-kube-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

Core Features & Use Cases

  • Directory selection follows a clear priority: project-local hidden directories first, then user-configured preferences, then prompt-based choices to ensure predictable isolation.
  • Safety verifications ensure the chosen worktree path is ignored by git and won't pollute the main repository.
  • Automatic project-name detection and flexible worktree creation paths for both project-local and global storage, plus automatic setup of project dependencies as needed.

Quick Start

Simply instruct me to set up an isolated git worktree for your current project and I will handle the rest, including directory selection, safety checks, and worktree creation.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I create an isolated git worktree for parallel feature development?

To create an isolated git worktree, the system detects your top-level project, selects a safe directory location, verifies gitignore rules, and initializes the workspace with project tooling for parallel feature development.

What is the best way to isolate feature work in a shared git repository?

Isolating feature work in a shared git repository is best achieved by creating a git worktree in a prioritized directory, ensuring the path is gitignored to prevent accidental commits and repository pollution.

How does git worktree directory selection work to prevent repository pollution?

Git worktree directory selection follows a priority: project-local hidden directories first, then user-configured preferences, then prompt-based choices, verifying gitignore rules to prevent repository pollution.

Can I use git worktrees for experimentation without affecting my current workspace?

Yes, you can use git worktrees for experimentation without affecting your current workspace by creating an isolated worktree path that applies safety verification and automatic project dependency setup.

Why do I need to verify gitignore rules before creating a git worktree?

You need to verify gitignore rules before creating a git worktree to ensure the chosen worktree path is ignored by git, preventing accidental commits and keeping the main repository clean.