← 返回 Skills 市场
yyxy

Cat Therapy

作者 yyxy · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
402
总下载
1
收藏
3
当前安装
2
版本数
在 OpenClaw 中安装
/install cat-therapy
功能描述
跨平台治愈系撸猫技能。当用户说"休息一下"、"累了"、"tired"、"need a break"等触发词时,自动发送可爱猫咪图片 + 猫叫声(TTS 音频 + 文字双保险)+ 治愈语录。支持用户上传自定义猫咪图片和叫声,支持 QQ/微信/钉钉/飞书/Discord/Telegram/WhatsApp 等多平台,...
使用说明 (SKILL.md)

🐱 Cat Therapy - 跨平台治愈系撸猫技能

触发场景

主要触发词

中文: "休息一下"、"累了"、"想撸猫"、"看看猫"、"压力大"、"放松一下"、"治愈我"、"喵" 英文: "tired"、"need a break"、"show me cats"、"cat pics"、"stress"、"relax"、"meow"

设置触发词(需要明确意图)

保存自定义猫咪(需满足以下条件):

  1. 包含关键词 + 图片:

    • "这是我的猫" + [图片]
    • "保存这只猫" + [图片]
    • "以后用这只猫治愈我" + [图片]
    • "设置这只猫为治愈猫" + [图片]
    • "这是我家主子" + [图片]
  2. 或在技能上下文中:

    • 刚触发"休息一下"等治愈词
    • 随后发送图片并说"用这只"

保存自定义声音:

  • "这是我家猫的声音:喵~咪~"
  • "保存这个猫叫:[音频]"

重置:

  • "重置猫咪" → 清除自定义,恢复随机
  • "恢复默认猫咪" → 同上

核心功能

1. 跨平台图片发送

图片源优先级:

1. 用户上传的自定义猫咪图片(最高优先级)
2. TheCatAPI 随机猫咪
3. 备用图床(cataas.com 等)

平台适配:

平台 发送方式
QQ \x3Cqqimg>URL\x3C/qqimg>
微信/钉钉/飞书 MEDIA:URL
Discord/Telegram message 工具 media 参数

2. 音频 + 文字双保险

同时发送:

  1. TTS 音频 - 调用 tts 工具生成真实声音
  2. 文字模拟 - "喵~咕噜咕噜~" 🐱(立即可见)

优点:

  • ✅ 文字立即可见,无需等待
  • ✅ 音频可选播放,增强体验
  • ✅ 双重保障,确保送达

3. 用户自定义猫咪

保存用户猫咪:

{
  "image": "https://user-cat-photo.jpg",
  "sound": "喵~咪~",
  "updatedAt": "2026-03-04"
}

设置方式:

  • 用户发送猫咪图片 → 自动保存图片 URL
  • 用户发送"这是我家猫" → 标记为偏好
  • 用户发送猫叫文字 → 保存自定义声音

清除自定义:

  • 用户说"重置猫咪" → 删除偏好,恢复随机

4. 多语言支持

自动检测:

  • 中文消息 → 中文回复
  • 英文消息 → 英文回复

i18n 文件:

  • i18n/zh.json - 中文语录
  • i18n/en.json - 英文语录

完整工作流程

1. 检测触发词 → 识别用户意图
2. 检查用户偏好 → 是否有自定义猫咪/声音
3. 检测平台 → 选择发送方式
4. 检测语言 → 选择回复语言
5. 获取猫咪图片 → 用户自定义 或 随机 API
6. 获取猫叫声 → 用户自定义 或 默认 TTS
7. 选择治愈语录 → 根据语言随机
8. 组合回复 → TTS 音频 + 文字声音 + 图片 + 语录
9. 发送 → 使用平台对应方式
10. 降级处理 → 失败时用文字 + emoji

示例回复

标准场景(随机猫咪)

喵~咕噜咕噜~ 🐱💕

[TTS 音频:喵~]

[猫咪图片]

工作再忙也要记得休息哦~✨

用户自定义猫咪

喵~咪~ 🐱💕 (这是你家的小可爱!)

[TTS 音频:喵~咪~]

[用户猫咪图片]

你家主子来治愈你啦~✨

英文场景

Meow~ Purr purr~ 🐱

[TTS audio: Meow~]

[Cat image]

Take a break and relax! ✨

降级方案(图片失败)

喵~咕噜咕噜~ 🐱💕

虽然图片加载失败了,但想象有只小猫咪在你腿上~

深呼吸,所有的疲惫都会消失的!✨

脚本说明

cat_therapy.py(主逻辑)

# 完整技能逻辑
# - 检查用户偏好
# - 获取猫咪图片(自定义或随机)
# - 获取猫叫声(自定义或默认)
# - 选择治愈语录
# - 返回完整响应数据

get_cat_image.py

# 获取猫咪图片(多源 fallback)
# 返回:{"url": "...", "source": "thecatapi|user|fallback"}

cat_sound.py

# 获取猫叫声(TTS 文本或本地音频)
# 返回:{"text": "喵~", "source": "default|user"}

generate_cat_sound.py

# 生成猫叫声效(.wav 文件)
# 生成:meow.wav, purr.wav

用户偏好存储

user_cats.json

{
  "userId": "8E8893DDD10A138203887E503C535A33",
  "image": "https://user-cat-photo.jpg",
  "sound": "喵~咪~",
  "updatedAt": "2026-03-04T12:00:00Z",
  "language": "zh"
}

存储位置: 技能目录下的 user_cats.json

