using-git-worktrees
기능 개발을 위한 격리된 git 워크스페이스 생성
또한 다음에서 사용할 수 있습니다: Cycleaddict,Cygnusfear,Doyajin174,ZhanlinCui,davila7,DYAI2025,CodingCossack,obra
개발자는 여러 브랜치에서 작업할 때 컨텍스트 전환에 어려움을 겪습니다. 이 스킬은 격리된 git worktree 를 생성하여 현재 워크스페이스 상태를 잃지 않고 병렬로 기능을 개발할 수 있게 합니다.
스킬 ZIP 다운로드
Claude에서 업로드
설정 → 기능 → 스킬 → 스킬 업로드로 이동
토글을 켜고 사용 시작
테스트해 보기
"using-git-worktrees" 사용 중입니다. 새 결제 기능을 위한 worktree 생성
예상 결과:
I'm using the using-git-worktrees skill to set up an isolated workspace.
Worktree ready at /projects/myapp/.worktrees/feature/payments
Tests passing (47 tests, 0 failures)
Ready to implement payment feature
"using-git-worktrees" 사용 중입니다. api-v2 브랜치 검토를 위한 워크스페이스 설정
예상 결과:
I'm using the using-git-worktrees skill to set up an isolated workspace.
Detected existing .worktrees directory
Verified directory is git-ignored
Created worktree: git worktree add .worktrees/api-v2 -b api-v2
Installed dependencies: npm install
Baseline tests: 23 passing
Worktree ready at /projects/myapp/.worktrees/api-v2
보안 감사
안전All 43 static findings evaluated as false positives. External commands are standard git and build tools with hardcoded or trusted arguments. Filesystem operations are legitimate directory checks. No command injection vectors, credential exposure, or malicious patterns detected.
위험 요인
⚙️ 외부 명령어 (26)
품질 점수
만들 수 있는 것
기능 개발 격리
커밋되지 않은 변경 사항을 잃거나 현재 워크스페이스 상태를 손상시키지 않고 새 기능 브랜치에서 작업 시작
코드 검토 준비
로컬 개발에 영향을 주지 않고 풀 리퀘스트 변경 사항을 검토하고 테스트할 수 있는 격리된 워크스페이스 생성
버그 수정 재현
안정적인 개발 환경을 유지하면서 별도의 worktree 에서 버그 조사 작업 격리
이 프롬프트를 사용해 보세요
Set up an isolated workspace for the feature/auth-improvements branch using git worktrees
Create a worktree for bugfix/memory-leak in the .worktrees directory and run the project setup
Create an isolated worktree from the pull-request-123 branch so I can review changes without affecting my current work
I need to work on the experimental/caching branch while keeping my current changes intact. Set up a worktree and verify tests pass
모범 사례
- 실수로 커밋되는 것을 방지하기 위해 생성 전 worktree 디렉터리가 git-ignored 상태인지 항상 확인
- 깔끔한 시작점을 설정하기 위해 worktree 생성 직후 기본 테스트 실행
- 디렉터리 우선순위 순서 준수: 기존 디렉터리 > CLAUDE.md 설정 > 사용자에게 문의
피하기
- git ignore 상태를 확인하지 않고 worktree 를 생성하여 버전 관리에 워크스페이스 오염 발생
- 기본 테스트 검증을 생략하여 새 버그와 기존 문제 구분 불가
- 기존 디렉터리와 사용자 기본 설정을 먼저 확인하는 대신 디렉터리 위치 하드코딩