b1-add-worktree

Create a git worktree with a new branch, symlinks, and development port.

6|Updated Jun 14, 2026
One-click install
npx skills add https://github.com/jporre/sveltekit-verticalslices --skill b1-add-worktree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: b1-add-worktree
Source: https://github.com/jporre/sveltekit-verticalslices/tree/main/skills/b1-add-worktree
Command: npx skills add https://github.com/jporre/sveltekit-verticalslices --skill b1-add-worktree

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, bash, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for an isolated git worktree to prevent contamination of the main repository during feature development.

Core Features & Use Cases

  • Create Isolated Worktree: Generates an isolated git worktree for a feature branch to ensure that development activities do not interfere with the main repository.
  • Automated Setup: Automates the process of setting up a new worktree, including creating a new branch, creating symlinks, and allocating a development port.
  • Use Case: For developers working on complex features, this skill ensures that changes are contained and that the main repository remains clean and unaffected.

Quick Start

Use the b1-add-worktree skill to create a new worktree for your feature branch 'feat/new-branch'.

Frequently Asked Questions about b1-add-worktree

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

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

Creating an isolated git worktree involves generating a new feature branch, symlinking shared resources, and allocating a development port. This ensures development activities do not interfere with the main repository.

Why use a git worktree instead of cloning a repository for a new feature branch?

Using a git worktree provides an isolated environment for complex features without the overhead of cloning. It allows you to work on multiple branches simultaneously while keeping the main repository clean and unaffected by uncommitted changes.

Do I need bash and git installed to automate worktree setup?

Yes, you need both git and bash installed to automate worktree setup. The automation scripts rely on these dependencies along with various system utilities to handle branch creation, symlinking, and environment configuration.

What is the best way to keep shared resources available in a new git worktree?

The best way to keep shared resources available in a new git worktree is by symlinking them during the setup process. This ensures your isolated environment has access to necessary files without duplicating them across branches.

Can I allocate a specific development port when creating a git worktree?

Yes, you can allocate a development port when creating a git worktree. The automated setup process includes port allocation to ensure your isolated feature branch environment runs without network conflicts.

When should I not use an isolated git worktree for development?

You should avoid using an isolated git worktree if your project lacks shared resources that need symlinking or if your environment cannot support bash scripting. It is most effective for complex features where preventing main repository contamination is critical.