AI Help

Why are Claude Code project skills missing only in a Git worktree?

Compare the worktree's current directory and tracked skill files with the original checkout. A worktree may lack uncommitted or ignored project files.

Steps to follow

  1. Run git status and confirm the worktree path, branch and commit. Locate the expected .claude/skills directory.
  2. Compare the skill files with the original checkout and determine whether they were committed, ignored or stored only on that machine.
  3. Bring authorized project guidance into the intended checkout through normal version control and verify skill discovery in that session.

Example in practice

Illustrative example. A skill created but never committed in the main checkout will not automatically appear in a new worktree based on an earlier commit.

Related AI help

Official guidance

Claude documentation