worktree

Creates and removes isolated git worktrees for feature development in monorepos.

1|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Thanh-apero/apero-kit-cli --skill worktree-thanh-apero
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/Thanh-apero/apero-kit-cli/tree/main/templates/skills/worktree
Command: npx skills add https://github.com/Thanh-apero/apero-kit-cli --skill worktree-thanh-apero

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires npm, yarn, pnpm, poetry, pip, cargo, go, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines monorepo development by creating isolated worktrees for parallel feature development, reducing merge conflicts and improving developer workflow efficiency.

Core Features & Use Cases

  • Isolated Development: Create worktrees that encapsulate feature branches, enabling parallel development without interference.
  • Automated Branch Management: Automates branch creation based on user input and feature description, using heuristics to infer branch prefix.
  • Dependency Installation: Handles dependency installation for various package managers like npm, pnpm, yarn, poetry, etc.
  • Use Case: When developing a new feature in a monorepo, use this Skill to create a dedicated worktree, ensuring that your changes are isolated from the main codebase until they are ready for integration.

Quick Start

Use the worktree skill to create a worktree for your feature 'login-system'.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I create isolated git worktrees for parallel feature development in a monorepo?

To create isolated git worktrees in a monorepo, use this Skill to automate branch creation, dependency installation, and environment template copying based on your feature description and project context.

What package managers are supported for dependency installation in worktrees?

Dependency installation in worktrees supports npm, yarn, pnpm, poetry, pip, cargo, and go, automatically resolving dependencies for your specific package manager during worktree creation.

Does git worktree support require a specific version to manage parallel branches?

Git worktree support requires git version 2.5 or higher to manage parallel branches, ensuring your local repository has the necessary worktree functionality for isolated feature development.

What is the best way to reduce merge conflicts when developing multiple features simultaneously?

The best way to reduce merge conflicts during simultaneous feature development is using isolated git worktrees, which encapsulate separate feature branches to prevent interference until changes are ready for integration.

How does automated branch management work when setting up a new worktree?

Automated branch management uses heuristics to infer branch prefixes from your input and feature description, streamlining worktree setup by automatically creating appropriately named branches for your monorepo development.

Can I use this worktree Skill to copy environment templates into new feature branches?

Yes, this worktree Skill handles environment template copying during creation, ensuring your isolated feature branch has the necessary configuration files and setup from the start of development.