clawpet — OpenClaw Pet Companion 🐾
Use this skill when the user wants to adopt a pet, check pet status, interact with the pet, or send a pet image.
Pet status includes passive time-based updates, so each check-in can reflect elapsed time.
Typical triggers
- - "我想養一隻貓"
- "我的寵物今天狀態如何?"
- "幫我餵牠"
- "讓牠拍一張照"
Command reference
1) List pets
CODEBLOCK0
2) Adopt a pet
CODEBLOCK1
3) Check current status
CODEBLOCK2
4) Interact with pet
CODEBLOCK3
5) Generate image prompt
bash {baseDir}/scripts/clawpet.sh prompt
bash {baseDir}/scripts/clawpet.sh prompt --place "sunny window" --style "photorealistic, professional pet photography"
Outputs the full image generation prompt text. Default style is photorealistic.
6) Auto care
CODEBLOCK5
Agent behavior guidance
Basic interactions
- 1. Always call
bash {baseDir}/scripts/clawpet.sh ... to avoid missing executable issues. - When user says they want a pet, first run
bash {baseDir}/scripts/clawpet.sh pets, then ask which one they want. - For regular check-ins, run
bash {baseDir}/scripts/clawpet.sh status. - For daily care, prefer
bash {baseDir}/scripts/clawpet.sh care; for explicit requests, run ... interact <action>.
Image generation workflow (IMPORTANT)
When the user requests a pet image:
- 1. Generate the prompt:
bash {baseDir}/scripts/clawpet.sh prompt --place "cozy afternoon window"
This outputs the full prompt text. Default style is photorealistic pet photography.
- 2. Generate the image with nano-banana-pro:
uv run /home/yaze/.npm-global/lib/node_modules/openclaw/skills/nano-banana-pro/scripts/generate_image.py \
--prompt "<prompt from step 1>" \
--filename "YYYY-MM-DD-HH-MM-pet-name.png" \
--resolution 1K
This saves the image to INLINECODE5
- 3. Send the image with message tool:
CODEBLOCK8
Why this workflow:
- - Uses Gemini (nano-banana-pro) for high-quality watercolor-style images
- Local file path works with message tool's media parameter
- Consistent with other OpenClaw image generation patterns
Troubleshooting
- - If
clawpet command is not found, this skill wrapper auto-falls back to:
-
uvx --from git+https://github.com/yazelin/clawpet.git clawpet ...
- INLINECODE8
clawpet — OpenClaw 宠物伙伴 🐾
当用户想要领养宠物、查看宠物状态、与宠物互动或发送宠物图片时使用此技能。
宠物状态包含基于时间的被动更新,因此每次签到都能反映经过的时间。
典型触发场景
- - 我想養一隻貓
- 我的寵物今天狀態如何?
- 幫我餵牠
- 讓牠拍一張照
命令参考
1) 列出宠物
bash
bash {baseDir}/scripts/clawpet.sh pets
2) 领养宠物
bash
bash {baseDir}/scripts/clawpet.sh adopt momo
3) 查看当前状态
bash
bash {baseDir}/scripts/clawpet.sh status
4) 与宠物互动
bash
bash {baseDir}/scripts/clawpet.sh interact feed
bash {baseDir}/scripts/clawpet.sh interact play
bash {baseDir}/scripts/clawpet.sh interact rest
5) 生成图片提示词
bash
bash {baseDir}/scripts/clawpet.sh prompt
bash {baseDir}/scripts/clawpet.sh prompt --place sunny window --style photorealistic, professional pet photography
输出完整的图片生成提示词文本。默认风格为照片级真实感。
6) 自动照料
bash
bash {baseDir}/scripts/clawpet.sh care
bash {baseDir}/scripts/clawpet.sh care --action feed
代理行为指南
基本交互
- 1. 始终调用 bash {baseDir}/scripts/clawpet.sh ... 以避免可执行文件缺失问题。
- 当用户表示想要宠物时,先运行 bash {baseDir}/scripts/clawpet.sh pets,然后询问他们想要哪一只。
- 常规签到请运行 bash {baseDir}/scripts/clawpet.sh status。
- 日常照料优先使用 bash {baseDir}/scripts/clawpet.sh care;明确请求时运行 ... interact 。
图片生成工作流程(重要)
当用户请求宠物图片时:
- 1. 生成提示词:
bash
bash {baseDir}/scripts/clawpet.sh prompt --place cozy afternoon window
这将输出完整的提示词文本。默认风格为照片级真实感的宠物摄影。
- 2. 使用 nano-banana-pro 生成图片:
bash
uv run /home/yaze/.npm-global/lib/node
modules/openclaw/skills/nano-banana-pro/scripts/generateimage.py \
--prompt <步骤1生成的提示词> \
--filename YYYY-MM-DD-HH-MM-宠物名称.png \
--resolution 1K
图片将保存至 /home/yaze/.openclaw/workspace/YYYY-MM-DD-HH-MM-宠物名称.png
- 3. 使用消息工具发送图片:
message(action=send, channel=telegram, media=/home/yaze/.openclaw/workspace/YYYY-MM-DD-HH-MM-宠物名称.png, message=🐾 <宠物名称> 的即時快照)
为何采用此工作流程:
- - 使用 Gemini(nano-banana-pro)生成高质量水彩风格图片
- 本地文件路径可与消息工具的 media 参数配合使用
- 与其他 OpenClaw 图片生成模式保持一致
故障排除
- - 如果找不到 clawpet 命令,此技能包装器会自动回退至:
- uvx --from git+https://github.com/yazelin/clawpet.git clawpet ...
- uv tool run --from git+https://github.com/yazelin/clawpet.git clawpet ...