worktree-init
Initialize worktree data protection configuration. Run this once in the main repository before creating any worktrees to set up shared data storage.
SKILL.mdskills/worktree-init/SKILL.md
GitHubWorktree Init
Worktree データ保護設定を初期化する。
Goal
全 worktree で共有されるデータストレージの場所を設定する。
Instructions
- メインリポジトリで一度だけ実行する(worktree 作成前に)
- 全 worktree で共有される
data/shared/ディレクトリ構造を初期化する
Usage
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
"$REPO_ROOT/.agent/skills/worktree-init/init.sh"
Constraints
- メインリポジトリでのみ実行(worktree 内では実行しない)
- リポジトリルートへの書き込み権限が必要