Install
openclaw skills install smyx-reptile-tail-loss-detection-analysisThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头,定期拍摄守宫、蜥蜴等爬行动物的尾部图像,利用 AI 视觉分析技术检测尾巴长度(与历史图像或同体长参考值对比)、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短(例如缩短超过 20%)、尾部断端可见伤口或结痂时,输出'断尾事件'提示,记录发生时间。
openclaw skills install smyx-reptile-tail-loss-detection-analysisThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.
通过爬宠箱固定摄像头,定期拍摄守宫、蜥蜴等爬行动物的尾部图像,利用 AI 视觉分析技术检测尾巴长度(与历史图像或同体长参考值对比)、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短(例如缩短超过 20%)、尾部断端可见伤口或结痂时,输出'断尾事件'提示,记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断,采取隔离或伤口处理措施。应用场景:爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像,当发生断尾时推送提醒,建议隔离受伤个体并消毒伤口。技能特点:断尾是守宫、蜥蜴常见的意外伤害,若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口,可帮助饲养者及早发现,采取措施,降低死亡率。该技能可集成到智能爬宠箱摄像头中。
假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像(侧位平拍或俯拍,分辨率 ≥ 1080p,完整展示从泄殖腔到尾尖的整条尾部),三步走:① 尾长测量——分割尾部 → 像素长度 → 通过 SVL(吻肛长)或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值;② 历史对比 + 体长比例对比——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线(豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5)双重对比,计算 tail_shortening_ratio,≥ 20% 触发断尾事件门槛**;③ 断端形态分类——尾尖形态(intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb)+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 species 是否具自割能力(autotomy)匹配判定逻辑:豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可主动断尾再生;鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生尾(断尾即永久缺失,意外原因可能性更高);绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定(tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable),按 4 级提醒策略递进(Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医,严防败血症致死)。核心物种特异性硬约束:已有再生尾基线的个体(注册时录入或历史已识别)→ 再生尾形态、颜色、鳞片纹路与原尾不同(球状钝端、无原始鳞片、颜色稍异),严禁误判再生尾为新发断尾。生理性上下文必须考虑(蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线),避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 tail_signal_unreliable。不提供任何医疗建议,仅输出基于视觉的判断结果;严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌;严禁输出"撒云南白药""涂红霉素软膏""用碘伏""口服阿莫西林"等具体处方剂量;严禁输出"自行缝合""自行剪除坏死组织"等任何外科操作建议;严禁伪造夸大尾长缩短比例;严禁越权代用户启停设备(仅可建议隔离)。**
python -m scripts.smyx_reptile_tail_loss_detection_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
在执行守宫/蜥蜴断尾识别前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.smyx_reptile_tail_loss_detection_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地守宫/蜥蜴尾部高清图像或视频文件路径--url: 网络守宫/蜥蜴尾部图像/视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,爬宠断尾场景默认 other--open-id: 当前用户的 open-id(必填,饲养者 / 繁殖场管理员授权)--list: 显示守宫/蜥蜴断尾事件历史记录清单--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)tail_shortening_ratio ≥ 20% + 断端可见伤口或新鲜创面 → 触发断尾事件tail_signal_unreliable 并建议重新拍摄爬宠断尾事件-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 缩短比例/形态/场景 | 分析时间 | 点击查看 |
|---|---|---|---|
| 爬宠断尾事件-20260525102300001 | 35% / open_wound / tail_loss_event_with_infection_risk | 2026-05-25 10:23:00 | 🔗 查看报告 |
# 分析本地守宫/蜥蜴尾部高清图像(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg --open-id your-open-id
# 分析网络守宫/蜥蜴尾部图像(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg --open-id your-open-id
# 显示历史断尾事件记录清单(自动触发关键词:查看守宫/蜥蜴断尾历史报告等)
python -m scripts.smyx_reptile_tail_loss_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --open-id your-open-id --output result.json