implement-worktree

Execute an implementation plan inside an isolated git worktree.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/Trecek/useful-claude-skills --skill implement-worktree-trecek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-worktree
Source: https://github.com/Trecek/useful-claude-skills/tree/main/.claude/skills/implement-worktree
Command: npx skills add https://github.com/Trecek/useful-claude-skills --skill implement-worktree-trecek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables executing a provided plan inside an isolated git worktree, preventing changes to the main working directory and enabling safe, phased implementation.

Core Features & Use Cases

  • Create a dedicated worktree from the current branch.
  • Explore affected systems with subagents before implementing.
  • Run per-phase verification and commit incremental changes to support squash-and-merge workflows.

Quick Start

Create a new worktree and begin implementing the provided plan phase by phase.

Frequently Asked Questions about implement-worktree

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

FAQPage Schema
How do I execute an implementation plan in an isolated git worktree?

To execute an implementation plan in an isolated git worktree, you create a dedicated worktree from your current branch. This prevents changes to the main working directory while enabling safe, phased implementation with per-phase verification.

What is the best way to validate a plan before modifying my main git repository?

Validating a plan before modifying your main repository involves running a dry-walkthrough inside an isolated git worktree. This mechanism allows you to explore affected systems with subagents and apply strict prerequisites before actual implementation begins.

How do I set up a phased workflow with per-phase tests in a git worktree?

Setting up a phased workflow in a git worktree requires committing incremental changes after running per-phase verification tests. This approach supports squash-and-merge workflows by keeping your implementation history clean and isolated.

Does using a git worktree for plan implementation support squash-friendly rebase workflows?

Yes, using a git worktree for plan implementation directly supports squash-friendly rebase workflows. It commits incremental changes per phase, ensuring your isolated branch is prepared for a clean squash and merge upon completion.

Can I explore affected code systems with subagents before implementing a plan?

You can explore affected systems with subagents before implementing a plan by using an isolated worktree environment. This ensures your exploration and validation phases do not alter the main working directory during dry-walkthroughs.

When do I need an isolated git worktree for automation and verification?

You need an isolated git worktree for automation when a plan must be explored, validated, and implemented in phases without altering the main working directory. This is required for running strict prerequisites and per-phase tests safely.