Manage OpenClaw Skills on Kubernetes
Deploy and manage OpenClaw agent skills (tools, automations, integrations) on Kubernetes using ConfigMaps, PVCs, and git-sync for dynamic capability.
π‘ Quick Answer: Skills are directories with a
SKILL.mdfile that teach the agent how to use specific tools. Place them in the workspaceβsskills/directory. On Kubernetes, either bake them into your custom image, mount via ConfigMap, or sync from Git.# Install a skill from ClawhHub kubectl exec -n openclaw deploy/openclaw -- openclaw skills install weatherKey concept: Skills are declarative β SKILL.md describes when and how to use the skill. The agent reads it automatically when the task matches.
Gotcha: Skills that require shell scripts need the dependencies installed in the container image.
The Problem
- AI agents need specific capabilities (weather, email, calendar, web search)
- Skills must be discoverable and automatically loaded by the agent
- Different agents may need different skill sets
- Updating skills shouldnβt require pod restarts
The Solution
OpenClaw skills are simple directories with a SKILL.md file. Manage them as code in Kubernetes using ConfigMaps, PVCs, or Git sync.
Skill Structure
skills/
βββ weather/
β βββ SKILL.md # Instructions for the agent
βββ discord/
β βββ SKILL.md
βββ web-search/
β βββ SKILL.md
β βββ search.sh # Helper script (optional)
βββ custom-tool/
βββ SKILL.md
βββ tool.py
βββ requirements.txtMethod 1: ConfigMap Skills
# skill-configmaps.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: skill-weather
namespace: openclaw
data:
SKILL.md: |
# Weather Skill
Get current weather and forecasts using wttr.in.
## When to use
When the user asks about weather, temperature, or forecasts.
## How to use
```bash
curl -s "wttr.in/CityName?format=4"
```
For detailed forecast:
```bash
curl -s "wttr.in/CityName?format=v2"
```Mount in deployment:
containers:
- name: openclaw
volumeMounts:
- name: skill-weather
mountPath: /home/node/.openclaw/workspace/skills/weather
volumes:
- name: skill-weather
configMap:
name: skill-weatherMethod 2: Install from ClawHub
# Install skills interactively
kubectl exec -n openclaw deploy/openclaw -- openclaw skills install weather
kubectl exec -n openclaw deploy/openclaw -- openclaw skills install discord
# List installed skills
kubectl exec -n openclaw deploy/openclaw -- openclaw skills list
# Skills are saved to the PVC and persist across restartsMethod 3: Bake into Docker Image
FROM node:22-slim
RUN npm install -g openclaw@latest
# Copy custom skills
COPY skills/ /home/node/.openclaw/workspace/skills/
USER node
ENTRYPOINT ["openclaw", "gateway"]Common Issues
Issue 1: Skill not detected by agent
# Verify SKILL.md exists in the right path
kubectl exec -n openclaw deploy/openclaw -- \
ls -la /home/node/.openclaw/workspace/skills/
# Check the skill description matches the task
kubectl exec -n openclaw deploy/openclaw -- \
cat /home/node/.openclaw/workspace/skills/weather/SKILL.mdIssue 2: Skill scripts fail
# Ensure dependencies are installed in the container
# For Python skills: pip install in Dockerfile
# For shell scripts: ensure curl, jq, etc. are availableBest Practices
- Clear SKILL.md descriptions β The agent matches tasks to skills based on the description
- One skill per concern β Donβt bundle unrelated capabilities
- Version skills with Git β Track changes to skill instructions
- Test skills locally β Verify before deploying to Kubernetes
- Use ClawHub β Community skills at https://clawhub.com
Key Takeaways
- Skills are directories with a SKILL.md that teaches the agent new capabilities
- ConfigMaps, PVCs, or Git sync all work for skill deployment on Kubernetes
- ClawHub provides community-maintained skills for common tasks
- Custom skills can include scripts, configs, and any supporting files
- Per-agent skills via separate workspace directories enable capability isolation
π Get All 100+ Recipes in One Book
Stop searching β get every production-ready pattern with detailed explanations, best practices, and copy-paste YAML.
π Deepen Your Skills β Hands-on Courses
Build and deploy AI agents with OpenClaw β hands-on course with real-world projects.
Start Learning βAutomate Kubernetes node configuration and cluster bootstrapping with Ansible.
Start Learning βCourses by CopyPasteLearn.com β Learn IT by Doing
Want More Kubernetes Recipes?
This recipe is from Kubernetes Recipes, our 750-page practical guide with hundreds of production-ready patterns.