Git Worktree Setup
Automatically creates data directory structure after git worktree add, including a symlink to shared data and a local directory for worktree-specific files.
Sby Skills Guide Bot
DevOpsIntermediate0 views0 installs3/3/2026Claude CodeCursor
git-worktreeshell-scriptrepository-managementautomation
name: worktree-setup
description: Automatically invoked after git worktree add to create data/shared symlink and data/local directory. Required before starting work in any new worktree.
Worktree Setup
新しい worktree にデータディレクトリ構造をセットアップする。
Goal
Worktree 作成後に適切なデータディレクトリ構造を設定し、データ保護を確保する。
Instructions
- このスキルは
git worktree addの後に実行する - 以下を作成:
data/shared/- メインリポジトリの共有データへの symlink(永続)data/local/- worktree 固有の一時ディレクトリ
Usage
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
"$REPO_ROOT/.agent/skills/worktree-setup/setup.sh"
Constraints
- 事前にメインリポジトリで
worktree-initを実行しておくこと - worktree ディレクトリ内で実行すること
Related skills
Docker Compose Architect
100
Designs optimized Docker Compose configurations.
Claude CodeCopilotadvanced
4301561271Admin
Incident Postmortem Writer
100
Writes structured and blameless incident postmortem reports.
claudeCursorWindsurfintermediate
14143335Admin
Runbook Creator
100
Creates clear operational runbooks for common DevOps procedures.
claudeCursorWindsurfintermediate
10832261Admin