{"id":"df70ee62-9214-411c-9b97-9feddcf051db","entityType":"agent","slug":"clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis","name":"Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis","generatedAt":"2026-10-10T06:44:51.810Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:59:35.537Z","emptyReason":null},"description":"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-elderly-hand-tremor-detection-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-elderly-hand-tremor-detection-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-elderly-hand-tremor-detection-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":65,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:59:35.537Z","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-09T23:59:35.537Z","emptyReason":null},"stars":null,"forks":null,"downloads":1859,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"1.9K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:59:35.506Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T23:59:35.537Z","lastCrawledAt":"2026-10-09T23:59:35.506Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T23:59:35.506Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-10-02T06:32:45.349Z","changelog":"- Updated version number in SKILL.md - Removed the file skill-card.md - No changes to code or functionality; documentation only update","fileCount":31,"zipByteSize":40441},{"version":"1.0.12","createdAt":"2026-09-25T23:18:29.521Z","changelog":"smyx-elderly-hand-tremor-detection-analysis 1.0.12 - Updated skill metadata: version and related text now reference newer version numbers. - Minor edits in documentation for clarity and consistency in SKILL.md. - Removed redundant file: skill-card.md.","fileCount":31,"zipByteSize":40462},{"version":"1.0.11","createdAt":"2026-09-15T02:23:29.681Z","changelog":"- Version updated from 1.0.12 to 1.0.13. - Documentation updated in SKILL.md; minor content adjustments. - skill-card.md file removed. - No changes to core logic or features reported.","fileCount":31,"zipByteSize":40615},{"version":"1.0.10","createdAt":"2026-08-30T03:28:30.117Z","changelog":"- Updated version to 1.0.12. - Documentation revised in SKILL.md; various minor wording, formatting, and version adjustments. - Removed the obsolete skill-card.md file. - No changes to scripts, APIs, or runtime behavior.","fileCount":31,"zipByteSize":40651},{"version":"1.0.9","createdAt":"2026-08-22T02:52:29.911Z","changelog":"- Bumped skill version to 1.0.11. - Updated configuration in SKILL.md, including new version number and metadata. - Removed the redundant skill-card.md file to streamline documentation. - Minor internal file adjustments for improved maintainability.","fileCount":31,"zipByteSize":40630},{"version":"1.0.8","createdAt":"2026-08-11T06:10:35.397Z","changelog":"- Removed the skill-card.md file. - No changes to core code or functionality. - Documentation and usage remain unchanged.","fileCount":31,"zipByteSize":40694},{"version":"1.0.7","createdAt":"2026-08-07T20:02:40.393Z","changelog":"- Updated skill version from 1.0.8 to 1.0.9. - SKILL.md updated; minor metadata increment. - Removed the file: skill-card.md. - No changes to core features or user workflow.","fileCount":31,"zipByteSize":40630},{"version":"1.0.6","createdAt":"2026-07-30T09:18:29.330Z","changelog":"- Updated skill version to 1.0.8 in SKILL.md. - Removed the file skill-card.md. - No functional changes to code or workflow; documentation only. - Maintained all existing usage and capability descriptions. - General cleanup to the skill’s documentation.","fileCount":31,"zipByteSize":40692}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-elderly-hand-tremor-detection-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-elderly-hand-tremor-detection-analysis` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/18072937735/smyx-elderly-hand-tremor-detection-analysis before using production credentials."],"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-elderly-hand-tremor-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-elderly-hand-tremor-detection-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-10T06:44:51.804Z"}},"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-elderly-hand-tremor-detection-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-elderly-hand-tremor-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-elderly-hand-tremor-detection-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":"medium","updatedAt":"2026-10-09T23:59:35.537Z","emptyReason":null},"readme":"Skill: Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n\nOwner: 18072937735\n\nSummary: Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-10-02T06:32:45.349Z | auto\n\n- Updated version number in SKILL.md\n- Removed the file skill-card.md\n- No changes to code or functionality; documentation only update\n\nv1.0.12 | 2026-09-25T23:18:29.521Z | auto\n\nsmyx-elderly-hand-tremor-detection-analysis 1.0.12\n\n- Updated skill metadata: version and related text now reference newer version numbers.\n- Minor edits in documentation for clarity and consistency in SKILL.md.\n- Removed redundant file: skill-card.md.\n\nv1.0.11 | 2026-09-15T02:23:29.681Z | auto\n\n- Version updated from 1.0.12 to 1.0.13.\n- Documentation updated in SKILL.md; minor content adjustments.\n- skill-card.md file removed.\n- No changes to core logic or features reported.\n\nv1.0.10 | 2026-08-30T03:28:30.117Z | auto\n\n- Updated version to 1.0.12.\n- Documentation revised in SKILL.md; various minor wording, formatting, and version adjustments.\n- Removed the obsolete skill-card.md file.\n- No changes to scripts, APIs, or runtime behavior.\n\nv1.0.9 | 2026-08-22T02:52:29.911Z | auto\n\n- Bumped skill version to 1.0.11.\n- Updated configuration in SKILL.md, including new version number and metadata.\n- Removed the redundant skill-card.md file to streamline documentation.\n- Minor internal file adjustments for improved maintainability.\n\nv1.0.8 | 2026-08-11T06:10:35.397Z | auto\n\n- Removed the skill-card.md file.\n- No changes to core code or functionality.\n- Documentation and usage remain unchanged.\n\nv1.0.7 | 2026-08-07T20:02:40.393Z | auto\n\n- Updated skill version from 1.0.8 to 1.0.9.\n- SKILL.md updated; minor metadata increment.\n- Removed the file: skill-card.md. \n- No changes to core features or user workflow.\n\nv1.0.6 | 2026-07-30T09:18:29.330Z | auto\n\n- Updated skill version to 1.0.8 in SKILL.md.\n- Removed the file skill-card.md.\n- No functional changes to code or workflow; documentation only.\n- Maintained all existing usage and capability descriptions.\n- General cleanup to the skill’s documentation.\n\nv1.0.5 | 2026-07-16T21:39:28.409Z | auto\n\n- Version bump to 1.0.5 in SKILL.md.\n- Updated documentation in SKILL.md for current version and associated details.\n- Removed redundant skill-card.md file.\n\nv1.0.4 | 2026-07-06T11:10:25.454Z | auto\n\n- Internal documentation file skill-card.md was removed.\n- Minor update in scripts/config.py.\n- No end-user feature or interface changes in this release.\n\nv1.0.3 | 2026-07-01T05:03:27.487Z | auto\n\n- Version bump from 1.0.2 to 1.0.4\n- Documentation update: SKILL.md version and description updated\n- Removed obsolete file: skill-card.md\n- Minor changes made in scripts/smyx_common/scripts/dao.py and scripts/smyx_common/scripts/util.py (details not specified)\n\nv1.0.2 | 2026-06-25T11:20:25.878Z | auto\n\n- Updated user identity handling: user no longer provides or is asked for open-id—identity is managed automatically and never shown to or requested from the user.\n- Revised documentation for clarity, adding more structured tables, clearer workflow, and more accessible step-by-step instructions.\n- Report history queries now strictly require cloud API use; any local or memory-based retrieval is disallowed and not mentioned to the user.\n- Skill interaction streamlined: users need only provide input video or trigger analysis/report keywords; all authentication and parameter handling are internal.\n- Usage examples and output table formats updated to match new internal workflow and data privacy principles.\n- Removed obsolete files and references, simplifying the skill package.\n\nv1.0.1 | 2026-06-17T05:02:22.054Z | auto\n\n- Updated file structure: consolidated configuration files (config.yaml) to the scripts directory and updated paths for open-id retrieval.\n- Improved documentation in SKILL.md for clarity and accuracy, especially around configuration, open-id acquisition, and workflow.\n- Removed deprecated or redundant files (e.g., skill-card.md).\n- Maintained all original detection features and API usage, with no changes to primary skill logic or output.\n- Added explicit license information (MIT-0) in the SKILL.md.\n\nv1.0.0 | 2026-05-25T11:16:41.053Z | auto\n\nInitial release of smyx-elderly-hand-tremor-detection-analysis.\n\n- Enables AI-powered detection and analysis of resting tremor in elderly hands using home camera video.\n- Extracts tremor frequency (Hz) and amplitude (pixel displacement), and assesses risk level; triggers alerts when thresholds are exceeded.\n- Strict open-id acquisition workflow ensures user data privacy and correct report retrieval.\n- Supports scheduled or auto-triggered analysis, with results viewable as structured reports or in Markdown table format for history.\n- Designed as an early screening aid for Parkinson’s and related neurological conditions in community and home care settings.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 40441 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2023b), SKILL.md (11934b), 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 (163b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790922765349\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- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\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\nAnalyzes videos of an older person's hand at rest for tremor frequency and amplitude and provides a screening report for caregivers.\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\nFamily caregivers and care providers use recorded hand-at-rest video to screen for possible tremor, review past reports, and decide when to seek clinical assessment. Results are not a diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Health-related videos or URLs are sent to external lifeemergence.com services.\n\nMitigation: Obtain consent from everyone affected before use and restrict sharing of recordings and report links.\n\nRisk: Persistent local identity and token records, including a shared default identity, may expose report history across users.\n\nMitigation: Avoid shared workspaces unless per-user identity isolation is enforced; restrict access to stored records and history.\n\nRisk: A tremor screening result could be mistaken for a medical diagnosis.\n\nMitigation: Treat results as screening guidance and seek professional neurological assessment for concerning findings.\n\n## Reference(s):\n\n- [Skill listing](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis)\n- [API reference](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown]\n\n**Output Format:** [Structured report or JSON; history may include report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save a report to a local file on request.]\n\n## Skill Version(s):\n\n1.0.13 (source: ClawHub release; bundled SKILL.md states 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.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, 40462 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2082b), SKILL.md (11934b), 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 (163b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790378309521\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- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\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:\n\nAnalyzes video of an older adult's hand at rest to report possible tremor, motion measurements, and 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\nCaregivers and health-support staff can use this skill to screen resting-hand videos for possible tremor and review measurement summaries or historical reports. Results are not a medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Health-adjacent video or video URLs may be sent to external cloud services.\n\nMitigation: Confirm consent and cloud-processing suitability before submitting videos or URLs.\n\nRisk: The skill may silently create or reuse a backend identity, persist account tokens locally, and retrieve reports associated with that identity.\n\nMitigation: Review account linkage and local token storage before installation; restrict access to stored credentials and historical reports.\n\nRisk: Tremor screening results could be mistaken for a diagnosis.\n\nMitigation: Treat findings as screening prompts and seek clinical assessment for concerning results.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis)\n- [API documentation](artifact/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured report or JSON; historical reports may appear as a Markdown table]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include tremor frequency, amplitude, risk prompts, and report links]\n\n## Skill Version(s):\n\n1.0.12 (source: ClawHub release metadata; bundled skill frontmatter says 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.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, 40615 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2517b), SKILL.md (11934b), 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 (163b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1789439009681\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- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\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: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera videos of an older adult's resting hand to identify periodic tremor and report motion metrics, risk level, and report links.\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, caregivers, and health-monitoring developers use this skill to analyze resting-hand video for tremor frequency, amplitude, affected side, and screening-oriented risk signals. The output is not a medical diagnosis and should be reviewed by qualified medical professionals when health concerns are present.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill processes and uploads sensitive health-related videos and identity-linked report data.\n\nMitigation: Use only with explicit consent from the recorded person or guardian, and store generated reports only in protected workspaces.\n\nRisk: The bundled development profile includes HTTP service endpoints.\n\nMitigation: Use HTTPS production endpoints before deployment and review endpoint configuration during installation.\n\nRisk: Authentication tokens and generated identity records may be stored locally.\n\nMitigation: Correct token storage and identity-handling behavior before relying on the skill in shared or production environments.\n\nRisk: Dependency declarations need review before use.\n\nMitigation: Validate and correct dependencies in the packaged requirements files before installing the skill.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-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, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown and JSON-formatted structured analysis results]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include tremor metrics, risk-level text, historical report lists, and report export links.]\n\n## Skill Version(s):\n\n1.0.11 (source: server 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.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, 40651 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2620b), SKILL.md (11934b), 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 (163b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1788060510117\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- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\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: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes elderly hand-at-rest video or video URLs through a configured health-analysis service to estimate tremor frequency, amplitude, affected side, risk level, and report links for screening support, not medical diagnosis.\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 such as caregivers, elder-care staff, and community health workers use this skill to submit elderly hand-at-rest videos for tremor screening indicators and report retrieval. The outputs can help decide when to seek qualified clinical review, but they do not replace neurological diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive health-related videos or video URLs may be sent to the configured analysis service.\n\nMitigation: Use only with consent from the recorded person or their authorized representative, and confirm that the configured endpoint is appropriate for the deployment environment.\n\nRisk: The skill can create or reuse a local identity and store report history, profile data, or tokens in the workspace data directory and SQLite database.\n\nMitigation: Treat the workspace data directory as sensitive, restrict access to it, and remove local state when the skill is no longer needed.\n\nRisk: Outputs describe tremor risk indicators and report links, which could be mistaken for a medical diagnosis.\n\nMitigation: Present results as screening support only and route concerning findings to qualified clinical review.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis)\n- [API interface documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown text with structured JSON analysis content and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May write the rendered analysis response to a user-specified output file.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact frontmatter reports 1.0.12)\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.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\n\nArchive v1.0.9: 31 files, 40630 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2519b), SKILL.md (11934b), 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 (162b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787367149911\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放老年人手部震颤（静止性）识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\n\nFile v1.0.9: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.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9: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.9: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.9: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.9:skill-card.md\n\n## Description:\n\nThis skill analyzes fixed-camera videos of an elderly person's resting hand to detect periodic shaking, estimate tremor frequency and pixel displacement, and return a non-diagnostic resting-tremor risk indication.\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 caregivers, family members, and health-monitoring operators use this skill to screen resting-hand videos for tremor indicators and review structured results or historical reports. The output is an aid for follow-up decisions, not a medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends hand-video health data and report queries to a configured cloud service.\n\nMitigation: Use only with informed consent from the recorded person or responsible caregiver, and review the publisher's retention, access, and report-link handling before deployment.\n\nRisk: The skill may create or reuse an internal identity and store user or token records locally.\n\nMitigation: Run it in a controlled workspace, restrict access to local data directories, and confirm account separation and token revocation procedures.\n\nRisk: Tremor results can be mistaken for clinical diagnosis.\n\nMitigation: Present outputs as screening indicators only and route concerning results to qualified medical review.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis)\n- [API interface reference](artifact/references/api_doc.md)\n- [Analysis API error reference](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Shell commands, Guidance]\n\n**Output Format:** [Markdown report text with JSON-derived structured results and optional report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include tremor frequency, pixel amplitude, affected side, risk level, follow-up hint, and historical report links.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter says 1.0.11)\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.9:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.9:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.8: 31 files, 40694 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2619b), SKILL.md (11933b), 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 (162b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786428635397\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放老年人手部震颤（静止性）识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\n\nFile v1.0.8: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.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8: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.8: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.8: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.8:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera videos of an older person's resting hand to estimate tremor frequency, pixel amplitude, affected side, and a non-diagnostic resting-tremor risk level.\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 caregivers, family members, care-facility staff, and health-support developers use this skill to submit resting-hand videos or URLs for non-diagnostic tremor screening and to retrieve historical analysis reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive elderly hand videos and report metadata are sent to a configured cloud health-analysis service.\n\nMitigation: Use only with explicit consent from the recorded person or caregiver, and avoid submitting videos that are not needed for the stated screening task.\n\nRisk: The skill can silently create or reuse an internal identity and associate report history with it.\n\nMitigation: Run the skill in a dedicated workspace for sensitive use and review account-linking behavior before deployment.\n\nRisk: Reusable local account tokens may be stored and used for subsequent cloud requests.\n\nMitigation: Restrict workspace access, rotate or remove stored credentials when access is no longer needed, and review the skill before installing it in shared environments.\n\nRisk: Resting-tremor outputs may be mistaken for a clinical diagnosis.\n\nMitigation: Present results as non-diagnostic screening signals and route concerning results to qualified medical review.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis)\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, Guidance]\n\n**Output Format:** [Markdown text with structured JSON-style analysis results, risk labels, report links, and command examples.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local video file paths or public video URLs; history queries return cloud-backed report lists.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter reports 1.0.9)\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.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 31 files, 40630 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2435b), SKILL.md (11933b), 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 (162b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786132960393\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放老年人手部震颤（静止性）识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\n\nFile v1.0.7: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.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7: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.7: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.7: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.7:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera video of an older adult's hand at rest to estimate tremor frequency, amplitude, affected side, and risk level as a screening aid rather than a diagnosis.\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\nCaregivers, elder-care operators, community health staff, and agent developers use this skill to analyze resting-hand video or retrieve prior reports for tremor-screening workflows. It returns objective motion-analysis indicators and risk prompts that should be reviewed by appropriate medical professionals.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Health-related videos and report metadata may be sent to the vendor's cloud service and associated with persistent identity records.\n\nMitigation: Use only with informed consent, confirm retention and deletion expectations, and avoid submitting sensitive or internal video URLs unless the service is approved for that data.\n\nRisk: Tremor metrics and risk prompts may be mistaken for a medical diagnosis.\n\nMitigation: Present results as screening indicators only and route concerning findings to qualified medical review.\n\nRisk: Cloud API behavior and historical-report access depend on configured service endpoints and credentials.\n\nMitigation: Review endpoint configuration, authorization, and data-handling terms before deployment.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis)\n- [API Documentation](artifact/references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Markdown or JSON structured analysis report with tremor metrics, risk level, prompts, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May query cloud-hosted historical reports and may write a requested local output file.]\n\n## Skill Version(s):\n\n1.0.7 (source: release metadata; SKILL.md frontmatter says 1.0.9)\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.7:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.7:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.6: 31 files, 40692 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2717b), SKILL.md (11933b), 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 (162b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785403109330\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放老年人手部震颤（静止性）识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\n\nFile v1.0.6: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.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6: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.6: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.6: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.6:skill-card.md\n\n## Description: <br>\nUsing a fixed home camera to record video of an elderly person's hand at rest, the skill sends a local video file or video URL for AI motion analysis and returns tremor frequency, amplitude, resting-tremor risk indicators, and report links. <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 caregivers, care organizations, and health-monitoring developers use this skill to screen elderly hand-rest videos for periodic resting tremor indicators and to retrieve prior cloud reports. The output is a screening aid and does not replace professional neurological diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive elderly hand videos or video URLs are sent to a remote backend for analysis and report retrieval. <br>\nMitigation: Use only with informed consent from the recorded person or authorized caregiver, and confirm backend retention, deletion, and access controls with the publisher before deployment. <br>\nRisk: The skill can create or reuse a local identity and use authentication tokens for analysis history. <br>\nMitigation: Run in an isolated workspace, restrict access to local skill data, and verify account scoping before using history-query features. <br>\nRisk: The output provides health-related screening indicators that could be mistaken for diagnosis. <br>\nMitigation: Present results as objective motion-analysis signals and route medium or high risk findings to qualified neurological review. <br>\n\n\n## Reference(s): <br>\n- [API Interface 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-elderly-hand-tremor-detection-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown text containing structured JSON-style analysis results, risk indicators, history lists, and report links.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May write the rendered analysis output to a local file when an output path is provided.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter reports 1.0.8) <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.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.5: 31 files, 40708 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2688b), SKILL.md (11933b), 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 (162b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784237968409\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放老年人手部震颤（静止性）识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\n\nFile v1.0.5: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.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5: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.5: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.5: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.5:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera videos or video URLs of an elderly person's resting hand to detect periodic tremor motion, estimate frequency and amplitude, and produce a screening-oriented risk report. <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>\nDevelopers and care-workflow builders can use this skill to connect elderly hand-resting video inputs to a structured tremor screening report for home care, nursing home, or community health scenarios. It is intended to support early attention and follow-up, not to replace professional neurological diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive elderly health video data or video URLs are sent to external LifeEmergence services for analysis. <br>\nMitigation: Use only with informed consent from the monitored person or authorized caregiver, and avoid submitting videos unless that cloud processing is acceptable. <br>\nRisk: The skill can silently create or reuse a persistent local or cloud user identity and link analysis history to it. <br>\nMitigation: Confirm that account linkage and report-history access match the user's privacy expectations before installation or use. <br>\nRisk: The output is a screening-oriented risk report and may be misunderstood as a clinical diagnosis. <br>\nMitigation: Present results as objective video-motion indicators and encourage professional neurological evaluation for concerning findings. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API documentation](artifact/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown or JSON analysis report with tremor metrics, risk level, follow-up prompt, and report link when available] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May write the report to a user-specified output file and can return a Markdown table of cloud history reports.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata and SKILL.md frontmatter) <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.5:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.5:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.4: 31 files, 40562 bytes\n\nFiles: references/api_doc.md (2762b), scripts/__init__.py (57b), scripts/config.py (700b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_elderly_hand_tremor_detection_analysis.py (3630b), skill-card.md (2576b), SKILL.md (11933b), 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 (28605b), _meta.json (162b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.4\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提及手抖、手部震颤、静止性震颤、帕金森、神经系统早筛、手部周期性抖动等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看手部震颤历史报告、静止性震颤报告清单、帕金森早筛报告清单、查询历史震颤记录、显示所有手部震颤报告、显示老人神经系统诊断报告，查询震颤风险预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\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.smyx_elderly_hand_tremor_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地老年人手部静止状态视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络老年人手部静止状态视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，老年人神经系统健康监测场景默认 `other` | 按需填写 |\n| `--list` | 显示老年人手部震颤历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_elderly_hand_tremor_detection_analysis.py`](scripts/smyx_elderly_hand_tremor_detection_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；建议 ≥ 30 FPS、15-30 秒、手部完整入画 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；疑似帕金森请前往神经内科评估 |\n| 🔏 隐私合规 | 隐私合规：手部视频可能涉及个人健康信息，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783336225454\n}\n\nFile v1.0.4:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放老年人手部震颤（静止性）识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。\n\nFile v1.0.4: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.4:scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.4: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.4: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.4: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.4:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera videos of an older adult's resting hand to report tremor frequency, tremor amplitude, and screening-oriented risk indicators. <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 caregivers, care facilities, and health-support developers use this skill to analyze resting-hand videos and review structured tremor screening indicators or historical reports. The output supports awareness and follow-up decisions, but it is not a substitute for professional neurological diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill handles elderly hand-video footage and derived health reports through the provider's cloud service. <br>\nMitigation: Use it only with explicit consent from the recorded person or guardian, limit uploaded content to the needed hand-resting video, and confirm provider retention, deletion, and access-control guarantees before deployment. <br>\nRisk: The skill creates or reuses a persistent local identity and stores service tokens in the workspace data database. <br>\nMitigation: Run it in an isolated workspace, restrict access to workspace data, and remove or rotate stored tokens when the workflow is no longer needed. <br>\nRisk: Screening indicators may be mistaken for a clinical diagnosis. <br>\nMitigation: Present results as video-motion analysis and risk prompts only, and route suspected neurological concerns to qualified medical professionals. <br>\n\n\n## Reference(s): <br>\n- [API documentation](artifact/references/api_doc.md) <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-elderly-hand-tremor-detection-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance] <br>\n**Output Format:** [Markdown with inline shell commands and structured JSON report content] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save output to a user-specified file and include cloud report export links.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: frontmatter and server release evidence) <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.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别 Owner: 18072937735 Summary: Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Par","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_elderly_hand_tremor_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input /path/to/hand_rest.mp4\n\n# 分析网络手部静止视频\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --url https://example.com/hand_rest.mp4\n\n# 显示历史手部震颤识别报告（自动触发关键词：查看手部震颤历史报告、静止性震颤报告清单等）\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_hand_tremor_detection_analysis --input hand.mp4 --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-elderly-hand-tremor-detection-analysis\"\ndescription: \"Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🤲 Elderly Hand Resting-Tremor Detection | 老年人手部震颤（静止性）识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人手部震颤（静止性）识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` |\n\nUsing a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). The skill works as an early screening tool, reminding family members or caregivers to pay attention to the elderly's neurological health and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., weekly) or auto-triggered when the elderly is resting; it outputs tremor frequency and amplitude, and pushes a 'resting tremor risk' alert when thresholds are exceeded. Skill features: an early Parkinson's signal.\n\n通过家庭固定摄像头拍摄老年人手部（置于桌面或自然静止）的视频，利用AI视频分析技术检测手部在静止状态下的周期性抖动频率（Hz）和幅度（像素位移），识别是否存在静止性震颤（常见于帕金森病等神经系统疾病）。该技能可作为早期筛查工具，提示家属或护理人员关注老年人神经系统健康，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每周）或在老年人休息时自动触发检测，输出震颤频率及幅度，当超过设定阈值时推送'静止性震颤风险'提醒。技能特点：帕金森早期信号。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人神经系统健康监测 AI。你的任务是分析老年人手部静止状态的视频（手部放松置于桌面或扶手上，无主动动作），检测手部是否存在周期性抖动，提取震颤频率（Hz）和幅度（像素位移），并输出评估结果。不要提供医疗诊断或临床建议，仅输出基于视频运动分析的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人手部静止状态视频，定量提取震颤频率与幅度，给出风险等级提示，辅助帕金森等神经系统疾病早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 手部检测与关键点跟踪 |\n| 2 | 静止状态判定（无主动动作） |\n| 3 | 像素位移轨迹提取 |\n| 4 | FFT 频域分析 |\n| 5 | 震颤主频（Hz）/ 峰峰幅度（像素）/ 节律一致性 计算 |\n| 6 | 受累一侧识别（left / right / both / none） |\n| 7 | 风险等级判定（none / low / medium / high） |\n| 8 | 医疗复核提示 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供老年人手部静止状态视频 URL 或文件需要分析时，默认触发本技能进行手部震颤识别 |\n| 🔎 明确分析意图 | 当用户明确提"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-elderly-hand-tremor-detection-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790922765349\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放老年人手部震颤（静止性）识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动手部震颤识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（震颤频率与幅度）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史震颤检测记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_ELDERLY_HAND_TREMOR_DETECTION_ANALYSIS` - 老年人手部震颤（静止性）识别\n\n## 输入约束\n\n- 视频要求：手部置于桌面或扶手上保持自然静止，**无主动动作**\n- 时长建议 ≥ 10 秒（推荐 15-30 秒），帧率 ≥ 30 FPS 以保证频率分析精度\n- 拍摄距离建议 30-80 cm，手部完整入画，光照均匀，背景简洁\n- 摄像头建议固定（避免镜头自身抖动干扰）\n\n## 关键检测对象\n\n- 手背 / 手指关键点（21 keypoints）\n- 周期性位移轨迹（X/Y 方向）\n- 频域峰值（FFT 主频）\n\n## 关键观测指标\n\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤峰峰幅度（像素）\n- `tremor_consistency` - 节律一致性（0-1）\n- `affected_side` - 出现震颤的一侧（left / right / both / none）\n\n## 参考分级（仅用作筛查提示，非临床诊断）\n\n- 频率参考：\n  - 4-6 Hz - 经典静止性震颤范围（常见于帕金森）\n  - 6-12 Hz - 高频范围（可能为特发性震颤或生理性）\n- 幅度参考：\n  - small（< 阈值 A）→ 微小\n  - medium（A - B）→ 中等\n  - large（> 阈值 B）→ 明显\n\n## 风险等级\n\n- `none` - 未检测到明显周期性抖动\n- `low` - 微小抖动（可能为正常生理抖动）\n- `medium` - 中度可疑静止性震颤\n- `high` - 明显静止性震颤（建议尽快神经内科就诊）\n\n## 输出字段（参考）\n\n- `hand_detected` - 是否检测到手部\n- `is_resting` - 是否处于静止状态\n- `tremor_frequency_hz` - 震颤主频（Hz）\n- `tremor_amplitude_pixel` - 震颤幅度（像素）\n- `tremor_consistency` - 节律一致性\n- `affected_side` - 受累一侧\n- `risk_level` - 风险等级（none / low / medium / high）\n- `alert_message` - 提示文本（如\"检测到右手存在约 5 Hz 周期性抖动，建议神经内科进一步评估\"）\n- `medical_followup_hint` - 医疗复核建议（仅作提示，非诊断）\n\n> 仅输出基于视频运动分析的客观指标与风险提示，不提供医学诊断；疑似帕金森病或其他神经系统疾病请前往专业医疗机构评估。"},{"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":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1050,"uniquenessScore":43,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T23:59:35.537Z","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-09T23:59:35.537Z","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-10T06:44:51.810Z","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"}]}}}