Skip to content

Commit 3f6c3dc

Browse files
committed
chore: mount shell skills at container runtime
Exclude local skills from the Docker build context and document runtime mounts so Docker and Kubernetes use the same skill injection pattern.
1 parent a7ddc45 commit 3f6c3dc

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ __pycache__
88
servers_config.json
99
.envrc
1010
.pre-commit-config.yaml
11+
skills/

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ uv run bot
126126

127127
The bot can execute local shell commands via skills defined in a `skills/` directory. Each subdirectory containing a `SKILL.md` file is registered as a skill.
128128

129+
When using the Docker image, mount `skills/` at runtime (the image build excludes this directory by default):
130+
131+
```bash
132+
-v /path/to/skills:/app/skills:ro
133+
```
134+
129135
This feature is **disabled by default**. To enable it, set:
130136

131137
```
@@ -154,7 +160,9 @@ docker run -d \
154160
-e SLACK_APP_TOKEN="" \
155161
-e OPENAI_API_KEY="" \
156162
-e OPENAI_MODEL="gpt-5.4" \
163+
-e SHELL_SKILLS_ENABLED=1 \
157164
-v /path/to/instructions.md:/app/instructions.md \
165+
-v /path/to/skills:/app/skills:ro \
158166
agentic-slackbot
159167
```
160168

@@ -167,7 +175,9 @@ docker run -d \
167175
-e SLACK_APP_TOKEN="" \
168176
-e OPENAI_API_KEY="" \
169177
-e OPENAI_MODEL="gpt-5.4" \
178+
-e SHELL_SKILLS_ENABLED=1 \
170179
-v /path/to/instructions.md:/app/instructions.md \
180+
-v /path/to/skills:/app/skills:ro \
171181
-v /path/to/servers_config.json:/app/servers_config.json \
172182
agentic-slackbot
173183
```

0 commit comments

Comments
 (0)