@diegosouzapw/worktree-setup
BAutomatically invoked after `git worktree add` to create data/shared symlink and data/local directory. Required before starting work in any new worktree.
Install
agr install @diegosouzapw/worktree-setup --target claudeWrites 2 files into .claude/skills/, pinned to git-91b69d13.
- .claude/skills/worktree-setup/SKILL.md
- .claude/skills/worktree-setup/metadata.json
Document
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 ディレクトリ内で実行すること
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-91b69d1314042026-07-31