{"id":"be34ed10-1436-4878-a252-0b09521f07b6","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis","name":"Smart Baby Safety Care Skill | 婴儿智能安全看护技能","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis","generatedAt":"2026-10-10T06:31:07.248Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T15:56:52.436Z","emptyReason":null},"description":"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 Skill: Smart Baby Safety Care Skill | 婴儿智能安全看护技能 Owner: smyx-sunjinhui Summary: Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 Tags: latest:1.0.16 Version history: v1.0.16 | 2026-09-29T23:28:2","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2.4K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-infant-safety-monitoring-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-infant-safety-monitoring-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-infant-safety-monitoring-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":67,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, an"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T15:56:52.436Z","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-09T15:56:52.436Z","emptyReason":null},"stars":null,"forks":null,"downloads":2354,"packageName":null,"latestVersion":"1.0.16","tractionLabel":"2.4K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T15:56:52.436Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T15:56:52.436Z","lastCrawledAt":"2026-10-09T15:56:52.436Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T15:56:52.436Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.16","createdAt":"2026-09-29T23:28:26.173Z","changelog":"- Removed the file: skill-card.md - No changes to features or functionality; only documentation cleanup.","fileCount":30,"zipByteSize":40694},{"version":"1.0.15","createdAt":"2026-09-26T03:25:25.283Z","changelog":"- Updated skill version to 1.0.21. - SKILL.md revised: version information, documentation content, and formatting updated. - Removed the deprecated \"skill-card.md\" file. - Minor configuration or documentation changes in config.yaml. - No changes to core logic or functionality were introduced.","fileCount":30,"zipByteSize":40744},{"version":"1.0.14","createdAt":"2026-09-15T10:17:28.049Z","changelog":"- Updated SKILL.md with new version details and documentation improvements. - Removed the file skill-card.md. - Incremented version from 1.0.17 to 1.0.19 in SKILL.md. - No changes to underlying functionality reported.","fileCount":30,"zipByteSize":41051},{"version":"1.0.13","createdAt":"2026-08-26T19:34:38.201Z","changelog":"- Removed the file skill-card.md from the project. - No functional or API changes. - Documentation and features remain unchanged.","fileCount":30,"zipByteSize":40902},{"version":"1.0.12","createdAt":"2026-08-21T19:18:36.944Z","changelog":"Version 1.0.12 Changelog - Updated documentation in SKILL.md for infant safety monitoring analysis, including clarified instructions and descriptions. - Bumped version metadata to reflect latest improvements. - Removed deprecated file: skill-card.md. - Minor configuration adjustments in config.yaml for better maintainability.","fileCount":30,"zipByteSize":41000},{"version":"1.0.11","createdAt":"2026-08-12T12:42:41.126Z","changelog":"- Updated SKILL.md version from 1.0.14 to 1.0.16. - Removed the skill-card.md file. - No functional or workflow changes—documentation version update and minor maintenance.","fileCount":30,"zipByteSize":40876},{"version":"1.0.10","createdAt":"2026-08-04T14:47:36.520Z","changelog":"- Removed the file skill-card.md. - No changes to core functionality or user experience. - This update only affects project documentation, not the skill behavior.","fileCount":30,"zipByteSize":41067},{"version":"1.0.9","createdAt":"2026-08-02T10:07:28.008Z","changelog":"- Updated skill version to 1.0.14. - SKILL.md content revised; main documentation updated with no changes to core functions or workflows. - Removed redundant file: skill-card.md. - No changes to APIs or script usage; all workflows, parameters, and instructions remain the same. - Documentation improvements only; functionality unchanged.","fileCount":30,"zipByteSize":40988}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-infant-safety-monitoring-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T06:31:07.244Z"}},"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-infant-safety-monitoring-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-infant-safety-monitoring-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T15:56:52.436Z","emptyReason":null},"readme":"Skill: Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n\nOwner: smyx-sunjinhui\n\nSummary: Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\n\nTags: latest:1.0.16\n\nVersion history:\n\nv1.0.16 | 2026-09-29T23:28:26.173Z | auto\n\n- Removed the file: skill-card.md\n- No changes to features or functionality; only documentation cleanup.\n\nv1.0.15 | 2026-09-26T03:25:25.283Z | auto\n\n- Updated skill version to 1.0.21.\n- SKILL.md revised: version information, documentation content, and formatting updated.\n- Removed the deprecated \"skill-card.md\" file.\n- Minor configuration or documentation changes in config.yaml.\n- No changes to core logic or functionality were introduced.\n\nv1.0.14 | 2026-09-15T10:17:28.049Z | auto\n\n- Updated SKILL.md with new version details and documentation improvements.\n- Removed the file skill-card.md.\n- Incremented version from 1.0.17 to 1.0.19 in SKILL.md.\n- No changes to underlying functionality reported.\n\nv1.0.13 | 2026-08-26T19:34:38.201Z | auto\n\n- Removed the file skill-card.md from the project.\n- No functional or API changes.\n- Documentation and features remain unchanged.\n\nv1.0.12 | 2026-08-21T19:18:36.944Z | auto\n\nVersion 1.0.12 Changelog\n\n- Updated documentation in SKILL.md for infant safety monitoring analysis, including clarified instructions and descriptions.\n- Bumped version metadata to reflect latest improvements.\n- Removed deprecated file: skill-card.md.\n- Minor configuration adjustments in config.yaml for better maintainability.\n\nv1.0.11 | 2026-08-12T12:42:41.126Z | auto\n\n- Updated SKILL.md version from 1.0.14 to 1.0.16.\n- Removed the skill-card.md file.\n- No functional or workflow changes—documentation version update and minor maintenance.\n\nv1.0.10 | 2026-08-04T14:47:36.520Z | auto\n\n- Removed the file skill-card.md.\n- No changes to core functionality or user experience.\n- This update only affects project documentation, not the skill behavior.\n\nv1.0.9 | 2026-08-02T10:07:28.008Z | auto\n\n- Updated skill version to 1.0.14.\n- SKILL.md content revised; main documentation updated with no changes to core functions or workflows.\n- Removed redundant file: skill-card.md.\n- No changes to APIs or script usage; all workflows, parameters, and instructions remain the same.\n- Documentation improvements only; functionality unchanged.\n\nv1.0.8 | 2026-07-19T06:27:27.911Z | auto\n\n- Internal cleanup: removed obsolete skill-card.md file.\n- Updated utility script (util.py) in the common scripts folder.\n- No changes to user-facing functionality or usage.\n- Documentation and usage instructions remain unchanged.\n\nv1.0.7 | 2026-07-09T19:30:31.228Z | auto\n\n- Updated SKILL.md version from 1.0.10 to 1.0.11.\n- Removed the file skill-card.md.\n- No changes to functionality or APIs; documentation update only.\n\nv1.0.6 | 2026-07-04T18:09:28.772Z | auto\n\nVersion 1.0.6 Changelog:\n\n- Major update: Skill logic and documentation reworked to eliminate all explicit user identity (open-id) handling.\n- Skill now performs all identity management internally; users are never prompted for usernames, phone numbers, or identifiers.\n- All historical report queries and safety analysis actions occur using background system credentials.\n- SKILL.md fully revised: streamlined, with a clearer structure, new demo section, and updated usage guidelines.\n- Forbidden: displaying or requesting user identity parameters; only analysis status, results, and report links are user-facing.\n- Internal workflow, parameter handling, and constraints are now described for easier integration and privacy compliance.\n\nv1.0.5 | 2026-05-25T13:14:46.748Z | auto\n\nMajor update: Migrated analysis logic to a new skill module and refactored supporting files.\n\n- Migrated all infant safety analysis code from the deprecated face_analysis module to a dedicated smyx_analysis skill directory.\n- Added new scripts and configuration files under skills/smyx_analysis/ for improved modularity and maintainability.\n- Removed the now-obsolete face_analysis skill and all related files.\n- Updated requirements and import paths to match the new module structure.\n- Improved code organization in common scripts to support the refactored skill workflow.\n\nv1.0.4 | 2026-05-20T22:12:37.375Z | auto\n\n- Updated version to 1.0.4 in SKILL.md and associated files.\n- Clarified: attachments from users are now automatically saved as local files (previously specified directory removed).\n- Improved: instructions for displaying historical report lists now specify extracting hyperlinks from API JSON responses, and formatting output as a markdown table.\n- Refined: documentation details and wording for better accuracy and consistency.\n\nv1.0.3 | 2026-05-12T21:37:41.032Z | auto\n\n- Improved configuration structure across dev, test, and production environments in scripts/config*.yaml.\n- Enhanced open-id retrieval logic in scripts/config.py for stricter compliance with prioritized config sources.\n- Updated utility functions in scripts/util.py for more robust file and configuration handling.\n- Minor adjustments to __init__.py to support new configuration workflow.\n- No changes to the user-facing SKILL.md usage or feature set.\n\nv1.0.2 | 2026-05-08T02:03:38.122Z | auto\n\n- Improved reliability of open-id retrieval by refining the search logic in config files.\n- Enhanced compatibility and import handling between face_analysis and common skill modules.\n- Minor bug fixes and code cleanup for more stable skill execution.\n\nv1.0.1 | 2026-05-01T14:52:41.358Z | auto\n\n- Updated version info and metadata in SKILL.md.\n- No user-facing feature or logic changes are described in the documentation or code listing.\n- General maintenance update for documentation consistency.\n\nv1.0.0 | 2026-04-16T11:30:40.734Z | auto\n\nInitial release of the infant safety monitoring analysis skill.\n\n- Enables real-time analysis of infant behavior in videos, identifying high-risk actions such as rolling over, mouth/nose obstruction, climbing, fence crossing, and falling from bed, and triggers instant safety warnings.\n- Provides automated safety care reports and recommendations based on monitored video content.\n- Strictly enforces that all historical report queries fetch data from the cloud API, never from local files or memory.\n- Requires an open-id fetched via multi-step priority rules before running any analysis or report query.\n- Output of historical report lists uses a markdown table, with each report providing direct links to full analysis results.\n\nArchive index:\n\nArchive v1.0.16: 30 files, 40694 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2060b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.16:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.21\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.16:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.16\",\n  \"publishedAt\": 1790724506173\n}\n\nFile v1.0.16:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.16:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.16:scripts/config.yaml\n\n{}\n\nFile v1.0.16:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.16:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.16:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.16:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.16:skill-card.md\n\n## Description:\n\nAnalyzes infant activity videos for possible safety hazards and returns risk reports, warnings, and care suggestions.\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\nCaregivers can submit infant activity videos for advisory hazard analysis and retrieve cloud-stored safety reports. Results do not replace direct supervision.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive infant media and report history are sent to the LifeEmergence cloud service.\n\nMitigation: Use only with appropriate caregiver consent and avoid submitting media or history you are not comfortable sharing with the service.\n\nRisk: Account linkage may happen silently, with a token stored locally.\n\nMitigation: Review local token storage and account access before use, especially on shared devices.\n\nRisk: An advisory analysis can miss hazards or arrive too late to prevent harm.\n\nMitigation: Do not use this skill as a real-time safety monitor or substitute for direct infant supervision.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis)\n- [Infant safety analysis API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, JSON, Markdown]\n\n**Output Format:** [JSON or text reports; Markdown tables for report history]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Reports may include hazard warnings, care suggestions, and links to cloud-stored reports.]\n\n## Skill Version(s):\n\n1.0.16 (source: server-resolved 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.16:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.16:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.15: 30 files, 40744 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2227b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.15:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.21\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.15:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.15\",\n  \"publishedAt\": 1790393125283\n}\n\nFile v1.0.15:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.15:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.15:scripts/config.yaml\n\n{}\n\nFile v1.0.15:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.15:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.15:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.15:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.15:skill-card.md\n\n## Description:\n\nAnalyzes infant images and videos for potential safety hazards and returns alerts, care suggestions, 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\nParents, caregivers, and developers can submit infant media for supplemental safety analysis and review cloud-hosted reports of possible hazards. The skill is not a substitute for direct supervision.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Infant footage and report history are sent to a cloud service without clear privacy, retention, deletion, and consent terms.\n\nMitigation: Review the publisher's privacy and consent terms before use; avoid sending private household footage until they are clear.\n\nRisk: The skill silently creates or reuses a local identity and can retrieve sensitive cloud report history tied to it.\n\nMitigation: Limit access to the skill and report history to authorized caregivers, and review identity and history handling before installation.\n\nRisk: Visual safety analysis may miss hazards or produce misleading warnings.\n\nMitigation: Treat reports as supplemental information, not a replacement for direct caregiver supervision.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis)\n- [Infant safety analysis API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured safety analysis or JSON; historical reports as a Markdown table]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include risk warnings, care suggestions, and report links; results can be saved to a file.]\n\n## Skill Version(s):\n\n1.0.15 (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.15:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.15:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.14: 30 files, 41051 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2851b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.14:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.19\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.14:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.14\",\n  \"publishedAt\": 1789467448049\n}\n\nFile v1.0.14:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.14:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.14:scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.14:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.14:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.14:skill-card.md\n\n## Description:\n\nMonitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings.\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 can analyze infant activity videos or video URLs for potential safety hazards and receive structured monitoring results, warnings, care suggestions, and report links. The skill can also retrieve account-linked historical infant safety analysis reports from the remote service.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive child or home media may be uploaded or shared with a remote analysis service.\n\nMitigation: Obtain clear user consent before processing media, disclose the remote service dependency, and avoid submitting content that users are not authorized to share.\n\nRisk: The skill may silently create or reuse an internal user identity and retrieve account-linked history.\n\nMitigation: Require explicit user intent before history lookup and clearly disclose identity association behavior before deployment.\n\nRisk: Authentication material may be stored locally or transmitted with weak disclosure and insecure defaults.\n\nMitigation: Use HTTPS-only production endpoints, protect or avoid local token storage, and review token lifecycle handling before installation.\n\nRisk: Infant safety analysis may be incomplete or affected by video quality and should not replace active supervision.\n\nMitigation: Present results as advisory only and remind users to maintain real-time caregiver supervision and seek professional guidance when needed.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Infant Safety Monitoring Analysis API 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, shell commands, guidance]\n\n**Output Format:** [Structured JSON or Markdown-formatted text with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include safety warnings, care suggestions, historical report records, and exported report image URLs.]\n\n## Skill Version(s):\n\n1.0.14 (source: server release evidence; artifact frontmatter reports 1.0.19)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.14:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.14:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.13: 30 files, 40902 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2498b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1787772878201\n}\n\nFile v1.0.13:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nMonitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings.\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 infant activity videos or URLs for safety-related behaviors, warnings, care suggestions, structured reports, and history queries. Results are advisory and should not replace real-time caregiver supervision.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may send sensitive infant or home videos to the publisher's cloud service.\n\nMitigation: Use only media approved for upload, review the publisher's retention and deletion practices, and avoid real family footage until those practices are acceptable.\n\nRisk: The skill creates or reuses a local identity and token database for report history.\n\nMitigation: Review local token storage and access controls before deployment, and clear local identity data when the skill is no longer needed.\n\nRisk: Safety reports are advisory and may be incomplete or delayed.\n\nMitigation: Do not rely on the skill as real-time child safety monitoring; maintain caregiver supervision and use professional judgment.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Infant Safety Monitoring API Documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Analysis, Markdown, JSON, Shell commands, Guidance]\n\n**Output Format:** [Markdown or JSON analysis reports with warnings, suggestions, report links, and optional history tables]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local video files or public video URLs; cloud analysis and report-history queries may involve infant or home media and local identity/token state.]\n\n## Skill Version(s):\n\n1.0.13 (source: server release metadata; artifact frontmatter states 1.0.17)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 30 files, 41000 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2742b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1787339916944\n}\n\nFile v1.0.12:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nAnalyzes infant activity images or videos with visual AI to identify high-risk behaviors such as rolling over, mouth/nose obstruction, climbing, fence crossing, and fall risk, then returns warnings, care suggestions, 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\nParents, caregivers, and developers use this skill to analyze infant activity media for possible safety risks and to retrieve cloud report history for prior analyses. It is an assistive monitoring workflow and is not a replacement for real-time supervision or professional care.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive infant or home videos and URLs may be sent to a configured cloud service.\n\nMitigation: Use only with explicit consent, review the configured endpoint and retention terms, and avoid submitting unnecessary or identifying media.\n\nRisk: Report history is associated with an automatically resolved local identity.\n\nMitigation: Confirm per-user scoping and account isolation before shared or production use.\n\nRisk: Account tokens may be stored in a workspace SQLite database.\n\nMitigation: Restrict workspace access, rotate credentials when needed, and prefer a release with documented token storage controls.\n\nRisk: The skill provides assistive safety analysis and may miss or misclassify hazards.\n\nMitigation: Keep caregiver supervision in place and treat reports as supplemental information, not professional care advice.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis)\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui)\n- [Infant safety monitoring API documentation](references/api_doc.md)\n- [Analysis API reference](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON analysis report with structured findings, safety warnings, care suggestions, and report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud-hosted history/report links and optional saved report output.]\n\n## Skill Version(s):\n\n1.0.12 (source: server release metadata; artifact frontmatter reports 1.0.17)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 30 files, 40876 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2434b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1786538561126\n}\n\nFile v1.0.11:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\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\nMonitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings.\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 infant activity videos or media URLs for safety risks, generate structured monitoring reports, and retrieve cloud-backed report history.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends infant videos, images, or provided media URLs to the Life Emergence cloud service for analysis.\n\nMitigation: Use only media the user is authorized to process, minimize identifying details in filenames or URLs, and confirm privacy requirements before deployment.\n\nRisk: Analysis reports and history retrieval are tied to automatically managed local identity and token state.\n\nMitigation: Review whether persistent local identity storage and account-linked history are allowed in the deployment environment, and manage or remove local identity state according to policy.\n\nRisk: Infant safety outputs are advisory and can be affected by media quality or cloud-service behavior.\n\nMitigation: Treat the report as caregiver decision support, not as a replacement for real-time supervision or professional care.\n\n## Reference(s):\n\n- [Infant safety monitoring API documentation](artifact/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, guidance]\n\n**Output Format:** [Markdown-style text with structured JSON analysis content and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud-generated safety scores, risk warnings, care suggestions, history listings, and report export URLs.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release evidence)\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: 30 files, 41067 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2789b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1785854856520\n}\n\nFile v1.0.10:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.10:skill-card.md\n\n## Description: <br>\nMonitors infant behavior via visual AI, identifying high-risk actions such as rolling over, mouth or nose obstruction, climbing, crib or bed escape, and fall risk, then returning safety warnings and care suggestions. <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 caregivers use this agent skill to analyze infant activity videos or image/video URLs for safety risks and to retrieve cloud-hosted historical safety reports. The output is an assistive safety report and does not replace real-time supervision or professional care. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Infant or home media may be uploaded to configured LifeEmergence cloud services for analysis. <br>\nMitigation: Use only with explicit user consent for remote processing of sensitive media, and prefer deployments that document retention, deletion, and access controls. <br>\nRisk: The skill can silently create or reuse a local identity and retrieve account-linked report history. <br>\nMitigation: Review identity and token handling before deployment, disclose account association to users, and provide controls for clearing local credentials and report history. <br>\nRisk: Safety outputs may be mistaken for professional care or a substitute for real-time supervision. <br>\nMitigation: Present outputs as assistive warnings and recommendations only, and retain clear human supervision requirements in user-facing workflows. <br>\n\n\n## Reference(s): <br>\n- [婴儿智能安全看护分析 API 文档](references/api_doc.md) <br>\n- [API接口文档](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, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON safety analysis report with warning text, care suggestions, history tables, report links, and optional saved output files.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Supports basic, standard, and json detail modes; accepts local media paths or public media URLs; historical report queries return account-linked cloud data.] <br>\n\n## Skill Version(s): <br>\n1.0.10 (source: server release metadata; artifact frontmatter states 1.0.14) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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: 30 files, 40988 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2736b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (157b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1785665248008\n}\n\nFile v1.0.9:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.9:skill-card.md\n\n## Description: <br>\nMonitors infant behavior from image or video inputs with visual AI, identifying risks such as mouth or nose obstruction, climbing, crib escape, or falling from bed, and returns safety warnings and care suggestions. <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 caregivers can use this skill through an agent to analyze infant activity media, surface high-risk behavior indicators, and generate safety-monitoring reports. The results are assistive safety guidance and do not replace real-time caregiver supervision or professional care. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive infant or household media and metadata may be sent to the publisher's cloud service. <br>\nMitigation: Use only media you are authorized to process and avoid real infant or household footage unless cloud processing by the publisher is acceptable. <br>\nRisk: The skill creates and reuses local account/session state and can retrieve cloud-linked history reports. <br>\nMitigation: Review local identity and session handling before installation, and avoid the history feature unless cloud-linked report retrieval is intended. <br>\nRisk: The safety analysis may be incomplete or inaccurate and should not be treated as professional care advice. <br>\nMitigation: Treat outputs as assistive alerts and care suggestions only; maintain real-time caregiver supervision and review any warnings before acting. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis) <br>\n- [婴儿智能安全看护分析 API 文档](artifact/references/api_doc.md) <br>\n- [API接口文档](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, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown or JSON safety analysis report with optional report link] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include cloud-linked historical report listings and report export URLs.] <br>\n\n## Skill Version(s): <br>\n1.0.9 (source: server release metadata; artifact frontmatter says 1.0.14) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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: 30 files, 40969 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2576b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (157b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1784442447911\n}\n\nFile v1.0.8:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description: <br>\nMonitors infant images or videos with visual AI to identify high-risk behaviors such as rolling over, mouth/nose obstruction, climbing, fence crossing, and fall risks, then returns safety warnings and care suggestions. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal caregivers, parents, and developers use this skill to analyze infant image or video inputs for safety hazards and retrieve structured reports or historical report lists. Results are advisory and do not replace real-time human supervision or professional care. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill handles sensitive infant image or video inputs and sends inputs or URLs to a cloud service. <br>\nMitigation: Install only when the publisher is trusted, obtain appropriate consent for child media, and avoid submitting unnecessary or highly sensitive footage. <br>\nRisk: The skill can silently create or reuse an internal identity and store returned service tokens locally. <br>\nMitigation: Review account linkage and token storage before deployment, restrict execution to trusted environments, and clear local credentials when access should end. <br>\nRisk: The skill can query cloud-stored historical reports. <br>\nMitigation: Confirm that cloud retention, access control, and report-sharing behavior match the deployment's privacy expectations. <br>\n\n\n## Reference(s): <br>\n- [婴儿智能安全看护分析 API 文档](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Guidance] <br>\n**Output Format:** [Markdown safety report or structured JSON, with optional report links and saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May call cloud APIs for analysis and historical report retrieval.] <br>\n\n## Skill Version(s): <br>\n1.0.8 (source: server release metadata; artifact frontmatter says 1.0.11) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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: 30 files, 40837 bytes\n\nFiles: references/api_doc.md (2269b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/infant_safety_monitoring_analysis.py (8297b), scripts/skill.py (579b), skill-card.md (2650b), SKILL.md (9963b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (157b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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.infant_safety_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--infant-age-group` | 婴儿年龄段，可选值：newborn(0-3个月), infant(3-12个月), toddler(1-3岁), other，默认 | 按需填写 |\n| `--list` | 显示婴儿安全看护历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/infant_safety_monitoring_analysis.py`](scripts/infant_safety_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供安全参考，不能替代专业看护和家长实时监护 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1783625431228\n}\n\nFile v1.0.7:references/api_doc.md\n\n# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description: <br>\nMonitors infant behavior with visual AI to identify high-risk actions such as rolling over, mouth or nose obstruction, climbing, fence crossing, and falling from bed, then returns safety warnings and care guidance. <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 care-support agents use this skill to analyze infant activity images or videos, identify safety risks, and produce structured warning reports with care suggestions. It can also retrieve historical safety-analysis reports from the publisher's cloud service. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill processes highly sensitive infant or home media through the publisher's cloud service. <br>\nMitigation: Use it only after confirming the publisher's privacy, retention, deletion, and access-control practices are acceptable for the intended users and media. <br>\nRisk: The security evidence flags hidden persistent identity handling and report history with limited user control or disclosure. <br>\nMitigation: Review account-creation and report-history behavior before deployment, and avoid use where users require explicit control over identity metadata or stored reports. <br>\nRisk: Safety analysis can be incomplete or incorrect and should not be relied on for live safety-critical supervision. <br>\nMitigation: Present outputs as advisory support only, keep human supervision in place, and require review before acting on high-risk warnings. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-infant-safety-monitoring-analysis) <br>\n- [Infant safety monitoring API documentation](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json] <br>\n**Output Format:** [Markdown summaries and structured JSON analysis reports] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include safety warnings, care suggestions, analysis identifiers, and report links.] <br>\n\n## Skill Version(s): <br>\n1.0.7 (source: release metadata; artifact frontmatter reports 1.0.11) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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","readmeExcerpt":"Skill: Smart Baby Safety Care Skill | 婴儿智能安全看护技能 Owner: smyx-sunjinhui Summary: Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 Tags: latest:1.0.16 Version history: v1.0.16 | 2026-09-29T23:28:2","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.infant_safety_monitoring_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json"},{"language":"bash","snippet":"python -m scripts.infant_safety_monitoring_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地新生儿视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/baby_video.mp4 --infant-age-group newborn 分析网络婴儿视频\npython -m scripts.infant_safety_monitoring_analysis --url https://example.com/baby_video.mp4 --infant-age-group infant 分析本地学步期宝宝视频\npython -m scripts.infant_safety_monitoring_analysis --input /path/to/toddler_video.mp4 --infant-age-group toddler 显示历史分析报告/显示分析报告清单列表/显示历史看护报告（自动触发关键词：查看历史安全报告、历史报告、安全报告清单等）\npython -m scripts.infant_safety_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group infant --detail basic\n\n# 保存结果到文件\npython -m scripts.infant_safety_monitoring_analysis --input video.mp4 --infant-age-group toddler --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"infant_safety_monitoring_analysis\"\ndescription: \"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全\"\nversion: \"1.0.21\"\nlicense: \"MIT-0\"\n---\n\n# 👶 Smart Baby Safety Care Skill | 婴儿智能安全看护技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **婴儿智能安全看护技能** |\n| 🎯 核心目标 | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INFANT_SAFETY_MONITORING` |\n\nLeveraging high-precision sensors and AI vision algorithms, this feature conducts comprehensive, real-time monitoring of\ninfant sleep and activity states. The system automatically identifies sleep hazards such as turning over or nose and\nmouth occlusion, as well as dynamic dangerous behaviors like climbing, fence crossing, and falling from bed. Upon\ndetecting these high-risk actions, the device instantly triggers safety alerts to notify parents, achieving a shift from\npassive supervision to active protection, and building a solid safety line of defense for infant sleep and activity.\n\n该功能通过高精度传感器与AI视觉算法，对婴幼儿的睡眠及活动状态进行全方位实时监测。系统能够自动识别翻身、口鼻遮挡等睡眠隐患，以及攀爬、翻越围栏、坠床等动态危险行为。一旦检测到上述高风险动作，设备将即时触发安全预警通知家长，实现从被动看护到主动防护的转变，为婴幼儿构建一道坚实的睡眠与活动安全防线\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过婴儿活动视频进行智能安全看护分析，识别高风险动作，生成安全看护预警报告\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 翻身监测 |\n| 3 | 口鼻遮挡识别 |\n| 4 | 攀爬行为检测 |\n| 5 | 围栏翻越识别 |\n| 6 | 坠床风险预警 |\n| 7 | 安全看护建议生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供婴儿活动视频 URL 或文件需要进行安全监测分析时，默认触发本技能进行婴儿安全看护分析 |\n| 🔎 明确分析意图 | 当用户明确需要进行婴儿安全看护、婴儿行为监测、风险预警，提及婴儿安全、看护分析、翻身监测、坠床预警、口鼻遮挡等关键词，并且上传了视频文件或者图片文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史安全报告、历史看护报告、婴儿安全报告清单、查询历史报告、查看看护报告列表、显示所有安全报告、显示婴儿安全分析报告，查询婴儿安全看护报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.infant_safety_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.infant_safety_monitoring_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| 本地缺"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-infant-safety-monitoring-analysis\",\n  \"version\": \"1.0.16\",\n  \"publishedAt\": 1790724506173\n}"},{"path":"references/api_doc.md","content":"# 婴儿智能安全看护分析 API 文档\n\n## 接口概述\n\n本技能调用云端统一开放接口，基于视觉AI模型实现婴儿行为安全监测。\n\n## 支持识别的高风险行为\n\n| 风险行为类型 | 描述 | 风险等级 |\n|--------------|------|----------|\n| 口鼻遮挡 | 被褥、毛巾等物体遮挡婴儿口鼻 | 🔴 高危 |\n| 趴着睡眠 | 婴儿长时间俯卧位睡眠姿势 | 🟠 中高危 |\n| 爬出床栏 | 婴儿攀爬、试图翻越婴儿床围栏 | 🔴 高危 |\n| 坠床风险 | 婴儿身体已接近床边，存在坠床可能 | 🟠 中高危 |\n| 危险攀爬 | 攀爬家具、窗台等危险区域 | 🔴 高危 |\n| 接触危险物 | 接触小物件、尖锐物品等危险品 | 🟠 中高危 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.infant_detection.status | string | 婴儿检测状态 |\n| data.infant_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.safety_score | int | 整体安全评分 0-100 |\n| data.diagnosis.overall_safety | string | 整体安全状况：安全/轻度风险/中度风险/高度风险 |\n| data.diagnosis.risk_behavior | object | 各风险行为检测结果 |\n| data.diagnosis.body_position | object | 身体姿势评估结果 |\n| data.diagnosis.environment | object | 环境安全评估结果 |\n\n### 预警与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.safety_warnings | array[string] | 安全警示信息列表 |\n| data.care_suggestions | array[string] | 看护建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 注意事项\n\n1. 本工具为辅助监测工具，不能替代家长/监护人的实时看护\n2. 分析结果仅供参考，不构成专业护理建议\n3. 视频清晰度、光线条件会影响识别准确率\n4. 建议在光线充足、画面稳定的条件下拍摄"},{"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":"Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 Skill: Smart Baby Safety Care Skill | 婴儿智能安全看护技能 Owner: smyx-sunjinhui Summary: Monitors infant behavior via visual AI, automatically identifying high-risk actions like rolling over, mouth/nose obstruction, climbing, or falling from bed, and triggers instant safety warnings. | 婴儿智能安全看护技能，基于视觉AI实时监测婴儿行为，自动识别翻身、口鼻遮挡、攀爬、翻越围栏、坠床等高风险动作，即时触发安全预警，守护婴幼儿睡眠与活动安全 Tags: latest:1.0.16 Version history: v1.0.16 | 2026-09-29T23:28:2","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":911,"uniquenessScore":49,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T15:56:52.436Z","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-09T15:56:52.436Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T06:31:07.248Z","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"}]}}}