Agent skill
configure
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.
Install this agent skill to your Project
npx add-skill https://github.com/retsohuang/retso-marketplace/tree/main/plugins/worktree-bootstrap/skills/configure
Metadata
Additional technical details for this skill
- author
- Retso Huang
- version
- 1.0
SKILL.md
Worktree Bootstrap Config
Create or update .worktreeinclude.yaml to configure which ignored files get copied to new worktrees.
Input
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.
Steps
Step 1: Determine mode
Check whether file/directory paths were provided (as arguments or mentioned in the user's message).
- Paths provided → go to Step 3 (Add entries)
- No paths provided → go to Step 2 (Scaffold or show)
Step 2: Scaffold or show existing config
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: []
Step 3: Add specific entries
For each provided path, verify it is ignored:
git check-ignore -q <path>
- Ignored (exit code 0): Add to
.worktreeinclude.yaml - Not ignored (non-zero exit): Warn the user and skip
If .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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
code-review
Review commits from a starting commit hash to HEAD. Use when user says "review commits from <hash>", "code review starting from <hash>", "review changes since <hash>", or provides a commit hash for review. Detects AI slop, component issues, and missed reuse opportunities.
git-guardrails-claude-code
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
Didn't find tool you were looking for?