create-worktree

Create a detached git worktree from a selected base branch.

3|2|Updated Sep 25, 2025
One-click install
npx skills add https://github.com/oci-ai-incubations/ai-accelerator-starter-packs --skill create-worktree-oci-ai-incubations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-worktree
Source: https://github.com/oci-ai-incubations/ai-accelerator-starter-packs/tree/main/.claude/skills/create-worktree
Command: npx skills add https://github.com/oci-ai-incubations/ai-accelerator-starter-packs --skill create-worktree-oci-ai-incubations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use isolated git worktrees to enable testing, parallel work, or deployment isolation without modifying the main repository.

Core Features & Use Cases

  • Detached worktree creation to run tasks in isolation from the current checkout.
  • Flexible base selection (current branch or origin/main) for safe testing and experimentation.
  • Verification steps and automatic directory switch into the new worktree to streamline workflows.

Quick Start

Create a detached git worktree from the current branch or origin/main and change into the new worktree to begin testing.

Frequently Asked Questions about create-worktree

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

FAQPage Schema
How do I create an isolated git workspace for testing?

Create an isolated git workspace by generating a detached worktree from your current branch or origin/main, allowing you to run tests and experiments without modifying the main repository checkout.

What is a detached git worktree used for?

A detached git worktree provides a clean, isolated workspace derived from a branch for parallel work, CI testing, or deployment isolation without affecting the main repository's current state.

How do I set up a git worktree from origin/main?

To set up a git worktree from origin/main, select origin/main as your base during creation, and the workspace will automatically switch into the new detached worktree directory after verifying its structure.

Can I run parallel git branches without switching directories?

Yes, you can run parallel work by creating a detached git worktree, which provides a separate directory for testing or experimentation while keeping your main repository checkout completely untouched.

Does creating a worktree affect my current git branch?

Creating a detached worktree does not affect your current git branch, as it builds an isolated workspace using the --detach flag to ensure safe testing and deployment without modifying the main checkout.

When should I use a detached worktree instead of a new branch?

Use a detached worktree for temporary testing, CI runs, or safe experimentation when you need an isolated workspace from the current branch or origin/main without creating permanent branch history.