create-worktree

Create a ClickHouse git worktree with hardlinked submodules from the main repository.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/tusharg1993/ClickHouse --skill create-worktree-tusharg1993
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-worktree
Source: https://github.com/tusharg1993/ClickHouse/tree/main/.claude/skills/create-worktree
Command: npx skills add https://github.com/tusharg1993/ClickHouse --skill create-worktree-tusharg1993

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a ClickHouse git worktree with submodules hardlinked from the main repo. Use when the user wants to create a new worktree for ClickHouse development.

Core Features & Use Cases

  • Hardlinked submodules from the main repo to give each worktree an independent copy without duplicating objects.
  • Branch-aware worktree creation with optional checkout, enabling quick experimentation.
  • Validation of the main repo state and safe handling of user inputs to prevent errors.

Quick Start

Provide a branch name like feature-xyz to create a new worktree.

Frequently Asked Questions about create-worktree

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

FAQPage Schema
How do I create a ClickHouse git worktree with submodules without duplicating files?

You can create a ClickHouse git worktree with hardlinked submodules from an existing main repository to avoid duplicating objects. This setup gives each worktree an independent copy while saving disk space.

What's the best way to set up an isolated development environment for ClickHouse features?

Setting up an isolated environment for ClickHouse development is best achieved by creating a git worktree. You can create a new branch or checkout an existing one to enable quick experimentation without affecting your main repository.

Do I need an existing main repository to create a hardlinked worktree?

Yes, creating a hardlinked worktree requires an existing main repository with submodules already initialized. The tool validates the main repo state and safely handles inputs to prevent errors during worktree creation.

Why use hardlinked submodules when setting up a git worktree?

Using hardlinked submodules when setting up a git worktree avoids network access by linking local objects. This approach provides an independent copy of submodules for each worktree without duplicating large files on disk.

Can I create a new git branch while generating a ClickHouse worktree?

Yes, branch-aware worktree creation supports both new branch creation and checking out existing branches. You simply provide a branch name like feature-xyz to quickly start testing in a self-contained environment.