원클릭으로
git-worktrees
Use when starting work that needs isolated branches or parallel feature development using git worktrees.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when starting work that needs isolated branches or parallel feature development using git worktrees.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Systematic analysis and reasoning workflows. Use when performing audits, investigation, requirements analysis, risk analysis, scenario/edge-case enumeration, or design analysis that demands evidence-based, comprehensive coverage.
Code quality and safety standards. Activates when editing or reviewing code. Use for quality priorities, safety checks, and code correctness verification.
Use when performing coding tasks (implement features, fix bugs, refactor code). Orchestrates language detection, mode switching (normal/autopilot/full-auto), quality enforcement, and verification.
Break a problem into atomic, testable subproblems. Use when facing complex tasks, unclear requirements, or planning implementation strategy.
Start structured feature implementation workflow. Use when implementing new features, adding functionality, or building complete user-facing capabilities.
Develop, maintain, and audit Go analyzers (go/analysis). Use when creating/updating analyzers, suggested fixes, analysistest golden files, or integration analyzer harnesses.
| name | git-worktrees |
| description | Use when starting work that needs isolated branches or parallel feature development using git worktrees. |
| allowed-tools | ["shell","read_file"] |
| metadata | {"short-description":"Create and manage git worktrees safely"} |
Read these references:
~/.config/agent/core/behavior.md - Safety and verification~/.config/agent/core/methodology.md - Structured workflowGit worktrees provide isolated working directories for parallel branches without switching context.
Core principle: Safe directory selection + verification before use.
.worktrees/ (hidden)worktrees/ if presentCLAUDE.md for guidanceFor project-local worktrees:
git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
If not ignored, add to .gitignore before continuing.
project=$(basename "$(git rev-parse --show-toplevel)")
# Choose path based on directory selection
# Example (project-local):
path=".worktrees/<branch-name>"
# Preflight checks
if [ -e "$path" ]; then
echo "Error: $path already exists" >&2
# Ask user whether to reuse or choose a new path
fi
if git show-ref --verify --quiet refs/heads/<branch-name>; then
echo "Warning: branch <branch-name> already exists" >&2
# Ask user whether to reuse or choose a new name
fi
git worktree add "$path" -b <branch-name>
cd "$path"
Auto-detect and run setup:
if [ -f package.json ]; then npm install; fi
if [ -f Cargo.toml ]; then cargo build; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f pyproject.toml ]; then poetry install; fi
if [ -f go.mod ]; then go mod download; fi
Run the project’s standard tests. If failures occur, report and ask whether to proceed or investigate.
Target: ${ARGUMENTS}