Fix the configuration of the current worktree: complete the missing symbolic links and dependency installation.
Steps
- Confirm that the current directory is a worktree (
.gitis a file rather than a directory) - Run the fix script:
node "${CLAUDE_SKILL_DIR}/../../scripts/worktree.mjs" repair "$(pwd)"
- Report the results: which files were linked, which already existed, and whether dependencies were reinstalled
Applicable scenarios
- After the worktree is created,
.env.localand other configuration files are missing node_modulesdoes not exist or is corrupted- Worktrees created manually via
git worktree addneed initialization - hook execution was interrupted, resulting in incomplete initialization