← Back to Skills Marketplace
fanglucheng

ecg-diagnosis

by fanglucheng · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
86
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install ecg-diagnosis
Description
2026 视觉语义化心电助手(增强校验版)。强制执行本地脚本,内置文件名格式审计与拟人进度播报。
README (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

  1. 禁止代码生成:你只是指令发起者,严禁生成任何 Python 代码块。\r
  2. 唯一执行路径:必须调用 scripts/ecg_diagnosis.py。\r
  3. 视觉进度播报:启动前告知用户:“系统正根据视觉语义逻辑(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 动态渲染,确保按钮在坐标稳定后触发。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ecg-diagnosis
  3. After installation, invoke the skill by name or use /ecg-diagnosis
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Free to use, modify, and redistribute. No attribution required.
Metadata
Slug ecg-diagnosis
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is ecg-diagnosis?

2026 视觉语义化心电助手(增强校验版)。强制执行本地脚本,内置文件名格式审计与拟人进度播报。 It is an AI Agent Skill for Claude Code / OpenClaw, with 86 downloads so far.

How do I install ecg-diagnosis?

Run "/install ecg-diagnosis" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ecg-diagnosis free?

Yes, ecg-diagnosis is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does ecg-diagnosis support?

ecg-diagnosis is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ecg-diagnosis?

It is built and maintained by fanglucheng (@fanglucheng); the current version is v1.0.0.

💬 Comments