worktree-setup
Automates the setup of necessary symlinks and directories in new git worktrees.
Install
mkdir -p .claude/skills/worktree-setup && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11014" && unzip -o skill.zip -d .claude/skills/worktree-setup && rm skill.zipInstalls to .claude/skills/worktree-setup
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Automatically invoked after `git worktree add` to create data/shared symlink and data/local directory. Required before starting work in any new worktree.Key capabilities
- →Initialize worktree data
- →Create shared symlinks
- →Set up local directories
How it works
It automates the creation of necessary data directories and symlinks after worktree creation.
Inputs & outputs
When to use worktree-setup
- →Initializing git worktree
- →Setting up local dev data
- →Configuring worktree data directories
About this skill
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 ディレクトリ内で実行すること
When not to use it
- →Main repository initialization
Prerequisites
Limitations
- →Requires worktree context
- →Limited to specific directory structure
How it compares
It ensures environment parity across multiple git worktrees automatically.
Compared to similar skills
worktree-setup side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| worktree-setup (this skill) | 0 | 5mo | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| openspec-onboard | 10 | 6mo | Review | Beginner |
| codex-cli-bridge | 9 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by diegosouzapw
View all by diegosouzapw →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.