add-image-vision
Skill194 starsChanged 8 months agoMITView on GitHub
Add image vision to ClaudeClaw agents. Resizes and processes WhatsApp image attachments, then sends them to Claude as multimodal content blocks.
- Installs packages
In this repository26 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-compactSkill
- add-discordSkill
- add-gmailSkill
- add-ollama-toolSkill
- add-parallelSkill
- add-pdf-readerSkill
- add-qmdSkill
- add-reactionsSkill
- add-telegramSkill
- add-telegram-swarmSkill
- add-voice-transcriptionSkill
- add-whatsappSkill
- convert-to-apple-containerSkill
- customizeSkill
- debugSkill
- get-qodo-rulesSkill
- install-extensionSkill
- qodo-pr-resolverSkill
- setupSkill
- uninstall-extensionSkill
- uninstallSkill
- update-claudeclawSkill
- update-skillsSkill
- use-local-whisperSkill
- x-integrationSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Check if src/image.ts exists — skip to Phase 3 if already applied
- Very specific: line 25
If whatsapp is missing, add it:
- Distinctive: line 50
If the merge reports conflicts, resolve them by reading the conflicted files and understanding the intent of both sides.
- Distinctive: line 60
All tests must pass and build must be clean before proceeding.
- Distinctive: line 86
Check the agent responds with understanding of the image content
- Distinctive: line 87
Check logs for "Processed image attachment":
- Distinctive: line 94
"Image - download failed": Check WhatsApp connection stability.
- Distinctive: line 96
Agent doesn't mention image content: Check container logs for "Loaded image" messages.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Image Vision Skill
Adds the ability for ClaudeClaw agents to see and understand images sent via WhatsApp. Images are downloaded, resized with sharp, saved to the group workspace, and passed to the agent as base64-encoded multimodal content blocks.
Phase 1: Pre-flight
- Check if
src/image.tsexists — skip to Phase 3 if already applied - Confirm
sharpis installable (native bindings require build tools)
Prerequisite: WhatsApp must be installed first (skill/whatsapp merged). This skill modifies WhatsApp channel files.
Phase 2: Apply Code Changes
Ensure WhatsApp fork remote
git remote -vIf whatsapp is missing, add it:
git remote add whatsapp https://github.com/qwibitai/claudeclaw-whatsapp.gitMerge the skill branch
git fetch whatsapp skill/image-vision
git merge whatsapp/skill/image-vision || {
git checkout --theirs package-lock.json
git add package-lock.json
git merge --continue
}This merges in:
src/image.ts(image download, resize via sharp, base64 encoding)src/image.test.ts(8 unit tests)- Image attachment handling in
src/channels/whatsapp.ts - Image passing to agent in
src/index.tsandsrc/orchestrator/container-runner.ts - Image content block support in
agent/runner/src/index.ts sharpnpm dependency inpackage.json
If the merge reports conflicts, resolve them by reading the conflicted files and understanding the intent of both sides.
Validate code changes
npm install
npm run build
npx vitest run src/image.test.tsAll tests must pass and build must be clean before proceeding.
Phase 3: Configure
- Rebuild the container (agent-runner changes need a rebuild):
./src/runtimes/docker/build.sh - Sync agent-runner source to group caches:
for dir in data/sessions/*/agent-runner-src/; do cp agent/runner/src/*.ts "$dir" done
Service name: Derived from the directory name:
com.claudeclaw.<dirname>(macOS) /claudeclaw-<dirname>(Linux). For example, if cwd ismy-assistant, the service iscom.claudeclaw.my-assistant. Determine the correct service name before running service commands below.
- Restart the service:
launchctl kickstart -k gui/$(id -u)/com.claudeclaw
Phase 4: Verify
- Send an image in a registered WhatsApp group
- Check the agent responds with understanding of the image content
- Check logs for "Processed image attachment":
tail -50 groups/*/logs/container-*.log
Troubleshooting
- "Image - download failed": Check WhatsApp connection stability. The download may timeout on slow connections.
- "Image - processing failed": Sharp may not be installed correctly. Run
npm ls sharpto verify. - Agent doesn't mention image content: Check container logs for "Loaded image" messages. If missing, ensure agent-runner source was synced to group caches.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

