Token导航 LogoToken导航

Agent Skill · 开发

ecg-ai-diagnosis(心电图 AI 诊断)

ecg-ai-diagnosis 用于处理音频、语音、转写和声音素材相关任务,适合在 OpenClaw 中需要整理音频流程、转写内容或生成配音素材时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ecg-ai-diagnosis 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 6,541。

总安装 4,586周安装 195GitHub Stars 2下载 1,607核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.9.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ecg-ai-diagnosis(心电图 AI 诊断)
来源仓库:https://github.com/yujiecharles/ecg-ai-diagnosis
安装命令:
openclaw skills install ecg-ai-diagnosis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ecg-ai-diagnosis

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

通过心之声 API 分析单导联与十二导联心电图信号。适用于医疗辅助诊断与心律失常初步筛查场景。自动选择接口端点并以用户母语返回解读结果。安装命令:openclaw skills install ecg-ai-diagnosis。仅限研究用途,不可作为临床诊断唯一依据。

ecg-ai-diagnosis 属于开发类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install ecg-ai-diagnosis;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ecg-ai-diagnosis 怎么安装?

在终端执行 openclaw skills install ecg-ai-diagnosis。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ecg-ai-diagnosis 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ecg-ai-diagnosis 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

ecg-ai-diagnosis 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

ecg-ai-diagnosis 用的人多吗?

公开数据是累计安装 4,586 次,近一周安装 195 次,下载 1,607 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ecg-ai-diagnosis 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
ecg-ai-diagnosis

心电图 AI 诊断 · 本页

4,5862接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
heartvoice_cloud
description
Analyze ECG signals via heartvoice (心之声) API — single-lead and 12-lead. Automatically selects endpoint based on user intent and responds in the user's language. Use when user mentions ECG, 心电图, 心电分析, 单导联, 十二导联, 1-lead, 12-lead, heart rhythm, arrhythmia, QRS, QT interval, signal quality, or asks to analyze an ECG JSON file.
homepage
https://www.heartvoice.com.cn/aiCloud
metadata
{"clawdbot":{"emoji":"❤","requires":{"bins":[],"env":["HEARTVOICE_API_KEY"]},"primaryEnv":"HEARTVOICE_API_KEY"}}

heartvoice ECG Analysis Skill

Analyze ECG data via the heartvoice (心之声) cloud API. The agent is responsible for detecting user intent (1-lead vs 12-lead) and language (Chinese vs English), then passing the appropriate explicit flags to the CLI script. The script itself requires explicit --mode and --lang parameters — all "automatic" behavior lives in the agent layer, not the script.

When to Activate

  • User wants to analyze ECG / heart rhythm / electrocardiogram data
  • User provides a JSON file containing ECG signal data
  • Code or conversation mentions 心电图, ECG, 心电分析, 心律分析
  • Keywords: 单导联, 十二导联, 1-lead, 12-lead, single lead, twelve lead
  • User asks about arrhythmia detection, QRS/QT intervals, or signal quality
  • User says "analyze ECG", "分析心电", "ecg diagnosis", or similar

Environment Setup

# Required — get your key at https://www.heartvoice.com.cn/aiCloud
export HEARTVOICE_API_KEY="your_api_key"

# Install dependencies
pip install requests

Never hardcode API keys. Always use environment variables or .env files.

Agent Responsibilities

The agent (not the CLI script) is responsible for two kinds of detection:

1. Detect analysis type → pass as CLI mode

Scan the user message for keywords and map to the explicit CLI mode argument:

User IntentCN KeywordsEN KeywordsCLI Mode
Single-lead signal单导联、单导、1导联1-lead, single lead, one lead1-lead
12-lead signal十二导联、12导联、多导联12-lead, twelve lead12-lead

If the user does not specify a type, ask before running the script:

  • Chinese: "请问您要分析的是单导联信号还是十二导联信号?"
  • English: "Would you like to analyze a single-lead or 12-lead signal?"

2. Detect user language → pass as --lang flag

Detect the language the user writes in and pass it as the --lang CLI flag:

User Language--lang Value
Chinese (中文)zh (default)
Englishen

Then respond entirely in that language throughout the session.

Workflow

  1. Agent detects analysis type (1-lead / 12-lead) from user message keywords. If ambiguous, ask.
  2. Agent detects user language (zh / en) from the message.
  3. Agent extracts file path from the user message.
  4. Agent runs the CLI script with explicit arguments: python3 scripts/call_api.py <mode> --json_path <path> --lang <lang>.
  5. Agent parses the structured JSON output from stdout.
  6. Agent presents the result as a natural-language report in the user's language.

Script Commands

# 1-lead signal analysis (Chinese output)
python3 scripts/call_api.py 1-lead --json_path <path/to/file.json>