管理命令:

  • 查看:cat user_cats.json
  • 删除:rm user_cats.json
  • 编辑:手动修改 JSON

配置示例

config.json

{
  "defaultLanguage": "zh",
  "supportedLanguages": ["zh", "en"],
  "imageSources": [
    "https://api.thecatapi.com/v1/images/search",
    "https://cataas.com/cat"
  ],
  "fallbackToText": true,
  "enableUserCustomization": true,
  "sendBothAudioAndText": true
}

注意事项

  1. 音频 + 文字双发 - 确保用户无论哪种方式都能收到
  2. 用户隐私 - 自定义猫咪仅存储在本地
  3. 图片源稳定性 - 多源 fallback 确保可用性
  4. 平台兼容 - 不同平台媒体发送方式不同
  5. 语言检测 - 根据用户消息自动切换
  6. 回复简洁 - 控制在 2-4 句话,避免冗长

扩展建议

1. 更多动物

  • 🐶 Dog Therapy - 治愈狗狗
  • 🐰 Bunny Therapy - 小兔子
  • 🦊 Fox Therapy - 小狐狸

2. 猫咪品种

  • 橘猫模式
  • 布偶猫模式
  • 黑猫模式

3. 定时提醒

  • 工作 1 小时后提醒撸猫
  • 下午 3 点固定治愈时间

4. 互动功能

  • 猫咪心情选择
  • 用户上传多张猫图轮播
  • 猫咪百科知识

测试清单

  • 随机猫咪图片发送
  • 用户自定义猫咪保存
  • 用户自定义猫咪使用
  • TTS 音频发送
  • 文字声音显示
  • 中英文切换
  • 图片失败降级
  • 重置功能
  • 多平台兼容
安全使用建议
This skill appears coherent and does what it says: sends images, TTS text/audio, and stores simple per-user preferences in user_cats.json inside the skill directory. Before installing, review the following: 1) Examine user_cats.json (and remove any sensitive absolute paths) — the sample shows local file paths which could point to files in the agent workspace; ensure uploaded media are stored only where you intend. 2) Confirm how your host environment handles user uploads (are files saved under a global workspace directory?) to avoid accidental disclosure of other local files. 3) Be aware the skill fetches images from public endpoints (thecatapi, cataas, placekitten); if network egress is a concern, block or restrict those URLs. 4) If you need stronger privacy, replace network sources with vetted local assets and audit file‑write behavior. No additional environment variables or cloud credentials are required, which reduces risk.
功能分析
Type: OpenClaw Skill Name: cat-therapy Version: 1.0.1 The 'cat-therapy' skill bundle is a well-structured tool designed to provide stress relief through cat images, sounds, and quotes. The Python scripts (cat_therapy.py, get_cat_image.py) use standard libraries and correctly implement SSL certificate verification when fetching images from public APIs like thecatapi.com and cataas.com. While the skill supports saving user-provided media paths in user_cats.json, the logic is consistent with the stated purpose of personalization, and there is no evidence of malicious intent, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
Name/description (send cat images + TTS + quotes, support custom uploads, multi-platform) align with the code and files: scripts implement intent detection, image/audio selection/generation, and per-user preference storage. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
Runtime instructions and scripts operate within the skill: detect triggers, consult user_cats.json, pick image/audio (user-provided or from public APIs), and return/send media + text. Attention: the skill reads/writes user_cats.json in the skill directory and may reference local file paths (sample user_cats.json contains absolute paths). This is expected for user-uploaded media, but review how uploads are handled in your environment to avoid unintentionally exposing local files.
Install Mechanism
No install spec (instruction-only install) and included scripts only. Nothing downloads or executes third‑party installers; risk from install mechanism is low.
Credentials
Skill requires no environment variables or external credentials. Network usage is limited to public cat image APIs (thecatapi, cataas, placekitten) and normal HTTPS requests. No unrelated secrets or cloud credentials are requested.
Persistence & Privilege
always:false and standard autonomous invocation. The skill persists only its own user_cats.json in the skill directory (read/write), which is proportional to its stated custom-user feature and does not modify other skills or global agent config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cat-therapy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cat-therapy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
🔒 安全更新:修复 SSL 证书验证问题
v1.0.0
cat-therapy 1.0.0 初始版本发布 - 支持 QQ/微信/钉钉/飞书/Discord/Telegram/WhatsApp 等多平台自动发送可爱猫咪图片、猫叫音效(TTS+文字)、治愈语录 - 支持用户自定义猫咪图片和猫叫声,可随时重置 - 关键词触发:中英文消息均可,一键唤起“撸猫治愈” - 图片源多重 fallback,确保每次都可送达 - 自动多语言切换(中/英),回复简洁治愈 - 降级机制:图片失败时用文字+emoji 替代
元数据
Slug cat-therapy
版本 1.0.1
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 2
常见问题

Cat Therapy 是什么?

跨平台治愈系撸猫技能。当用户说"休息一下"、"累了"、"tired"、"need a break"等触发词时,自动发送可爱猫咪图片 + 猫叫声(TTS 音频 + 文字双保险)+ 治愈语录。支持用户上传自定义猫咪图片和叫声,支持 QQ/微信/钉钉/飞书/Discord/Telegram/WhatsApp 等多平台,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 402 次。

如何安装 Cat Therapy?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cat-therapy」即可一键安装,无需额外配置。

Cat Therapy 是免费的吗?

是的,Cat Therapy 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cat Therapy 支持哪些平台?

Cat Therapy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cat Therapy?

由 yyxy(@yyxy)开发并维护,当前版本 v1.0.1。

💬 留言讨论