worktree-doctor
Installation
SKILL.md
Worktree Doctor
Analyze a repository and suggest a .worktreeinclude so new worktrees inherit
the local files they need (env vars, secrets, local config). This matters
because a plain git worktree add — and the git-worktree skill that wraps it
— only copies files that are both gitignored and listed in
.worktreeinclude.
Companion: /git-worktree creates worktrees and performs the copy.
When to use
- Setting up worktrees in a new repo, before the first
/git-worktree. - A worktree is missing its
.envor local settings. - You want to know whether
.claude/worktrees/is gitignored.
Steps
Print a suggestion (default — makes no changes):