{"id":"930e23ca-4a4d-4358-8b89-6e31fc8933f5","entityType":"agent","slug":"clawhub-18072937735-smyx-child-happy-moment-capture-analysis","name":"Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-child-happy-moment-capture-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-child-happy-moment-capture-analysis","generatedAt":"2026-10-10T03:30:03.322Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T22:11:56.775Z","emptyReason":null},"description":"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-child-happy-moment-capture-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-child-happy-moment-capture-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-child-happy-moment-capture-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励 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-09T22:11:56.775Z","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-09T22:11:56.775Z","emptyReason":null},"stars":null,"forks":null,"downloads":1941,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"1.9K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T22:11:56.774Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T22:11:56.775Z","lastCrawledAt":"2026-10-09T22:11:56.774Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T22:11:56.775Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-10-02T21:32:26.886Z","changelog":"- Removed the file: skill-card.md. - No changes to functionality or user experience. - Documentation or presentation via skill-card.md is no longer included in this version.","fileCount":31,"zipByteSize":43540},{"version":"1.0.12","createdAt":"2026-09-27T14:39:26.910Z","changelog":"- Updated documentation in SKILL.md to version 1.0.17 with minor adjustments and clarifications. - Removed the redundant skill-card.md file. - Slight changes to configuration (config.yaml) for alignment with updated documentation. - No functional logic changes to behavior or outputs.","fileCount":31,"zipByteSize":43642},{"version":"1.0.11","createdAt":"2026-09-17T08:37:24.957Z","changelog":"- Updated version number from 1.0.13 to 1.0.16 in SKILL.md. - Made minor content or formatting adjustments in the documentation. - Removed the file: skill-card.md.","fileCount":31,"zipByteSize":43956},{"version":"1.0.10","createdAt":"2026-08-29T17:54:34.790Z","changelog":"- Updated SKILL.md documentation to the latest version. - Increased version number from 1.0.11 to 1.0.13. - Removed the file: skill-card.md. - No functional or code changes—documentation maintenance only.","fileCount":31,"zipByteSize":43859},{"version":"1.0.9","createdAt":"2026-08-16T20:00:29.303Z","changelog":"- Internal cleanup: removed the file skill-card.md. - Updated configuration in skills/smyx_common/scripts/config.yaml.","fileCount":31,"zipByteSize":43979},{"version":"1.0.8","createdAt":"2026-08-12T17:54:39.088Z","changelog":"- Updated SKILL.md documentation with new workflow, requirement, or policy details. - Removed the skill-card.md file. - No changes to core logic, only documentation and metadata updated.","fileCount":31,"zipByteSize":44050},{"version":"1.0.7","createdAt":"2026-08-09T05:02:37.480Z","changelog":"- Documentation updated: Revised SKILL.md content for clarity and detail. - skill-card.md file removed; documentation is now consolidated in SKILL.md. - No changes to functionality or code logic. - Maintains all prior usage instructions and behavioral guidelines.","fileCount":31,"zipByteSize":43980},{"version":"1.0.6","createdAt":"2026-07-28T13:13:31.054Z","changelog":"- Updated SKILL.md with new content and version to 1.0.8. - Removed skill-card.md from the project. - Documentation improvements and content adjustments in skill overview and usage instructions.","fileCount":31,"zipByteSize":43771}]},"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-happy-moment-capture-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-child-happy-moment-capture-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-happy-moment-capture-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-happy-moment-capture-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-happy-moment-capture-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-happy-moment-capture-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-happy-moment-capture-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-happy-moment-capture-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-happy-moment-capture-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T03:30:03.316Z"}},"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-happy-moment-capture-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-happy-moment-capture-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-happy-moment-capture-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-child-happy-moment-capture-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T22:11:56.775Z","emptyReason":null},"readme":"Skill: Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n\nOwner: 18072937735\n\nSummary: Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-10-02T21:32:26.886Z | auto\n\n- Removed the file: skill-card.md.\n- No changes to functionality or user experience.\n- Documentation or presentation via skill-card.md is no longer included in this version.\n\nv1.0.12 | 2026-09-27T14:39:26.910Z | auto\n\n- Updated documentation in SKILL.md to version 1.0.17 with minor adjustments and clarifications.\n- Removed the redundant skill-card.md file.\n- Slight changes to configuration (config.yaml) for alignment with updated documentation.\n- No functional logic changes to behavior or outputs.\n\nv1.0.11 | 2026-09-17T08:37:24.957Z | auto\n\n- Updated version number from 1.0.13 to 1.0.16 in SKILL.md.\n- Made minor content or formatting adjustments in the documentation.\n- Removed the file: skill-card.md.\n\nv1.0.10 | 2026-08-29T17:54:34.790Z | auto\n\n- Updated SKILL.md documentation to the latest version.\n- Increased version number from 1.0.11 to 1.0.13.\n- Removed the file: skill-card.md.\n- No functional or code changes—documentation maintenance only.\n\nv1.0.9 | 2026-08-16T20:00:29.303Z | auto\n\n- Internal cleanup: removed the file skill-card.md.\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n\nv1.0.8 | 2026-08-12T17:54:39.088Z | auto\n\n- Updated SKILL.md documentation with new workflow, requirement, or policy details.\n- Removed the skill-card.md file.\n- No changes to core logic, only documentation and metadata updated.\n\nv1.0.7 | 2026-08-09T05:02:37.480Z | auto\n\n- Documentation updated: Revised SKILL.md content for clarity and detail.\n- skill-card.md file removed; documentation is now consolidated in SKILL.md.\n- No changes to functionality or code logic.\n- Maintains all prior usage instructions and behavioral guidelines.\n\nv1.0.6 | 2026-07-28T13:13:31.054Z | auto\n\n- Updated SKILL.md with new content and version to 1.0.8.\n- Removed skill-card.md from the project.\n- Documentation improvements and content adjustments in skill overview and usage instructions.\n\nv1.0.5 | 2026-07-14T17:20:47.791Z | auto\n\n- Updated internal utility logic in `util.py` for improved functionality or maintenance.\n- Removed the redundant or outdated `skill-card.md` documentation file.\n\nv1.0.4 | 2026-07-10T03:37:29.622Z | auto\n\n- Version updated to 1.0.6.\n- Documentation edits in SKILL.md for improved clarity and consistency.\n- Obsolete file skill-card.md removed.\n- No changes to core logic or features.\n\nv1.0.3 | 2026-07-03T16:19:27.283Z | auto\n\n- Updated documentation in SKILL.md with clarified requirements, constraints, and usage details.\n- Minor version bump from 1.0.3 to 1.0.5.\n- skills/smyx_common/scripts/config.py, dao.py, and util.py updated; potential improvements to configuration and utility logic.\n- Obsolete skill-card.md file removed.\n\nv1.0.2 | 2026-06-26T00:23:27.595Z | auto\n\n- Major update: Streamlined identity handling and removed user-facing identity prompts.\n- History report queries now strictly use cloud API; all local/manual/memory-based report collection is prohibited.\n- User is never prompted for, shown, or required to manage any identity parameters; all identity handling is now automatic and internal.\n- All documentation and workflow steps have been rewritten for clarity, brevity, and better separation of user and system responsibilities.\n- Redundant files removed; support scripts and config were reorganized for clearer structure.\n\nv1.0.1 | 2026-06-15T21:04:28.510Z | auto\n\nVersion 1.0.1\n\n- Updated multiple scripts and configuration files in the smyx_common directory for improved integration and configuration handling.\n- Refined requirements in requirements.txt to ensure accurate dependency specifications.\n- Modified SKILL.md with improved documentation and updated instructions for open-id acquisition and script usage.\n- Removed deprecated or redundant file skill-card.md.\n- Other minor fixes and clarifications to improve setup, usage, and adherence to security/ethics guidelines.\n\nv1.0.0 | 2026-05-27T13:46:35.166Z | auto\n\nInitial release of smyx-child-happy-moment-capture-analysis:\n\n- Real-time analysis of children's behavior and expressions via fixed cameras to identify happy moments (big laughter, jumping, clapping, joyful reactions).\n- Automatically captures high-definition photos or short video clips upon detecting a happy event.\n- Generates and pushes a \"Happy Diary\" to the parent’s mobile app, with instant encouragement sound or music.\n- Daily and weekly happiness collections are automatically compiled.\n- Strict open-id acquisition and privacy controls, ensuring reports are only accessed via authorized cloud queries.\n- Designed for use in homes, kindergartens, playgrounds, and parent-child activity centers.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 43540 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (1927b), SKILL.md (15570b), 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 (160b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790976746886\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\n\n- ❌ **禁止**对儿童做\"性格内向 / 外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签\n- ❌ **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练\n- ❌ **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看）\n- ❌ **禁止**长期存储未被家长保存的原始视频；建议未确认保存的抓拍片段 ≤ 7 天自动清理\n- ❌ **禁止**在抓拍中保留疑似负面或尴尬瞬间（如哭泣、摔倒、衣物不整）即使误判\n- ❌ **禁止**鼓励音效音量过响或频率过高，避免打断孩子专注力或形成依赖\n- ✅ **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口\n- ✅ **必须**抓拍片段保存前由系统进行**安全审核**（仅露面+正向情绪+衣着整齐才入库）\n- ✅ 公共场景必须**事先获得所有出场儿童的家长书面同意**，否则启用人脸马赛克\n- ✅ 鼓励音效建议每次播放间隔 ≥ 5 分钟，**避免过度强化**形成\"表演式快乐\"\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 children's camera footage for happy moments and provides event reports, capture links, and positive-reinforcement suggestions.\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 and caregivers use the skill to review children's happy moments in submitted video and retrieve associated reports; authorized educators may use it in shared settings with guardian consent.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Children's images or video may be sent to a cloud service and report history queried without clear consent or retention controls.\n\nMitigation: Obtain explicit guardian consent for every child filmed, especially in shared spaces; confirm service endpoints and retention and deletion controls before use.\n\nRisk: A default user identity and tokens may be created or reused locally, with unclear account association.\n\nMitigation: Verify which account receives reports and restrict access to stored identity and tokens before using the skill on a shared device.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis)\n- [Skill API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Analysis, Reports, Guidance]\n\n**Output Format:** [JSON or Markdown]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include event details, report links, and a Markdown table of historical reports.]\n\n## Skill Version(s):\n\n1.0.13 (source: ClawHub release)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 43642 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (2212b), SKILL.md (15570b), 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 (160b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790519966910\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\n\n- ❌ **禁止**对儿童做\"性格内向 / 外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签\n- ❌ **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练\n- ❌ **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看）\n- ❌ **禁止**长期存储未被家长保存的原始视频；建议未确认保存的抓拍片段 ≤ 7 天自动清理\n- ❌ **禁止**在抓拍中保留疑似负面或尴尬瞬间（如哭泣、摔倒、衣物不整）即使误判\n- ❌ **禁止**鼓励音效音量过响或频率过高，避免打断孩子专注力或形成依赖\n- ✅ **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口\n- ✅ **必须**抓拍片段保存前由系统进行**安全审核**（仅露面+正向情绪+衣着整齐才入库）\n- ✅ 公共场景必须**事先获得所有出场儿童的家长书面同意**，否则启用人脸马赛克\n- ✅ 鼓励音效建议每次播放间隔 ≥ 5 分钟，**避免过度强化**形成\"表演式快乐\"\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 children's video for joyful expressions and actions, generating happy-moment reports and capture recommendations for caregivers.\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 and caregivers use the skill to analyze children's activity footage, identify joyful moments, and review reports or happy-diary history. Kindergarten and playground use requires consent from guardians of every child captured.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Footage of minors may be captured without adequate consent.\n\nMitigation: Obtain explicit guardian consent for every child captured before use, especially in shared spaces; do not capture children without consent.\n\nRisk: Sensitive media and reports may be sent to LifeEmergence cloud endpoints.\n\nMitigation: Review cloud transfer, storage, retention, and deletion practices before uploading footage; provide controls to delete captures and pause or opt out.\n\nRisk: The skill creates or reuses a local identity and stores session tokens in the workspace data directory.\n\nMitigation: Limit access to workspace data and tokens, and review identity and token handling before installation.\n\n## Reference(s):\n\n- [Skill release on ClawHub](https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis)\n- [Skill 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]\n\n**Output Format:** [Markdown reports or structured JSON analysis]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include links to remotely stored reports and captured media.]\n\n## Skill Version(s):\n\n1.0.12 (source: ClawHub release metadata; bundled SKILL.md states 1.0.17)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 43956 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (2899b), SKILL.md (15570b), 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 (160b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1789634244957\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\n\n- ❌ **禁止**对儿童做\"性格内向 / 外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签\n- ❌ **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练\n- ❌ **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看）\n- ❌ **禁止**长期存储未被家长保存的原始视频；建议未确认保存的抓拍片段 ≤ 7 天自动清理\n- ❌ **禁止**在抓拍中保留疑似负面或尴尬瞬间（如哭泣、摔倒、衣物不整）即使误判\n- ❌ **禁止**鼓励音效音量过响或频率过高，避免打断孩子专注力或形成依赖\n- ✅ **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口\n- ✅ **必须**抓拍片段保存前由系统进行**安全审核**（仅露面+正向情绪+衣着整齐才入库）\n- ✅ 公共场景必须**事先获得所有出场儿童的家长书面同意**，否则启用人脸马赛克\n- ✅ 鼓励音效建议每次播放间隔 ≥ 5 分钟，**避免过度强化**形成\"表演式快乐\"\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\nThis skill analyzes child camera images or video to identify happy moments such as laughter, jumping, clapping, and joyful reactions, then returns structured results and report links for positive-reinforcement workflows.\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 developers and product teams can use this skill to route child activity images or videos through a happy-moment detection workflow that returns event summaries, suggested positive reinforcement, and links to generated reports. It is intended for family, kindergarten, playground, and parent-child activity scenarios where appropriate consent and child-media controls are in place.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill processes children's camera footage and retrieves cloud reports, which creates heightened consent, privacy, deletion, and retention obligations.\n\nMitigation: Use only where required guardian consent, deletion, retention, pause, and opt-out controls are implemented and reviewed before deployment.\n\nRisk: The authoritative security review reports a suspicious verdict because default configuration and identity handling are under-secured and under-disclosed.\n\nMitigation: Do not use the packaged default configuration for real child media until endpoints use HTTPS production services and identity or token storage behavior is understood and acceptable.\n\nRisk: Public or group settings may include children whose guardians have not authorized capture or sharing.\n\nMitigation: Require documented guardian authorization for all visible children before use in shared spaces; otherwise mask or exclude unauthorized children from captured outputs.\n\n## Reference(s):\n\n- [API documentation](artifact/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown text with JSON-capable analysis results, historical report tables, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs may include cloud report links and child-media analysis summaries; review consent, retention, deletion, and endpoint configuration before use with real child media.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; artifact SKILL.md frontmatter reports 1.0.16)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 43859 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (2607b), SKILL.md (15570b), 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 (160b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1788026074790\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\n\n- ❌ **禁止**对儿童做\"性格内向 / 外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签\n- ❌ **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练\n- ❌ **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看）\n- ❌ **禁止**长期存储未被家长保存的原始视频；建议未确认保存的抓拍片段 ≤ 7 天自动清理\n- ❌ **禁止**在抓拍中保留疑似负面或尴尬瞬间（如哭泣、摔倒、衣物不整）即使误判\n- ❌ **禁止**鼓励音效音量过响或频率过高，避免打断孩子专注力或形成依赖\n- ✅ **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口\n- ✅ **必须**抓拍片段保存前由系统进行**安全审核**（仅露面+正向情绪+衣着整齐才入库）\n- ✅ 公共场景必须**事先获得所有出场儿童的家长书面同意**，否则启用人脸马赛克\n- ✅ 鼓励音效建议每次播放间隔 ≥ 5 分钟，**避免过度强化**形成\"表演式快乐\"\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\nThis skill analyzes fixed-camera child activity video to identify happy moments such as laughter, jumping, clapping, and praise responses, then returns structured reports with capture and positive-reinforcement actions.\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 developers and operators can use this skill to connect child activity video inputs to a remote analysis workflow that detects happy moments, prepares parent-facing summaries, and supports positive reinforcement. It is intended for guardian-authorized family, kindergarten, playground, or parent-child activity settings where child video handling has been reviewed.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill handles sensitive child video data and cloud history.\n\nMitigation: Require explicit guardian consent, documented retention and deletion controls, and access limited to authorized guardians before installation.\n\nRisk: Server security evidence flags unsafe HTTP development/default configuration and insufficient destination controls.\n\nMitigation: Use HTTPS-only production endpoints, destination allowlisting, and environment-specific configuration review before enabling uploads or history access.\n\nRisk: Server security evidence flags silent account creation and local token persistence.\n\nMitigation: Review identity and token storage behavior, require transparent consent/session controls, and avoid persistent credentials unless they are protected and necessary.\n\n## Reference(s):\n\n- [API Documentation](artifact/references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, guidance]\n\n**Output Format:** [Markdown text with structured JSON report content and report links; optional file output when --output is provided.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include report export URLs, cloud history query results, detected-event summaries, and recommended follow-up actions.]\n\n## Skill Version(s):\n\n1.0.10 (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.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, 43979 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (2915b), SKILL.md (15570b), 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 (159b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1786910429303\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\n\n- ❌ **禁止**对儿童做\"性格内向 / 外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签\n- ❌ **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练\n- ❌ **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看）\n- ❌ **禁止**长期存储未被家长保存的原始视频；建议未确认保存的抓拍片段 ≤ 7 天自动清理\n- ❌ **禁止**在抓拍中保留疑似负面或尴尬瞬间（如哭泣、摔倒、衣物不整）即使误判\n- ❌ **禁止**鼓励音效音量过响或频率过高，避免打断孩子专注力或形成依赖\n- ✅ **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口\n- ✅ **必须**抓拍片段保存前由系统进行**安全审核**（仅露面+正向情绪+衣着整齐才入库）\n- ✅ 公共场景必须**事先获得所有出场儿童的家长书面同意**，否则启用人脸马赛克\n- ✅ 鼓励音效建议每次播放间隔 ≥ 5 分钟，**避免过度强化**形成\"表演式快乐\"\n\n> 仅输出基于视觉与（可选）音频的客观开心瞬间识别和正向激励抓拍，**不构成任何心理评估或性格分析**；正向激励应作为亲子互动的暖心补充，**不能替代真实陪伴**。\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera child activity video or video URLs through a cloud API to identify happy moments such as laughter, jumping, clapping, and joyful responses, then returns structured results, report links, and positive-reinforcement guidance.\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, childcare operators, and developers can use this skill to analyze home, kindergarten, playground, or parent-child activity videos for child happy-moment capture and positive reinforcement workflows. It is intended to return objective visual or optional audio observations and report links, not psychological assessment or personality labeling.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Child video files or video URLs may be sent to the publisher's cloud service for analysis.\n\nMitigation: Use only footage collected with parental or venue consent, avoid public or multi-child footage unless authorization and masking are handled, and review the cloud data path before deployment.\n\nRisk: The skill may create or reuse a local identity and store authentication tokens for API access and history retrieval.\n\nMitigation: Review local workspace data storage, account linkage, and token handling before use; rotate or remove stored credentials when the skill is no longer needed.\n\nRisk: Cloud report history and export links may expose sensitive child activity records.\n\nMitigation: Restrict access to authorized guardians or operators, provide deletion and opt-out controls, and avoid sharing child media with third parties.\n\nRisk: Positive-reinforcement outputs can be overused or mistaken for psychological assessment.\n\nMitigation: Keep reinforcement gentle and infrequent, and use outputs only as observable happy-moment records rather than personality, mood-disorder, or developmental evaluations.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis)\n- [API documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-like structured analysis results with report export links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud report history, snapshot or clip URLs, encouragement actions, and optional saved output files.]\n\n## Skill Version(s):\n\n1.0.9 (source: ClawHub release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 44050 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (3136b), SKILL.md (15570b), 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 (159b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786557279088\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\n\n- ❌ **禁止**对儿童做\"性格内向 / 外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签\n- ❌ **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练\n- ❌ **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看）\n- ❌ **禁止**长期存储未被家长保存的原始视频；建议未确认保存的抓拍片段 ≤ 7 天自动清理\n- ❌ **禁止**在抓拍中保留疑似负面或尴尬瞬间（如哭泣、摔倒、衣物不整）即使误判\n- ❌ **禁止**鼓励音效音量过响或频率过高，避免打断孩子专注力或形成依赖\n- ✅ **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口\n- ✅ **必须**抓拍片段保存前由系统进行**安全审核**（仅露面+正向情绪+衣着整齐才入库）\n- ✅ 公共场景必须**事先获得所有出场儿童的家长书面同意**，否则启用人脸马赛克\n- ✅ 鼓励音效建议每次播放间隔 ≥ 5 分钟，**避免过度强化**形成\"表演式快乐\"\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 child-focused camera video or video URLs to identify happy moments such as laughter, jumping, clapping, and reactions to praise, then returns structured reports, capture links, encouragement actions, and history 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 analyze fixed-camera child activity footage from homes, kindergartens, playgrounds, or parent-child centers for objective happy-moment detection, structured reporting, parent-facing capture links, and cloud history lookup. It is intended for positive reinforcement and memory capture, not psychological assessment or personality labeling.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive child media or video URLs are sent to lifeemergence.com cloud services for analysis and history lookup.\n\nMitigation: Use the skill only with confirmed guardian consent for every child recorded, especially in public or school settings, and verify that the deployment's privacy notices cover cloud processing.\n\nRisk: The skill may silently create or reuse a local/cloud identity and persist authentication tokens for report history.\n\nMitigation: Review local credential and database storage before deployment, restrict access to the agent workspace, and rotate or remove stored tokens when the skill is no longer needed.\n\nRisk: Happy-moment capture can preserve sensitive or unintended child footage.\n\nMitigation: Keep the documented safety controls enabled: pre-save review for positive, appropriate clips; guardian deletion and pause controls; and short retention for footage not explicitly saved.\n\nRisk: Positive reinforcement could be overused or mistaken for psychological assessment.\n\nMitigation: Limit encouragement frequency, avoid personality or mental-health labels, and present outputs as behavior observations and parent-child memory aids only.\n\n## Reference(s):\n\n- [API documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill usage demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and structured JSON text with report export links; optional file output when --output is supplied.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local video files or video URLs, supports history-list output, and relies on cloud API responses for analysis and report history.]\n\n## Skill Version(s):\n\n1.0.8 (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.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, 43980 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (2925b), SKILL.md (15570b), 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 (159b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786251757480\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\n\n- ❌ **禁止**对儿童做\"性格内向 / 外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签\n- ❌ **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练\n- ❌ **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看）\n- ❌ **禁止**长期存储未被家长保存的原始视频；建议未确认保存的抓拍片段 ≤ 7 天自动清理\n- ❌ **禁止**在抓拍中保留疑似负面或尴尬瞬间（如哭泣、摔倒、衣物不整）即使误判\n- ❌ **禁止**鼓励音效音量过响或频率过高，避免打断孩子专注力或形成依赖\n- ✅ **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口\n- ✅ **必须**抓拍片段保存前由系统进行**安全审核**（仅露面+正向情绪+衣着整齐才入库）\n- ✅ 公共场景必须**事先获得所有出场儿童的家长书面同意**，否则启用人脸马赛克\n- ✅ 鼓励音效建议每次播放间隔 ≥ 5 分钟，**避免过度强化**形成\"表演式快乐\"\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 child activity video to identify happy moments such as laughter, jumping, clapping, and joyful responses to praise, then returns structured reports, captured media links, and positive reinforcement recommendations.\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, parents, guardians, schools, venue operators, and developers use this skill to analyze authorized child activity videos for happy-moment detection, positive reinforcement actions, and happy diary or history report generation.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive child media and identity-linked data may be sent to and retained by a configured cloud service.\n\nMitigation: Use only with explicit authority and written consent for every child in view, and confirm cloud transfer, retention, deletion, and access-control terms before installation.\n\nRisk: The skill can auto-create or reuse local identities and store tokens locally.\n\nMitigation: Run in an isolated workspace, restrict filesystem access, rotate or remove stored tokens when access is no longer needed, and avoid sharing the workspace with unauthorized users.\n\nRisk: Child-facing environments require tighter consent, opt-out, deletion, and pause controls than the artifact itself proves.\n\nMitigation: Deploy only where administrators can provide one-click deletion, pause, opt-out, retention limits, and access review for generated reports and captured media.\n\nRisk: Reports and generated media could expose children beyond the intended parent, guardian, school, or venue operator audience.\n\nMitigation: Limit report links and media access to authorized recipients, avoid third-party sharing without guardian authorization, and review report exports before distribution.\n\n## Reference(s):\n\n- [API 接口文档](references/api_doc.md)\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-child-happy-moment-capture-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Analysis, API Calls, Markdown, JSON, Files, Guidance]\n\n**Output Format:** [Markdown or JSON-like structured report with report links and optional output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can return analysis results, historical report listings, export URLs, snapshot or clip links, and positive reinforcement recommendations.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release evidence; artifact frontmatter says 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.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, 43771 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (2467b), SKILL.md (15569b), 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 (159b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785244411054\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\n\n- ❌ **禁止**对儿童做\"性格内向 / 外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签\n- ❌ **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练\n- ❌ **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看）\n- ❌ **禁止**长期存储未被家长保存的原始视频；建议未确认保存的抓拍片段 ≤ 7 天自动清理\n- ❌ **禁止**在抓拍中保留疑似负面或尴尬瞬间（如哭泣、摔倒、衣物不整）即使误判\n- ❌ **禁止**鼓励音效音量过响或频率过高，避免打断孩子专注力或形成依赖\n- ✅ **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口\n- ✅ **必须**抓拍片段保存前由系统进行**安全审核**（仅露面+正向情绪+衣着整齐才入库）\n- ✅ 公共场景必须**事先获得所有出场儿童的家长书面同意**，否则启用人脸马赛克\n- ✅ 鼓励音效建议每次播放间隔 ≥ 5 分钟，**避免过度强化**形成\"表演式快乐\"\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 child activity videos to identify happy moments, produce structured event reports with snapshots or clip links, and guide positive reinforcement actions. <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>\nParents, caregivers, educators, or agents supporting child activity monitoring use this skill to analyze home, classroom, playground, or activity-center video for positive emotional moments and produce reports or history views for guardian review. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Processes sensitive child media, snapshots, identity-linked report history, and report links through a remote service. <br>\nMitigation: Use only with explicit guardian consent and confirm retention, deletion, pause or opt-out controls, and access restrictions with the provider before deployment. <br>\nRisk: Creates or reuses persistent local identity records and stores service tokens for API access. <br>\nMitigation: Run in an isolated workspace, protect local data files, and remove or rotate stored credentials when the skill is no longer needed. <br>\nRisk: Automated capture and encouragement can preserve unsuitable moments or over-reinforce performative behavior. <br>\nMitigation: Require safety review before saving clips, provide deletion and pause controls, avoid psychological labeling, and keep encouragement frequency low. <br>\n\n\n## Reference(s): <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, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown text with structured JSON report content and report links.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can optionally write the displayed result to a user-specified output file.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release evidence; artifact frontmatter declares 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, 43936 bytes\n\nFiles: references/api_doc.md (5872b), scripts/__init__.py (70b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_child_happy_moment_capture_analysis.py (3765b), skill-card.md (2961b), SKILL.md (15569b), 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 (159b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加音频），检测儿童的面部表情（大笑：嘴 + 眼周肌肉同时收缩的杜兴式真笑）、肢体动作（蹦跳：双脚同时离地；拍手：有节奏拍击 ≥ 2 次；双手高举庆祝；拥抱）以及笑声强度，多信号融合判断是否为显著开心事件。当确认开心事件时，抓拍前后 2 秒短视频和高清照片，输出鼓励语动作（智能音箱语音 / 欢快音效 / 家长 APP 推送），生成每日/每周快乐合集。不提供任何心理分析或性格评估，仅输出基于视觉的行为识别结果。保留温和、克制的激励节奏（每次播放间隔 ≥ 5 分钟），避免强化形成\"表演式快乐\"。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭客厅/幼儿园教室/游乐场/亲子活动中心固定摄像头（可选音频）实时视频，识别儿童开心瞬间（大笑强度 / 杜兴式真笑 / 笑容时长 / 蹦跳 / 拍手 / 跳舞转圈 / 拥抱 / 双手高举庆祝 + 笑声音频强度 + 欢呼）→ 多信号融合避免误抓 → 抓拍前后 2 秒短视频 + 高清照片（≥ 1080p）→ 触发 3 类鼓励动作（智能音箱语音 / 欢快音效 / 家长 APP 推送）→ 每日 22:00 自动汇总当日 ≥ notable 事件 → 每周日晚 21:00 生成 3-5 段精选快乐合集\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 杜兴式真笑识别（嘴+眼周肌肉同时收缩） |\n| 2 | 大笑强度评分（0-100） |\n| 3 | 双脚同时离地蹦跳检测 |\n| 4 | 有节奏拍手识别（≥ 2 次） |\n| 5 | 跳舞/转圈识别 |\n| 6 | 拥抱事件检测 |\n| 7 | 双手高举庆祝姿态识别 |\n| 8 | 笑声音频强度与频谱欢快度评估 |\n| 9 | 欢呼/兴奋声识别 |\n| 10 | 社交上下文判别（with_parent / with_peer / with_teacher / alone_play） |\n| 11 | 触发上下文识别（praise_from_adult / new_toy / game_win / pet_interaction |\n| 12 | 仅用于推送文案不做长期记录） |\n| 13 | 4 路多信号融合触发规则 |\n| 14 | 3 档强度（mild / notable / peak） |\n| 15 | 自动抓拍片段安全审核（仅露面+正向情绪+衣着整齐才入库） |\n| 16 | 每日/每周快乐合集生成 |\n| 17 | 温和克制的鼓励节奏控制 |\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_happy_moment_capture_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_child_happy_moment_capture_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 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行儿童开心时刻识别与正向激励 | 调用 `-m scripts.smyx_child_happy_moment_capture_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_happy_moment_capture_analysis.py`](scripts/smyx_child_happy_moment_capture_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；**关键**：分辨率 ≥ 720p 推荐 1080p；帧率 ≥ 10 FPS 推荐 15-25 FPS |\n| 🔎 使用提醒 | **多信号融合**避免误抓：单一信号（仅微笑、仅跳）不应触发，必须满足 4 路融合规则任一 |\n| 🔎 使用提醒 | 抓拍片段保存前**必须经过安全审核**：仅露面 + 正向情绪 + 衣着整齐才入库；负面或尴尬瞬间（哭泣、摔倒、衣物不整）**禁止**保存 |\n| 🔎 使用提醒 | 红线约束 |\n| 🔎 使用提醒 | **禁止**对儿童做\"性格内向/外向 / 高情商 / 抑郁倾向\"等任何心理评估或贴标签 |\n| 🔎 使用提醒 | **禁止**将儿童影像用于商业广告、人脸识别训练数据集、AIGC 训练 |\n| 🔎 使用提醒 | **禁止**向家长以外的第三方共享儿童影像（亲戚需家长授权才能查看） |\n| 🔎 使用提醒 | **禁止**长期存储未被家长保存的原始视频（≤ 7 天自动清理） |\n| 🔎 使用提醒 | **禁止**鼓励音效音量过响或频率过高，避免打断专注力或形成依赖 |\n| 🔎 使用提醒 | **必须**为家长提供：一键删除单个抓拍 / 暂停今日抓拍 / 永久退出该功能 的简单入口 |\n| 🔎 使用提醒 | 鼓励音效**建议每次播放间隔 ≥ 5 分钟**，**避免过度强化**形成\"表演式快乐\" |\n| 🔎 使用提醒 | 公共场景（幼儿园/游乐场）必须**事先获得所有出场儿童的家长书面同意**，否则对未授权儿童**自动人脸马赛克** |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史快乐合集清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784049647791\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时...","readmeExcerpt":"Skill: Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励 Owner: 18072937735 Summary: Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), ","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_child_happy_moment_capture_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_child_happy_moment_capture_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地儿童活动视频\npython -m scripts.smyx_child_happy_moment_capture_analysis --input /path/to/livingroom.mp4\n\n# 分析网络儿童活动视频/实时流\npython -m scripts.smyx_child_happy_moment_capture_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史开心日记清单（自动触发关键词：查看孩子开心日记历史、快乐合集清单等）\npython -m scripts.smyx_child_happy_moment_capture_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_child_happy_moment_capture_analysis --input lr.mp4 --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-child-happy-moment-capture-analysis\"\ndescription: \"Using fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 😄 Child Happy Moment Capture & Positive Reinforcement | 儿童开心时刻识别与正向激励\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **儿童开心时刻识别与正向激励** |\n| 🎯 核心目标 | 通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！ |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` |\n\nUsing fixed cameras at home, kindergartens, or playgrounds, the system analyzes children's behavior and expressions in real time to identify happy moments: big laughter (mouth corners sharply raised, eyes squinted into crescents, teeth showing), jumping (both feet off the ground), clapping (rhythmic hand clapping), and joyful reactions to praise or rewards. When a happy event is detected, the system automatically captures a high-definition photo or a short video clip (2 seconds before and after), generates a 'Happy Diary' pushed to the parent's mobile APP, and plays an encouragement sound (such as 'You're amazing!' or cheerful music). This helps record positive emotions during the child's growth, strengthens parent-child interaction, and nurtures confidence. Application scenarios: family living rooms, kindergarten classrooms, playgrounds, parent-child activity centers. The system monitors in real time, automatically captures happy moments, and generates daily/weekly happiness collections. Skill features: a child's happy moments are short and precious; busy parents often miss them. AI auto-capture helps preserve beautiful memories, while instant encouragement reinforces positive behavior and supports mental well-being. Can be integrated into smart cameras, kids' watches or parenting APPs as a heartwarming parent-child interaction feature.\n\n通过家庭、幼儿园或游乐场的固定摄像头，实时分析儿童的行为和表情，识别开心瞬间：大笑（面部表情：嘴角大幅度上翘、眼睛眯成月牙、露出牙齿）、蹦跳（双脚离地跳跃）、拍手（双手有节奏地拍击）、以及接收到表扬或奖励时的愉悦反应。当检测到开心事件时，自动抓拍高清图片或短视频（前后2秒），生成'开心日记'推送至家长手机APP，并播放鼓励音效（如'你真棒！'或欢快音乐）。该技能有助于记录孩子成长中的积极情绪，增强亲子互动，培养自信心。应用场景：家庭客厅、幼儿园教室、游乐场、亲子活动中心。系统实时监测，自动捕捉孩子的开心时刻，生成每日/每周快乐合集。技能特点：孩子的快乐时刻短暂且珍贵，家长常因忙碌而错过。通过AI自动抓拍，可帮助家长留存美好回忆，同时通过即时鼓励强化孩子的积极行为，促进心理健康。该技能可集成到智能摄像头、儿童手表或育儿APP中，成为亲子互动的暖心功能。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的儿童积极情绪记录 AI。你的任务是分析固定摄像头的实时视频（可选叠加"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-child-happy-moment-capture-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790976746886\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}` - 导出每日/每周快乐合集\n5. （可选）`/web/companion/v2/trigger-positive-reinforcement` - 触发即时鼓励音效（智能音箱 / 儿童手表）\n\n## 场景代码\n\n- `SMYX_CHILD_HAPPY_MOMENT_CAPTURE_ANALYSIS` - 儿童开心时刻识别与正向激励\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 幼儿园教室 / 游乐场 / 亲子活动中心固定摄像头，能拍到儿童面部和全身\n- 帧率 ≥ 10 FPS（推荐 15-25 FPS，便于抓拍清晰快照）；分辨率 ≥ 720p（推荐 1080p）\n- 音频（可选，但强烈推荐）：用于识别笑声强度；采样率 ≥ 16kHz\n- 视频时长：实时流接入；离线分析单段建议 ≥ 5 分钟\n- 抓拍前后**各 2 秒**短视频片段，照片 ≥ 1080p\n- 多人场景需按目标跟踪绑定到家庭注册儿童 ID（家庭场景）或匿名儿童编号（公共场景）\n- 公共场景（幼儿园/游乐场）**必须**确保所有出现儿童的家长**预先签署影像采集同意书**\n\n## 关键观测信号\n\n### 面部表情\n- `big_smile_intensity` - 大笑强度（嘴角上翘幅度 + 眼睛眯成月牙 + 露牙 综合分 0-100）\n- `genuine_smile_detected` - 杜兴式真笑判定（嘴 + 眼周肌肉同时收缩 = Duchenne smile）\n- `smile_duration_sec` - 单次笑容持续时长\n\n### 肢体动作\n- `jumping_event_count` - 蹦跳次数（双脚同时离地）\n- `clapping_event_count` - 拍手次数（双手有节奏拍击 ≥ 2 次）\n- `dancing_or_twirling_event` - 跳舞/转圈事件（参考指标）\n- `hug_event_count` - 拥抱事件次数（与家人/小朋友）\n- `arms_raised_celebration_event` - 双手高举庆祝（如赢得游戏）\n\n### 音频（可选）\n- `laughter_audio_intensity` - 笑声音频强度（dB + 频谱欢快度）\n- `cheer_or_excited_voice_count` - 欢呼/兴奋声次数\n\n### 上下文\n- `social_context` - 社交上下文（with_parent / with_peer / with_teacher / alone_play）\n- `triggered_by` - 触发上下文（praise_from_adult / new_toy / game_win / pet_interaction / unknown，**仅用于推送文案，不做记录**）\n\n## 抓拍触发规则（多信号融合，避免误抓）\n\n- **happy_event_triggered = true** 需满足以下任一组合：\n    1. `big_smile_intensity ≥ 70` 且 `smile_duration_sec ≥ 1.5`\n    2. `jumping_event_count` 单次 + `genuine_smile_detected = true`\n    3. `clapping_event_count ≥ 2` + `laughter_audio_intensity ≥ 阈值`\n    4. `arms_raised_celebration_event = true` + `cheer_or_excited_voice_count ≥ 1`\n- **happy_event_intensity_level** - 开心强度（mild / notable / peak）\n\n## 输出字段（参考）\n\n- `event_id` / `event_timestamp` / `child_id`（家庭注册儿童 / 公共场景匿名编号）\n- `social_context` / `triggered_by`\n- `signal_breakdown` - 信号详情（面部 + 肢体 + 音频）\n- `happy_event_intensity_level` - 强度（mild / notable / peak）\n- `snapshot_photo_url` - 高清抓拍照片 URL（关键瞬间帧，建议家长可一键删除）\n- `clip_video_url` - 前后 2 秒短视频片段 URL\n- `encouragement_action` - 鼓励动作（每项含 action_type / message / target，例如：\n    - `{action_type: \"smart_speaker_voice\", message: \"宝贝你真棒！妈妈/爸爸看到了哦~\", target: \"living_room_speaker\"}`\n    - `{action_type: \"play_celebration_sound\", message: \"欢快音效 1.5 秒（避免突兀过响）\", target: \"living_room_speaker\"}`\n    - `{action_type: \"parent_app_push\", message: \"📸 抓拍到宝贝的开心瞬间！正在游乐场和小伙伴拍手大笑~\", target: \"parent_phone_app\"}`）\n- `daily_happiness_collection` - 当日快乐合集（每日 22:00 自动汇总当日 ≥ notable 的事件）\n- `weekly_happiness_collection` - 每周快乐合集（每周日晚 21:00 自动生成 3-5 段精选回顾）\n- `recommend_action` - 建议动作（push_snapshot_to_parent / generate_daily_collection / generate_weekly_collection / play_encouragement_audio）\n\n## 强制约束与红线\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":1239,"uniquenessScore":44,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T22:11:56.775Z","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-09T22:11:56.775Z","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-10T03:30:03.322Z","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"}]}}}