{"id":"0bd717ee-2ab8-4115-a71b-2f3abe28ce99","entityType":"agent","slug":"clawhub-18072937735-smyx-child-window-climbing-detection-analys","name":"Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-child-window-climbing-detection-analys","canonicalPath":"/agent/clawhub-18072937735-smyx-child-window-climbing-detection-analys","generatedAt":"2026-10-10T10:59:03.505Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:48:18.830Z","emptyReason":null},"description":"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-child-window-climbing-detection-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-child-window-climbing-detection-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-child-window-climbing-detection-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:48:18.830Z","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-09T21:48:18.830Z","emptyReason":null},"stars":null,"forks":null,"downloads":1964,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:48:18.830Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T21:48:18.830Z","lastCrawledAt":"2026-10-09T21:48:18.830Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T21:48:18.830Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-09-30T17:13:27.180Z","changelog":"- Updated SKILL.md version to 1.0.15 and revised version references. - Removed the file skill-card.md from the project. - No changes to skill features or functionality. - Documentation and metadata updates only.","fileCount":31,"zipByteSize":40347},{"version":"1.0.12","createdAt":"2026-09-25T21:44:26.872Z","changelog":"- Updated version numbers in metadata and documentation. - Removed obsolete documentation file: skill-card.md. - Revised configuration and SKILL.md content; no changes to core functionality.","fileCount":31,"zipByteSize":40353},{"version":"1.0.11","createdAt":"2026-09-07T08:18:45.537Z","changelog":"- Updated version to 1.0.13 in SKILL.md. - Removed file: skill-card.md. - No changes to core functionality or workflow noted. - Documentation and resource index remain consistent with previous version.","fileCount":31,"zipByteSize":40528},{"version":"1.0.10","createdAt":"2026-08-25T14:34:34.799Z","changelog":"- Updated version to 1.0.11. - Removed the file skill-card.md. - SKILL.md updated, mainly reflecting version increment. - No changes to functionality or workflow.","fileCount":31,"zipByteSize":40447},{"version":"1.0.9","createdAt":"2026-08-20T07:50:30.062Z","changelog":"- Updated version to 1.0.10. - Documentation refinements in SKILL.md. - skills/smyx_common/scripts/config.yaml modified. - Removed redundant documentation file skill-card.md.","fileCount":31,"zipByteSize":40485},{"version":"1.0.8","createdAt":"2026-08-11T07:25:35.611Z","changelog":"- Updated version number to 1.0.9 in SKILL.md. - Removed the file skill-card.md for cleanup. - No changes to functionality or core workflows.","fileCount":31,"zipByteSize":40359},{"version":"1.0.7","createdAt":"2026-08-06T11:09:31.770Z","changelog":"- Removed the file: `skill-card.md` - No changes to features or functionality. - Documentation and skill implementation remain unchanged.","fileCount":31,"zipByteSize":40442},{"version":"1.0.6","createdAt":"2026-07-27T21:37:31.210Z","changelog":"- Updated version to 1.0.8 in SKILL.md. - Removed skill-card.md file. - No changes to core functionality or workflow documented.","fileCount":31,"zipByteSize":40565}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-child-window-climbing-detection-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-child-window-climbing-detection-analysis` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/18072937735/smyx-child-window-climbing-detection-analysis before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T10:59:03.501Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-window-climbing-detection-analys/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:48:18.830Z","emptyReason":null},"readme":"Skill: Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n\nOwner: 18072937735\n\nSummary: Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-09-30T17:13:27.180Z | auto\n\n- Updated SKILL.md version to 1.0.15 and revised version references.\n- Removed the file skill-card.md from the project.\n- No changes to skill features or functionality. \n- Documentation and metadata updates only.\n\nv1.0.12 | 2026-09-25T21:44:26.872Z | auto\n\n- Updated version numbers in metadata and documentation.\n- Removed obsolete documentation file: skill-card.md.\n- Revised configuration and SKILL.md content; no changes to core functionality.\n\nv1.0.11 | 2026-09-07T08:18:45.537Z | auto\n\n- Updated version to 1.0.13 in SKILL.md.\n- Removed file: skill-card.md.\n- No changes to core functionality or workflow noted.\n- Documentation and resource index remain consistent with previous version.\n\nv1.0.10 | 2026-08-25T14:34:34.799Z | auto\n\n- Updated version to 1.0.11.\n- Removed the file skill-card.md.\n- SKILL.md updated, mainly reflecting version increment.\n- No changes to functionality or workflow.\n\nv1.0.9 | 2026-08-20T07:50:30.062Z | auto\n\n- Updated version to 1.0.10.\n- Documentation refinements in SKILL.md.\n- skills/smyx_common/scripts/config.yaml modified.\n- Removed redundant documentation file skill-card.md.\n\nv1.0.8 | 2026-08-11T07:25:35.611Z | auto\n\n- Updated version number to 1.0.9 in SKILL.md.\n- Removed the file skill-card.md for cleanup.\n- No changes to functionality or core workflows.\n\nv1.0.7 | 2026-08-06T11:09:31.770Z | auto\n\n- Removed the file: `skill-card.md`\n- No changes to features or functionality.\n- Documentation and skill implementation remain unchanged.\n\nv1.0.6 | 2026-07-27T21:37:31.210Z | auto\n\n- Updated version to 1.0.8 in SKILL.md.\n- Removed skill-card.md file.\n- No changes to core functionality or workflow documented.\n\nv1.0.5 | 2026-07-16T15:24:30.997Z | auto\n\nVersion 1.0.5 → 1.0.6\n\n- Updated SKILL.md with minor documentation or version changes.\n- Removed the file skill-card.md.\n- Adjusted project files, possibly for documentation streamlining or cleanup.\n\nv1.0.4 | 2026-07-10T06:27:30.241Z | auto\n\n- Updated version from 1.0.3 to 1.0.5 in SKILL.md.\n- Removed the deprecated skill-card.md file.\n- Documentation and configuration files updated for consistency and accuracy.\n- No user-facing feature or interface changes.\n\nv1.0.3 | 2026-07-01T17:24:46.012Z | auto\n\n- Updated internal scripts: Modified `dao.py` and `util.py` in `skills/smyx_common/scripts`.\n- Removed outdated documentation file `skill-card.md`.\n- No changes to end-user features or the skill's interface.\n\nv1.0.2 | 2026-06-27T19:38:24.485Z | auto\n\n- Completely overhauled documentation for clarity, usability, and internationalization\n- Unified user workflow: identity binding is now fully automatic, removing the need for user input or display of any open-id or personal fields\n- All historical report queries and analysis operations now strictly rely on internal system identity; users interact only via files or intent keywords\n- Examples, step-by-step workflow, restrictions, and API usage have been clearly revised and simplified\n- Removed redundant code/files and improved file structure for consistency with updated skill workflow\n\nv1.0.1 | 2026-06-17T00:27:24.502Z | auto\n\n- Updated configuration file locations and open-id retrieval logic to prioritize scripts/config.yaml in the skill directory.\n- License information (MIT-0) added to the skill metadata.\n- Description field in SKILL.md shortened for clarity and consistency.\n- Documentation updated to reflect new config paths, removing previous deep directory dependencies.\n- Removed unused or redundant documentation file (skill-card.md).\n- No functional changes to detection or reporting logic; updates are process, documentation, and structure-related.\n\nv1.0.0 | 2026-05-25T02:21:40.076Z | auto\n\nsmyx-child-window-climbing-detection-analysis v1.0.0 – Initial release\n\n- Provides real-time AI analysis of fixed camera video in living rooms or child activity areas, detecting if a child is climbing windows, leaning out, or gripping window-sill edges.\n- Instantly alerts parents via mobile notifications or triggers audible/visual alarms when dangerous actions are detected.\n- Operates 24/7 in high-rise homes, kindergartens, and child activity centers, sending urgent notifications with incident snapshots for immediate response.\n- Features AI-based automatic detection of risky behaviors, second-level early warnings, and structured alert reports.\n- Supports querying and viewing historical safety reports through cloud API, with strict open-id authentication and privacy compliance.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 40347 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2316b), SKILL.md (12299b), 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 (165b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790788407180\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAnalyzes child-area camera videos for dangerous climbing or leaning near windows and balconies and returns risk alerts and report links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nParents, caregivers, and developers use this skill to submit window- or balcony-facing household videos for child-climbing risk analysis, review alerts, and retrieve historical reports. It is an aid to supervision, not a replacement for an adult caregiver.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Child or household camera footage and identifiers are sent to an external analysis service.\n\nMitigation: Obtain guardian consent before using minors' footage, limit exposure of video and identifiers, and confirm the provider's retention and deletion policy.\n\nRisk: Account linking happens automatically, local token/profile data persists, and report history is stored in the cloud.\n\nMitigation: Review the service and its account-linking behavior before installation; restrict access to local credentials and cloud reports.\n\nRisk: Analysis may not reliably detect every dangerous action or provide immediate warning.\n\nMitigation: Keep adult supervision in place and respond directly to observed danger rather than relying solely on alerts.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis)\n- [Child window and balcony detection API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Structured analysis, Report links]\n\n**Output Format:** [Text with JSON-formatted analysis results and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can save results to a file or list historical cloud reports; reported risks require human verification.]\n\n## Skill Version(s):\n\n1.0.13 (source: ClawHub release metadata; bundled SKILL.md says 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 40353 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2271b), SKILL.md (12299b), 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 (165b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790372666872\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nAnalyzes submitted window or balcony footage for potentially dangerous child climbing or leaning behavior and returns alerts and report links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nParents, caregivers, and safety-system developers use this skill to analyze images or videos of window and balcony areas for child climbing hazards, review alerts, and retrieve historical reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Children's home-monitoring footage or video URLs may be uploaded to an external cloud service.\n\nMitigation: Obtain guardian consent before use and confirm the provider's retention, access, and deletion controls.\n\nRisk: The skill may silently create or reuse an internal user identity and store authentication tokens locally.\n\nMitigation: Use a trusted environment, protect local credentials, and review how identities and tokens are managed.\n\nRisk: Historical report links may expose sensitive footage or household monitoring records.\n\nMitigation: Restrict access to reports and avoid publicly sharing report links.\n\nRisk: An alert may be missed or inaccurate in a child-safety setting.\n\nMitigation: Treat detection as an aid, not a replacement for adult supervision, and respond promptly to suspected hazards.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis)\n- [API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured report or JSON; Markdown table for historical reports]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Includes behavior alerts, risk information, and report links; can save a result file.]\n\n## Skill Version(s):\n\n1.0.12 (source: ClawHub release metadata; bundled frontmatter lists 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 40528 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2671b), SKILL.md (12299b), 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 (165b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1788769125537\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera images or video of window and balcony areas to detect child climbing, leaning, gripping, crossing, and other fall-risk behaviors, then returns alert-oriented results and report links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, caregivers, safety operators, or integrators use this skill to submit window/balcony-area video or image inputs and receive structured child fall-risk detection results and history reports. It is an auxiliary alerting tool and does not replace adult supervision.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may send sensitive child or home video, local files, or video URLs to external cloud services.\n\nMitigation: Use only with guardian consent, trusted service endpoints, HTTPS production configuration, and a clear retention and deletion process for uploaded media and reports.\n\nRisk: The skill may create or reuse a remote-linked identity and store reusable tokens in a shared local SQLite database.\n\nMitigation: Run it in an isolated environment, restrict local database access, and remove stored credentials when the skill is no longer needed.\n\nRisk: The shipped configuration and scanner guidance identify unsafe HTTP development endpoints as a review concern.\n\nMitigation: Confirm production configuration forces HTTPS endpoints before deployment.\n\nRisk: Detection output is safety-relevant and could be incomplete or incorrect.\n\nMitigation: Use the output as auxiliary alerting only and keep adult supervision and independent safety controls in place.\n\n## Reference(s):\n\n- [Child Window/Balcony Detection API Documentation](artifact/references/api_doc.md)\n- [SMYX Analysis API Error Codes](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, API calls]\n\n**Output Format:** [Markdown report text or JSON-style structured analysis output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include alert level, detected risk action, confidence, event time, snapshot URL, and report export links.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; artifact frontmatter lists 1.0.13)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 31 files, 40447 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2508b), SKILL.md (12299b), 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 (165b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787668474799\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nUsing fixed cameras in living rooms or child-activity areas aimed at windows or balconies, this skill analyzes video to detect child window or balcony climbing, leaning out, or gripping window-sill edges and returns warning-oriented results.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nFamilies, kindergartens, child activity centers, and smart-home or security integrators use this skill to analyze window or balcony camera footage for child fall-risk behaviors and produce structured alerts and report links.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends child or home camera footage, or video URLs, to a cloud service for processing.\n\nMitigation: Use only with guardian consent and after verifying authorization, retention, access-control, deletion, and report-link expiry practices for the backend.\n\nRisk: The skill silently manages account identity, tokens, and report history.\n\nMitigation: Review identity handling before deployment and avoid exposing continuous private feeds or sensitive URLs unless storage and access controls are verified.\n\nRisk: Warning results may be incomplete, delayed, or incorrect and should not replace adult supervision.\n\nMitigation: Treat results as auxiliary alerts, maintain adult supervision, and review the skill before installing or deploying.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API documentation](references/api_doc.md)\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON text with warning details, structured analysis fields, history tables, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can write analysis output to a file when an output path is provided.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; SKILL.md frontmatter reports 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.10:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.10:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.9: 31 files, 40485 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2607b), SKILL.md (12299b), 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 (164b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787212230062\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nUsing fixed cameras aimed at windows or balconies, this skill analyzes child activity footage to detect climbing, leaning out, railing crossing, window-edge gripping, and other fall-risk behaviors.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze consented window or balcony camera footage for child climbing, leaning, railing-crossing, and gripping behaviors. It returns structured detection results, alert levels, snapshots or report links, and history-query output for follow-up review.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive home and child video may be sent to external analysis services.\n\nMitigation: Use only consented, non-sensitive test footage until the publisher documents production endpoints, retention practices, report access controls, and deletion procedures.\n\nRisk: The skill can create and persist local user/account state and tokens for report access.\n\nMitigation: Run in an isolated workspace, review local data storage and token handling before use, and remove local/cloud records after testing when possible.\n\nRisk: Child-safety alerts may be incomplete, delayed, or wrong and should not replace supervision.\n\nMitigation: Treat outputs as auxiliary alerts and require adult review and direct supervision for any real child-safety scenario.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis)\n- [API interface documentation](references/api_doc.md)\n- [Analysis API error-code 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):** [analysis, markdown, json, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown or JSON structured analysis reports with alert fields and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local video files or video URLs, history-list queries, optional output files, and basic, standard, or json detail modes.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter reports 1.0.10)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.9:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.9:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.8: 31 files, 40359 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2328b), SKILL.md (12298b), 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 (164b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786433135611\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera video of windows or balconies to detect child climbing, leaning, gripping, or crossing behaviors and produce alert-oriented structured results.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to submit local or URL-based child safety camera footage for cloud analysis and to retrieve structured alert reports for window or balcony climbing risk.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Cloud processing may send minor-related home video or video URLs to lifeemergence.com services.\n\nMitigation: Use only when consent, retention, deletion, and cloud processing controls have been verified for the deployment.\n\nRisk: The skill may create or reuse a cloud-linked identity and store access tokens locally.\n\nMitigation: Install only in controlled environments, restrict local data access, and clear local identities or tokens when they are no longer needed.\n\nRisk: Cloud history retrieval may expose prior child-safety reports.\n\nMitigation: Limit who can trigger history queries and verify account-access boundaries before enabling the skill.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API documentation](references/api_doc.md)\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, files]\n\n**Output Format:** [Markdown or JSON structured analysis output, with optional saved result file and report link.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud report links and history records; supports mp4, avi, and mov inputs up to 10 MB.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter reports 1.0.9)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 31 files, 40442 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2496b), SKILL.md (12298b), 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 (164b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786014571770\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera home or childcare video for child window or balcony climbing behaviors and returns structured warning results.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and operators use this skill to analyze video or video URLs from window and balcony areas for child climbing, leaning, railing-crossing, and related high-fall risk behaviors. It can also query cloud-stored historical warning reports for the same scenario.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Child or home video, video URLs, generated reports, and report history may be processed by external lifeemergence.com services.\n\nMitigation: Use only with informed guardian consent, avoid unnecessary sensitive footage, and confirm retention, deletion, and access controls before deployment.\n\nRisk: The skill may silently create or reuse a local identity and store authentication tokens in the workspace.\n\nMitigation: Run in a controlled workspace, restrict access to local data files, and prefer a version with explicit controls to reset or disable account-linked history.\n\nRisk: Warnings are an auxiliary monitoring signal and may be incomplete or incorrect.\n\nMitigation: Do not use as a replacement for adult supervision; require human review and operational fallback for safety-critical alerts.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Child Window/Balcony Detection API Documentation](references/api_doc.md)\n- [Shared Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Guidance]\n\n**Output Format:** [Markdown text with structured JSON report content, warning results, historical report lists, and report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May write the displayed result to a user-specified output file.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.7:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.7:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.6: 31 files, 40565 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2854b), SKILL.md (12298b), 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 (164b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785188251210\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera window or balcony video to detect child climbing, leaning, gripping, and other high-fall-risk behaviors and return warning-oriented results. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to submit window or balcony monitoring images, video files, or URLs for child climbing risk analysis and to query cloud-hosted historical reports. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill processes child-monitoring videos, URLs, snapshots, and reports that may contain sensitive minor and household information. <br>\nMitigation: Use only with guardian consent, send only necessary media, and treat exported reports and links as sensitive records. <br>\nRisk: Analysis and history lookup use configured lifeemergence.com cloud services, which may transmit media, report metadata, and account-linked identifiers outside the local workspace. <br>\nMitigation: Confirm the configured service endpoint and data handling expectations before use, and avoid submitting regulated or unauthorized footage. <br>\nRisk: The skill can create or reuse a local identity and persist tokens in the workspace data directory. <br>\nMitigation: Limit workspace access, rotate or remove stored credentials when sharing the environment, and use explicit commands for cloud history lookup. <br>\nRisk: The security verdict is suspicious despite no specific scanner risk findings. <br>\nMitigation: Review the security summary and guidance before installation and run the skill only in an environment approved for sensitive child-safety media. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown summaries and JSON-backed structured analysis reports] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include warning level, detected risk action, confidence, event time, snapshot URL, alert text, and report links.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter lists 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.5: 31 files, 40564 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2882b), SKILL.md (12298b), 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 (164b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784215470997\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera images or videos of window and balcony areas to detect child climbing, leaning, railing-crossing, gripping, and other fall-risk behaviors, then returns alerts and structured analysis reports. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, home-safety operators, childcare operators, and smart-camera integrators use this skill to analyze child activity near windows or balconies and receive structured warning results or cloud report history. It is intended as an auxiliary monitoring and alerting tool, not a substitute for adult supervision. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Child or home video files and URLs are sent to LifeEmergence cloud endpoints for analysis. <br>\nMitigation: Install and use only in deployments with guardian consent, privacy review, and appropriate retention controls for child-safety media. <br>\nRisk: The skill creates or reuses a local or remote identity and may cache authentication tokens. <br>\nMitigation: Review identity provisioning before installation, restrict local data directory access, and ensure there is a process to revoke tokens and delete local database records. <br>\nRisk: Cloud report history may expose prior child-safety analyses and report links. <br>\nMitigation: Limit access to history-listing workflows and confirm that cloud reports can be deleted or governed under the deployment's data policy. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Child climbing window/balcony API documentation](artifact/references/api_doc.md) <br>\n- [Shared analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON text containing structured analysis results, alert levels, report links, or history tables] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save the rendered result to a local output file when requested; cloud history queries return report lists associated with the resolved identity.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter reports 1.0.6) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.5:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.5:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.4: 31 files, 40363 bytes\n\nFiles: references/api_doc.md (1928b), scripts/__init__.py (67b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_child_window_climbing_detection_analysis.py (3609b), skill-card.md (2518b), SKILL.md (12298b), 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 (164b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n| 10 | 分级预警（warning / critical / emergency） |\n| 11 | 紧急预警文本生成 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时，默认触发本技能进行儿童攀爬识别 |\n| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告，查询儿童危险行为预警清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_window_climbing_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 `-m scripts.smyx_child_window_climbing_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络窗户/阳台监控视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，儿童居家安全场景默认 `other` | 按需填写 |\n| `--list` | 显示儿童攀爬窗户/阳台历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_child_window_climbing_detection_analysis.py`](scripts/smyx_child_window_climbing_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；建议正对窗户/阳台、帧率 ≥ 15 FPS |\n| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具，本工具不能替代成人监护；触发紧急预警时请立即上前制止 |\n| 🔏 隐私合规 | 隐私合规：儿童视频涉及未成年人隐私，使用前需取得监护人知情同意，并妥善保管/加密相关录像 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783664850241\n}\n\nFile v1.0.4:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。\n\nFile v1.0.4:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.4:scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera window or balcony footage to identify child climbing, leaning, gripping, or railing-crossing behaviors and return structured warning information. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, guardians, care facilities, and developers use this skill to analyze window or balcony camera images or videos for child fall-risk behavior and to retrieve prior warning reports from the cloud service. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive child or household camera footage and report history may be uploaded to cloud services. <br>\nMitigation: Use only with guardian consent, confirm vendor retention and access rules, and avoid submitting footage that is not necessary for the safety review. <br>\nRisk: The skill may create or reuse persistent local identity and token state. <br>\nMitigation: Prefer a test account for evaluation and inspect or remove workspace files such as smyx-common-claw.db and smyx-api-key.txt after use. <br>\nRisk: Automated warnings may miss events or produce incorrect alerts. <br>\nMitigation: Treat outputs as auxiliary monitoring information and keep adult supervision and site-specific safety controls in place. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-window-climbing-detection-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API interface documentation](references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON structured analysis reports with warning status, behavior labels, confidence, event metadata, snapshot/report links, and optional saved output files.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can query cloud-hosted history and can write an output file when requested.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: evidence.release.version and target metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别 Owner: 18072937735 Summary: Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_child_window_climbing_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_child_window_climbing_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4\n\n# 分析网络窗户/阳台监控视频\npython -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4\n\n# 显示历史儿童攀爬预警报告（自动触发关键词：查看儿童攀爬历史报告、攀爬预警报告清单等）\npython -m scripts.smyx_child_window_climbing_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-child-window-climbing-detection-analysis\"\ndescription: \"Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童攀爬窗户/阳台识别** |\n| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` |\n\nUsing fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.\n\n通过家庭客厅或儿童活动区域的固定摄像头（需对准窗户或阳台），利用AI姿态估计和目标检测技术实时分析视频，识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为，当检测到危险动作时立即输出预警，联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景：家庭住宅（高层）、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域，一旦识别到儿童攀爬或身体探出，立即向家长手机发送紧急通知（含现场快照）。技能特点：儿童坠楼事故时有发生，家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为，可在事发前秒级预警，帮助家长及时制止，挽救生命。该技能可集成到智能摄像头或家庭安防系统中，成为有孩家庭的标配安全功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频，检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时，输出紧急预警。不要提供其他安全建议或具体处置方案，仅输出行为识别结果与预警信息。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于对准窗户/阳台的固定摄像头视频，实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为，秒级输出预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 儿童目标检测（区分儿童与成人） |\n| 2 | 人体姿态估计 |\n| 3 | 攀爬窗户识别 |\n| 4 | 跨越护栏识别 |\n| 5 | 身体探出窗外识别 |\n| 6 | 抓握窗台边缘识别 |\n| 7 | 危险姿态判定（失衡 / 单脚悬空 / 头部探出） |\n| 8 | 置信度阈值过滤 |\n| 9 | 现场快照生成 |\n"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-window-climbing-detection-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790788407180\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放儿童攀爬窗户/阳台识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动儿童攀爬窗户/阳台识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果与紧急预警\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史预警记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS` - 儿童攀爬窗户/阳台识别\n\n## 输入约束\n\n- 摄像头必须正对窗户、阳台、护栏等高坠风险区域\n- 24 小时全天候采集（含红外夜视），覆盖儿童活动半径\n- 视频帧率建议 ≥ 15 FPS，确保动作捕捉的实时性\n\n## 关键检测行为\n\n- 攀爬窗户（climbing_window）：脚部蹬踩窗台/扶手\n- 跨越护栏（crossing_railing）：身体跨越阳台护栏\n- 身体探出窗外（lean_out_window）：上半身越过窗框\n- 抓握窗台边缘（grip_window_edge）：手部抓住窗框/护栏外侧\n- 危险姿态（risky_posture）：失衡 / 单脚悬空 / 头部探出\n\n## 输出字段（参考）\n\n- `child_detected` - 是否检测到儿童\n- `risk_action` - 触发的危险行为类型（climbing_window / crossing_railing / lean_out_window / grip_window_edge / risky_posture）\n- `confidence` - 危险行为置信度\n- `event_time` - 事件发生时间戳\n- `snapshot_url` - 现场快照 URL（建议同步推送 APP）\n- `alert_level` - 预警等级（warning / critical / emergency）\n- `alert_message` - 紧急预警文本（如\"检测到儿童正在攀爬阳台护栏，请立即制止\"）\n\n> 仅输出行为识别结果与预警信息，不提供其他安全建议或具体处置方案。"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1000,"uniquenessScore":44,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T21:48:18.830Z","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-09T21:48:18.830Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T10:59:03.505Z","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"}]}}}