harness:using-git-worktrees
CommunityIsolate feature work safely with worktrees.
Software Engineering#automation#git#isolation#worktree#branching strategy#test baseline#sandbox fallback
Authorhuangbaixun
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents risky cross-contamination between your current workspace and new feature work by ensuring changes happen in an isolated Git environment.
Core Features & Use Cases
- Isolated workspace detection: Detects whether you are already inside a linked worktree or a submodule and avoids creating nested worktrees unnecessarily.
- Preference-aware setup: Asks for consent when you have not declared a worktree preference, then honors existing guidance if already provided.
- Robust creation and safety checks: Prefers native worktree tools when available, otherwise falls back to
git worktree addwith ignored-directory verification for project-local paths, then runs setup and a clean baseline test pass. - Use case: Starting a feature that touches many files (e.g., implementing F002) without risking your main branch or your ongoing edits.
Quick Start
Ask the AI: "Set up an isolated worktree for feature F002 and verify the baseline tests pass before I start implementing."
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: harness:using-git-worktrees Download link: https://github.com/huangbaixun/harness-engineering/archive/main.zip#harness-using-git-worktrees Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.