Install
openclaw skills install smyx-stroke-risk-screening-analysisCombines TCM facial feature recognition with physiological indicator information to provide early warnings of high-risk stroke conditions such as cerebral infarction and cerebral hemorrhage, and provides lifestyle intervention suggestions and medical guidance. | 脑卒中风险筛查技能,结合中医面部特征辨识结合生理指标信息,提前预警脑梗塞、脑出血等脑卒中高危状态,给出生活干预建议和就医指引
openclaw skills install smyx-stroke-risk-screening-analysisThis feature innovatively integrates the wisdom of TCM "Wang Zhen" (Inspection) with modern physiological monitoring technology to construct an early warning and intervention system for stroke. By utilizing high-precision cameras to capture subtle facial characteristics—such as greenish-yellow or purplish-red complexion, swollen tongue body, and mouth deviation—alongside real-time physiological indicators like blood pressure and Heart Rate Variability (HRV), the system employs multimodal AI algorithms for comprehensive analysis. It accurately identifies high-risk constitutions, such as Qi deficiency with phlegm-dampness or Qi and blood stasis, issuing graded warnings prior to a stroke event. Furthermore, grounded in the theory of TCM syndrome differentiation and treatment, it provides users with personalized lifestyle interventions (including dietary regulation and cold avoidance) and scientific medical guidance, truly realizing the leap in health management from "treating existing diseases" to "treating potential diseases" (preventive medicine).
本功能创新性地将中医“望诊”智慧与现代生理监测技术深度融合,旨在构建一套脑卒中早期预警与干预系统。系统通过高精度摄像头捕捉面部微细特征,如面色青黄或紫红、舌体胖大、口角歪斜等中医“面象”与“舌象”信息,结合实时采集的血压、心率变异性等生理指标,利用多模态AI算法进行综合分析。系统能够精准识别气虚痰湿、气血瘀滞等高危体质倾向,在脑卒中发生前发出分级预警,并基于中医辨证施治理论,为用户提供个性化的饮食调理、起居避寒等生活干预建议及科学的就医指引,真正实现从“治已病”到“治未病”的健康管理跨越
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件python -m scripts.stroke_risk_screening_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.stroke_risk_screening_analysis 处理素材(必须在技能根目录下运行脚本)--input: 本地视频/图片文件路径(使用 multipart/form-data 方式上传)--url: 网络视频/图片 URL 地址(API 服务自动下载)--media-type: 媒体类型,可选值:video/image,默认 video--blood-pressure: 血压值,格式:收缩压/舒张压,如 140/90(可选)--blood-sugar: 空腹血糖值 mmol/L(可选)--blood-lipid: 总胆固醇值 mmol/L(可选)--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示脑卒中风险筛查历史报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)脑卒中风险筛查报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 筛查时间 | 风险等级 | 点击查看 |
|---|---|---|---|
| 脑卒中风险筛查报告-20260312172200001 | 2026-03-12 17:22:00 | ||
| 高危 | 🔗 查看报告 |
# 分析本地面部视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.stroke_risk_screening_analysis --input /path/to/face_video.mp4 --media-type video --open-id openclaw-control-ui
# 分析本地面部照片,附带生理指标(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.stroke_risk_screening_analysis --input /path/to/face.jpg --media-type image --blood-pressure 145/92 --blood-sugar 6.8 --open-id openclaw-control-ui
# 分析网络视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.stroke_risk_screening_analysis --url https://example.com/face_video.mp4 --media-type video --open-id openclaw-control-ui
# 显示历史筛查报告/显示筛查报告清单列表/显示历史脑卒中报告(自动触发关键词:查看历史筛查报告、历史报告、筛查报告清单等)
python -m scripts.stroke_risk_screening_analysis --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.stroke_risk_screening_analysis --input video.mp4 --media-type video --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.stroke_risk_screening_analysis --input video.mp4 --media-type video --open-id your-open-id --output result.json