From 1683592ee4ee97f75d5f9c52dfac36fe544f5d78 Mon Sep 17 00:00:00 2001 From: William Clavier Date: Wed, 3 Dec 2025 13:50:13 -0500 Subject: [PATCH] Fix: Ensure commands and skills directories exist during install Previously, if ~/.claude already existed from a prior Claude Code installation, the install script would skip creating the commands/ and skills/ subdirectories. This caused symlink creation to fail silently, leaving users without access to /claude-os-init and other commands. This fix ensures the subdirectories are always created, regardless of whether ~/.claude already exists. Fixes issue where /claude-os-init command was not available after running install.sh on systems with existing ~/.claude directory. --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index feda834..ba77539 100755 --- a/install.sh +++ b/install.sh @@ -114,6 +114,10 @@ else echo "✅ ${USER_CLAUDE_DIR} already exists" fi +# Ensure commands and skills subdirectories exist (even if .claude already existed) +mkdir -p "${USER_CLAUDE_DIR}/commands" +mkdir -p "${USER_CLAUDE_DIR}/skills" + # Create symlinks for commands echo "" echo "🔗 Setting up command symlinks..."