AgentPantheon
Using Git Worktrees (Grade A) logo

Using Git Worktrees (Grade A)Security-tested data-ai skill for Claude AI. Grade A. Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktre

(0)
Daniel Nikulshyn리뷰어 Daniel Nikulshyn·업데이트됨 2026년 7월

개요

Use when starting feature work that needs isolation from current workspace or before executing implementation plans. This skill creates isolated git worktrees with smart directory selection and safety verification. Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching. The core principle is systematic directory selection plus safety verification, leading to reliable isolation. The directory selection process follows these steps: 1. Check for existing directories with priority order: hidden ".worktrees" directory, then "worktrees" directory. If found, use that one. 2. Check if a preference for a worktree directory is specified in the "CLAUDE.md" file. 3. If no directory exists and no CLAUDE.md preference is found, ask the user to choose a directory. The safety verification step is critical and involves checking if the chosen directory is ignored by Git. If not ignored, the skill will add the directory to the ".gitignore" file and commit the changes. Creation steps include: 1. Detecting the project name and creating a full path for the worktree. 2. Creating the worktree with a new branch. 3. Running project setup, which auto-detects and runs the appropriate setup commands (e.g., installing dependencies) based on the project type (Node.js, Rust, Python, or Go). 4. Verifying a clean baseline by running tests. If tests fail, report failures and ask whether to proceed or investigate. 5. Reporting the worktree location and its readiness to implement a feature.

주요 기능

  • Isolated workspace creation
  • Smart directory selection
  • Safety verification
  • Automated project setup

가격

모델
Free
카테고리
Skills
평점
아직 리뷰 없음

사용 사례

Isolated Feature Development

Use when starting feature work that needs isolation from current workspace

Implementation Planning

Use before executing implementation plans to ensure a clean baseline

장단점

장점

  • Enables work on multiple branches simultaneously without switching
  • Prevents accidentally committing worktree contents to repository
  • Automates directory selection and safety verification
  • Supports project setup auto-detection and execution

단점

  • May require manual intervention if tests fail during baseline verification
  • Assumes a specific directory structure and gitignore configuration

리뷰

리뷰를 작성하려면 로그인하세요.

아직 리뷰가 없습니다. 첫 번째가 되어보세요!

Q&A

아직 질문이 없습니다 — 첫 번째 질문을 해보세요.

질문하기

Skills 대안