tkm:create-worktree

Create isolated git worktrees for feature and fix development in monorepos.

Updated May 13, 2026
One-click install
npx skills add https://github.com/khapn-2933/agentic-coding-hands-on --skill tkm-create-worktree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tkm:create-worktree
Source: https://github.com/khapn-2933/agentic-coding-hands-on/tree/main/.claude/skills/create-worktree
Command: npx skills add https://github.com/khapn-2933/agentic-coding-hands-on --skill tkm-create-worktree

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The Skill enables isolated feature development and debugging, maintaining a pristine main branch, suitable for feature branching and bug fixes in monorepos.

Core Features & Use Cases

  • Isolated Development: Open a parallel workbench for feature and fix development without disturbing the main branch.
  • Automated Branch Creation: Generates a branch name based on the feature description or specified project.
  • Smart Worktree Location: Determines the optimal worktree location, respecting monorepo structure and existing projects.
  • Dependency Installation: Handles dependency installation for various project configurations automatically.
  • Use Case: When working on a complex feature within a monorepo, use this Skill to create a separate branch and worktree, ensuring no conflicts with the main branch.

Quick Start

Use the create-worktree skill with the argument 'add authentication system' or 'project: my-app' to initiate the creation of a worktree.

Frequently Asked Questions about tkm:create-worktree

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

FAQPage Schema
How do I create a git worktree for feature development in a monorepo?

Creating a git worktree for feature development in a monorepo isolates your changes by automatically generating a branch name and setting up a parallel directory. This preserves main branch integrity without disturbing existing projects.

What is the best way to isolate bug fixes without disturbing the main branch?

Isolating bug fixes without disturbing the main branch involves opening a parallel workbench using git worktrees. This approach maintains a pristine main branch while allowing you to debug and develop features independently.

Do I need a specific git version to use worktrees for monorepo branching?

Yes, using worktrees for monorepo branching requires git 2.5 or higher for worktree support. This version prerequisite ensures the underlying version control system can handle multiple working directories linked to a single repository.

How does dependency installation work when adding a new worktree?

Dependency installation during worktree creation handles various project configurations automatically. Once the isolated directory and branch are established, the necessary dependencies are installed to ensure the parallel environment is ready for development.

Can I specify a custom project location when creating a worktree?

Yes, you can specify a custom project location when creating a worktree by using the 'project' argument. The smart location logic respects the monorepo structure and determines the optimal directory placement for your specified project.