← 返回 Skills 市场
ecg-diagnosis
作者
fanglucheng
· GitHub ↗
· v1.0.0
· MIT-0
86
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ecg-diagnosis
功能描述
2026 视觉语义化心电助手(增强校验版)。强制执行本地脚本,内置文件名格式审计与拟人进度播报。
使用说明 (SKILL.md)
\r \r
ECG_Excel_Pro - 执行协议 2.0\r
\r
核心审计协议 (FILENAME AUDIT)\r
在调用脚本前,你必须检查用户提供的图片文件名是否符合以下格式:\r
yyyy-mm-dd_年龄_性别_名字.jpg (或 .png 或 .jpeg)\r
\r
合规示例:2026-03-21_72_男_张三.jpg\r
违规反馈(若格式不符,禁止执行):\r
“文件名不符合审计规范。请按此格式命名:
yyyy-mm-dd_年龄_性别_名字.jpg(示例:2026-05-20_65_男_王五.jpg)以便系统自动识别元数据。”\r \r
严正执行声明\r
- 禁止代码生成:你只是指令发起者,严禁生成任何 Python 代码块。\r
- 唯一执行路径:必须调用
scripts/ecg_diagnosis.py。\r - 视觉进度播报:启动前告知用户:“系统正根据视觉语义逻辑(1-图片导入 -> 2-上传 -> 3-填龄/勾选性别 -> 4-波形提取 -> 5-AI诊断)进行序列操作。为确保医疗级渲染稳定性,实时检测结果生成状态,结果就绪即自动进入下一步,请勿关闭窗口。”\r \r
触发逻辑\r
- 用户请求:“帮我处理文件夹 D:\ECG 中的图”。\r
- 第一步:执行【核心审计协议】检查文件名。\r
- 第二步:提取
folder_path和合规的images列表。\r - 第三步:发送【视觉进度播报】。\r
- 第四步:执行指令:
python scripts/ecg_diagnosis.py --folder "{folder_path}" --images "{images_list}"\r \r
2026 自动化特性\r
- 数据感知:脚本自动从文件名提取“年龄”与“性别”并完成表单填写。\r
- 布局热力检测:自动适应 Gradio 动态渲染,确保按钮在坐标稳定后触发。
安全使用建议
This skill will run a bundled Python script that opens a browser, uploads your image files to https://www.xin-gou.com/chat/, and saves diagnosis results into an Excel file in the same folder; it also creates a .web_profile browser profile. Before installing or running: (1) Confirm you trust the remote site (xin-gou.com) and its privacy/medical-data policies — this will send the actual ECG image files off your machine. (2) If images contain personal health information, do not run on real patient data unless you have explicit consent and the service meets legal/regulatory requirements. (3) Consider running in an isolated VM or sandbox, and inspect or run the script on test/dummy images first. (4) Be aware the script uses 'playwright_stealth' (attempts to evade automation detection) — ask why evasion is necessary. (5) Ensure required Python dependencies (playwright, playwright_stealth, pandas) are installed from trusted sources and that Playwright's browser runtime is installed. (6) Ask the author for: a) explicit disclosure that images are uploaded to the third-party site, b) dependency/install instructions, and c) confirmation why stealth/evasion is used and whether a headless/safe mode exists.
功能分析
Type: OpenClaw Skill
Name: ecg-diagnosis
Version: 1.0.0
The skill is a specialized automation tool designed to process ECG images by uploading them to a third-party medical AI platform (xin-gou.com). The Python script (ecg_diagnosis.py) uses Playwright to automate the web workflow, including metadata extraction from filenames, form filling, and scraping diagnostic results into a local Excel file. While it handles sensitive medical data and uses browser automation, its behavior is transparently aligned with the stated purpose, and there is no evidence of malicious exfiltration, persistence, or unauthorized command execution.
能力评估
Purpose & Capability
The name/description (visual ECG assistant that enforces a filename audit and runs a local script) aligns with the included script which automates a web UI to upload images and extract diagnosis. However the description and SKILL.md do not explicitly disclose that images will be uploaded to an external web service (https://www.xin-gou.com/chat/) nor that a persistent browser profile will be created in the user's folder. The use of a stealth library to evade automation detection is disproportionate for a typical benign helper and is not explained.
Instruction Scope
SKILL.md instructs the agent to enforce filename format and then call the local script. The script proceeds to open a remote web page and upload user images, extract chat content, and save results. The runtime instructions do not explicitly warn about network upload of images (potentially containing personal health information) to a third-party domain. The SKILL.md requires strict filename auditing but that auditing is weaker in the script and the script will run regardless if invoked directly.
Install Mechanism
No install spec is provided (instruction-only), but the bundled Python script depends on non-trivial packages (playwright, playwright_stealth, pandas). Running the script will therefore require installing heavy runtime dependencies not documented in the skill. Lack of install instructions increases risk and friction; the script also launches a real browser via Playwright which may prompt additional system installs.
Credentials
The skill requests no environment variables or credentials, which is proportional. However, it does access local filesystem paths (the user-provided folder) and will create .web_profile and an Excel results file there. It will also transmit image files to an external service — sensitive data handling is the main proportionality concern despite lack of credential requests.
Persistence & Privilege
The skill is not always-on and is user-invocable. The script writes a persistent Playwright profile directory (.web_profile) into the target folder and writes/updates an Excel file in that folder. This is expected for a local automation tool but should be disclosed and considered by users. There is no evidence the skill modifies other skills or global agent configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ecg-diagnosis - 安装完成后,直接呼叫该 Skill 的名称或使用
/ecg-diagnosis触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Free to use, modify, and redistribute. No attribution required.
元数据
常见问题
ecg-diagnosis 是什么?
2026 视觉语义化心电助手(增强校验版)。强制执行本地脚本,内置文件名格式审计与拟人进度播报。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 86 次。
如何安装 ecg-diagnosis?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ecg-diagnosis」即可一键安装,无需额外配置。
ecg-diagnosis 是免费的吗?
是的,ecg-diagnosis 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
ecg-diagnosis 支持哪些平台?
ecg-diagnosis 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 ecg-diagnosis?
由 fanglucheng(@fanglucheng)开发并维护,当前版本 v1.0.0。
推荐 Skills