work-in-worktree

Create a git worktree and switch the current session into it.

8|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/sasamuku/dotfiles --skill work-in-worktree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: work-in-worktree
Source: https://github.com/sasamuku/dotfiles/tree/main/.claude/skills/work-in-worktree
Command: npx skills add https://github.com/sasamuku/dotfiles --skill work-in-worktree

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows users to create a new git worktree and immediately move the current session into it, enabling direct work without sub-agents. It's ideal for tasks that require an isolated environment without interference from sub-agents.

Core Features & Use Cases

  • Isolated Worktree Creation: Create a new git worktree for tasks that should not affect the main branch.
  • Direct Session Movement: Move the current session into the newly created worktree.
  • Use Case: When you want to work on a feature branch without affecting the main branch, or when you need an isolated environment for an experiment.

Quick Start

Create a worktree for your 'feature-x' branch and start working on it directly: /work-in-worktree "feature-x"

Frequently Asked Questions about work-in-worktree

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

FAQPage Schema
How do I create a git worktree and work in it directly without affecting the main branch?

To create a git worktree and work directly, invoke the command with your branch name to initiate worktree creation and instantly switch the current session into it, providing an isolated environment for development.

What is the best way to isolate feature branch development from my main repository?

The best way to isolate feature development is using a git worktree, which creates a separate working directory linked to your repository, allowing direct session work without interference from sub-agents or the main branch.

Can I move my current coding session into a new worktree for isolated experiments?

Yes, you can move your current session into a new worktree by creating the worktree for your specified branch, which transitions your active environment directly into the isolated working directory for immediate development.

When do I need a git worktree for my development workflow?

You need a git worktree when you want to work on a feature branch without affecting the main branch, or when you need an isolated environment for an experiment that prevents interference from sub-agents.

Does git worktree functionality require sub-agents to manage the isolated environment?

No, git worktree functionality does not require sub-agents to manage the isolated environment; the session transitions directly into the new worktree, enabling you to handle code development without sub-agent interference.

Why should I use a worktree instead of standard branching for isolated development?

You should use a worktree instead of standard branching when you need a separate physical directory for your branch, allowing the current session to work directly in an isolated environment without sub-agents.