/worktree-bootstrap:configurefrom worktree-bootstrap
Create or update .worktreeinclude.yaml configuration for worktree-bootstrap. Use when user says "set up worktree config", "configure worktree bootstrap", "add files to worktree include", "worktree bootstrap config", or provides file paths to include in worktree bootstrap.
Ships in worktree-bootstrap. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create or update .worktreeinclude.yaml to configure which ignored files get copied to new worktrees.
Arguments after the skill invocation are treated as file or directory paths to add (e.g., /worktree-bootstrap:configure .env .env.local). If no arguments are provided, check the user's message for file/directory references.
Check whether file/directory paths were provided (as arguments or mentioned in the user's message).
Check if .worktreeinclude.yaml exists in the project root:
cat .worktreeinclude.yaml 2>/dev/null
If the file exists: Show its current contents to the user, then scan for additional ignored files not yet in the config:
git ls-files --others --ignored --exclude-standard
Compare against entries already in the config. If there are new candidates, present them and ask the user which to add. If no new candidates, inform the user the config is up to date.
If the file does not exist: Scan for all ignored files:
git ls-files --others --ignored --exclude-standard
Present the discovered files to the user and ask which ones to include. Then write .worktreeinclude.yaml:
files:
- .env
- .env.local
If no ignored files are found, create the file with an empty list and explain the format:
# List files to copy to new worktrees (must be gitignored)
# Supports glob patterns (e.g., .env.*)
files: []
For each provided path, verify it is ignored:
git check-ignore -q <path>
.worktreeinclude.yamlIf .worktreeinclude.yaml does not exist, create it with the valid entries. If it exists, read the current contents, append new entries (avoiding duplicates), and write back.
After adding, show the updated config to the user.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub retsohuang/retso-marketplace --plugin worktree-bootstrap