{"id":"8e1d78c7-0777-4831-9f35-f80a8f52401d","entityType":"agent","slug":"clawhub-18072937735-smyx-arrhythmia-early-warning-analysis","name":"Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis","generatedAt":"2026-10-10T01:21:09.587Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T13:42:25.979Z","emptyReason":null},"description":"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 Skill: Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具 Owner: 18072937735 Summary: Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 Tags: latest:1.0.19 Version history: v1.0.19 | 2026-10-02T13:53:29.667Z | auto - Removed the file: skill-","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2.5K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-arrhythmia-early-warning-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-arrhythmia-early-warning-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-arrhythmia-early-warning-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":40,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart he"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T13:42:25.979Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T13:42:25.979Z","emptyReason":null},"stars":null,"forks":null,"downloads":2545,"packageName":null,"latestVersion":"1.0.19","tractionLabel":"2.5K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T13:42:25.979Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T13:42:25.979Z","lastCrawledAt":"2026-10-09T13:42:25.979Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T13:42:25.979Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.19","createdAt":"2026-10-02T13:53:29.667Z","changelog":"- Removed the file: skill-card.md. - No other functional or structural changes introduced in this version.","fileCount":31,"zipByteSize":38545},{"version":"1.0.18","createdAt":"2026-09-25T18:50:51.146Z","changelog":"- Removed the skill-card.md file. - Made minor updates to internal configuration (config.yaml), with no changes to main functionality or capabilities. - Documentation and usage instructions in SKILL.md remain unchanged.","fileCount":31,"zipByteSize":38438},{"version":"1.0.17","createdAt":"2026-09-07T08:53:28.908Z","changelog":"- Removed the file skill-card.md from the project. - No changes to functionality or usage; documentation and script files remain unchanged.","fileCount":31,"zipByteSize":38602},{"version":"1.0.16","createdAt":"2026-08-28T18:33:09.809Z","changelog":"- Version updated from 1.0.16 to 1.0.18. - Documentation in SKILL.md revised and updated. - skill-card.md file removed. - No changes to workflows, abilities, or API usage.","fileCount":31,"zipByteSize":38821},{"version":"1.0.15","createdAt":"2026-08-17T21:25:28.689Z","changelog":"- Version updated to 1.0.16. - Documentation improvements in SKILL.md. - Minor refinements to text and requirements for clarity. - Removed deprecated file: skill-card.md.","fileCount":31,"zipByteSize":38477},{"version":"1.0.14","createdAt":"2026-08-13T11:08:50.245Z","changelog":"- Updated version number from 1.0.14 to 1.0.15 in SKILL.md. - Removed obsolete skill-card.md file. - No functional or usage changes introduced.","fileCount":31,"zipByteSize":38703},{"version":"1.0.13","createdAt":"2026-08-05T14:37:31.201Z","changelog":"- Removed the file: skill-card.md - No other functional or content changes in the skill—documentation and features remain unchanged.","fileCount":31,"zipByteSize":38889},{"version":"1.0.12","createdAt":"2026-07-31T05:54:30.953Z","changelog":"- Updated version from 1.0.11 to 1.0.14 in documentation. - Removed the redundant skill-card.md file. - No functional or workflow changes; doc edits only (SKILL.md content updated, mainly version bump). - All usage, requirements, and workflow details remain unchanged.","fileCount":31,"zipByteSize":38749}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-arrhythmia-early-warning-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T01:21:09.584Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-arrhythmia-early-warning-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T13:42:25.979Z","emptyReason":null},"readme":"Skill: Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\nOwner: 18072937735\n\nSummary: Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\n\nTags: latest:1.0.19\n\nVersion history:\n\nv1.0.19 | 2026-10-02T13:53:29.667Z | auto\n\n- Removed the file: skill-card.md.\n- No other functional or structural changes introduced in this version.\n\nv1.0.18 | 2026-09-25T18:50:51.146Z | auto\n\n- Removed the skill-card.md file.\n- Made minor updates to internal configuration (config.yaml), with no changes to main functionality or capabilities.\n- Documentation and usage instructions in SKILL.md remain unchanged.\n\nv1.0.17 | 2026-09-07T08:53:28.908Z | auto\n\n- Removed the file skill-card.md from the project.\n- No changes to functionality or usage; documentation and script files remain unchanged.\n\nv1.0.16 | 2026-08-28T18:33:09.809Z | auto\n\n- Version updated from 1.0.16 to 1.0.18.\n- Documentation in SKILL.md revised and updated.\n- skill-card.md file removed.\n- No changes to workflows, abilities, or API usage.\n\nv1.0.15 | 2026-08-17T21:25:28.689Z | auto\n\n- Version updated to 1.0.16.\n- Documentation improvements in SKILL.md.\n- Minor refinements to text and requirements for clarity.\n- Removed deprecated file: skill-card.md.\n\nv1.0.14 | 2026-08-13T11:08:50.245Z | auto\n\n- Updated version number from 1.0.14 to 1.0.15 in SKILL.md.\n- Removed obsolete skill-card.md file.\n- No functional or usage changes introduced.\n\nv1.0.13 | 2026-08-05T14:37:31.201Z | auto\n\n- Removed the file: skill-card.md\n- No other functional or content changes in the skill—documentation and features remain unchanged.\n\nv1.0.12 | 2026-07-31T05:54:30.953Z | auto\n\n- Updated version from 1.0.11 to 1.0.14 in documentation.\n- Removed the redundant skill-card.md file.\n- No functional or workflow changes; doc edits only (SKILL.md content updated, mainly version bump).\n- All usage, requirements, and workflow details remain unchanged.\n\nv1.0.11 | 2026-07-13T08:05:30.657Z | auto\n\n- Removed the skill-card.md file.\n- No changes to functionality or core documentation.\n- Version remains 1.0.11.\n\nv1.0.10 | 2026-07-10T09:27:30.528Z | auto\n\n- Updated version to 1.0.11.\n- Documentation refreshed and SKILL.md updated with clearer structure and wording improvements.\n- Removed redundant file: skill-card.md.\n- No changes to core logic or functional capabilities.\n\nv1.0.9 | 2026-06-30T02:03:26.081Z | auto\n\n- Updated version to 1.0.9.\n- Minor documentation revisions in SKILL.md for clarity and consistency (section wording and formatting adjustments).\n- Demo link in SKILL.md changed to a new sample page.\n- Refined descriptions of abilities and requirements in SKILL.md.\n- Removed the redundant skill-card.md documentation file.\n\nv1.0.8 | 2026-06-24T14:20:33.458Z | auto\n\n**User-facing workflow and documentation overhaul for simpler, safer usage.**\n\n- Fully revised user guide: process is now identity-agnostic—users are never asked for open-id, username, or similar parameters.\n- All identification and user association are handled internally by the system; sensitive info is never shown or requested from users.\n- Example commands and workflow no longer involve or mention open-id or API keys.\n- Skill documentation reorganized: clearer sections, user experience streamlined, stricter privacy and data handling rules.\n- API usage and report querying logic improved to enforce cloud-only history retrieval—local/manual lookups are forbidden.\n\nv1.0.7 | 2026-06-18T02:47:22.477Z | auto\n\n- Added explicit license field (\"MIT-0\") to SKILL.md for clear licensing information.\n- Updated open-id configuration file path in SKILL.md step 1 from \"skills/smyx_common/scripts/config.yaml\" to \"scripts/config.yaml\" (relative to skill root directory).\n- Removed obsolete file: skill-card.md.\n- Documentation and config instructions were clarified; functionality and API usage unchanged.\n\nv1.0.6 | 2026-06-06T03:43:12.831Z | auto\n\n- Version updated to 1.0.6.\n- Documentation (SKILL.md) revised to clarify workflows, versioning, and constraints.\n- Removal of the outdated skill-card.md file.\n- Code updates in scripts and shared modules to align with configuration and version changes.\n- No changes to core functionality or analysis process.\n\nv1.0.5 | 2026-05-25T15:22:46.720Z | auto\n\n- Separated the arrhythmia early warning analysis logic into a new module: `skills/smyx_analysis`\n- Removed unrelated face analysis files and directories to streamline the skill\n- Added modular files for analysis logic, API service, and config under `skills/smyx_analysis/`\n- Updated implementation and references to focus solely on arrhythmia early warning features\n- Adjusted input file handling and standardized API invocation pathways\n- Reduced the maximum supported upload video file size from 100MB to 10MB for improved stability and compliance\n\nv1.0.4 | 2026-05-20T02:12:37.126Z | auto\n\n- Updated development and testing configuration files: config-dev.yaml, config-test.yaml, and config.yaml.\n- Improved configuration logic in config.py for more consistent parameter management.\n- Made adjustments in util.py to enhance utility function usage.\n- No changes to user-visible features or main workflow.\n- Documentation (SKILL.md) remains unchanged.\n\nv1.0.3 | 2026-05-12T18:24:44.529Z | auto\n\n- Updated configuration files: config-dev.yaml, config-test.yaml, config.yaml, and config.py with new settings or values.\n- Internal utility functions improved in util.py for better code reuse or reliability.\n- Minor changes to the package initialization in __init__.py.\n- No changes to user-facing features or usage documented in SKILL.md.\n\nv1.0.2 | 2026-05-08T17:33:41.735Z | auto\n\n- Documentation fully restructured and enhanced for clarity, with a concise English and Chinese introduction.\n- Added a new version header (version: \"1.0.0\") to SKILL.md.\n- No new features or functionality changes; core instructions, rules, workflows, and usage examples remain intact.\n- No code or interface changes—this update focuses on improving user understanding through clearer documentation.\n\nv1.0.1 | 2026-04-15T16:26:06.355Z | auto\n\nVersion 1.0.1\n\n- No file changes detected in this release.\n- Documentation, usage instructions, and feature set remain unchanged from the previous version.\n- All behaviors, workflows, and constraints are consistent with the prior release.\n\nv1.0.0 | 2026-04-14T03:19:23.656Z | auto\n\nArrhythmia Early Warning Analysis Tool v1.0.0\n\n- First release: Early warning analysis of arrhythmia risks using facial video input.\n- Automatically detects premature beats, atrial fibrillation, tachycardia/bradycardia, and provides risk grading and health advice.\n- Strict data and execution rules: Only cloud API may be used for history reports; local or long-term memory strictly forbidden for report queries.\n- Enforces open-id acquisition via config files or explicit user input before any analysis.\n- Clear demo, task, operation, and security documentation included for safe and reliable use.\n- Analysis and report queries use unified API scripts; outputs results in structured Markdown tables with direct report links.\n\nArchive index:\n\nArchive v1.0.19: 31 files, 38545 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2468b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.19:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.19:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.19\",\n  \"publishedAt\": 1790949209667\n}\n\nFile v1.0.19:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.19:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.19:scripts/config.yaml\n\n{}\n\nFile v1.0.19:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.19:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.19:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.19:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.19:skill-card.md\n\n## Description:\n\nAnalyzes facial video for possible abnormal heart rhythms and provides an early-warning risk report.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nIndividuals and health-focused application developers use facial video to screen for possible irregular heart rhythms and review prior warning reports. Results are early-warning information, not a substitute for ECG testing or clinical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Facial video and inferred heart-health data are sent to a cloud service.\n\nMitigation: Obtain informed consent and confirm the service's privacy handling before submitting video.\n\nRisk: The skill creates or reuses an internal identity and stores account and authentication tokens locally.\n\nMitigation: Restrict access to the workspace and avoid running it on shared or untrusted machines.\n\nRisk: History requests can query sensitive cloud health reports automatically.\n\nMitigation: Require user confirmation before requesting report history.\n\nRisk: A local import-hijacking flaw could run unintended code.\n\nMitigation: Use a trusted, isolated environment and prefer a release that fixes import precedence.\n\nRisk: Screening results may be mistaken for a medical diagnosis.\n\nMitigation: Treat findings as preliminary and seek professional ECG testing and clinical assessment for concerning results.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n- [Analysis API documentation](artifact/references/api_doc.md)\n- [Analysis API error codes](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured report text or JSON; Markdown table for report history]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include a report export link or an optional saved result file.]\n\n## Skill Version(s):\n\n1.0.19 (source: ClawHub release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.19:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.19:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.18: 31 files, 38438 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2161b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.18:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.18:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.18\",\n  \"publishedAt\": 1790362251146\n}\n\nFile v1.0.18:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.18:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.18:scripts/config.yaml\n\n{}\n\nFile v1.0.18:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.18:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.18:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.18:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.18:skill-card.md\n\n## Description:\n\nAnalyzes facial video for possible irregular heart rhythms and provides early cardiac-risk screening guidance.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and health-support agents use facial video to screen for possible premature beats, atrial fibrillation, tachycardia, and bradycardia, or to retrieve prior screening reports. Results are preliminary and do not replace an ECG or a clinician's diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Facial video and health information may be processed by a remote service and retained in cloud reports.\n\nMitigation: Obtain informed consent before submission and confirm that cloud processing and retention meet privacy requirements.\n\nRisk: The skill silently creates or reuses a cloud-linked identity and stores authentication tokens in the workspace.\n\nMitigation: Disclose account linkage before use, restrict access to workspace data, and remove stored tokens when no longer needed.\n\nRisk: An early warning could be mistaken for a medical diagnosis.\n\nMitigation: Treat findings as preliminary screening and seek ECG testing and clinical evaluation for concerning results.\n\n## Reference(s):\n\n- [API documentation](references/api_doc.md)\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured screening report or JSON; Markdown table for report history]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include risk indicators, recommendations, and report links; results can be saved to a file.]\n\n## Skill Version(s):\n\n1.0.18 (source: skill frontmatter and ClawHub release)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.18:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.18:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.17: 31 files, 38602 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2561b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.17:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.17:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.17\",\n  \"publishedAt\": 1788771208908\n}\n\nFile v1.0.17:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.17:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.17:scripts/config.yaml\n\n{}\n\nFile v1.0.17:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.17:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.17:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.17:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.17:skill-card.md\n\n## Description:\n\nBased on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and external users can use this skill to submit facial video or a video URL for non-contact arrhythmia early-warning analysis and receive structured risk findings, suggestions, report links, or a history list. Results are for early health-risk screening only and do not replace professional ECG testing or cardiology diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill handles sensitive face-video, health-report, identity, and token data while evidence.security reports unsafe development network settings and weak local credential storage.\n\nMitigation: Install only after the publisher fixes HTTPS-only production endpoints, documents biometric and health-data handling, requires explicit consent before uploads or history retrieval, and replaces shared plaintext token storage with a protected credential mechanism.\n\nRisk: The skill produces heart-risk early-warning results that could be mistaken for clinical diagnosis.\n\nMitigation: Present outputs as screening support only and direct high-risk users to professional ECG testing and cardiology diagnosis.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown or JSON-like structured analysis text with optional report links and shell command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can output brief, standard, or JSON-detail reports and can save results to a file when an output path is provided.]\n\n## Skill Version(s):\n\n1.0.17 (source: server release metadata; artifact frontmatter reports 1.0.18)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.17:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.17:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.16: 31 files, 38821 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2881b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.16:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.16:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.16\",\n  \"publishedAt\": 1787941989809\n}\n\nFile v1.0.16:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.16:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.16:scripts/config.yaml\n\n{}\n\nFile v1.0.16:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.16:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.16:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.16:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.16:skill-card.md\n\n## Description:\n\nBased on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and health-oriented agents use this skill to submit facial video for non-contact arrhythmia early warning analysis, including premature beat, atrial fibrillation, tachycardia, bradycardia, and overall risk screening. Agents can also retrieve cloud-stored historical reports when the user asks for prior arrhythmia warning results.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Facial video and heart-risk analysis data are sent to the publisher's cloud service.\n\nMitigation: Use the skill only with data the user intends to share with the publisher's service, and avoid submitting sensitive video when that data transfer is not acceptable.\n\nRisk: The skill can create or reuse a local identity and store identity or token data for report history.\n\nMitigation: Review and clear the workspace data directory when persisted identities or tokens should not remain available after use.\n\nRisk: Historical report commands query cloud-stored health reports.\n\nMitigation: Run historical report retrieval only when the user explicitly intends to access cloud-stored health reports for the current identity.\n\nRisk: The analysis is an early warning aid and does not replace clinical diagnosis.\n\nMitigation: Treat high-risk or concerning results as screening signals and direct users to professional ECG testing or cardiology evaluation.\n\n## Reference(s):\n\n- [API Documentation](references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON analysis text with report links and historical report tables]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs may include structured arrhythmia risk findings, recommendations, cloud report links, and saved result files when requested.]\n\n## Skill Version(s):\n\n1.0.16 (source: server release metadata; artifact frontmatter states 1.0.18)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.16:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.16:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.15: 31 files, 38477 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2277b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.15:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.15:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.15\",\n  \"publishedAt\": 1787001928689\n}\n\nFile v1.0.15:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.15:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.15:scripts/config.yaml\n\n{}\n\nFile v1.0.15:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.15:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.15:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.15:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.15:skill-card.md\n\n## Description:\n\nAnalyzes facial video to identify arrhythmia warning signals such as premature beats, atrial fibrillation, tachycardia, and bradycardia for early heart-health risk screening.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nUsers and agents use this skill to submit a face video or video URL for early arrhythmia warning analysis and to retrieve historical cloud reports. Results are screening-oriented and should not be treated as a professional medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive facial videos and health-related results are sent to a configured cloud service.\n\nMitigation: Obtain explicit user consent before analysis, minimize submitted media, and document retention, deletion, and account-linkage controls.\n\nRisk: The skill can create or reuse a persistent internal identity and retrieve historical reports.\n\nMitigation: Limit history lookups to the intended user context, avoid exposing identity values, and audit access to report history.\n\nRisk: Screening output could be mistaken for a clinical diagnosis.\n\nMitigation: Present results as early warning information only and advise professional medical evaluation for high-risk findings.\n\n## Reference(s):\n\n- [API interface documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON text with shell command examples.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can optionally write analysis output to a caller-supplied file path.]\n\n## Skill Version(s):\n\n1.0.15 (source: ClawHub release metadata; artifact frontmatter reports 1.0.16)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.15:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.15:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.14: 31 files, 38703 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2510b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.14:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.14:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.14\",\n  \"publishedAt\": 1786619330245\n}\n\nFile v1.0.14:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.14:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.14:scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.14:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.14:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.14:skill-card.md\n\n## Description:\n\nBased on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to submit a facial video or video URL for cloud-assisted early warning analysis of arrhythmia-related health risks and to retrieve prior analysis reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Face videos or video URLs may be sent to LifeEmergence cloud APIs.\n\nMitigation: Use only intentionally selected video files or URLs and avoid private, sensitive, or tokenized URLs.\n\nRisk: Prior health reports may be queried automatically, and a workspace identity/default account plus tokens may be created and stored locally.\n\nMitigation: Review account, token, and report-handling behavior before deployment in environments with sensitive health data.\n\nRisk: The output concerns potential cardiac health risks and may be mistaken for diagnosis.\n\nMitigation: Treat results as screening information only and direct users to professional ECG testing or cardiology care for diagnosis.\n\n## Reference(s):\n\n- [API 接口文档](artifact/references/api_doc.md)\n- [API接口文档](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [Analysis, API Calls, Markdown, JSON, Files, Guidance]\n\n**Output Format:** [Markdown or JSON structured report, with optional output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include risk results, recommendations, report links, and historical report lists returned from cloud APIs.]\n\n## Skill Version(s):\n\n1.0.14 (source: server release evidence; artifact frontmatter reports 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.14:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.14:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.13: 31 files, 38889 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2917b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1785940651201\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nBased on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to submit facial video for non-contact arrhythmia early-warning screening and to retrieve structured health-risk reports from the cloud service. Results should be treated as risk-screening information, not as a substitute for ECG testing or diagnosis by a cardiology professional.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive facial video and health-screening data may be uploaded to the lifeemergence cloud service.\n\nMitigation: Use only with informed consent, confirm that the service's privacy and retention terms are acceptable, and avoid highly sensitive videos unless the deployment has approved that data flow.\n\nRisk: The skill may create or reuse a cloud-linked identity and retain account tokens in local workspace data.\n\nMitigation: Run only in trusted workspaces, restrict access to local skill data, and clear retained account data when the skill is no longer needed.\n\nRisk: Historical health reports can be fetched from the cloud service.\n\nMitigation: Require explicit user confirmation before history lookups and verify that the current user is authorized to access the report history.\n\nRisk: Arrhythmia early-warning output may be mistaken for a clinical diagnosis.\n\nMitigation: Present results as screening guidance only and direct high-risk users to professional ECG testing and cardiology review.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis)\n- [Publisher Profile](https://clawhub.ai/user/18072937735)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [API Interface Documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands]\n\n**Output Format:** [Markdown text with structured JSON content and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can write results to a user-selected output file; local inputs are limited to mp4, avi, or mov up to 10MB.]\n\n## Skill Version(s):\n\n1.0.13 (source: ClawHub release evidence; artifact frontmatter lists 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 38749 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2683b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1785477270953\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description: <br>\nBased on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and health application agents use this skill to screen facial video for early warning signs of arrhythmia risk and to retrieve prior cloud-generated screening reports. The output is screening guidance only and is not a substitute for professional ECG testing or diagnosis by a cardiology clinician. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Facial videos, URLs, and inferred heart-risk results may be sent to the Life Emergence cloud service. <br>\nMitigation: Use the skill only when users understand that sensitive facial and health-related data is processed by the external service. <br>\nRisk: The skill silently creates or reuses a local identity and stores authentication tokens in the workspace. <br>\nMitigation: Review workspace token storage and identity handling before deployment, and restrict access to environments where the skill runs. <br>\nRisk: Arrhythmia output can be mistaken for a medical diagnosis. <br>\nMitigation: Present results as early warning screening information and direct high-risk users to professional ECG testing and cardiology evaluation. <br>\n\n\n## Reference(s): <br>\n- [API Documentation](references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON] <br>\n**Output Format:** [Structured analysis report, JSON detail output, or Markdown table for historical report lists.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include risk or recognition results, recommendations, and cloud report links.] <br>\n\n## Skill Version(s): <br>\n1.0.12 (source: server release metadata; artifact frontmatter reports 1.0.14) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 38562 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2652b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1783929930657\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.11:skill-card.md\n\n## Description: <br>\nBased on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and health-analysis agents use this skill to screen uploaded facial video for early warning signs of arrhythmia risk and to retrieve prior cloud-hosted analysis reports. Results are screening outputs only and should not replace ECG testing or diagnosis by a cardiology professional. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Facial video and health-analysis results are processed by a remote LifeEmergence service and may be linked to a persistent local identity. <br>\nMitigation: Use the skill only with appropriate consent and data-handling approval, and avoid uploading sensitive health media unless remote processing is acceptable. <br>\nRisk: The skill can create or reuse a local identity and store authentication tokens in the workspace data directory. <br>\nMitigation: Review or clear the workspace data directory before and after use when persistent identity or token storage is not desired. <br>\nRisk: Arrhythmia findings are screening outputs and may be incorrect or incomplete. <br>\nMitigation: Treat results as early warning information only and require professional ECG testing or cardiology review for medical decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON] <br>\n**Output Format:** [Structured report text with JSON details, Markdown tables for history lists, and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save the returned report text or JSON to a caller-specified output file.] <br>\n\n## Skill Version(s): <br>\n1.0.11 (source: frontmatter and server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 31 files, 38642 bytes\n\nFiles: references/api_doc.md (693b), scripts/__init__.py (31b), scripts/arrhythmia_early_warning_analysis.py (3210b), scripts/config.py (670b), scripts/config.yaml (3b), scripts/skill.py (579b), skill-card.md (2755b), SKILL.md (9504b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备面部视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行心律失常早期预警分析 | 调用 `-m scripts.arrhythmia_early_warning_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史心律失常早期预警分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/arrhythmia_early_warning_analysis.py`](scripts/arrhythmia_early_warning_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | **⚠️ 非常重要声明**：本分析结果仅供健康风险早期预警参考，**不能替代专业心电图检查和心内科医生诊断**。发现高风险请及时就医检查确诊 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1783675650528\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.10:skill-card.md\n\n## Description: <br>\nAnalyzes facial video to identify early warning signals for abnormal heart rhythms such as premature beats, atrial fibrillation, tachycardia, and bradycardia. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and agents use this skill to submit facial video files or video URLs for non-invasive arrhythmia risk screening and to retrieve structured results or prior cloud reports. The results support early warning and risk awareness only, not clinical diagnosis or a substitute for ECG testing or a cardiology evaluation. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill sends facial video and heart-risk analysis data to the publisher's cloud service. <br>\nMitigation: Use only videos the operator is authorized to submit, avoid third-party video URLs without consent, and review the publisher's privacy, retention, and report-access practices before use. <br>\nRisk: The skill can silently create or reuse a persistent internal account and store tokens for cloud report access. <br>\nMitigation: Run it in a controlled workspace, protect local data and token files, and periodically review or clear stored account credentials when access is no longer needed. <br>\nRisk: The output is a health-risk early warning and may be mistaken for medical diagnosis. <br>\nMitigation: Present results as screening guidance only and direct high-risk or symptomatic users to professional ECG testing and cardiology care. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-arrhythmia-early-warning-analysis) <br>\n- [API Interface Documentation](references/api_doc.md) <br>\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, files] <br>\n**Output Format:** [Markdown text with structured JSON result content and optional saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include cloud report export links and history-report listings returned from the publisher's service.] <br>\n\n## Skill Version(s): <br>\n1.0.10 (source: server release evidence; artifact frontmatter reports 1.0.11) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.10:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.10:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具 Owner: 18072937735 Summary: Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 Tags: latest:1.0.19 Version history: v1.0.19 | 2026-10-02T13:53:29.667Z | auto - Removed the file: skill-","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.arrhythmia_early_warning_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json"},{"language":"bash","snippet":"python -m scripts.arrhythmia_early_warning_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地面部采集视频\npython -m scripts.arrhythmia_early_warning_analysis --input /path/to/face.mp4\n\n# 分析网络视频\npython -m scripts.arrhythmia_early_warning_analysis --url https://example.com/face.mp4\n\n# 显示历史预警报告/显示预警报告清单列表/显示历史心脏筛查（自动触发关键词：查看历史预警报告、历史报告、预警报告清单等）\npython -m scripts.arrhythmia_early_warning_analysis --list\n\n# 输出精简报告\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.arrhythmia_early_warning_analysis --input face.mp4 --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"arrhythmia-early-warning-analysis\"\ndescription: \"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 💓 Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具\n\n> **智能健康/识别分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **心律失常早期预警分析工具** |\n| 🎯 核心目标 | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、风险/识别结果、建议与报告链接 |\n| 🧩 场景码 | `ARRHYTHMIA_EARLY_WARNING` |\n\nBy analyzing subtle color variations and periodic movements in facial videos, this feature identifies hemodynamic\nfluctuations caused by heartbeats to detect arrhythmias such as premature beats, atrial fibrillation, tachycardia, and\nbradycardia.\nRequiring no contact sensors and utilizing only a standard camera, it enables non-invasive screening. This allows users\nto conveniently assess cardiac health risks in their daily lives, facilitating the early detection and warning of\nabnormal rhythms.\n\n本技能通过分析面部视频中的微细颜色变化与周期性运动，识别心脏搏动引发的血流动力学波动，从而检测早搏、房颤、心动过速与心动过缓等异常节律。无需接触式传感器，仅利用普通摄像头即可完成非侵入式筛查，辅助用户在日常状态下便捷评估心脏健康风险，实现异常节律的早期发现与预警。\n\n## 🎬 技能演示 | Skill Demo\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过非接触面部视频分析，早期预警心律失常风险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 早搏识别 |\n| 2 | 房颤特征识别 |\n| 3 | 心动过速检测 |\n| 4 | 心动过缓检测 |\n| 5 | 整体风险分级 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供面部视频需要进行心脏健康风险筛查时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要心律失常预警、心脏健康筛查时，提及早搏、房颤、心动过速、心律失常预警、心脏筛查等关键词，并且上传了面部视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史预警报告、心律失常报告清单、预警报告列表、查询历史预警报告、显示所有预警报告、心脏风险分析报告，查询心律失常早期预警分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.arrhythmia_early_warning_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.arrhythmia_early_warning_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📸 采集要求 | Capture Requirements\n| 要求项 | 说明 |\n|---|---|\n| 面部完整出镜 | ，光线均匀充足，避免背光和强烈阴影 |\n| 保持相对静止 | ，视频采集时间建议 **10-30 秒** |\n| 避免剧烈运动后立即采集 | ，建议安静休息几分钟后再采集 |\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | "},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-arrhythmia-early-warning-analysis\",\n  \"version\": \"1.0.19\",\n  \"publishedAt\": 1790949209667\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放心律失常早期预警分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_ARRHYTHMIA_EARLY_WARNING_ANALYSIS` - 开放平台心律失常早期预警分析"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 Skill: Arrhythmia Early Warning Analysis Tool | 心律失常早期预警分析工具 Owner: 18072937735 Summary: Based on facial video, identifies abnormal rhythms such as premature beats, atrial fibrillation, tachycardia/bradycardia, assists in early detection of heart health risks. | 心律失常早期预警技能，基于面部视频识别早搏、房颤、心动过速/心动过缓等异常节律，辅助心脏健康风险早发现 Tags: latest:1.0.19 Version history: v1.0.19 | 2026-10-02T13:53:29.667Z | auto - Removed the file: skill-","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":823,"uniquenessScore":51,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T13:42:25.979Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T13:42:25.979Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T01:21:09.587Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}