{"id":"9b1d9034-467b-411a-b09a-54f9c3366d83","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis","name":"Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis","generatedAt":"2026-10-10T05:55:45.460Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-10T00:30:54.214Z","emptyReason":null},"description":"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 Skill: Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别 Owner: smyx-sunjinhui Summary: Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts,","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-elderly-facial-asymmetry-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-elderly-facial-asymmetry-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-elderly-facial-asymmetry-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":65,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T00:30:54.214Z","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-10T00:30:54.214Z","emptyReason":null},"stars":null,"forks":null,"downloads":1835,"packageName":null,"latestVersion":"1.0.11","tractionLabel":"1.8K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T00:30:54.214Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T00:30:54.214Z","lastCrawledAt":"2026-10-10T00:30:54.214Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T00:30:54.214Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.11","createdAt":"2026-10-01T14:02:29.942Z","changelog":"- Removed the skill-card.md file. - No changes to skill logic or user-facing features. - Documentation and technical content remain unchanged.","fileCount":31,"zipByteSize":40585},{"version":"1.0.10","createdAt":"2026-09-23T04:04:26.381Z","changelog":"- Updated skill version to 1.0.16 in SKILL.md with revised documentation. - Removed the unused file `skill-card.md` to clean up the repository. - Updated configuration and documentation files to ensure consistency across the project. - No changes to core analysis logic or APIs.","fileCount":31,"zipByteSize":40739},{"version":"1.0.9","createdAt":"2026-08-25T08:07:29.377Z","changelog":"- Updated SKILL.md to increment the version to 1.0.12. - Minor documentation and version metadata changes. - Removed the file skill-card.md.","fileCount":31,"zipByteSize":40593},{"version":"1.0.8","createdAt":"2026-08-22T10:49:28.815Z","changelog":"- Updated config.yaml in the skill's scripts directory. - Removed the skill-card.md file. - No changes to end-user workflow or analysis features.","fileCount":31,"zipByteSize":40800},{"version":"1.0.7","createdAt":"2026-08-12T07:40:37.621Z","changelog":"- Updated SKILL.md with new version number and related content. - Removed the skill-card.md file. - No changes to code or technical workflow; changes are limited to documentation updates. - Documentation now reflects version 1.0.11 and contains the latest instructions and usage notes.","fileCount":31,"zipByteSize":40653},{"version":"1.0.6","createdAt":"2026-08-04T03:54:29.494Z","changelog":"- Removed the file skill-card.md from the skill package. - No other functional or documentation changes.","fileCount":31,"zipByteSize":41243},{"version":"1.0.5","createdAt":"2026-08-02T03:00:30.543Z","changelog":"- Updated version to 1.0.9 in SKILL.md for documentation and description consistency. - Removed the file skill-card.md from the project. - No changes to functional code or technical capability; change is documentation and resource cleanup only.","fileCount":31,"zipByteSize":40730},{"version":"1.0.4","createdAt":"2026-07-18T22:22:27.931Z","changelog":"- Updated skill version to 1.0.7. - Documentation refinements in SKILL.md; content clarified and expanded. - Removed the file skill-card.md for a cleaner project structure.","fileCount":31,"zipByteSize":40781}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-elderly-facial-asymmetry-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-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-10T05:55:45.456Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-elderly-facial-asymmetry-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-10T00:30:54.214Z","emptyReason":null},"readme":"Skill: Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n\nOwner: smyx-sunjinhui\n\nSummary: Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\n\nTags: latest:1.0.11\n\nVersion history:\n\nv1.0.11 | 2026-10-01T14:02:29.942Z | auto\n\n- Removed the skill-card.md file.\n- No changes to skill logic or user-facing features.\n- Documentation and technical content remain unchanged.\n\nv1.0.10 | 2026-09-23T04:04:26.381Z | auto\n\n- Updated skill version to 1.0.16 in SKILL.md with revised documentation.\n- Removed the unused file `skill-card.md` to clean up the repository.\n- Updated configuration and documentation files to ensure consistency across the project.\n- No changes to core analysis logic or APIs.\n\nv1.0.9 | 2026-08-25T08:07:29.377Z | auto\n\n- Updated SKILL.md to increment the version to 1.0.12.\n- Minor documentation and version metadata changes.\n- Removed the file skill-card.md.\n\nv1.0.8 | 2026-08-22T10:49:28.815Z | auto\n\n- Updated config.yaml in the skill's scripts directory.\n- Removed the skill-card.md file.\n- No changes to end-user workflow or analysis features.\n\nv1.0.7 | 2026-08-12T07:40:37.621Z | auto\n\n- Updated SKILL.md with new version number and related content.\n- Removed the skill-card.md file.\n- No changes to code or technical workflow; changes are limited to documentation updates.\n- Documentation now reflects version 1.0.11 and contains the latest instructions and usage notes.\n\nv1.0.6 | 2026-08-04T03:54:29.494Z | auto\n\n- Removed the file skill-card.md from the skill package.\n- No other functional or documentation changes.\n\nv1.0.5 | 2026-08-02T03:00:30.543Z | auto\n\n- Updated version to 1.0.9 in SKILL.md for documentation and description consistency.\n- Removed the file skill-card.md from the project.\n- No changes to functional code or technical capability; change is documentation and resource cleanup only.\n\nv1.0.4 | 2026-07-18T22:22:27.931Z | auto\n\n- Updated skill version to 1.0.7.\n- Documentation refinements in SKILL.md; content clarified and expanded.\n- Removed the file skill-card.md for a cleaner project structure.\n\nv1.0.3 | 2026-07-12T00:34:31.386Z | auto\n\n- Updated version number to 1.0.6 in SKILL.md.\n- Removed redundant skill-card.md documentation file.\n- Minor documentation and metadata adjustments.\n\nv1.0.2 | 2026-07-04T07:22:24.609Z | auto\n\nVersion 1.0.2\n\n- Updated SKILL.md documentation to reflect new version and minor refinements.\n- Removed redundant file: skill-card.md.\n- Made code and configuration adjustments in scripts/config.py, scripts/dao.py, and scripts/util.py.\n- No user-facing changes in behavior or functionality.\n\nv1.0.1 | 2026-06-25T18:45:29.886Z | auto\n\n- Workflow no longer requires users to provide or be prompted for open-id; identification is now handled entirely internally by the system.\n- Internal identity management and all API authentication are automated, removing identity fields from user steps and outputs.\n- Updated SKILL.md with concise overview tables, clearer separation of workflow steps, and improved organization of skill description, parameters, and examples.\n- Simplified user-facing requirements: users only submit the relevant images or videos (file or URL) without handling identification parameters.\n- Strengthened privacy and security instructions: identity details are never shown or requested from users; reports and results remain linked internally.\n- Documentation and usage examples have been updated for clarity and to reflect the new internal identification logic.\n\nv1.0.0 | 2026-05-25T10:10:34.306Z | auto\n\nsmyx-elderly-facial-asymmetry-analysis v1.0.0\n\n- Initial release of the skill for elderly facial asymmetry analysis using AI-based facial-landmark detection.\n- Supports analysis of key facial asymmetry features (mouth corners, nasolabial folds, eyebrow lifts) from home camera images or videos.\n- Calculates a facial asymmetry index (0–100%) and outputs risk level; alerts when risk exceeds threshold.\n- Strict open-id workflow for each analysis or report query, ensuring user authentication and cloud data integrity.\n- Can be scheduled periodically or triggered by observed abnormal behavior; integrates with smart cameras and health-management platforms.\n- Provides structured history reports in Markdown table format for easy review and monitoring.\n\nArchive index:\n\nArchive v1.0.11: 31 files, 40585 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2437b), SKILL.md (12328b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790863349942\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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: prod\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes frontal face images or videos through a cloud service for facial asymmetry and produces screening reports and report-history links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nFamily caregivers and elder-care staff can submit a frontal face image or short video to review facial asymmetry indicators and request earlier reports. Results are screening aids, not a medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Elderly face images or videos are sent to a configured cloud service.\n\nMitigation: Obtain the monitored person's explicit consent and use the skill only with a trusted publisher and service.\n\nRisk: Automatic triggers may analyze images or retrieve health-related history without clear user control.\n\nMitigation: Require a specific, authorized request before analysis or history retrieval; avoid broad automatic triggers.\n\nRisk: Internally managed identities and arbitrary open-id values can expose another person's reports.\n\nMitigation: Do not pass arbitrary open-id values; restrict report access to authorized identities.\n\nRisk: Stored local tokens and report links can reveal sensitive account and health data.\n\nMitigation: Treat tokens and report links as sensitive; limit access and avoid sharing them in logs or responses.\n\nRisk: Facial screening results may be mistaken for a clinical diagnosis.\n\nMitigation: Treat findings as screening guidance only and seek prompt professional care for suspected stroke symptoms.\n\n## Reference(s):\n\n- [Skill API documentation](references/api_doc.md)\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [Text, JSON, Markdown]\n\n**Output Format:** [Text with structured results; Markdown tables for report history]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include report links or save results to a file.]\n\n## Skill Version(s):\n\n1.0.11 (source: ClawHub 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, 40739 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2793b), SKILL.md (12328b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1790136266381\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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: prod\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes frontal elderly face images or short videos to estimate facial asymmetry, mouth-corner deviation, risk level, and report links for caregiver review.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, caregivers, and health-monitoring workflow developers use this skill to submit elderly frontal face images or videos for auxiliary asymmetry screening, structured indicators, history lookup, and report links. The output is not a medical diagnosis and should be reviewed before acting on health-sensitive results.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill processes sensitive face images, videos, and health-adjacent report history through configured cloud APIs.\n\nMitigation: Use only with informed consent from the elderly person, caregiver, or authorized representative, and avoid regulated medical or highly private deployments until data handling controls are verified.\n\nRisk: The artifact silently resolves or creates an identity and can persist tokens locally for later API calls.\n\nMitigation: Require the publisher to explain the identity flow, token retention, server-side authorization checks, and credential deletion process before installation.\n\nRisk: The output may be interpreted as medical guidance even though the skill is an auxiliary screening tool.\n\nMitigation: Present results as non-diagnostic indicators and route concerning symptoms or severe asymmetry to qualified medical review.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis)\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui)\n- [API interface documentation](references/api_doc.md)\n- [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 and JSON-like structured reports with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include an asymmetry index, mouth-corner drop side, risk level, key facial metrics, medical follow-up hints, and historical report records returned by the configured cloud service.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact SKILL.md frontmatter says 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.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, 40593 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2442b), SKILL.md (12328b), 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 (157b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787645249377\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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\nAnalyzes frontal elderly face images or short videos with facial-landmark techniques to estimate mouth-corner deviation, facial asymmetry indicators, an asymmetry index, and a non-diagnostic risk prompt.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, caregivers, and health-monitoring operators use this skill to screen frontal elderly face media for geometric asymmetry indicators and historical report links. The output is an auxiliary prompt for follow-up review, not a medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill processes sensitive facial and health-screening data and can associate reports with an automatically resolved identity.\n\nMitigation: Use it only with consent from the monitored person or guardian, and define who may initiate screening or view identity-linked reports.\n\nRisk: The skill can use cloud history and local token storage for report retrieval.\n\nMitigation: Review token storage, retention, report deletion, and access-control practices before installation.\n\nRisk: The bundled configuration includes dev or private HTTP endpoints.\n\nMitigation: Verify production API endpoints and prefer approved HTTPS services before deployment.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis)\n- [API documentation](references/api_doc.md)\n- [SMYX 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, Shell commands, Guidance]\n\n**Output Format:** [Markdown report text with JSON-style structured analysis fields and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include an asymmetry index, mouth-corner deviation side, risk level, medical follow-up prompt, and historical report table.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter declares 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.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, 40800 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2928b), SKILL.md (12328b), 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 (157b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1787395768815\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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: dev\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nAnalyzes frontal elderly face images or short videos to estimate facial asymmetry, mouth-corner deviation, related geometric indicators, risk level, and report links for auxiliary screening workflows.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal caregivers, family members, health-monitoring operators, and developers use this skill to submit elderly facial images or videos for structured facial-asymmetry screening reports and historical report lookup. The output is a screening aid only and is not a medical diagnosis or emergency decision tool.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive elderly facial images, videos, and report queries are sent to configured Life Emergence cloud APIs.\n\nMitigation: Use only with informed consent from the person recorded or their guardian, and avoid submitting unnecessary or highly sensitive media.\n\nRisk: The skill may silently create or reuse an identity and store tokens in the workspace data directory.\n\nMitigation: Review local workspace data storage, protect the data directory, and rotate or remove stored credentials when access is no longer needed.\n\nRisk: Facial asymmetry output could be mistaken for a clinical diagnosis or emergency triage decision.\n\nMitigation: Treat results as auxiliary screening information and seek professional medical care for suspected stroke, facial paralysis, or other urgent symptoms.\n\nRisk: Historical report lookup retrieves cloud-hosted records with limited user control.\n\nMitigation: Confirm the active user identity before querying history and avoid displaying report links where unauthorized viewers can access them.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis)\n- [Publisher Profile](https://clawhub.ai/user/smyx-sunjinhui)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [API Documentation](references/api_doc.md)\n- [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-like structured text with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include an asymmetry index, mouth-corner drop side, key metrics, risk level, medical follow-up hint, historical report records, and export links.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter reports 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.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, 40653 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2534b), SKILL.md (12328b), 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 (157b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786520437621\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze mouth-corner height difference, nasolabial fold symmetry, eyebrow lift asymmetry, and a facial asymmetry index.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, caregivers, and health-monitoring platform developers use this skill to analyze frontal elderly face images or short videos for geometric asymmetry indicators, risk-level prompts, and report links. The output is an auxiliary screening signal and is not a medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The workflow handles sensitive face and health data and sends it to cloud services.\n\nMitigation: Use only with informed consent from the monitored person or guardian, confirm endpoint and retention policies, and avoid uploading unnecessary or unrelated media.\n\nRisk: The skill can create or reuse local identities, tokens, and account-linked report history.\n\nMitigation: Run it only in trusted workspaces, protect local workspace files, and review account linkage before deployment.\n\nRisk: Facial-asymmetry output may be mistaken for a clinical diagnosis.\n\nMitigation: Present results as auxiliary screening indicators only and direct urgent neurological concerns to qualified medical care.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API documentation](artifact/references/api_doc.md)\n- [Analysis API documentation](artifact/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 or JSON analysis report with risk prompts, metrics, history tables, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May write a local output file when requested by the user.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release metadata; artifact frontmatter reports 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.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, 41243 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (3462b), SKILL.md (12327b), 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 (157b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785815669494\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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 capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nCaregivers, elder-care operators, and developers use this skill to analyze frontal elder face images or short videos for facial-asymmetry indicators, mouth-corner deviation, risk level, and report links. The output is an auxiliary screening aid and does not replace professional medical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill handles sensitive face images, videos, health-related report metadata, and cloud history access. <br>\nMitigation: Use only with informed consent from the elderly person or an authorized caregiver, and review data handling before use in care settings. <br>\nRisk: Cloud analysis and history lookup may send face images, videos, and report metadata to LifeEmergence services. <br>\nMitigation: Confirm the service endpoint, retention expectations, and privacy controls before processing real elder-care data. <br>\nRisk: The skill can create or reuse a local identity and persist service tokens in workspace data. <br>\nMitigation: Limit access to the workspace, protect persisted tokens, and clear local identity or token data when no longer needed. <br>\nRisk: Facial-asymmetry output is an auxiliary screening signal and could be mistaken for a diagnosis. <br>\nMitigation: Present results as geometry-based risk indicators and direct users to professional medical evaluation for suspected stroke or facial paralysis. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON analysis report with risk indicators and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save results to a user-specified output file.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 40730 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2827b), SKILL.md (12327b), 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 (157b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1785639630543\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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 frontal facial images or short videos of elderly people to estimate facial asymmetry, mouth-corner deviation, and related landmark-based risk indicators for auxiliary screening. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal caregivers, family members, elder-care operators, and health-monitoring developers use this skill to submit frontal face media, receive a structured asymmetry report, and review cloud-stored historical reports. The output is intended as an auxiliary screening signal, not a medical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive elderly face images, videos, and health-screening results are uploaded to cloud services. <br>\nMitigation: Use only with informed consent, send the minimum necessary media, and confirm the publisher's retention, deletion, and access-control practices before deployment. <br>\nRisk: The skill automatically creates or reuses identity records and tokens with limited user-facing control. <br>\nMitigation: Review authentication, token storage, and account-association behavior with the publisher before installation in managed environments. <br>\nRisk: Facial asymmetry output could be mistaken for a clinical diagnosis. <br>\nMitigation: Present results as auxiliary screening only and require professional medical review for suspected stroke, facial paralysis, or other urgent symptoms. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis) <br>\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown text with structured JSON analysis, risk labels, report links, and example command invocations] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include cloud report export links and historical report listings returned from the configured API service.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server-resolved release metadata; artifact SKILL.md frontmatter says 1.0.9) <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, 40781 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2916b), SKILL.md (12327b), 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 (157b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1784413347931\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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 frontal face images or short videos of elderly people with AI facial-landmark detection to compare mouth-corner height, nasolabial-fold symmetry, eyebrow-lift asymmetry, and related features, then returns a facial asymmetry index from 0 to 100%. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, caregivers, and developers use this skill to assess facial asymmetry in elderly-care settings from a provided image, video, or URL. The output is intended as auxiliary screening information and does not replace professional medical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill processes sensitive face and health-related media through a vendor service. <br>\nMitigation: Use only with informed consent from the person or caregiver and limit inputs to images or videos that are necessary for the requested screening. <br>\nRisk: The skill can create or reuse an account identity and store local identity/auth tokens or cloud report history. <br>\nMitigation: Review the configured storage location and access controls before deployment, and avoid shared workspaces for sensitive caregiver or patient workflows. <br>\nRisk: Automatic history lookup or biometric analysis can expose sensitive reports if triggered too broadly. <br>\nMitigation: Keep triggers explicit for report lookup and facial analysis, and review outputs before sharing them beyond the care team. <br>\nRisk: Facial asymmetry output may be mistaken for a clinical diagnosis. <br>\nMitigation: Present results as auxiliary screening information and direct suspected urgent symptoms to professional medical review. <br>\n\n\n## Reference(s): <br>\n- [Skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON analysis report with risk level, asymmetry metrics, report links, and optional saved output file.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can query cloud-hosted history reports and can save analysis results to a user-specified output path.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: release metadata; artifact frontmatter reports 1.0.7) <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\n\nArchive v1.0.3: 31 files, 40744 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2867b), SKILL.md (12327b), 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 (157b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783816471386\n}\n\nFile v1.0.3: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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\n- `medical_followup_hint` - 建议医疗复核提示（仅作建议，非诊断）\n\n> 仅输出基于面部几何特征的客观指标与风险等级提示，不提供医学诊断；如出现疑似面瘫/口角歪斜伴随其他症状（如肢体无力、言语含糊），请按\"中风急救\"流程立即就医。\n\nFile v1.0.3: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.3:scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.3: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.3: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.3: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.3:skill-card.md\n\n## Description: <br>\nThis skill analyzes frontal elderly face images or short videos with AI facial-landmark detection to estimate a 0-100% facial asymmetry index, mouth-corner deviation side, risk level, and report link for auxiliary screening. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal caregivers, family members, elder-care facilities, and health-management platform operators use this skill to screen frontal face media for geometric asymmetry indicators and retrieve cloud-hosted history reports. The outputs are auxiliary risk indicators and are not a substitute for professional medical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive facial-health images, videos, report history, and report links are sent to a configured cloud service. <br>\nMitigation: Use the skill only with explicit consent from the monitored person or guardian, and verify the cloud service's retention, deletion, and access-control practices before deployment. <br>\nRisk: The skill silently creates or reuses an identity and persists local tokens for cloud API access. <br>\nMitigation: Run it only in a trusted environment, protect the local workspace and SQLite/token storage, and remove stored credentials when access is no longer needed. <br>\nRisk: Auxiliary facial asymmetry outputs may be mistaken for a medical diagnosis. <br>\nMitigation: Present results as screening indicators only, and direct users to professional medical care or emergency response when stroke or facial paralysis symptoms are suspected. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Common analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json] <br>\n**Output Format:** [Markdown text with structured JSON analysis results and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include an asymmetry index, mouth-corner drop side, risk level, key facial metrics, alert text, medical follow-up hint, and cloud report export URL.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata; artifact frontmatter declares 1.0.6) <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.3:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.3:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.2: 31 files, 40655 bytes\n\nFiles: references/api_doc.md (2288b), scripts/__init__.py (52b), scripts/config.py (696b), scripts/config.yaml (3b), scripts/skill.py (592b), scripts/smyx_elderly_facial_asymmetry_analysis.py (3652b), skill-card.md (2849b), SKILL.md (12327b), 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 (157b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测与对齐 |\n| 2 | 面部关键点提取（嘴角 / 法令纹 / 眉毛 / 眼裂 / 中线） |\n| 3 | 左右几何对比 |\n| 4 | 不对称指数计算（0-100%） |\n| 5 | 口角下垂侧识别（left / right / none） |\n| 6 | 风险等级判定（normal / mild / moderate / severe） |\n| 7 | 医疗复核提示 |\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_facial_asymmetry_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_elderly_facial_asymmetry_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_facial_asymmetry_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_facial_asymmetry_analysis.py`](scripts/smyx_elderly_facial_asymmetry_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| 📁 格式支持 | 输入要求：支持 jpg/png 图像或 mp4/avi/mov 视频，最大 10MB；建议正面、光照均匀、五官清晰 |\n| 🧑‍⚖️ 结果性质 | 检测结果仅作为辅助筛查参考，本工具不替代专业神经科诊断；若疑似中风请按 FAST 原则立即就医 |\n| 🔏 隐私合规 | 隐私合规：面部数据涉及生物特征隐私，使用前需取得被监护人或家属知情同意，并妥善保管/加密相关图像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json\n```\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783149744609\n}\n\nFile v1.0.2: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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\n- `medical_followup_hint` - 建议医疗复核提示（仅作建议，非诊断）\n\n> 仅输出基于面部几何特征的客观指标与风险等级提示，不提供医学诊断；如出现疑似面瘫/口角歪斜伴随其他症状（如肢体无力、言语含糊），请按\"中风急救\"流程立即就医。\n\nFile v1.0.2: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.2:scripts/config.yaml\n\n{}\n\nFile v1.0.2:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.2: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.2: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.2: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.2:skill-card.md\n\n## Description: <br>\nAnalyzes elderly frontal face images or short videos to estimate facial asymmetry, mouth-corner deviation, risk level, and report links for auxiliary screening. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal caregivers, family members, and elderly-care operators use this skill to submit clear frontal face images or short videos and receive an auxiliary facial-asymmetry report with objective indicators, a risk level, and follow-up guidance. The output is not a medical diagnosis and should be reviewed alongside professional medical advice when symptoms suggest stroke or facial paralysis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive face images, videos, health-analysis results, and report history are processed by the publisher's cloud service. <br>\nMitigation: Use only with informed consent from the person being recorded or their authorized caregiver, and confirm that the publisher's storage, retention, and access controls meet the deployment's privacy requirements. <br>\nRisk: The skill silently creates or reuses an identity and stores account token data in the local workspace data directory. <br>\nMitigation: Treat the workspace data directory as sensitive, restrict file access, avoid sharing workspace archives, and rotate or remove stored identity data when the skill is no longer needed. <br>\nRisk: Facial-asymmetry output may be mistaken for a clinical diagnosis. <br>\nMitigation: Present the report as auxiliary screening only and direct users to seek professional medical evaluation when symptoms suggest stroke, facial paralysis, or other neurological concerns. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-elderly-facial-asymmetry-analysis) <br>\n- [API 接口文档](references/api_doc.md) <br>\n- [SMYX Analysis API 接口文档](skills/smyx_analysis/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 text with structured JSON-style analysis content and optional report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can save output to a user-specified file and can query cloud-hosted historical analysis reports.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: 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.2:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.2:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别 Owner: smyx-sunjinhui Summary: Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, ","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_elderly_facial_asymmetry_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_elderly_facial_asymmetry_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地正面面部图像\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input /path/to/face.jpg\n\n# 分析网络面部图像/视频\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --url https://example.com/face.jpg\n\n# 显示历史面部不对称识别报告（自动触发关键词：查看面部不对称历史报告、口角歪斜报告清单等）\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_elderly_facial_asymmetry_analysis --input face.jpg --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-elderly-facial-asymmetry-analysis\"\ndescription: \"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🙂 Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **老年人面部不对称/口角歪斜识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_ELDERLY_FACIAL_ASYMMETRY_ANALYSIS` |\n\nUsing a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). The skill works as an auxiliary screening tool for stroke prodromal signs, reminding family members or caregivers to pay attention to facial paralysis or mouth-corner deviation and seek timely medical care. Application scenarios: home-based elderly care, nursing homes, community health centers. The system can be scheduled (e.g., daily) or auto-triggered when abnormal behavior is observed; it outputs an asymmetry index and pushes a 'facial asymmetry risk' alert when a threshold is exceeded. Skill features: facial asymmetry is an important early sign of stroke. AI periodic screening helps families detect anomalies in time and preserve the thrombolytic treatment window. Can be integrated into smart cameras or health-management platforms as a practical feature for at-home senior health monitoring.\n\n通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。应用场景：居家养老、养老院、社区健康中心。系统可定期（如每天）或在老年人出现异常行为时自动触发检测，输出不对称指数，当超过设定阈值时推送'面部不对称风险'提醒。技能特点：面部不对称是脑卒中的重要早期体征之一。通过AI定期检测，可帮助家属及时发现异常，争取溶栓治疗时间窗。该技能可集成到智能摄像头或健康管理平台中，成为老年人居家健康监测的实用功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的老年人健康监测 AI。你的任务是分析老年人正面面部图像，检测左右两侧面部关键点的对称性，计算不对称指数。不要提供医疗诊断或临床建议，仅输出基于面部几何特征的客观指标与风险等级提示。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于老年人正面面部图像或短视频，定量评估面部对称性，给出 0-100% 不对称指数与风险等级提示，辅助卒中/面瘫早期筛查\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 正面面部检测"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-elderly-facial-asymmetry-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790863349942\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_FACIAL_ASYMMETRY_ANALYSIS` - 老年人面部不对称/口角歪斜识别\n\n## 输入约束\n\n- 推荐使用正面、平视、清晰、光照均匀的面部图像或短视频\n- 单图像或 3-10 秒静止表情视频均可\n- 拍摄距离建议 30-80 cm，五官区域清晰可见\n\n## 关键观测指标\n\n- 左右嘴角高度差（mouth_corner_height_diff）\n- 鼻唇沟（法令纹）对称性（nasolabial_fold_symmetry）\n- 左右眉毛抬高差异（eyebrow_lift_diff）\n- 眼裂宽度对称性（eye_aperture_symmetry）\n- 整体面部水平中线偏移（midline_offset）\n\n## 不对称指数（0-100%）\n\n- 0-15% - 正常对称范围\n- 15-30% - 轻度不对称（建议复测）\n- 30-50% - 中度不对称（建议关注）\n- ≥ 50% - 重度不对称（强烈建议尽快就医）\n\n## 输出字段（参考）\n\n- `face_detected` - 是否检测到正面面部\n- `asymmetry_index` - 面部不对称指数（0-100%）\n- `mouth_corner_drop_side` - 口角下垂侧（left / right / none）\n- `key_metrics` - 各关键观测指标数值（嘴角差 / 法令纹对称性 / 眉毛抬高差等）\n- `risk_level` - 风险等级（normal / mild / moderate / severe）\n- `alert_message` - 风险提示文本（如\"检测到面部不对称指数偏高，建议关注是否存在面瘫或卒中前兆，必要时就医\"）\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":"Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts, and computes a facial asymmetry index (0-100%). | 通过家庭固定摄像头拍摄老年人正面面部图像或视频，利用AI面部关键点检测技术分析左右嘴角的高度差、鼻唇沟（法令纹）的对称性、眉毛抬高的差异等特征，计算面部不对称指数（0-100%）。该技能可作为脑卒中（中风）前兆的辅助筛查工具，提示家属或护理人员关注老年人是否存在面瘫、口角歪斜等神经系统异常，及时就医。 Skill: Elderly Facial Asymmetry / Mouth-Corner Deviation Detection | 老年人面部不对称/口角歪斜识别 Owner: smyx-sunjinhui Summary: Using a fixed home camera to capture frontal facial images or short videos of the elderly, the system uses AI facial-landmark detection to analyze features such as the height difference between left/right mouth corners, the symmetry of nasolabial folds (smile lines), and the asymmetry of eyebrow lifts,","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1089,"uniquenessScore":45,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T00:30:54.214Z","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-10T00:30:54.214Z","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-10T05:55:45.460Z","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"}]}}}