Install
openclaw skills install smyx-family-conflict-aftercare-suggest-analysisThrough fixed cameras (with microphones) in the family living room or kitchen, the system monitors conflict events among family members in real time, identifying high-decibel arguments (sound intensity exceeding a threshold and lasting more than 10 seconds), door slams (object impact sound + door-frame vibration), and aggressive arm-swing actions. After a conflict ends (both audio and video remain calm beyond a preset window, default 10 minutes) and no new conflict occurs, the system automatically outputs an aftercare prompt: playing soft music via a smart speaker or pushing caring messages through a mobile APP (such as 'Need a cup of tea?', 'Take a deep breath, speak slowly'). This skill aims to help family members soothe their emotions after intense arguments and restore communication. Application scenarios: family living rooms, kitchens, dining rooms and other conflict-prone areas. The system provides non-intrusive emotional comfort after conflicts. Skill features: family emotions easily continue to deteriorate after a conflict; appropriate external cues (music, caring words) can break the negative loop and encourage calm communication. AI-based automatic conflict detection with timely soothing helps maintain family harmony, especially for families with teenagers or members prone to emotional escalation. Can be integrated into smart speakers or home-security systems as a distinctive family-care feature. | 通过家庭客厅或厨房的固定摄像头(含麦克风),实时监测家庭成员间的冲突事件,识别高分贝争吵(声音强度超过阈值且持续时间>10秒)、摔门(物体撞击声+门框振动)、甩手等激烈肢体动作。当冲突事件结束后(音频和视频均平静超过预设时间,默认10分钟)且无新冲突,系统自动输出缓和提示:通过智能音箱播放轻柔音乐,或通过手机APP推送关怀语(如'需要一杯茶吗?'、'深呼吸,慢慢说')。该技能旨在帮助家庭成员在激烈争执后平复情绪,促进沟通恢复。应用场景:家庭客厅、厨房、餐厅等易发生冲突的区域。系统在冲突后提供非介入式情绪安抚。技能特点:家庭冲突后情绪易持续恶化,适当的外界提示(如音乐、关怀语)可打断负面情绪循环,促进冷静沟通。通过AI自动识别冲突并适时提供安抚,有助于维护家庭和谐,尤其适合有青少年或情绪易失控成员的家庭。该技能可集成到智能音箱或家庭安防系统中,成为家庭关怀的特色功能。
openclaw skills install smyx-family-conflict-aftercare-suggest-analysisThrough fixed cameras (with microphones) in the family living room or kitchen, the system monitors conflict events among family members in real time, identifying high-decibel arguments (sound intensity exceeding a threshold and lasting more than 10 seconds), door slams (object impact sound + door-frame vibration), and aggressive arm-swing actions. After a conflict ends (both audio and video remain calm beyond a preset window, default 10 minutes) and no new conflict occurs, the system automatically outputs an aftercare prompt: playing soft music via a smart speaker or pushing caring messages through a mobile APP (such as 'Need a cup of tea?', 'Take a deep breath, speak slowly'). This skill aims to help family members soothe their emotions after intense arguments and restore communication. Application scenarios: family living rooms, kitchens, dining rooms and other conflict-prone areas. The system provides non-intrusive emotional comfort after conflicts. Skill features: family emotions easily continue to deteriorate after a conflict; appropriate external cues (music, caring words) can break the negative loop and encourage calm communication. AI-based automatic conflict detection with timely soothing helps maintain family harmony, especially for families with teenagers or members prone to emotional escalation. Can be integrated into smart speakers or home-security systems as a distinctive family-care feature.
通过家庭客厅或厨房的固定摄像头(含麦克风),实时监测家庭成员间的冲突事件,识别高分贝争吵(声音强度超过阈值且持续时间>10秒)、摔门(物体撞击声+门框振动)、甩手等激烈肢体动作。当冲突事件结束后(音频和视频均平静超过预设时间,默认10分钟)且无新冲突,系统自动输出缓和提示:通过智能音箱播放轻柔音乐,或通过手机APP推送关怀语(如'需要一杯茶吗?'、'深呼吸,慢慢说')。该技能旨在帮助家庭成员在激烈争执后平复情绪,促进沟通恢复。应用场景:家庭客厅、厨房、餐厅等易发生冲突的区域。系统在冲突后提供非介入式情绪安抚。技能特点:家庭冲突后情绪易持续恶化,适当的外界提示(如音乐、关怀语)可打断负面情绪循环,促进冷静沟通。通过AI自动识别冲突并适时提供安抚,有助于维护家庭和谐,尤其适合有青少年或情绪易失控成员的家庭。该技能可集成到智能音箱或家庭安防系统中,成为家庭关怀的特色功能。
假设你是一个专业的家庭情绪缓和 AI。你的任务是分析家庭公共活动区域(客厅 / 厨房 / 餐厅)固定摄像头的音视频,检测冲突事件:高分贝争吵(≥ 75 dB 且持续 ≥ 10 秒,与正常大笑/儿童欢闹区分)、摔门(撞击声 + 短暂低频共振)、物体砸落、大幅甩手、来回踱步、转身背对。当冲突结束后连续 10 分钟(默认值,可配置)静默且无新冲突**,触发缓和动作:智能音箱播放轻柔音乐 / 温柔语音提示 / 家庭群 APP 关怀语推送。不提供心理咨询,仅输出基于音视频的事件检测和缓和动作建议;冲突中不介入避免激化;遇到疑似肢体暴力、未成年人在场、危险物等红线信号立即转走"安全风险"路径,推送 12338 反家暴热线 + 110 报警 + 400-161-9995 全国心理援助。**
python -m scripts.smyx_family_conflict_aftercare_suggest_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_family_conflict_aftercare_suggest_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: 结果输出文件路径(可选)intense_conflict 期间播放音乐或语音会激化情绪;必须等待平静窗口critical_redline 触发时立即推送 12338 反家暴热线 + 110 报警提示;有未成年人在场优先级最高家庭冲突缓和事件-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 冲突等级/持续时长/已执行缓和动作 | 分析时间 | 点击查看 |
|---|---|---|---|
| 家庭冲突缓和事件-20260312172200001 | conflict / 8min / 轻音乐+APP 关怀语 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地家庭公共区域音视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_family_conflict_aftercare_suggest_analysis --input /path/to/livingroom.mp4 --open-id your-open-id
# 分析网络家庭公共区域音视频/实时流(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_family_conflict_aftercare_suggest_analysis --url https://example.com/livingroom.mp4 --open-id your-open-id
# 显示历史家庭冲突缓和事件清单(自动触发关键词:查看家庭冲突缓和历史报告、家庭情绪事件清单等)
python -m scripts.smyx_family_conflict_aftercare_suggest_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_family_conflict_aftercare_suggest_analysis --input lr.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_family_conflict_aftercare_suggest_analysis --input lr.mp4 --open-id your-open-id --output result.json