{"id":"3dc09cd7-509b-4631-8d71-fb4c4e99fea8","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis","name":"Pet UV Safety Monitor Analysis | 宠物紫外线消毒安全监测","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis","generatedAt":"2026-10-10T05:30:17.069Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:26:46.965Z","emptyReason":null},"description":"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-uv-safety-monitor-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-uv-safety-monitor-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-uv-safety-monitor-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Pet UV Safety Monitor Analysis | 宠物紫外线消毒安全监测 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:26:46.965Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:26:46.965Z","emptyReason":null},"stars":null,"forks":null,"downloads":1891,"packageName":null,"latestVersion":"1.0.11","tractionLabel":"1.9K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:26:46.965Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T23:26:46.965Z","lastCrawledAt":"2026-10-09T23:26:46.965Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T23:26:46.965Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.11","createdAt":"2026-10-02T20:24:42.603Z","changelog":"- Updated SKILL.md metadata: version number incremented and description updated. - SKILL.md content refreshed to reflect current features and workflow. - Removed deprecated file: skill-card.md. - No functional or logic changes to the monitoring or analysis features.","fileCount":31,"zipByteSize":39474},{"version":"1.0.10","createdAt":"2026-09-24T18:58:52.211Z","changelog":"- Version updated to 1.0.15 - Documentation improvements: SKILL.md updated for clarity and detail - Obsolete or duplicated file skill-card.md removed - Minor config adjustments in skills/smyx_common/scripts/config.yaml","fileCount":31,"zipByteSize":39498},{"version":"1.0.9","createdAt":"2026-09-08T00:25:28.215Z","changelog":"- Updated skill version number in SKILL.md. - Removed the file skill-card.md. - No changes to features or code logic; documentation only.","fileCount":31,"zipByteSize":39664},{"version":"1.0.8","createdAt":"2026-08-26T21:38:31.554Z","changelog":"- Removed the file: skill-card.md - No other feature or documentation changes in this version.","fileCount":31,"zipByteSize":39625},{"version":"1.0.7","createdAt":"2026-08-18T11:03:30.430Z","changelog":"- Updated version to 1.0.12 in SKILL.md. - Made minor documentation or metadata adjustments in SKILL.md. - Removed skill-card.md file.","fileCount":31,"zipByteSize":39658},{"version":"1.0.6","createdAt":"2026-08-16T13:22:31.513Z","changelog":"- Updated version to 1.0.11 in SKILL.md. - Removed redundant \"skill-card.md\" file. - Minor content and metadata adjustments in documentation for clarity and consistency.","fileCount":31,"zipByteSize":39572},{"version":"1.0.5","createdAt":"2026-08-01T23:04:28.283Z","changelog":"- Updated SKILL.md with a new version number (from 1.0.6 to 1.0.9). - Removed the file skill-card.md from the project. - No changes were made to code or functionality, documentation update only.","fileCount":31,"zipByteSize":39864},{"version":"1.0.4","createdAt":"2026-07-13T14:49:30.555Z","changelog":"smyx-uv-safety-monitor-analysis 1.0.4 - Updated documentation in SKILL.md, including version info and workflow details. - Internal utility script (util.py) modified (details not specified). - Removed the obsolete skill-card.md documentation file.","fileCount":31,"zipByteSize":39737}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-uv-safety-monitor-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-uv-safety-monitor-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-uv-safety-monitor-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-uv-safety-monitor-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T05:30:17.064Z"}},"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-uv-safety-monitor-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-uv-safety-monitor-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:26:46.965Z","emptyReason":null},"readme":"Skill: Pet UV Safety Monitor Analysis | 宠物紫外线消毒安全监测\n\nOwner: smyx-sunjinhui\n\nSummary: AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\nTags: latest:1.0.11\n\nVersion history:\n\nv1.0.11 | 2026-10-02T20:24:42.603Z | auto\n\n- Updated SKILL.md metadata: version number incremented and description updated.\n- SKILL.md content refreshed to reflect current features and workflow.\n- Removed deprecated file: skill-card.md.\n- No functional or logic changes to the monitoring or analysis features.\n\nv1.0.10 | 2026-09-24T18:58:52.211Z | auto\n\n- Version updated to 1.0.15\n- Documentation improvements: SKILL.md updated for clarity and detail\n- Obsolete or duplicated file skill-card.md removed\n- Minor config adjustments in skills/smyx_common/scripts/config.yaml\n\nv1.0.9 | 2026-09-08T00:25:28.215Z | auto\n\n- Updated skill version number in SKILL.md.\n- Removed the file skill-card.md.\n- No changes to features or code logic; documentation only.\n\nv1.0.8 | 2026-08-26T21:38:31.554Z | auto\n\n- Removed the file: skill-card.md\n- No other feature or documentation changes in this version.\n\nv1.0.7 | 2026-08-18T11:03:30.430Z | auto\n\n- Updated version to 1.0.12 in SKILL.md.\n- Made minor documentation or metadata adjustments in SKILL.md.\n- Removed skill-card.md file.\n\nv1.0.6 | 2026-08-16T13:22:31.513Z | auto\n\n- Updated version to 1.0.11 in SKILL.md.\n- Removed redundant \"skill-card.md\" file.\n- Minor content and metadata adjustments in documentation for clarity and consistency.\n\nv1.0.5 | 2026-08-01T23:04:28.283Z | auto\n\n- Updated SKILL.md with a new version number (from 1.0.6 to 1.0.9).\n- Removed the file skill-card.md from the project.\n- No changes were made to code or functionality, documentation update only.\n\nv1.0.4 | 2026-07-13T14:49:30.555Z | auto\n\nsmyx-uv-safety-monitor-analysis 1.0.4\n\n- Updated documentation in SKILL.md, including version info and workflow details.\n- Internal utility script (util.py) modified (details not specified).\n- Removed the obsolete skill-card.md documentation file.\n\nv1.0.3 | 2026-07-09T12:32:38.541Z | auto\n\n- Version metadata updated from 1.0.3 to 1.0.5.\n- No code or functionality changes detected.\n- Documentation and usage examples remain unchanged.\n- Core feature set and workflow are the same as the previous version.\n\nv1.0.2 | 2026-07-05T10:28:26.914Z | auto\n\n- Updated internal version to 1.0.5 and revised documentation for accuracy.\n- Refined skill description in SKILL.md; clarified workflow, requirements, and capability sections.\n- Updated or improved scripts in the common codebase: config.py, dao.py, util.py.\n- Removed legacy documentation file: skill-card.md.\n- No changes to user-facing interface or core functionality.\n\nv1.0.1 | 2026-06-25T06:49:42.085Z | auto\n\nVersion 1.0.1 Changelog\n\n- Overhauled user identity handling: now managed internally by the system; users are never asked for, see, or input any open-id or identity value.\n- Simplified workflow and documentation to reflect fully automatic user identity association for both analysis and report queries.\n- Updated SKILL.md to clarify new identity handling process, removing all instructions and examples related to user-supplied open-id.\n- Improved guidance and sample commands for cloud-based report querying (now always internal identity).\n- Removed obsolete identity-checking logic and updated/removed scripts as needed; deleted redundant code (e.g., scripts/api_service.py).\n- Enhanced resource index, usage guidance, and notices for a more user-friendly and privacy-controlled experience.\n\nv1.0.0 | 2026-05-22T09:13:41.596Z | auto\n\n- Initial release of the pet UV safety monitor analysis skill.\n- Provides real-time camera analysis to detect pets entering active UV-C disinfection areas and UV lamp status.\n- Automatically triggers high-risk alerts, recommends shutting off the UV lamp, and logs incidents to prevent pet injury.\n- Supports smart home integration and includes strict open-id verification for saving and retrieving reports.\n- Allows users to view historical safety reports via standardized API calls, outputting results in structured Markdown tables.\n\nArchive index:\n\nArchive v1.0.11: 31 files, 39474 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2037b), SKILL.md (12640b), 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 (151b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790972682603\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物紫外线消毒安全监测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/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_UV_SAFETY_MONITOR_ANALYSIS` - 宠物紫外线消毒安全监测\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes pet-area video for possible UV disinfection hazards and provides safety findings and recommendations.\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 and facility operators use this skill to analyze indoor camera footage for pets near active UV disinfection equipment and review safety alerts, recommendations, and past reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor camera footage or video URLs are sent to cloud analysis services.\n\nMitigation: Use only with footage you are authorized to share; review the service's retention and deletion terms before sending sensitive video.\n\nRisk: Reports may be associated with a silently created or reused identity and persistent account tokens.\n\nMitigation: Review account controls and access permissions before installation or use.\n\nRisk: Video-based UV lamp detection can be affected by ambient light and may miss a hazardous exposure.\n\nMitigation: Do not rely on video analysis alone to control a UV lamp; verify lamp status directly and use independent safety safeguards.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis)\n- [API interface documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Analysis, Guidance]\n\n**Output Format:** [Structured report text and Markdown tables]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include risk alerts, recommendations, report links, and cloud report history.]\n\n## Skill Version(s):\n\n1.0.11 (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.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 31 files, 39498 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2055b), SKILL.md (12640b), 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 (151b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1790276332211\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物紫外线消毒安全监测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/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_UV_SAFETY_MONITOR_ANALYSIS` - 宠物紫外线消毒安全监测\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes pet-area UV disinfection video through a remote service and returns safety findings 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\nPet owners and facility staff use the skill to assess uploaded footage or video URLs for potential pet exposure during UV disinfection and to review past analysis reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Claims of live protection and automatic UV lamp shutoff may give a false sense of safety.\n\nMitigation: Do not rely on the skill to switch off a lamp or provide live protection; verify lamp status and shut it off independently unless a device-control integration is verified.\n\nRisk: Pet or household media and URLs are sent to a remote analysis service.\n\nMitigation: Obtain consent and review the destination and privacy implications before submitting media or URLs.\n\nRisk: The skill may create or reuse a local account identity with stored tokens.\n\nMitigation: Review account and token handling before use and avoid running it with sensitive local credentials.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis)\n- [UV safety monitor API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Text or Markdown with structured analysis results and report links; optional saved text file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports historical report listings and basic, standard, or JSON detail settings.]\n\n## Skill Version(s):\n\n1.0.10 (source: ClawHub release)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.10:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.10:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.9: 31 files, 39664 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2522b), SKILL.md (12640b), 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 (150b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1788827128215\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_UV_SAFETY_MONITOR_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: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nAnalyzes pet-safety camera images or videos to identify when a pet enters an active UV-C disinfection area, produce a structured risk report, and recommend shutting off the lamp when UV exposure risk is detected.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze smart-home or facility camera media for pet entry into UV disinfection zones, UV lamp status, and resulting safety alerts. It can also query prior UV safety monitoring reports through the configured cloud service.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet-safety video is uploaded to remote services.\n\nMitigation: Require clear disclosure of upload, retention, and access practices before deployment.\n\nRisk: The inspected artifacts include silent user identity creation and token storage.\n\nMitigation: Review identity handling, token storage, and report-history access controls before installation.\n\nRisk: The inspected artifacts include insecure development HTTP endpoints.\n\nMitigation: Use only a production configuration that enforces HTTPS endpoints.\n\nRisk: The skill describes UV-lamp shutoff recommendations but the inspected evidence does not establish it as a dependable real-time safety control.\n\nMitigation: Keep independent UV-lamp safety controls in place and treat skill output as advisory until validated in the deployment environment.\n\n## Reference(s):\n\n- [API documentation](artifact/references/api_doc.md)\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON structured analysis report with safety status, recommendations, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local video input, remote video URL input, pet type selection, detail level selection, optional file output, and report-history listing.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter reports 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39625 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2518b), SKILL.md (12640b), 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 (150b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1787780311554\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_UV_SAFETY_MONITOR_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: dev\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nThis skill sends pet or home video inputs to the publisher's cloud service to analyze whether pets appear in a UV disinfection area and returns structured risk reports, 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 users and developers use this skill to submit UV disinfection-area pet videos or video URLs for cloud analysis, receive structured monitoring results, and query historical reports. It is intended as safety-support guidance, not as a standalone medical or automatic UV-lamp shutoff system.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet or home video, video URLs, and report queries are sent to the publisher's cloud service.\n\nMitigation: Use the skill only with media and URLs that are appropriate to share with the publisher's service.\n\nRisk: The skill makes safety-critical and automatic-control claims that are not supported by the local code evidence.\n\nMitigation: Treat results as advisory and keep independent UV-lamp controls, supervision, and emergency procedures in place.\n\nRisk: The skill can create and persist a local identity with stored tokens.\n\nMitigation: Review local identity and token storage before deployment and clear stored credentials when the skill should no longer retain access.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis)\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui)\n- [API documentation](references/api_doc.md)\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-formatted structured analysis text]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud report links and exported report image URLs; accepts local video files or video URLs.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter says 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39658 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2567b), SKILL.md (12640b), 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 (150b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1787051010430\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_UV_SAFETY_MONITOR_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 pet-area UV disinfection images or videos through a cloud service to produce structured UV exposure risk reports, 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 users and developers use this skill to submit camera media or media URLs from pet UV disinfection areas and receive structured risk analysis, recommendations, and historical report listings. The skill is best treated as a cloud report generator rather than a guaranteed real-time UV shutoff system.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill uploads local media or submits media URLs to a cloud analysis backend, so pet-area images, videos, URLs, and account-linked report data may leave the local workspace.\n\nMitigation: Use only media and URLs that are acceptable to send to the backend, and review generated report links before sharing them.\n\nRisk: The release evidence says the skill overstates real-time protection and should not be treated as a guaranteed UV shutoff system.\n\nMitigation: Use the output as advisory risk reporting and keep independent physical or smart-home controls for confirming that UV lamps are off before pets can enter.\n\nRisk: The release evidence says the skill silently creates or reuses account identity state.\n\nMitigation: Review or clear workspace data files and generated account tokens when persistent identity linkage is not desired.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API interface documentation](references/api_doc.md)\n- [SMYX analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, guidance]\n\n**Output Format:** [Markdown text with structured JSON-style analysis and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud report export links and historical report-list output.]\n\n## Skill Version(s):\n\n1.0.7 (source: ClawHub release metadata; artifact frontmatter says 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39572 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2274b), SKILL.md (12640b), 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 (150b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1786886551513\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_UV_SAFETY_MONITOR_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\nAI-powered UV disinfection safety monitor for pets that analyzes camera images or videos to detect pet presence, UV lamp activity, combined exposure risk, alert recommendations, and event reporting.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, pet-care operators, and smart-home developers use this skill to analyze indoor UV disinfection footage, identify whether pets are exposed while UV equipment is active, and produce safety alerts, recommendations, and report links.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor pet videos or video URLs may be sent to configured remote analysis services.\n\nMitigation: Review endpoint configuration and publisher privacy documentation before using sensitive household footage.\n\nRisk: The skill may create and reuse persistent local identity or token state.\n\nMitigation: Run in an isolated environment and review account-linkage, retention, and deletion controls before deployment.\n\nRisk: Default configuration includes development HTTP endpoints and under-scoped remote APIs.\n\nMitigation: Confirm production HTTPS endpoints, credentials, and network routing before commercial use.\n\n## Reference(s):\n\n- [API Documentation](references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON analysis report with risk status, recommendations, and optional report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May call remote analysis APIs for video processing and historical report retrieval.]\n\n## Skill Version(s):\n\n1.0.6 (source: server release metadata; artifact frontmatter reports 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39864 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (3045b), SKILL.md (12639b), 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 (150b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1785625468283\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_UV_SAFETY_MONITOR_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>\nAI-powered UV disinfection safety monitor for pets that analyzes camera video or URLs to detect pet entry into active UV-C areas, issue high-risk alerts, recommend shutting off UV lamps, and log reports. <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 operators of smart homes, pet households, or pet boarding facilities use this skill to analyze UV disinfection-area media for pet entry and UV-lamp risk signals. It returns structured safety findings, recommendations, report links, and optional history lookups from the publisher's remote service. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet or home camera media and public URLs are sent to the publisher's remote analysis service. <br>\nMitigation: Use only approved media, avoid sensitive scenes, and confirm that the publisher's data handling is acceptable before installation. <br>\nRisk: The skill may create or reuse a local/cloud-linked identity and persist tokens or user records locally. <br>\nMitigation: Run in an isolated workspace, review local token and database storage, and remove credentials when the skill is no longer needed. <br>\nRisk: The security verdict is suspicious and the live monitoring or device-control path is not verified. <br>\nMitigation: Treat the output as advisory and require independently verified UV shutoff and monitoring controls for safety-critical use. <br>\nRisk: Cloud history queries can expose prior analysis reports associated with the resolved identity. <br>\nMitigation: Limit use to trusted accounts and workspaces, and review access permissions before querying report history. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis) <br>\n- [API interface documentation](artifact/references/api_doc.md) <br>\n- [Analysis API error-code documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown text with structured JSON-like analysis content, report links, and optional saved output files.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Historical report queries return remote-service records; analysis supports local video files or public media URLs and may include export links.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter reports 1.0.9) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.5:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.5:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.4: 31 files, 39737 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2759b), SKILL.md (12639b), 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 (150b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783954170555\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_UV_SAFETY_MONITOR_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>\nAnalyzes pet or home camera media to detect pet entry into an active UV disinfection area, assess UV lamp status, produce risk alerts, recommend shutdown actions, and retrieve historical reports. <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, developers, and operators use this skill to analyze pet safety risks in UV disinfection spaces from uploaded or URL-based media. It supports structured monitoring reports, high-risk alerts, UV lamp shutdown recommendations, and historical report lookup. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill handles sensitive pet and home camera media through the publisher's cloud services. <br>\nMitigation: Use only with media that may be sent to the publisher's service, and review cloud-processing expectations before deployment. <br>\nRisk: The security evidence reports automatic identity creation or reuse, login to an external service, and local token storage. <br>\nMitigation: Review the code and clear local workspace data, databases, or tokens if the skill is no longer used. <br>\nRisk: UV lamp state recognition can be affected by lighting conditions when visual glow detection is used. <br>\nMitigation: Prefer supported smart-home API linkage or device state signals where available, and treat visual-only detections as safety-supporting alerts rather than medical advice. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Pet UV safety monitor 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, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown and JSON-style structured analysis reports with command-line usage guidance] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include risk level, detected pet type, UV lamp status, recommended actions, event logs, report links, and historical report tables.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; artifact SKILL.md frontmatter says 1.0.6) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 39603 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2683b), SKILL.md (12639b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (150b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783600358541\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_UV_SAFETY_MONITOR_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>\nThis skill analyzes pet or home-camera video for cases where a pet may enter a UV disinfection area while a UV lamp appears active, then returns structured risk findings, recommendations, 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 developers use this skill to submit pet-area UV disinfection footage or URLs for cloud-based safety analysis, report generation, and historical report lookup. It is intended to support monitoring and operational decisions, not medical diagnosis or guaranteed device shutoff. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill may overstate real-time UV shutoff protection. <br>\nMitigation: Treat shutoff output as a recommendation unless a separate, tested smart-home control path is verified for the deployment. <br>\nRisk: The skill uploads pet or home-camera footage, remote video URLs, and report requests to the publisher's cloud service. <br>\nMitigation: Use only footage appropriate for third-party cloud processing and avoid submitting private scenes beyond what is required for the safety analysis. <br>\nRisk: The skill silently creates or reuses account-linked local identity state for report history. <br>\nMitigation: Review account and retention expectations before deployment, especially when multiple users or shared devices can access report history. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-uv-safety-monitor-analysis) <br>\n- [Skill API Documentation](references/api_doc.md) <br>\n- [Shared Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON analysis reports with report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include risk labels, pet and UV status observations, recommendations, event/report metadata, and historical report tables.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (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.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, 39565 bytes\n\nFiles: references/api_doc.md (686b), scripts/__init__.py (49b), scripts/config.py (677b), scripts/config.yaml (3b), scripts/skill.py (582b), scripts/smyx_uv_safety_monitor_analysis.py (3520b), skill-card.md (2588b), SKILL.md (12639b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (150b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monitor_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_uv_safety_monitor_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## ☢️ UV灯状态识别方法\n\n| 识别方式 | 原理 | 可靠性 |\n|----------|------|--------|\n| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中（受环境光干扰） |\n| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高（需设备支持） |\n| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中（需配置） |\n| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高（需硬件支持） |\n\n## 🚨 风险分级与联动策略\n\n| 等级 | 条件 | 策略 | APP 通知 |\n|------|------|------|----------|\n| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |\n| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | \"UV消毒进行中，请确保宠物远离\" |\n| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 \"宠物进入消毒区，UV灯已关闭！请检查宠物状态\" |\n\n## ⚠️ 紫外线对宠物的危害\n\n| 暴露部位 | 症状 | 严重程度 |\n|----------|------|----------|\n| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重，可能永久损伤 |\n| 🐾 皮肤（鼻部/耳尖/腹部） | 红肿、脱皮、灼伤 | 中-严重 |\n| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |\n| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |\n\n## 🔧 智能设备联动参考\n\n| 联动设备 | 安全作用 | 适用等级 |\n|----------|----------|----------|\n| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |\n| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |\n| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |\n| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |\n| 📱 APP推送 | 通知主人远程确认 | 注意起 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_uv_safety_monitor_analysis.py`](scripts/smyx_uv_safety_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | UV灯状态识别受环境光线影响，暗环境检测更准确；建议配合智能家居API提升可靠性 |\n| 🧑‍⚖️ 结果性质 | **监测结果仅供安全防护参考，不提供医疗建议**；若宠物已暴露于UV环境，请观察眼部和皮肤并及时就医 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史监测报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783247306914\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_UV_SAFETY_MONITOR_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>\nAnalyzes pet UV disinfection images or videos to identify pet presence, UV-lamp activity, risk level, recommended shutoff actions, and report or history 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>\nDevelopers, operators, and pet-care teams can use this skill to analyze uploaded home or facility media for pet presence in a UV disinfection area, UV-lamp status, safety risk, and recommended next actions. It also supports cloud report history lookup for prior monitoring results. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Home pet or UV-area media may be processed by an external cloud analysis service. <br>\nMitigation: Use only where media upload is authorized, and review the publisher's upload, retention, deletion, and consent controls before deployment. <br>\nRisk: The skill creates or reuses an internal identity and can retrieve cloud report history. <br>\nMitigation: Run it in a controlled environment, verify identity isolation and token storage behavior, and avoid shared accounts unless the publisher documents access controls. <br>\nRisk: The safety-monitoring and UV-lamp shutoff claims are broader than the behavior demonstrated by the code evidence. <br>\nMitigation: Treat outputs as advisory safety guidance unless the publisher documents and demonstrates real device integration, fail-safe behavior, and operational testing. <br>\n\n\n## Reference(s): <br>\n- [Pet UV Safety Monitor API Documentation](references/api_doc.md) <br>\n- [Common Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown report text with optional JSON detail and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save output to a user-provided file path and may retrieve cloud report history.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (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.2:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.2:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Pet UV Safety Monitor Analysis | 宠物紫外线消毒安全监测 Owner: smyx-sunjinhui Summary: AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, an","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_uv_safety_monitor_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_uv_safety_monitor_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat\n\n# 分析网络消毒区域视频\npython -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog\n\n# 显示历史监测报告/显示报告清单列表\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-uv-safety-monitor-analysis\"\ndescription: \"AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# ☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物紫外线消毒安全监测** |\n| 🎯 核心目标 | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_UV_SAFETY_MONITOR_ANALYSIS` |\n\nAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.\n\n通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域，自动关闭UV灯并推送提醒，防止宠物因误入消毒区而受到紫外线伤害。结合目标检测（宠物识别）与UV灯状态感知（可通过画面蓝紫色光晕/光谱特征或智能家居API联动），实现主动式安全防护。应用场景：智能家居、宠物家庭、宠物寄养场所。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流，检测是否有宠物（猫、狗等）进入该区域，并判断紫外线（UV）灯是否处于工作状态（可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断）。一旦同时满足\"宠物进入\"与\"UV灯开启\"两个条件，则输出高危预警并建议立即关闭UV灯。不要提供医疗建议，仅输出基于视觉和逻辑的判断结果。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内摄像头视频进行紫外线消毒区域的宠物安全监测，检测宠物闯入 + UV灯开启的叠加风险，输出高危预警和设备联动建议\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 宠物目标检测（猫/狗/其他） |\n| 2 | UV灯工作状态识别（蓝紫色光晕/光谱特征/智能家居信号） |\n| 3 | 消毒区域入侵判定 |\n| 4 | 双条件叠加预警 |\n| 5 | 设备联动建议（关闭UV灯） |\n| 6 | 事件快照与日志记录 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供紫外线消毒区域视频需要安全分析时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要UV消毒安全监测时，提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_uv_safety_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_uv_safety_monito"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-uv-safety-monitor-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790972682603\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_UV_SAFETY_MONITOR_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":974,"uniquenessScore":39,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T23:26:46.965Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T23:26:46.965Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T05:30:17.069Z","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"}]}}}