Skip to main content

git-worktree

Internal skill for workspace isolation. Detects current git state and offers worktree/branch options. Called by iterative:implementing, not user-invocable.

소스 정보

저장소
tmchow/tmc-marketplace
최근 소스 활동
2026년 2월 19일 21:57
감지된 SKILL.md 언어
영어
스타
22
포크
2

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
git-worktree
description
Internal skill for workspace isolation. Detects current git state and offers worktree/branch options. Called by iterative:implementing, not user-invocable.
user-invocable
false
# Git Worktree (Workspace Isolation) Ensures agent has an isolated workspace to avoid conflicts with human work. ## When Called - At the start of `iterative:implementing` skill - At the start of feature work requiring isolation from the current branch - When workspace isolation is needed - Not directly invocable by users ## Workflow 1. **Sync with remote.** Pull latest from default branch. 2. **Detect current state.** Check if in worktree (`git rev-parse --git-dir` contains `/worktrees/`), get current branch (`git branch --show-current`), get default branch (`git remote show origin | grep "HEAD branch"`). 3. **Choose workspace** based on current state: - Already in worktree: confirm it's for this feature, then proceed - On default branch: ask the user — A) Create worktree (recommended), B) Create branch, C) Continue on main (requires explicit consent) - On feature branch: ask the user — A) Continue on this branch, B) Create new worktree 4. **Execute choice.** If worktree: `git worktree add ../[repo]-[branch] -b [branch]`. If new branch: `git checkout -b [branch-name]`. If continue: proceed. 5. **Verify.** Report: "Ready on branch [name] in [directory]" ## Worktree Creation When creating a worktree: 1. Generate branch name from feature/task context 2. Create worktree: `git worktree add ../[repo]-[branch] -b [branch]` 3. Copy necessary files (.env, etc.) if they exist 4. Verify worktree is functional ## Output Returns to calling skill: - Branch name - Directory path (if worktree created) - Isolation status confirmed
GitHub에서 보기