worktree

Create and manage isolated git-worktrees with descriptive metadata.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/vitaliytv/7n --skill worktree-vitaliytv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/vitaliytv/7n/tree/main/.cursor/skills/n-worktree
Command: npx skills add https://github.com/vitaliytv/7n --skill worktree-vitaliytv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the friction of managing multiple concurrent tasks in a single repository by providing a streamlined way to create and track isolated git-worktrees.

Core Features & Use Cases

  • Isolated Workspaces: Automatically creates and manages git-worktrees in a dedicated .worktrees directory.
  • Inventory Tracking: Maintains an inventory file alongside each worktree to document the purpose of the branch.
  • Use Case: Use this when you need to work on a new feature or bug fix without stashing your current changes or switching branches in your primary workspace.

Quick Start

Use the worktree skill to add a new isolated workspace for the branch feat/new-feature with the description implementing the new feature.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I manage isolated git worktrees for parallel development without stashing changes?

The worktree skill maps git branches to dedicated subdirectories, enabling parallel development without stashing changes or switching branches in your primary workspace. It automates directory setup and tracks workspace metadata.

Can I track the purpose of each git worktree branch automatically?

Yes, the skill maintains an inventory file alongside each worktree in a dedicated `.worktrees` directory to document the descriptive metadata and purpose of the active branch.

Do I need the n-cursor CLI tool to automate git worktree creation?

Yes, automating git worktree creation requires the n-cursor CLI tool. The skill uses n-cursor alongside native git-worktree functionality to automate directory setup, branch mapping, and cleanup tasks for isolated workspaces.

What is the best way to work on a new feature branch without disrupting my current git repository state?

The best way is creating an isolated git workspace. This approach maps the new branch to a separate subdirectory while preserving your primary workspace's current state and avoiding the need to stash uncommitted changes.

Does this skill handle cleanup and lifecycle management for isolated git workspaces?

Yes, the skill handles cleanup and lifecycle management for isolated git workspaces. It facilitates the entire lifecycle of git-worktrees, automating both initial directory setup and subsequent cleanup tasks when workspaces are no longer needed.