# 1-lead signal analysis (English output)
python3 scripts/call_api.py 1-lead --json_path <path/to/file.json> --lang en

# 12-lead signal analysis (Chinese output)
python3 scripts/call_api.py 12-lead --json_path <path/to/file.json>

# 12-lead signal analysis (English output)
python3 scripts/call_api.py 12-lead --json_path <path/to/file.json> --lang en

Set --lang zh (default) or --lang en based on the language the user writes in.

Input File Formats

ADC Conversion Formula

The data arrays contain raw sample values from your recording device (integers or floats, depending on the device). The API internally converts them to millivolts (mV) using:

voltage_mV = (sampleValue - adcZero) / adcGain
  • adcZero — the sample value that corresponds to 0 mV (baseline offset)
  • adcGain — the number of sample units per 1 mV

Example 1 (integer samples): adcGain = 1000, adcZero = 0, sample = 512 → voltage = (512 - 0) / 1000 = 0.512 mV.

Example 2 (float samples, already in mV): if your device outputs values already in millivolts (e.g. 0.512), set adcGain = 1.0 and adcZero = 0.0 so the formula becomes a no-op: voltage = (0.512 - 0) / 1 = 0.512 mV.

These two parameters must match your recording device's output configuration; incorrect values will produce wrong voltage readings and unreliable diagnoses.

1-lead JSON

{
  "ecgData": [0.512, 0.515, 0.520, 0.518, 0.525, 0.530, 0.528, 0.535],
  "ecgSampleRate": 500,
  "adcGain": 1.0,
  "adcZero": 0.0
}

In this example, values are already in mV, so adcGain = 1.0 and adcZero = 0.0 (identity conversion). If your device outputs raw integer ADC values instead, adjust adcGain and adcZero accordingly.

FieldTypeRequiredDescription
ecgDatanumber[]YesSample value array — integers or floats, converted to mV via the formula above
ecgSampleRatenumberYesSampling rate in Hz (e.g. 500)
adcGainnumberYesSample units per 1 mV
adcZeronumberYesSample value corresponding to 0 mV baseline

12-lead JSON

{
  "dataI":   [...], "dataII":  [...], "dataIII": [...],
  "dataAVR": [...], "dataAVL": [...], "dataAVF": [...],
  "dataV1":  [...], "dataV2":  [...], "dataV3":  [...],
  "dataV4":  [...], "dataV5":  [...], "dataV6":  [...],
  "ecgSampleRate": 500,
  "adcGain": 1000.0,
  "adcZero": 0.0
}

In this example, values are raw integer ADC samples with adcGain = 1000 (1000 units = 1 mV).

FieldTypeRequiredDescription
dataI … dataV6number[]Yes12 lead sample arrays (I, II, III, aVR, aVL, aVF, V1–V6) — integers or floats, converted to mV via the formula above
ecgSampleRatenumberYesSampling rate in Hz
adcGainnumberYesSample units per 1 mV — shared across all 12 leads
adcZeronumberYesSample value corresponding to 0 mV baseline

Response Format

The fields below are the script's output (printed to stdout as JSON). The script normalizes the API's camelCase field names (e.g. avgHr, avgQrs, isAbnormal) to snake_case (e.g. avg_hr, avg_qrs, is_abnormal) for consistency. When reading the script output, always use the snake_case names listed here.

1-lead response fields

FieldTypeDescription
statusstring"success" or "error"
summarystringNatural-language summary in requested language
diagnosisstring[]Label list, e.g. ["SN"]
possible_diagnosisstring[]Possible labels list
is_abnormalbooleanWhether abnormal rhythm detected
is_reversebooleanWhether lead reversal detected
sq_gradestringSignal quality score, e.g. "0.95"
avg_hrnumberAverage heart rate (bpm)
avg_qrsnumberQRS duration (ms)
pr_intervalnumberPR interval (ms)
avg_qtnumberQT interval (ms)
avg_pnumberP wave duration (ms)
avg_qtcnumberCorrected QT interval (ms)
pac_countnumberAtrial premature beat count
pvc_countnumberVentricular premature beat count

12-lead response fields

FieldTypeDescription
statusstring"success" or "error"
analysis_statebooleanWhether analysis succeeded
summarystringNatural-language summary in requested language
diagnosesobject[]Array of {"label", "result", "description"}
diagnosis_resultsstring[]Flat list of result strings
risk_levelnumberRisk level — 0 = normal
HRnumberHeart rate (bpm)
atrial_ratenumberAtrial rate (bpm)
ventricular_ratenumberVentricular rate (bpm)
P / PR / QRS / QT / QTc / TnumberIntervals (ms)
QRS_axis / P_axis / T_axisnumberElectrical axes (degrees)
SV1 / SV2 / SV5 / RV1 / RV2 / RV5 / RV6numberWave amplitudes (mV)

