Weather
一个面向 Data & APIs 场景的 Agent 技能。原始说明:Get current weather and forecasts (no API key required).
一个面向 Data & APIs 场景的 Agent 技能。原始说明:Through fixed aquarium cameras, the system analyzes fish behavior near the water surface, detecting repeated mouth-out-of-water (gasping), rapid mouth openin...
name: "smyx-fish-gasping-ammonia-warning-analysis"
description: "Through fixed aquarium cameras, the system analyzes fish behavior near the water surface, detecting repeated mouth-out-of-water (gasping), rapid mouth opening/closing (fast respiration) and exaggerated operculum (gill cover) movement — classic symptoms of hypoxia or poisoning. When multiple fish exhibit the above behavior simultaneously and the duration exceeds a configurable threshold (default 60 seconds), the system outputs an 'ammonia poisoning or hypoxia risk warning', prompting the user to immediately test water quality, perform water change, or increase aeration. This skill helps take emergency action BEFORE fish die. Application scenarios: home aquariums, public aquariums, aquaculture ponds. The system monitors in real time and pushes alerts the moment fish gasping is detected. Skill features: ammonia poisoning is a common acute emergency in aquariums — by the time it is noticed, fish deaths may have already occurred. AI-based automatic recognition of gasping and abnormal respiration provides emergency warning at the earliest stage, buying time to handle the situation and reduce losses. This skill can be integrated into smart aquarium cameras or aquatic safety monitoring systems. | 通过鱼缸固定摄像头,分析鱼类在水面附近的行为,检测鱼嘴反复探出水面(浮头)、张口快速开合(类似喘气)、鳃盖运动加剧等缺氧或中毒典型症状。当多条鱼同时出现上述行为且持续时间超过设定阈值(默认 60 秒)时,输出'氨氮中毒或缺氧风险预警',提醒用户立即检测水质、换水或增氧。该技能有助于在鱼只死亡前采取紧急措施。应用场景:家庭鱼缸、水族馆、养殖池。系统实时监测,一旦发现鱼浮头立即推送警报。技能特点:氨氮中毒是鱼缸常见急症,往往在检测到前已造成鱼只死亡。通过 AI 自动识别鱼浮头和异常呼吸,可在事发初期紧急提醒,为处理争取时间,减少损失。该技能可集成到智能鱼缸摄像头或水族安防系统中。"
version: "1.0.0"
Through fixed aquarium cameras, the system analyzes fish behavior near the water surface, detecting repeated mouth-out-of-water (gasping), rapid mouth opening/closing (fast respiration) and exaggerated operculum (gill cover) movement — classic symptoms of hypoxia or poisoning. When multiple fish exhibit the above behavior simultaneously and the duration exceeds a configurable threshold (default 60 seconds), the system outputs an 'ammonia poisoning or hypoxia risk warning', prompting the user to immediately test water quality, perform water change, or increase aeration. This skill helps take emergency action BEFORE fish die. Application scenarios: home aquariums, public aquariums, aquaculture ponds. The system monitors in real time and pushes alerts the moment fish gasping is detected. Skill features: ammonia poisoning is a common acute emergency in aquariums — by the time it is noticed, fish deaths may have already occurred. AI-based automatic recognition of gasping and abnormal respiration provides emergency warning at the earliest stage, buying time to handle the situation and reduce losses. This skill can be integrated into smart aquarium cameras or aquatic safety monitoring systems.
通过鱼缸固定摄像头,分析鱼类在水面附近的行为,检测鱼嘴反复探出水面(浮头)、张口快速开合(类似喘气)、鳃盖运动加剧等缺氧或中毒典型症状。当多条鱼同时出现上述行为且持续时间超过设定阈值(默认 60 秒)时,输出'氨氮中毒或缺氧风险预警',提醒用户立即检测水质、换水或增氧。该技能有助于在鱼只死亡前采取紧急措施。应用场景:家庭鱼缸、水族馆、养殖池。系统实时监测,一旦发现鱼浮头立即推送警报。技能特点:氨氮中毒是鱼缸常见急症,往往在检测到前已造成鱼只死亡。通过 AI 自动识别鱼浮头和异常呼吸,可在事发初期紧急提醒,为处理争取时间,减少损失。该技能可集成到智能鱼缸摄像头或水族安防系统中。
假设你是一个专业的水族水质安全 AI。你的任务是分析鱼缸固定摄像头的视频(覆盖水面带 + 水中段,分辨率 ≥ 720p,帧率 ≥ 25 FPS),检测鱼类在水面附近的三大异常行为:① 鱼嘴反复探出水面(头部冲出水面后缩回) ② 口部快速开合(频率 > 2 次/秒) ③ 鳃盖开合幅度增大(体长归一化)。当多条鱼(至少 2 条)同时出现这些行为且持续时间超过 60 秒(用户可配置 30-300 秒)时,输出氨氮中毒或缺氧风险预警。按 7 类综合场景判定(surfacebehaviornormal / singlefishsurfacebreathingshort / singlefishgaspingpersistent / multifishgaspingmoderate / multifishgaspingsevere / wholetankgaspingemergency / signal_unreliable),按 4 级告警策略递进(Level 1 不提示 → Level 2 单鱼观察评估隔离 → Level 3 紧急检测水质 NH3/NO2-/DO/pH + 增氧 + 准备换水 → Level 4 🚨 最高紧急 + 所有联系人 + 立即增氧 + 换 1/3-1/2 水(温度 pH 匹配,禁冷水直冲)+ 立即测氨氮 + 检查滤材/硝化系统 + 联系兽医)。鱼种特异性必须按基线判定:气呼吸鱼种(斗鱼 / 攀鲈 / 部分鳉鱼科 / 蛇头鱼)天然偶尔到水面换气、水面摄食型(孔雀鱼 / 鳉鱼科)天然偏好水面 → 严禁通用阈值盲判气呼吸鱼种为浮头。必须考虑生理性上下文(投喂窗口聚拢水面抢食 / 强水流 / 水温过高 / 鱼苗自然集群水面),避免误报。水面波纹过大 / 水草浮于水面遮挡 / 跟踪率 < 80% 时必须返回 gasping_signal_unreliable 并建议调整摄像头,严禁给出不可靠预警。🚨 严禁做"氨氮中毒确诊 / 亚硝酸盐中毒确诊 / 鳃病确诊"等具体疾病诊断(仅可输出"视觉预兆/风险预警"语义);严禁输出具体药物名称、剂量、给药方案(包括硝化菌液具体品牌、解氨剂、亚甲基蓝等任何药剂);严禁伪造夸大浮头条数 / 口开合频率 / 鳃盖幅度;严禁越权代用户启停增氧泵/加热棒/换水/喂食器/灯光等(仅建议)。
:查看鱼缸浮头历史报告、氨氮预警日志清单、缺氧事件清单、查询历史鱼缸预警记录、显示所有水族安防预警报告
显示所有氨氮缺氧事件"、"
查看历史报告"等),必须:
python -m scripts.smyx_fish_gasping_ammonia_warning_analysis --list --open-id 参数调用 API查询云端的历史报告数据
requests>=2.28.0
在执行水族箱氨氮中毒视觉预兆识别前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/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_fish_gasping_ammonia_warning_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: 结果输出文件路径(可选)用途:调用 API 进行水族箱氨氮中毒视觉预兆识别,本地文件上传,网络 URL 由 API 服务自动下载)
gasping_signal_unreliable 并建议调整摄像头/清理遮挡,禁止给出不可靠的预警 表格格式输出,包含"
报告名称"、"浮头条数/持续时长/场景"、"分析时间"、"点击查看"四列,其中"报告名称"列使用鱼缸浮头预警-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。
| 报告名称 | 浮头条数/持续时长/场景 | 分析时间 | 点击查看 |
|----------|----------|----------|----------|
| 鱼缸浮头预警-20260524165300001 | 6 条 / 92s / multifishgasping_severe | 2026-05-24 16:53:00 | 🔗 查看报告 |
# 分析本地鱼缸固定摄像头视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_fish_gasping_ammonia_warning_analysis --input /path/to/tank.mp4 --open-id your-open-id
# 分析网络鱼缸固定摄像头视频/实时流(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_fish_gasping_ammonia_warning_analysis --url https://example.com/tank.mp4 --open-id your-open-id
# 显示历史浮头预警记录清单(自动触发关键词:查看鱼缸浮头历史报告、氨氮预警日志清单等)
python -m scripts.smyx_fish_gasping_ammonia_warning_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_fish_gasping_ammonia_warning_analysis --input tank.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_fish_gasping_ammonia_warning_analysis --input tank.mp4 --open-id your-open-id --output result.json