{"id":"b5d1389a-c465-484d-a4f4-9d004609711f","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis","name":"Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis","generatedAt":"2026-10-10T10:45:22.993Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T08:43:39.623Z","emptyReason":null},"description":"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-eye-anomaly-detection-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-eye-anomaly-detection-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-eye-anomaly-detection-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":64,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障） technical dossier on Xpersona with agent coverage, OPENCLEW support, and live tru"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T08:43:39.623Z","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-10T08:43:39.623Z","emptyReason":null},"stars":null,"forks":null,"downloads":1550,"packageName":null,"latestVersion":"1.0.9","tractionLabel":"1.6K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T08:43:39.623Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T08:43:39.623Z","lastCrawledAt":"2026-10-10T08:43:39.623Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T08:43:39.623Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.9","createdAt":"2026-09-28T13:09:33.656Z","changelog":"- Removed the file: skill-card.md - No changes to existing functionality, code, or documentation in SKILL.md - This update affects only documentation packaging, not user experience or features","fileCount":31,"zipByteSize":39661},{"version":"1.0.8","createdAt":"2026-09-27T15:24:25.663Z","changelog":"- Updated SKILL.md with new metadata, including incremented version number. - Minor documentation and structure adjustments in SKILL.md. - Removed the outdated skill-card.md file. - No changes to core logic or user-facing functionality.","fileCount":31,"zipByteSize":39597},{"version":"1.0.7","createdAt":"2026-09-08T08:23:33.947Z","changelog":"- Updated skill version to 1.0.13. - SKILL.md updated with minor metadata/version increment. - Removed redundant file: skill-card.md. - No changes to detection functionality or core workflow.","fileCount":31,"zipByteSize":39769},{"version":"1.0.6","createdAt":"2026-09-01T09:39:31.195Z","changelog":"- Version bumped to 1.0.12 with corresponding documentation update. - Updated SKILL.md for version alignment and accurate documentation. - Removed deprecated file: skill-card.md. - Minor adjustments to configuration files. - No changes to core analysis features or script parameters.","fileCount":31,"zipByteSize":39894},{"version":"1.0.5","createdAt":"2026-08-01T17:53:34.547Z","changelog":"- Updated version to 1.0.8 in SKILL.md. - Removed redundant file: skill-card.md. - No changes to core logic or user workflow. - Documentation and usage instructions remain unchanged. - Skill functionality and API usage unaffected.","fileCount":31,"zipByteSize":39921},{"version":"1.0.4","createdAt":"2026-07-15T22:13:28.412Z","changelog":"- Removed the file `skill-card.md`. - No changes to skill functionality or user-facing features. - Internal documentation footprint streamlined.","fileCount":31,"zipByteSize":39812},{"version":"1.0.3","createdAt":"2026-07-12T15:15:26.569Z","changelog":"- Updated skill version to 1.0.5. - Updated documentation in SKILL.md for clarity and to reflect the latest changes. - Made adjustments across config, DAO, and utility scripts. - Removed redundant or outdated file (skill-card.md).","fileCount":31,"zipByteSize":39765},{"version":"1.0.2","createdAt":"2026-06-28T18:42:24.972Z","changelog":"## smyx-eye-anomaly-detection-analysis v1.0.2 Changelog - Removed the file `skill-card.md`.","fileCount":31,"zipByteSize":36645}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-eye-anomaly-detection-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-eye-anomaly-detection-analysis` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/smyx-sunjinhui/smyx-eye-anomaly-detection-analysis before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T10:45:22.990Z"}},"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-eye-anomaly-detection-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-eye-anomaly-detection-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T08:43:39.623Z","emptyReason":null},"readme":"Skill: Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n\nOwner: smyx-sunjinhui\n\nSummary: AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\n\nTags: latest:1.0.9\n\nVersion history:\n\nv1.0.9 | 2026-09-28T13:09:33.656Z | auto\n\n- Removed the file: skill-card.md\n- No changes to existing functionality, code, or documentation in SKILL.md\n- This update affects only documentation packaging, not user experience or features\n\nv1.0.8 | 2026-09-27T15:24:25.663Z | auto\n\n- Updated SKILL.md with new metadata, including incremented version number.\n- Minor documentation and structure adjustments in SKILL.md.\n- Removed the outdated skill-card.md file.\n- No changes to core logic or user-facing functionality.\n\nv1.0.7 | 2026-09-08T08:23:33.947Z | auto\n\n- Updated skill version to 1.0.13.\n- SKILL.md updated with minor metadata/version increment.\n- Removed redundant file: skill-card.md.\n- No changes to detection functionality or core workflow.\n\nv1.0.6 | 2026-09-01T09:39:31.195Z | auto\n\n- Version bumped to 1.0.12 with corresponding documentation update.\n- Updated SKILL.md for version alignment and accurate documentation.\n- Removed deprecated file: skill-card.md.\n- Minor adjustments to configuration files.\n- No changes to core analysis features or script parameters.\n\nv1.0.5 | 2026-08-01T17:53:34.547Z | auto\n\n- Updated version to 1.0.8 in SKILL.md.\n- Removed redundant file: skill-card.md.\n- No changes to core logic or user workflow.\n- Documentation and usage instructions remain unchanged.\n- Skill functionality and API usage unaffected.\n\nv1.0.4 | 2026-07-15T22:13:28.412Z | auto\n\n- Removed the file `skill-card.md`.\n- No changes to skill functionality or user-facing features.\n- Internal documentation footprint streamlined.\n\nv1.0.3 | 2026-07-12T15:15:26.569Z | auto\n\n- Updated skill version to 1.0.5.\n- Updated documentation in SKILL.md for clarity and to reflect the latest changes.\n- Made adjustments across config, DAO, and utility scripts.\n- Removed redundant or outdated file (skill-card.md).\n\nv1.0.2 | 2026-06-28T18:42:24.972Z | auto\n\n## smyx-eye-anomaly-detection-analysis v1.0.2 Changelog\n\n- Removed the file `skill-card.md`.\n\nv1.0.1 | 2026-06-25T20:37:27.529Z | auto\n\n**Summary:**  \nMajor update with streamlined user flow, internalized user identity handling, and improved documentation.\n\n- User identity (open-id) handling is now fully internal and automatic; users no longer need to input or see identity parameters.\n- Historical report queries and all analysis workflows have removed any user-facing identity prompts for enhanced privacy and simplicity.\n- Documentation (SKILL.md) has been comprehensively reorganized and clarified, focusing on user-oriented steps, automatic system behaviors, and strict privacy controls.\n- Removed redundant files and updated scripts for improved maintainability and adherence to new workflow.\n- API usage, abilities, and constraints are now more clearly described, including tabled requirements and use cases.\n\nv1.0.0 | 2026-05-22T16:21:54.186Z | auto\n\n- Initial release of AI-powered pet eye anomaly detection from images or video.\n- Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (e.g., cataract or corneal edema).\n- Outputs structured anomaly alerts with severity grading and home care recommendations.\n- Supports daily self-check, boarding/routine inspection, hospital triage, and senior pet monitoring scenarios.\n- Includes strict open-id retrieval and history report access protocols to ensure user data integrity and accurate API calls.\n\nArchive index:\n\nArchive v1.0.9: 31 files, 39661 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (2329b), SKILL.md (12637b), 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 (154b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1790600973656\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\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: prod\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nAnalyzes pet facial images or videos for eye redness, abnormal tearing, and corneal or pupil cloudiness, then provides anomaly alerts and care guidance.\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\nPet owners, boarding staff, and veterinary teams use close-up pet images or video to screen for visible eye changes, review alert severity, and decide when to seek a veterinarian's assessment. Results are visual screening guidance, not a diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet images or video URLs are sent to an external analysis service.\n\nMitigation: Obtain consent before submitting media and disclose the external service and its data handling.\n\nRisk: The skill automatically creates or reuses a cloud-linked identity and stores tokens.\n\nMitigation: Document identity and token storage, access, and deletion; limit permissions to the minimum necessary.\n\nRisk: Report history can be retrieved from the cloud without an explicit confirmation step.\n\nMitigation: Ask for confirmation before retrieving or displaying historical reports.\n\nRisk: Image-based eye assessments may miss or misclassify veterinary conditions.\n\nMitigation: Treat alerts as screening guidance and seek veterinary assessment for suspected abnormalities.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis)\n- [Skill API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis report text or Markdown history table]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Reports may include severity and care suggestions; results can be saved to a local file.]\n\n## Skill Version(s):\n\n1.0.9 (source: ClawHub release; bundled frontmatter lists 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39597 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (2228b), SKILL.md (12637b), 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 (154b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1790522665663\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nScreens close-up pet eye images and videos for redness, abnormal tearing, and cloudiness, then provides visual anomaly alerts and reports.\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\nPet owners, boarding staff, and veterinary teams use the skill to screen close-up pet eye images or videos for visible abnormalities and review past reports. Results are visual screening aids, not veterinary diagnoses.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Selected pet images or videos are uploaded to an external service for analysis.\n\nMitigation: Obtain consent for cloud processing and submit only media you are comfortable sharing with lifeemergence.com services.\n\nRisk: The skill automatically creates or reuses an identity and can retrieve cloud-stored report history.\n\nMitigation: Review whether persistent identity and cloud history are appropriate before use.\n\nRisk: Account tokens and identity linkage can persist in local workspace files and a SQLite database.\n\nMitigation: Protect local workspace data and review or remove data/smyx-api-key.txt and the generated SQLite database when the linkage is no longer needed.\n\n## Reference(s):\n\n- [Skill release on ClawHub](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis)\n- [API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Guidance]\n\n**Output Format:** [Structured analysis report or Markdown history table; optional saved report file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Includes anomaly alerts, suggested follow-up, and report links where available.]\n\n## Skill Version(s):\n\n1.0.8 (source: ClawHub release metadata; bundled frontmatter says 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39769 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (2547b), SKILL.md (12637b), 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 (154b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1788855813947\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\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: dev\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nAnalyzes close-up pet face images or videos to flag visual signs of eye abnormalities such as conjunctival redness, abnormal tearing or tear stains, and pupil or cornea opacity.\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 pet owners, boarding center staff, animal hospital triage staff, and developers can use this skill to submit pet eye images or videos for visual anomaly alerts and report/history retrieval. The output is a visual screening aid and does not replace professional veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet images or videos may be uploaded to cloud APIs and report history may be queried remotely.\n\nMitigation: Install only after confirming the destination endpoints, data retention expectations, and user consent requirements are acceptable.\n\nRisk: The skill can silently create or reuse an identity and store reusable service tokens in the workspace.\n\nMitigation: Review identity handling and token storage before deployment, and restrict workspace access to trusted users.\n\nRisk: Packaged default configuration includes plaintext HTTP development endpoints for some credential-bearing traffic.\n\nMitigation: Verify production configuration uses trusted HTTPS endpoints before running the skill with real media or credentials.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [API Interface Documentation](artifact/references/api_doc.md)\n- [SMYX 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 text with structured JSON-like analysis content, report links, and optional saved output files.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local file or URL inputs, pet type selection, output detail selection, optional file output, and cloud history listing.]\n\n## Skill Version(s):\n\n1.0.7 (source: ClawHub release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39894 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (2841b), SKILL.md (12637b), 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 (154b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1788255571195\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\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: dev\n\nFile v1.0.6:skill-card.md\n\n## Description:\n\nAnalyzes close-up pet face images or video for visible eye abnormalities such as conjunctival redness, abnormal tearing or tear stains, and pupil or cornea opacity, then returns alerts, recommendations, and report 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\nExternal pet owners, boarding center operators, and veterinary staff use this skill to screen pet eye images or videos for visible signs of redness, tearing, opacity, and left-right asymmetry. The output supports daily health checks, routine inspections, triage, and senior pet monitoring, but it is not a veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet images or videos, report metadata, and an automatically generated or reused identity may be sent to a remote service.\n\nMitigation: Use only media appropriate for service transmission, review retention and token handling before deployment, and avoid sensitive media when those controls are unacceptable.\n\nRisk: The packaged endpoint configuration includes development HTTP addresses.\n\nMitigation: Review the endpoint configuration before use and replace it with approved production HTTPS endpoints for the deployment environment.\n\nRisk: Authentication tokens may be persisted locally.\n\nMitigation: Run the skill in a controlled environment, inspect local token storage behavior, and clear or rotate credentials according to organizational policy.\n\nRisk: Visual screening can be unreliable when images are blurry, backlit, poorly framed, or when breed-specific eye features affect appearance.\n\nMitigation: Use clear, well-lit close-up media with both eyes visible, treat outputs as screening guidance only, and refer suspected abnormalities to a veterinarian.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis)\n- [API Documentation](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, configuration, guidance]\n\n**Output Format:** [Markdown report or JSON, depending on the selected detail and output options]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include anomaly levels, health suggestions, historical report tables, and report links; results can optionally be saved to a file.]\n\n## Skill Version(s):\n\n1.0.6 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39921 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (3023b), SKILL.md (12636b), 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 (154b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1785606814547\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\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 pet face images or videos for visual signs of eye redness, abnormal tearing, and pupil or cornea opacity, then returns structured anomaly alerts, guidance, and report links. <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 and agent operators use this skill to run a pet eye health visual check from close-up images, videos, or URLs, including daily self-checks, boarding-center inspections, veterinary triage, and senior-pet cataract monitoring. The output is a visual screening aid and does not replace professional veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet images, videos, or provided URLs are sent to the Life Emergence cloud service for analysis. <br>\nMitigation: Use only media that the user is authorized to upload, avoid unnecessary sensitive content, and confirm cloud-processing acceptability before deployment. <br>\nRisk: The skill can create or reuse a persistent identity and store account tokens in the workspace data directory. <br>\nMitigation: Run only in trusted workspaces, protect workspace data files, and rotate or remove stored credentials when access is no longer needed. <br>\nRisk: Cloud-stored report history is tied to the persistent identity and may be retrieved by the skill. <br>\nMitigation: Use separate identities for separate users or environments and review account, retention, and access expectations before enabling history lookup. <br>\nRisk: Eye anomaly results are visual screening guidance and may be incomplete or medically misleading if treated as diagnosis. <br>\nMitigation: Present outputs as non-diagnostic screening information and direct users to a veterinarian for suspected abnormalities or urgent symptoms. <br>\n\n\n## Reference(s): <br>\n- [Pet Eye Anomaly Detection API Documentation](artifact/references/api_doc.md) <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON-like structured text with anomaly findings, recommendations, and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save output to a local file when requested and may return cloud report history for the current persistent identity.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter states 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 39812 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (2857b), SKILL.md (12636b), 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 (154b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1784153608412\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\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>\nAI-powered pet eye anomaly detection from close-up pet images or videos identifies redness, tearing, tear staining, and pupil or cornea opacity, then returns structured visual anomaly alerts and report links. <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 pet owners, boarding centers, and veterinary triage users can submit close-up pet face images or videos for visual screening of eye redness, tearing, opacity, and asymmetry. The skill is a monitoring and triage aid, not a substitute for professional veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet images, videos, or provided media URLs are sent to the publisher's cloud analysis service. <br>\nMitigation: Use only media appropriate for third-party processing, avoid sensitive household footage, and confirm the publisher's retention and deletion policy before deployment. <br>\nRisk: The skill can automatically create or reuse a remote identity and store authentication tokens locally for report history access. <br>\nMitigation: Run the skill in a dedicated workspace, protect or periodically clear local skill data, and review credential-storage and account-linking behavior before use. <br>\nRisk: Visual anomaly results may be mistaken for veterinary diagnosis. <br>\nMitigation: Present results as screening guidance only and direct users to professional veterinary care for abnormal, severe, or persistent symptoms. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis) <br>\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown and JSON-style structured analysis text with report links; optional file output when requested.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Outputs may include cloud report history and export links associated with the resolved user identity.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; artifact frontmatter reports 1.0.5) <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, 39765 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (2705b), SKILL.md (12636b), 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 (154b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783869326569\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\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>\nDetects visual signs of pet eye anomalies such as redness, abnormal tearing, tear staining, and pupil or cornea opacity from close-up pet face images or videos, then returns structured alerts for health screening workflows. <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 pet owners, boarding centers, animal hospital intake teams, and developers can use this skill to analyze close-up pet eye images or videos for visual anomaly alerts and history reports. The output supports screening and triage, not veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet images, video URLs, and report history may be sent to LifeEmergence cloud services. <br>\nMitigation: Use only with clear user consent and documented handling, retention, and deletion practices for media and report data. <br>\nRisk: The skill creates or reuses an internal account identity and stores authentication tokens locally. <br>\nMitigation: Review local identity and token storage before deployment, scope credentials tightly, and remove persisted tokens when they are no longer needed. <br>\nRisk: Visual anomaly alerts can be mistaken for veterinary diagnosis. <br>\nMitigation: Present results as screening guidance and direct users to seek veterinary confirmation for suspected abnormalities. <br>\n\n\n## Reference(s): <br>\n- [Pet Eye Anomaly Detection API documentation](references/api_doc.md) <br>\n- [SMYX Analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis) <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 report content, anomaly alerts, health guidance, and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Supports local file paths, public media URLs, optional output files, and history-list queries through the LifeEmergence cloud service.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: ClawHub release metadata; artifact frontmatter reports 1.0.5) <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, 36645 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (2800b), SKILL.md (12636b), 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 (22801b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (13468b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (23409b), _meta.json (154b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.3\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1782672144972\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\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>\nAI-powered pet eye anomaly detection from close-up facial images or video that flags redness, abnormal tearing, and pupil or cornea opacity for home checks, boarding inspections, veterinary triage, and senior pet cataract monitoring. <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 and pet-care operators use this skill to analyze pet face images or videos for visible eye abnormality alerts, structured results, and report links. It is intended for visual screening support and does not replace professional veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet images, videos, or supplied media URLs are sent to lifeemergence.com cloud services for analysis. <br>\nMitigation: Use the skill only with media the user is comfortable sharing with that service, and prefer deployments where retention and deletion practices are documented. <br>\nRisk: The skill may create or reuse an internal account identity and store local account or token data. <br>\nMitigation: Review and protect the local data directory, including smyx-common-claw.db and smyx-api-key.txt, before using it with sensitive household media. <br>\nRisk: History queries can retrieve account-linked reports with limited user control. <br>\nMitigation: Enable history retrieval only where account-linked report access is expected and appropriate for the user. <br>\nRisk: Visual anomaly alerts can be mistaken for a veterinary diagnosis. <br>\nMitigation: Present results as screening support only and direct users to a veterinarian for diagnosis or urgent symptoms. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis) <br>\n- [API 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, json, guidance] <br>\n**Output Format:** [Markdown text with structured JSON report content and optional saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include report export links and account-linked history results from the cloud API.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release evidence and target metadata; artifact frontmatter says 1.0.3) <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\n\nArchive v1.0.1: 31 files, 36627 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3525b), skill-card.md (2767b), SKILL.md (12636b), 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 (22801b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (13468b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (23409b), _meta.json (154b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.3\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行眼部异常识别 | 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看识别结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地宠物面部近景图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示眼睛异常识别历史报告列表清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_eye_anomaly_detection_analysis.py`](scripts/smyx_eye_anomaly_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 jpg/png/mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊 |\n| 🔎 使用提醒 | 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json\n```\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1782419847529\n}\n\nFile v1.0.1: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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\n\nFile v1.0.1: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.1:scripts/config.yaml\n\n{}\n\nFile v1.0.1:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.1: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.1: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.1: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.1:skill-card.md\n\n## Description: <br>\nAI-powered pet eye anomaly detection from close-up facial images or video that flags redness, abnormal tearing or tear stains, and pupil or cornea opacity for early health 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 pet owners, boarding centers, and veterinary triage teams use this skill to analyze close-up pet eye media, retrieve related cloud reports, and produce visual-risk alerts with practical follow-up guidance. Results are visual screening support and should not be treated as a veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet images, videos, and report history are processed by the publisher's cloud service and may be associated with a local identity. <br>\nMitigation: Use the skill only with media you are comfortable sending to the service, avoid sensitive household media or internal URLs, and confirm account and retention practices before broader deployment. <br>\nRisk: The skill can silently create or reuse an account identity and store service tokens in a local SQLite database. <br>\nMitigation: Run it in a contained workspace, restrict access to local storage, and review token handling before using it in shared or regulated environments. <br>\nRisk: Eye-health findings are visual screening outputs and may be incomplete or misleading for medical decisions. <br>\nMitigation: Treat results as triage guidance only and direct users to a veterinarian for diagnosis or urgent symptoms. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-eye-anomaly-detection-analysis) <br>\n- [Pet eye anomaly API documentation](references/api_doc.md) <br>\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown and JSON-style structured analysis reports, with optional saved text output files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include anomaly classifications, health guidance, history-report tables, and report links returned by the vendor cloud service.] <br>\n\n## Skill Version(s): <br>\n1.0.1 (source: server-resolved 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.1:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.1:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.0: 31 files, 34268 bytes\n\nFiles: references/api_doc.md (692b), scripts/__init__.py (80b), scripts/api_service.py (1704b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (602b), scripts/smyx_eye_anomaly_detection_analysis.py (3441b), SKILL.md (12455b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (2094b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1857b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (11394b), skills/smyx_analysis/scripts/smyx_analysis.py (3691b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (45b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2518b), 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 (14505b), skills/smyx_common/scripts/config.yaml (463b), skills/smyx_common/scripts/dao.py (11119b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (18384b), _meta.json (154b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.0\"\n---\n\n# Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\n\n## 🎯 AI 角色\n\n**假设你是一个专业的宠物眼科健康AI。你的任务是分析宠物面部近景视频或高清图像，检测双眼的结膜颜色、泪痕程度、瞳孔及角膜透明度，识别是否存在充血、异常流泪、白内障等眼部异常。不要提供医疗诊断，仅输出基于视觉的异常提示。**\n\n## 任务目标\n\n- 本 Skill 用于：通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n- 能力包含：双眼定位、结膜颜色分析、泪痕程度评估、瞳孔/角膜透明度检测、异常征象分级、左右眼对比、健康建议输出\n- 触发条件:\n    1. **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别\n    2. 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件\n    3. 当用户提及以下关键词时，**自动触发历史报告查询功能**\n       ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录\n- 自动行为：\n    1. 如果用户上传了附件或者图像/视频文件，则自动保存为本地文件\n    2. **⚠️ 强制数据获取规则（次高优先级）**：如果用户触发任何历史报告查询关键词（如\"查看所有眼部检查报告\"、\"显示眼睛异常报告\"、\"查看历史报告\"等），**必须**：\n        - 直接使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list --open-id` 参数调用 API\n          查询云端的历史报告数据\n        - **严格禁止**：从本地 memory 目录读取历史会话信息、严格禁止手动汇总本地记录中的报告、严格禁止从长期记忆中提取报告\n        - **必须统一**从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果\n\n## 前置准备\n\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 操作步骤\n\n### 🔒 open-id 获取流程控制（强制执行，防止遗漏）\n\n**在执行眼部异常识别前，必须按以下优先级顺序获取 open-id：**\n\n```\n第 1 步：【最高优先级】检查技能所在目录的配置文件（优先）\n        路径：skills/smyx_common/scripts/config.yaml（相对于技能根目录）\n        完整路径示例：${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml\n        → 如果文件存在且配置了 api-key 字段，则读取 api-key 作为 open-id\n        ↓ (未找到/未配置/api-key 为空)\n第 2 步：检查 workspace 公共目录的配置文件\n        路径：${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml\n        → 如果文件存在且配置了 api-key 字段，则读取 api-key 作为 open-id\n        ↓ (未找到/未配置)\n第 3 步：检查用户是否在消息中明确提供了 open-id\n        ↓ (未提供)\n第 4 步：❗ 必须暂停执行，明确提示用户提供用户名或手机号作为 open-id\n```\n\n**⚠️ 关键约束：**\n\n- **禁止**自行假设,自行推导,自行生成 open-id 值（如 openclaw-control-ui、default、userC113、user123 等）\n- **禁止**跳过 open-id 验证直接调用 API\n- **必须**在获取到有效 open-id 后才能继续执行分析\n- 如果用户拒绝提供 open-id，说明用途（用于保存和查询历史报告记录），并询问是否继续\n\n---\n\n- 标准流程:\n    1. **准备图像/视频输入**\n        - 提供本地宠物面部近景图像/视频或网络 URL\n        - 拍摄建议：\n          - 距离 20-40cm 的**面部正面或侧面近景**，确保双眼清晰可见\n          - **光线充足**（自然光最佳），避免逆光、过曝、阴影遮挡眼部\n          - 尽量让宠物**保持安静、睁眼**，避免动态模糊\n          - 视频时长建议 5-15 秒即可\n        - 支持图像（jpg/png）和视频（mp4/avi/mov）格式\n    2. **获取 open-id（强制执行）**\n        - 按上述流程控制获取 open-id\n        - 如无法获取，必须提示用户提供用户名或手机号\n    3. **执行眼部异常识别**\n        - 调用 `-m scripts.smyx_eye_anomaly_detection_analysis` 处理图像/视频文件（**必须在技能根目录下运行脚本**）\n        - 参数说明:\n            - `--input`: 本地宠物面部近景图像/视频文件路径\n            - `--url`: 网络宠物面部近景图像/视频 URL 地址（API 服务自动下载）\n            - `--pet-type`: 宠物类型，可选值：cat/dog/other，默认 cat\n            - `--open-id`: 当前用户的 open-id（必填，按上述流程获取）\n            - `--list`: 显示眼睛异常识别历史报告列表清单\n            - `--api-key`: API 访问密钥（可选）\n            - `--api-url`: API 服务地址（可选，使用默认值）\n            - `--detail`: 输出详细程度（basic/standard/json，默认 json）\n            - `--output`: 结果输出文件路径（可选）\n    4. **查看识别结果**\n        - 接收结构化的眼部健康评估报告\n        - 包含：**左/右眼结膜颜色**（正常粉色 / 轻度充血 / 明显充血）、**泪痕程度**（无 / 轻度 / 严重）、**异常流泪检测**（持续性溢泪标记）、**瞳孔与角膜透明度**（清澈 / 轻度浑浊 / 明显浑浊）、**白内障/角膜水肿征象**、**异常等级**、**健康建议**（如\"左眼结膜充血明显，建议就医检查\"）\n        - **重要提示**：仅基于视觉特征输出异常提示，**不提供医疗诊断**，确诊需由专业兽医检查\n\n## 👁️ 检测项目说明\n\n| 检测项 | 关键指标 | 可能提示的疾病方向 |\n|--------|----------|--------------------|\n| 🔴 结膜充血 | 结膜颜色发红、血管明显 | 结膜炎、角膜炎、过敏 |\n| 💧 异常流泪 | 严重泪痕、持续溢泪 | 泪管阻塞、结膜炎、眼睑内翻 |\n| 🌫️ 角膜浑浊 | 角膜出现灰白雾状 | 角膜水肿、角膜溃疡 |\n| ⚪ 瞳孔浑浊 | 瞳孔区域呈现蓝白色雾状 | 白内障、晶状体硬化 |\n| 👀 左右不对称 | 双眼瞳孔大小、颜色明显差异 | 神经系统问题、外伤、青光眼 |\n\n## 🚨 异常分级与建议\n\n| 异常等级 | 表现 | 建议 |\n|----------|------|------|\n| 🟢 正常 | 双眼明亮、结膜粉色、角膜清澈、无泪痕 | 持续日常监测即可 |\n| 🟡 轻度异常 | 轻微泪痕或单侧轻度充血 | 观察 24-48 小时，注意环境清洁与饮食 |\n| 🟠 中度异常 | 明显充血、严重泪痕或局部浑浊 | 建议尽快预约兽医检查 |\n| 🔴 重度异常 | 明显角膜/瞳孔浑浊、双眼明显不对称、视力疑似受损 | ⚠️ 尽快就医，避免视力进一步损伤 |\n\n## 💡 高风险品种与人群\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 老年宠物（>7岁） | 白内障、晶状体硬化高发 |\n| 短鼻犬猫（巴哥、英斗、波斯、加菲等） | 眼球突出，易角膜损伤、泪溢 |\n| 长毛品种（比熊、博美、贵宾、波斯） | 毛发刺激易引发流泪、结膜炎 |\n| 糖尿病患宠 | 易并发糖尿病性白内障 |\n\n## 资源索引\n\n- 必要脚本：见 [scripts/smyx_eye_anomaly_detection_analysis.py](scripts/smyx_eye_anomaly_detection_analysis.py)(用途：调用 API 进行宠物眼部异常识别，本地文件上传，网络 URL 由 API 服务自动下载)\n- 配置文件：见 [scripts/config.py](scripts/config.py)(用途：配置 API 地址、默认参数和场景代码)\n- 领域参考：见 [references/api_doc.md](references/api_doc.md)(何时读取：需要了解 API 接口详细规范和错误码时)\n\n## 注意事项\n\n- 仅在需要时读取参考文档，保持上下文简洁\n- 支持 jpg/png/mp4/avi/mov 格式，最大 10MB\n- **拍摄要求**：面部近景、光线充足、双眼清晰；模糊/逆光/眼睛闭合的图像无法得出可靠结果\n- API 密钥可选，如果通过参数传入则必须确保调用鉴权成功，否则忽略鉴权\n- **识别结果仅供视觉参考，绝不替代专业兽医诊断**；任何疑似异常都建议就医确诊\n- 部分品种眼部生理特征本身偏红或泪痕较重，需结合个体基线判断\n- 禁止临时生成脚本，只能用技能本身的脚本\n- 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载\n- 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段 reportImageUrl 作为超链接地址，且自动转化为如下 Markdown\n  表格格式输出，包含\"报告名称\"、\"宠物类型\"、\"分析时间\"、\"点击查看\"四列，其中\"报告名称\"列使用`眼睛异常识别报告-{记录id}`形式拼接, \"点击查看\"\n  列使用\n  `[🔗 查看报告](reportImageUrl)`\n  格式的超链接，用户点击即可直接跳转到对应的完整报告页面。\n- 表格输出示例：\n  | 报告名称 | 宠物类型 | 分析时间 | 点击查看 |\n  |----------|----------|----------|----------|\n  | 眼睛异常识别报告-20260312172200001 | 猫 | 2026-03-12 17:22:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n## 使用示例\n\n```bash\n# 分析本地宠物面部近景图像/视频（以下只是示例，禁止直接使用openclaw-control-ui 作为 open-id）\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat --open-id your-open-id\n\n# 分析网络宠物面部近景图像/视频（以下只是示例，禁止直接使用openclaw-control-ui 作为 open-id）\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog --open-id your-open-id\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list --open-id your-open-id\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --open-id your-open-id --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --open-id your-open-id --output result.json\n```\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1779466914186\n}\n\nFile v1.0.0: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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）\n\nFile v1.0.0:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口地址\n\n`POST https://your-api-server.com/api/v1/common-analysis`\n\n## 请求头\n\n| 字段           | 必选 | 说明                            |\n|--------------|----|-------------------------------|\n| X-API-Key    | 是  | API访问密钥                       |\n| Content-Type | 是  | 文件上传或 application/json（URL模式） |\n\n## 请求参数\n\n### 1. 文件上传模式\n\n| 字段           | 类型     | 必选 | 说明                                    |\n|--------------|--------|----|---------------------------------------|\n| video        | file   | 是  | MP4视频文件                               |\n| detail_level | string | 否  | 输出详细程度：basic/standard/full，默认standard |\n\n### 2. URL模式\n\n| 字段           | 类型     | 必选 | 说明                                    |\n|--------------|--------|----|---------------------------------------|\n| video_url    | string | 是  | 可公开访问的视频URL                           |\n| detail_level | string | 否  | 输出详细程度：basic/standard/full，默认standard |\n\n## 响应格式\n\n```json\n{\n  \"code\": 200,\n  \"message\": \"success\",\n  \"data\": {\n    \"analysis_time\": \"2026-03-10 15:30:00\",\n    \"face_detection\": {\n      \"status\": \"success\",\n      \"face_count\": 1,\n      \"quality_score\": 95\n    },\n    \"diagnosis\": {\n      \"overall_constitution\": \"平和质\",\n      \"organ_condition\": {\n        \"liver\": \"正常\",\n        \"heart\": \"轻微火旺\",\n        \"spleen\": \"略虚\",\n        \"lung\": \"正常\",\n        \"kidney\": \"正常\"\n      },\n      \"color_analysis\": {\n        \"complexion\": \"微黄\",\n        \"correspondence\": \"脾胃功能略弱\"\n      }\n    },\n    \"health_warnings\": [\n      \"注意休息，避免熬夜\"\n    ],\n    \"suggestions\": [\n      \"饮食清淡，减少辛辣食物摄入\"\n    ]\n  }\n}\n```\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.0:scripts/config.yaml\n\n{}\n\nFile v1.0.0:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.0: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.0: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.0:skills/smyx_common/scripts/config.yaml\n\nenv: prod\n\nApiEnum:\n  api-key:\n  api-secret-key:\n  database-url:\n  base-url-open-api: \"https://open.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitor.lifeemergence.com\"\n  base-url-health: \"https://lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: false\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: \"XIAN_ZHAO_GAN_ZHI\"\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret:\n  default--skill-platform-name: ARK_CLAW\n\nFile v1.0.0:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.0:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3","readmeExcerpt":"Skill: Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障） Owner: smyx-sunjinhui Summary: AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boa","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_eye_anomaly_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_eye_anomaly_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --input /path/to/pet_face.jpg --pet-type cat\n\n# 分析网络宠物面部近景图像/视频\npython -m scripts.smyx_eye_anomaly_detection_analysis --url https://example.com/pet_face.mp4 --pet-type dog\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史眼部检查报告、眼部报告清单等）\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_eye_anomaly_detection_analysis --input eye.jpg --pet-type cat --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-eye-anomaly-detection-analysis\"\ndescription: \"AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 👁️ Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别（红肿/流泪/白内障）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物眼睛异常识别（红肿/流泪/白内障）** |\n| 🎯 核心目标 | 通过宠物摄像头捕捉宠物面部近景视频，利用AI视觉分析技术检测眼部充血（结膜颜色发红）、异常流泪（泪痕严重或持续性溢泪）、瞳孔区域浑浊（可能为白内障或角膜水肿）等异常征象，输出异常提示，帮助主人及早发现眼部疾病风险。适用于日常健康监测、老年宠物护理及宠物医院预检。应用场景：宠物家庭日常健康自检、宠物寄养中心巡检、宠物医院门诊初筛、老年宠物白内障监测。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` |\n\nAI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring.\n\n通过宠物摄像头捕捉宠物面部近景视频，利用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通过宠物面部近景图像/视频进行双眼健康视觉评估，识别结膜充血、异常流泪、角膜/瞳孔浑浊等异常征象，输出分级异常提示\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 双眼定位 |\n| 2 | 结膜颜色分析 |\n| 3 | 泪痕程度评估 |\n| 4 | 瞳孔/角膜透明度检测 |\n| 5 | 异常征象分级 |\n| 6 | 左右眼对比 |\n| 7 | 健康建议输出 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物面部近景图像或视频需要分析时，默认触发本技能进行眼部异常识别 |\n| 🔎 明确分析意图 | 当用户明确需要眼部健康检查时，提及眼睛、结膜、充血、流泪、泪痕、白内障、角膜、瞳孔等关键词，并且上传了图像或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史眼部检查报告、历史眼睛异常报告、眼部报告清单、显示所有眼睛报告、查询眼部健康记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_eye_anomaly_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_eye_anomaly_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-eye-anomaly-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1790600973656\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（眼睛异常识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_EYE_ANOMALY_DETECTION_ANALYSIS` - 宠物眼睛异常识别（红肿/流泪/白内障）"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":926,"uniquenessScore":42,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T08:43:39.623Z","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-10T08:43:39.623Z","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-10T10:45:22.993Z","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"}]}}}