Examples

Example 1 — Chinese user, single-lead

用户:请帮我分析这个单导联信号,数据放在 data/ecg_data.json 里

Agent runs:

python3 scripts/call_api.py 1-lead --json_path data/ecg_data.json --lang zh

Output:

{
  "status": "success",
  "summary": "检测到:窦性心律。平均心率 72 次/分钟,QRS 宽度 86 毫秒,PR 间期 156 毫秒,QT 间期 380 毫秒,QTc 412 毫秒,P 波宽度 102 毫秒。信号质量 0.95。房性早搏 0 次,室性早搏 0 次。",
  "diagnosis": ["SN"],
  "possible_diagnosis": [],
  "is_abnormal": false,
  "avg_hr": 72,
  "sq_grade": "0.95"
}

Agent responds:

分析完成。该心电信号显示窦性心律,平均心率 72 次/分钟,各项参数均在正常范围内。信号质量评分 0.95(优秀),未检测到房性或室性早搏。

Example 2 — English user, 12-lead

User: Analyze my 12-lead ECG data from records/12lead.json

Agent runs:

python3 scripts/call_api.py 12-lead --json_path records/12lead.json --lang en

Output:

{
  "status": "success",
  "summary": "Detected: Sinus Rhythm. Heart rate 75 bpm, QRS duration 88 ms, PR interval 160 ms, QT interval 376 ms, QTc 420 ms, P wave 100 ms, T wave 180 ms. Risk assessment: normal.",
  "diagnoses": [{"label": "SN", "result": "Sinus Rhythm", "description": "Normal sinus rhythm"}],
  "risk_level": 0,
  "HR": 75
}

Agent responds:

Analysis complete. The 12-lead ECG shows Sinus Rhythm with a heart rate of 75 bpm. All intervals are within normal range. Risk level: normal (0).

Example 3 — Ambiguous intent

User: Can you analyze this ECG for me? The file is at data/signal.json

Agent asks:

Would you like to analyze a single-lead (1-lead) or 12-lead signal?

Error Handling

SituationAction
File not foundReport the exact path; ask user for the correct path
Missing JSON fieldsList the missing required fields by name
HEARTVOICE_API_KEY not setTell the user to visit https://www.heartvoice.com.cn/aiCloud to obtain an API Key and set it as the HEARTVOICE_API_KEY environment variable
HTTP error from APIShow status code and error message from the response
API business error (errorCode != 0)Show the error message returned by the API
File too large (> 5 MB)Tell the user the file exceeds the 5 MB limit
Ambiguous intentAsk whether the data is 1-lead or 12-lead

Security & Privacy

Data flow: This skill reads a user-specified local JSON file and sends its contents (ECG signal data, sample rate, ADC parameters) over HTTPS to the heartvoice cloud API (api.heartvoice.com.cn) for analysis. The user should be aware that their ECG data leaves the local machine. No other files or environment variables beyond HEARTVOICE_API_KEY are accessed.

  • Never hardcode API keys in scripts or commit them to version control
  • ECG data is sensitive medical data — do not log or store raw signal data unnecessarily; inform the user before transmitting
  • Always use HTTPS (the API endpoint enforces TLS)
  • Add .env to .gitignore if using dotenv files
  • The skill only reads the file path explicitly provided by the user — it does not scan or access other files
  • This tool provides AI-assisted analysis only; it is NOT a substitute for professional medical diagnosis

Tips

  • Signal quality (sq_grade) below 0.6 usually indicates noisy data — suggest the user re-record or check electrode contact
  • For 12-lead analysis, all 12 lead arrays must be present; partial data will fail field validation
  • The adcGain and adcZero values must match your recording device's ADC configuration — see the ADC Conversion Formula section for how they translate raw samples to millivolts
  • JSON file size limit is 5 MB
  • Typical ecgSampleRate values: 250, 500, 1000 Hz — check your device specs
  • Use the example files in data/ to verify your setup before analyzing real signals

Programmatic Usage

You can also import the script functions directly in Python:

import os
from scripts.call_api import load_json, build_1lead_payload, call_api, format_1lead_result

api_key = os.environ["HEARTVOICE_API_KEY"]
data = load_json("data/example_1lead.json")
payload = build_1lead_payload(data)
raw_result = call_api(
    "https://api.heartvoice.com.cn/api/v1/basic/ecg/1-lead/analyze",
    payload, api_key
)
output = format_1lead_result(raw_result)
print(output["summary"])
print(f"Heart rate: {output['avg_hr']} bpm")

平台分布

OpenClaw

70.35%
按下载量换算1,131

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills