Skip to content

Commit 6eceeef

Browse files
alexsteeelclaude
andcommitted
feat: add skills folder copying from host
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5cd6907 commit 6eceeef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ai_sbx/dockerfiles/devcontainer-base/entrypoint.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ if [ -d /home/claude/claude-defaults ]; then
7979
fi
8080
fi
8181

82-
# Copy host Claude settings (commands, agents, hooks) if mounted and enabled
82+
# Copy host Claude settings (commands, agents, hooks, skills) if mounted and enabled
8383
if [ "$COPY_CLAUDE_SETTINGS" = "true" ] && [ -d /host/.claude ]; then
84-
mkdir -p /home/claude/.claude/commands /home/claude/.claude/agents /home/claude/.claude/hooks 2>/dev/null || true
84+
mkdir -p /home/claude/.claude/commands /home/claude/.claude/agents /home/claude/.claude/hooks /home/claude/.claude/skills 2>/dev/null || true
8585

8686
# Copy commands from host (merge with existing)
8787
if [ -d /host/.claude/commands ]; then
@@ -99,6 +99,11 @@ if [ "$COPY_CLAUDE_SETTINGS" = "true" ] && [ -d /host/.claude ]; then
9999
chmod +x /home/claude/.claude/hooks/*.sh 2>/dev/null || true
100100
fi
101101

102+
# Copy skills from host (merge with existing)
103+
if [ -d /host/.claude/skills ]; then
104+
cp -rn /host/.claude/skills/* /home/claude/.claude/skills/ 2>/dev/null || true
105+
fi
106+
102107
# Copy settings.json from host if exists (don't overwrite)
103108
if [ -f /host/.claude/settings.json ] && [ ! -f /home/claude/.claude/settings.json ]; then
104109
cp /host/.claude/settings.json /home/claude/.claude/ 2>/dev/null || true

0 commit comments

Comments
 (0)