{"id":"9b90ea6a-98ce-46e6-be48-5d4032588797","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-","name":"Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-","generatedAt":"2026-10-10T06:14:15.538Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T20:19:22.347Z","emptyReason":null},"description":"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 Skill: Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别 Owner: smyx-sunjinhui Summary: Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers,","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-pregnant-posture-fatigue-detection-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-pregnant-posture-fatigue-detection-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-pregnant-posture-fatigue-detection-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and asse"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:19:22.347Z","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-09T20:19:22.347Z","emptyReason":null},"stars":null,"forks":null,"downloads":2033,"packageName":null,"latestVersion":"1.0.10","tractionLabel":"2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:19:22.346Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T20:19:22.347Z","lastCrawledAt":"2026-10-09T20:19:22.346Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T20:19:22.346Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.10","createdAt":"2026-10-02T10:14:25.989Z","changelog":"- Updated version number and documentation details in SKILL.md. - Removed obsolete file: skill-card.md. - Minor adjustments to the skill description and configuration.","fileCount":31,"zipByteSize":41495},{"version":"1.0.9","createdAt":"2026-08-28T12:29:29.442Z","changelog":"- Updated version number in SKILL.md to 1.0.13. - Removed the file skill-card.md. - No user-facing functional or interface changes introduced.","fileCount":31,"zipByteSize":41769},{"version":"1.0.8","createdAt":"2026-08-22T00:00:44.559Z","changelog":"- Version updated from 1.0.11 to 1.0.12. - Internal documentation file SKILL.md updated, reflecting the new version. - skill-card.md file removed from the project. - No changes to user-facing features, functions, or workflow.","fileCount":31,"zipByteSize":41859},{"version":"1.0.7","createdAt":"2026-08-14T13:03:33.690Z","changelog":"- Version bump from 1.0.10 to 1.0.11. - Minor documentation update in SKILL.md, mainly version change. - Removed the redundant skill-card.md file. - Updated configuration references as needed for versioning consistency.","fileCount":31,"zipByteSize":41752},{"version":"1.0.6","createdAt":"2026-08-04T20:13:36.009Z","changelog":"- Updated skill version to 1.0.10 in SKILL.md. - Removed obsolete file: skill-card.md. - No functional or logic changes; documentation and version alignment only. - All usage instructions and constraints remain unchanged.","fileCount":31,"zipByteSize":42001},{"version":"1.0.5","createdAt":"2026-07-26T19:24:31.539Z","changelog":"- Updated SKILL.md to reflect new version information and documentation improvements. - Bumped version from 1.0.6 to 1.0.9. - Removed the skill-card.md file to streamline documentation. - No functional or API changes—documentation only.","fileCount":31,"zipByteSize":41809},{"version":"1.0.4","createdAt":"2026-07-12T20:38:30.365Z","changelog":"- Updated utility script: skills/smyx_common/scripts/util.py was modified. - Removed the documentation file: skill-card.md. - No changes to user-facing workflow or core functionality. - Documentation and demo instructions remain unchanged in SKILL.md.","fileCount":31,"zipByteSize":41833},{"version":"1.0.3","createdAt":"2026-07-08T22:18:27.866Z","changelog":"- Updated version to 1.0.6 in SKILL.md. - Refined and revised documentation and descriptions in SKILL.md for improved clarity and accuracy. - Removed the deprecated skill-card.md file.","fileCount":31,"zipByteSize":41719}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-pregnant-posture-fatigue-detection-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T06:14:15.535Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-pregnant-posture-fatigue-detection-/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T20:19:22.347Z","emptyReason":null},"readme":"Skill: Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n\nOwner: smyx-sunjinhui\n\nSummary: Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\n\nTags: latest:1.0.10\n\nVersion history:\n\nv1.0.10 | 2026-10-02T10:14:25.989Z | auto\n\n- Updated version number and documentation details in SKILL.md.\n- Removed obsolete file: skill-card.md.\n- Minor adjustments to the skill description and configuration.\n\nv1.0.9 | 2026-08-28T12:29:29.442Z | auto\n\n- Updated version number in SKILL.md to 1.0.13.\n- Removed the file skill-card.md.\n- No user-facing functional or interface changes introduced.\n\nv1.0.8 | 2026-08-22T00:00:44.559Z | auto\n\n- Version updated from 1.0.11 to 1.0.12.\n- Internal documentation file SKILL.md updated, reflecting the new version.\n- skill-card.md file removed from the project.\n- No changes to user-facing features, functions, or workflow.\n\nv1.0.7 | 2026-08-14T13:03:33.690Z | auto\n\n- Version bump from 1.0.10 to 1.0.11.\n- Minor documentation update in SKILL.md, mainly version change.\n- Removed the redundant skill-card.md file.\n- Updated configuration references as needed for versioning consistency.\n\nv1.0.6 | 2026-08-04T20:13:36.009Z | auto\n\n- Updated skill version to 1.0.10 in SKILL.md.\n- Removed obsolete file: skill-card.md.\n- No functional or logic changes; documentation and version alignment only.\n- All usage instructions and constraints remain unchanged.\n\nv1.0.5 | 2026-07-26T19:24:31.539Z | auto\n\n- Updated SKILL.md to reflect new version information and documentation improvements.\n- Bumped version from 1.0.6 to 1.0.9.\n- Removed the skill-card.md file to streamline documentation.\n- No functional or API changes—documentation only.\n\nv1.0.4 | 2026-07-12T20:38:30.365Z | auto\n\n- Updated utility script: skills/smyx_common/scripts/util.py was modified.\n- Removed the documentation file: skill-card.md.\n- No changes to user-facing workflow or core functionality.\n- Documentation and demo instructions remain unchanged in SKILL.md.\n\nv1.0.3 | 2026-07-08T22:18:27.866Z | auto\n\n- Updated version to 1.0.6 in SKILL.md.\n- Refined and revised documentation and descriptions in SKILL.md for improved clarity and accuracy.\n- Removed the deprecated skill-card.md file.\n\nv1.0.2 | 2026-07-02T17:17:31.024Z | auto\n\n- Updated internal version numbers and metadata.\n- Removed obsolete documentation file (skill-card.md).\n- Documentation updates in SKILL.md, including version bump and minor text changes.\n- Maintenance updates to shared scripts: dao.py and util.py, with unspecified improvements or adjustments.\n\nv1.0.1 | 2026-06-25T15:30:39.549Z | auto\n\n- Updated privacy and user identity handling: All identity management is now fully automatic and internal. Users are no longer prompted for usernames or IDs; internal IDs are hidden and not exposed in outputs or prompts.\n- Streamlined documentation: The usage instructions, description, and workflow have been simplified and clarified for easier understanding and onboarding.\n- Enhanced separation of user and system parameters: All identity and authentication logic is managed internally; users only provide the target video or image, not identity or access tokens.\n- Skill description and outputs revised for concise communication; medical disclaimers and intended scenarios are more clearly stated.\n- Removed direct open-id prompts and related workflow; system now manages report association and querying automatically.\n- File structure and resource references updated to match these logic and documentation changes.\n\nv1.0.0 | 2026-05-26T13:01:34.837Z | auto\n\nInitial release of smyx-pregnant-posture-fatigue-detection-analysis:\n\n- Real-time posture analysis for pregnant women via fixed home cameras, detecting prolonged standing and frequent bending.\n- Automated fatigue risk reminders are pushed through smart speakers or mobile apps to encourage rest and safer activity.\n- Focus on preventing over-exertion complications during pregnancy, such as preterm labor or back pain.\n- Includes strict flow for open-id retrieval before analysis or report queries.\n- Integrates with smart-home cameras or pregnancy management apps as a supportive assistant for expectant parents.\n- Clear separation of roles: provides visual-based activity stats and reminders only, without medical diagnostics.\n\nArchive index:\n\nArchive v1.0.10: 31 files, 41495 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2142b), SKILL.md (13059b), 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 (168b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1790936065989\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\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: prod\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes home-camera footage for prolonged standing and frequent bending during pregnancy, and produces fatigue-risk reminders and reports for health reference rather than diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExpectant families and developers of pregnancy-support applications use this skill to review posture and activity in home-camera footage, receive rest reminders, and consult previous analysis reports. Results are health guidance, not medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive pregnancy-camera footage and report history are sent to a cloud service.\n\nMitigation: Obtain the pregnant person's explicit consent before sending footage or retrieving reports.\n\nRisk: A persistent local user identity and stored tokens may expose personal reports in shared workspaces.\n\nMitigation: Avoid shared workspaces unless the local user database and stored tokens are understood and protected.\n\nRisk: Broad history queries may reveal more personal reports than intended.\n\nMitigation: Request report history explicitly and limit queries to the needed scope.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis)\n- [API documentation](artifact/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, JSON, Guidance]\n\n**Output Format:** [Structured analysis report and plain-language reminders]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include posture metrics, fatigue alerts, suggested rest actions, and report links; not a medical diagnosis.]\n\n## Skill Version(s):\n\n1.0.10 (source: server-resolved ClawHub release)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.10:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.10:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.9: 31 files, 41769 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2731b), SKILL.md (13059b), 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 (167b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787920169442\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\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\nUses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, assess fatigue risk, and produce rest reminders for health reference only.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nHome users, prenatal schools, community health centers, smart-home developers, and pregnancy-app developers use this skill to analyze fixed-camera images or videos for prolonged standing, frequent bending, suspected heavy lifting, and related fatigue reminders. The outputs are health-reference posture and activity observations, not medical diagnosis or treatment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pregnancy-related home camera footage is sensitive and may be processed through cloud services.\n\nMitigation: Use only with explicit informed consent from the pregnant person, confirm deletion and retention terms, restrict access, and prefer privacy-preserving body-outline modes when available.\n\nRisk: The skill may silently create or reuse local identity state and stored tokens.\n\nMitigation: Review endpoint and account handling before deployment, isolate the runtime environment, and manage local state and credentials according to organizational policy.\n\nRisk: Health-reference reminders could be mistaken for medical assessment.\n\nMitigation: Present results as posture and activity observations only, preserve the non-diagnostic wording, and direct users to medical professionals for symptoms or clinical concerns.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis)\n- [Skill API documentation](artifact/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, guidance]\n\n**Output Format:** [Structured posture and fatigue analysis reports, reminder text, historical report tables, and optional JSON output.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include posture classification, standing duration, bending frequency, alert type, alert level, recommended action, and report links.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter reports 1.0.13)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 41859 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2984b), SKILL.md (13059b), 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 (167b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1787356844559\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\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: dev\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nUses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk; it sends rest reminders via speaker or app when tiring behavior is found and is for health reference only, not medical diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers can use this skill to analyze fixed-camera home or care-setting video for pregnancy posture and fatigue indicators, including continuous standing duration, bending frequency, suspected heavy lifting, reminders, and historical report lookup. Outputs are wellness-oriented observations and reminders, not medical diagnosis or treatment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pregnancy-related home-camera footage or video URLs may be sent to the configured cloud analysis service.\n\nMitigation: Use only with explicit consent from the person recorded, verify service endpoints and retention policy, and avoid sharing footage that is unnecessary for the fatigue-analysis purpose.\n\nRisk: Reports can be linked to an automatically managed identity and account tokens may be stored or transmitted.\n\nMitigation: Review identity creation and token handling before deployment, protect any local token storage, and install only where this account-linking behavior is acceptable.\n\nRisk: Posture and bending detection may be unreliable when the video lacks a clear full-body view or has clothing and camera-angle ambiguity.\n\nMitigation: Require stable fixed-camera footage with the full body visible, treat outputs as wellness reminders, and rely on clinical care for symptoms or medical decisions.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis)\n- [Pregnant posture fatigue API documentation](artifact/references/api_doc.md)\n- [Shared analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-like structured analysis text, with optional report links and command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save output to a file and may return historical report lists from the configured cloud API.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter reports 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 31 files, 41752 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2723b), SKILL.md (13059b), 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 (167b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786712613690\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\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: dev\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nUses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk, with rest reminders for health reference only and not medical diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, developers, and care-program operators use this skill to analyze pregnancy-related home camera video or image input for posture, prolonged-standing duration, bending frequency, fatigue-risk reminders, and historical report lookup. Outputs are intended as health-reference monitoring and reminders, not medical diagnosis or treatment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pregnancy-related home footage or video URLs may be sent to remote API services.\n\nMitigation: Obtain explicit consent from the monitored person, use only appropriate footage, prefer privacy-preserving capture modes when available, and verify configured endpoints before use.\n\nRisk: Reports may be associated with a persistent account identity, and tokens or profile data may be stored locally in the workspace.\n\nMitigation: Restrict workspace access, review local storage handling before deployment, and remove local credentials or account data when they are no longer needed.\n\nRisk: The skill provides pregnancy-related fatigue reminders that could be mistaken for medical advice.\n\nMitigation: Present results only as visual posture and activity monitoring; direct users to qualified medical care for symptoms or clinical decisions.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis)\n- [Pregnant posture fatigue detection 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, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown summaries and JSON reports with posture metrics, fatigue-risk alerts, recommendations, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Historical report queries may return Markdown tables with cloud report links.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release metadata; artifact frontmatter says 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 42001 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (3318b), SKILL.md (13059b), 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 (167b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785874416009\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\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:\n\nAnalyzes fixed-camera home video to detect prolonged standing, bending, and related pregnancy over-fatigue signals, producing posture metrics, rest reminders, and report links for health reference rather than medical diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal developers and operators use this skill to connect fixed-camera pregnancy posture analysis into smart-home, prenatal-school, community health, or pregnancy-management workflows. It is intended for visual posture statistics, fatigue-risk reminders, history lookup, and report export links, not diagnosis or medical treatment.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pregnancy-related home camera footage and analysis history are sensitive and may be processed through the vendor's cloud service with report links.\n\nMitigation: Use only with explicit informed consent, limit inputs to necessary footage, protect exported reports and local workspace data, and avoid shared-device workflows unless identities are separated.\n\nRisk: The skill may silently create or reuse a persistent local/cloud identity for analysis history.\n\nMitigation: Confirm the intended identity context before use, separate users on shared devices, and review local configuration or cached identity state when changing users.\n\nRisk: The output could be mistaken for medical advice even though it is intended as health reference only.\n\nMitigation: Present results as posture statistics and friendly reminders, keep diagnosis and treatment decisions with qualified medical professionals, and escalate urgent symptoms to clinical care.\n\nRisk: Visual posture detection can be unreliable when the full body is not visible, lighting is poor, camera angle is unsuitable, or clothing obscures posture.\n\nMitigation: Use stable full-body camera coverage with adequate lighting and treat alerts as supportive signals to review alongside user context and daily trends.\n\n## Reference(s):\n\n- [Pregnant posture fatigue detection API documentation](artifact/references/api_doc.md)\n- [Shared analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, files, guidance]\n\n**Output Format:** [Markdown text containing structured analysis, JSON-style posture and fatigue-risk fields, history tables, reminder guidance, and report links; optionally saved to a local output file.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud-hosted report export links and history-query results associated with a persistent internal identity.]\n\n## Skill Version(s):\n\n1.0.6 (source: server release metadata; artifact SKILL.md 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.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, 41809 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2986b), SKILL.md (13058b), 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 (167b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1785093871539\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\n\n> 仅输出基于视觉的姿态与动作统计与友好提醒，不提供早产、胎盘早剥、腰背疼痛等具体医学诊断；如孕妇有腹痛、阴道出血、明显不适等情况请立即就医并由产科医生评估。\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nUses fixed home-camera image or video input to detect prolonged standing, bending, and related posture signals for a pregnant woman, then returns posture metrics, fatigue-risk reminders, and report links for health reference rather than medical diagnosis. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, developers, and care-application integrators use this skill to analyze fixed-camera pregnancy activity footage for standing duration, bending frequency, posture status, fatigue reminders, and historical report lookup. Outputs are health-reference observations and reminders, not medical diagnosis or treatment advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill may send highly sensitive pregnancy-related home camera footage or video URLs to configured cloud services. <br>\nMitigation: Use it only with explicit informed consent from the monitored person and household, and prefer privacy-preserving capture modes and careful storage controls. <br>\nRisk: Automatic account linkage, token persistence, and broad history-report access can expose sensitive report history if installed without review. <br>\nMitigation: Review configuration and access expectations before deployment, and prefer narrow, explicit invocations for analysis and history queries. <br>\nRisk: Visual posture and fatigue-risk observations may be incomplete or inaccurate and are not medical diagnosis. <br>\nMitigation: Present outputs as health-reference reminders only, and direct users to qualified clinical care for symptoms, discomfort, or pregnancy concerns. <br>\n\n\n## Reference(s): <br>\n- [Skill API Documentation](artifact/references/api_doc.md) <br>\n- [Shared Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands, guidance] <br>\n**Output Format:** [Markdown summaries and JSON analysis results with report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include posture classification, standing-duration metrics, bending-frequency metrics, alert type, reminder text, recommended action, and cloud report links.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter reports 1.0.9) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.5:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.5:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.4: 31 files, 41833 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2924b), SKILL.md (13058b), 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 (167b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783888710365\n}\n\nFile v1.0.4:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\n\n> 仅输出基于视觉的姿态与动作统计与友好提醒，不提供早产、胎盘早剥、腰背疼痛等具体医学诊断；如孕妇有腹痛、阴道出血、明显不适等情况请立即就医并由产科医生评估。\n\nFile v1.0.4:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.4:scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nUses fixed home-camera video to identify prolonged standing and frequent bending by a pregnant person, summarize posture and fatigue-risk signals, and produce rest reminders for health reference rather than medical diagnosis. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers can use this skill to analyze fixed-camera video from homes, prenatal schools, community health centers, or smart-home and pregnancy-management apps for posture, standing-duration, bending-frequency, and reminder generation. The output is intended for wellness reference and should not be used as medical diagnosis or treatment advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive in-home pregnancy-related video or video URLs are sent to external Life Emergence services. <br>\nMitigation: Use only with the pregnant person's explicit informed consent, verify the configured service endpoints, and avoid submitting footage unless the privacy and retention terms are acceptable. <br>\nRisk: Reports are tied to a persistent local or remote identity and auth tokens may be stored locally. <br>\nMitigation: Use a dedicated workspace or account, review local token storage before deployment, and clear credentials and report history when no longer needed. <br>\nRisk: The analysis may be mistaken for clinical advice. <br>\nMitigation: Present outputs as wellness reminders and posture statistics only, and direct users to qualified medical care for symptoms or pregnancy health concerns. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Pregnant posture fatigue API documentation](artifact/references/api_doc.md) <br>\n- [Shared analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown or JSON-style structured analysis with posture metrics, alert type, alert level, reminder text, recommended action, and optional report links.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May write the analysis result to a user-specified output file.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; SKILL.md frontmatter lists 1.0.6) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.3: 31 files, 41719 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2953b), SKILL.md (13058b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (167b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783549107866\n}\n\nFile v1.0.3:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\n\n> 仅输出基于视觉的姿态与动作统计与友好提醒，不提供早产、胎盘早剥、腰背疼痛等具体医学诊断；如孕妇有腹痛、阴道出血、明显不适等情况请立即就医并由产科医生评估。\n\nFile v1.0.3:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.3:scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.3:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.3:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nDetects prolonged standing, bending, and related posture signals from fixed-camera pregnancy footage and returns health-reference fatigue reminders rather than medical diagnosis. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers can use this skill to analyze fixed home, prenatal-school, or community-health camera inputs for standing duration, bending frequency, and fatigue-risk reminders. The output is intended for wellness reference and escalation guidance, not diagnosis or treatment. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill may process sensitive home-camera footage and cloud report history involving pregnancy-related activity. <br>\nMitigation: Use it only with explicit consent for cloud processing, limit inputs to necessary footage, and avoid retaining reports longer than needed. <br>\nRisk: The local workspace data directory may contain identity records and service tokens. <br>\nMitigation: Restrict workspace access, treat generated data files as sensitive, and clear local tokens or identity records when the skill is no longer needed. <br>\nRisk: Broad history-query phrases can retrieve cloud report history when that was not the user's intent. <br>\nMitigation: Confirm the user is intentionally requesting history before invoking report-list behavior and scope the request to relevant records. <br>\nRisk: Visual posture and fatigue outputs may be mistaken for medical advice. <br>\nMitigation: Present results as wellness-reference observations and direct users to qualified medical care for symptoms or clinical decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis) <br>\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui) <br>\n- [Pregnant posture fatigue API documentation](artifact/references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON text, with optional saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can return a structured analysis report, a cloud report export link, or a history-list report depending on the invoked command.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata; artifact frontmatter reports 1.0.6) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.3:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.3:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.2: 31 files, 41498 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2899b), SKILL.md (13058b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (22801b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (167b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783012651024\n}\n\nFile v1.0.2:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\n\n> 仅输出基于视觉的姿态与动作统计与友好提醒，不提供早产、胎盘早剥、腰背疼痛等具体医学诊断；如孕妇有腹痛、阴道出血、明显不适等情况请立即就医并由产科医生评估。\n\nFile v1.0.2:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.2:scripts/config.yaml\n\n{}\n\nFile v1.0.2:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.2:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.2:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.2:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nUses fixed home-camera images or video to detect prolonged standing, bending, and related posture for pregnancy fatigue reminders, producing health-reference reports rather than medical diagnosis. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to analyze pregnancy activity-area camera footage, generate posture and fatigue-risk reports, and retrieve historical report lists. It is intended for wellness reminders in homes, prenatal schools, community health centers, smart-home systems, or pregnancy-management apps, not clinical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill processes sensitive pregnancy-related home-camera footage and cloud report history through external services. <br>\nMitigation: Use it only with informed consent from the pregnant person and any bystanders, minimize private household footage, and prefer privacy-preserving silhouette or ROI modes when available. <br>\nRisk: The skill may create or reuse a local identity and store service tokens in the workspace data directory. <br>\nMitigation: Run it only in a trusted workspace, restrict filesystem access, and rotate or delete local tokens when access is no longer needed. <br>\nRisk: Fatigue reminders or posture results could be mistaken for medical advice. <br>\nMitigation: Present outputs as wellness reminders based on visual posture statistics and direct users to qualified medical care for symptoms, diagnosis, or treatment decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis) <br>\n- [Pregnant Posture Fatigue API Documentation](references/api_doc.md) <br>\n- [Shared Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON/text report with optional shell commands and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include posture statistics, alert type, reminder text, recommended action, cloud report links, and an optional saved output file.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release metadata; artifact frontmatter says 1.0.5) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.2:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.2:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.1: 31 files, 38410 bytes\n\nFiles: references/api_doc.md (3349b), scripts/__init__.py (62b), scripts/config.py (694b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_pregnant_posture_fatigue_detection_analysis.py (3660b), skill-card.md (2408b), SKILL.md (13058b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (22801b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (13468b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (23409b), _meta.json (167b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.3\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于家庭固定摄像头视频，实时识别孕妇姿态 + 统计连续站立时长 + 弯腰频次 → 评估劳累风险并输出友好提醒\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 人体检测与姿态分类（standing / sitting / squatting / bending / lying / walking） |\n| 2 | 连续站立计时与重置规则（短暂转身/换姿势不打断 |\n| 3 | 有效坐下 ≥ 3 min 重置） |\n| 4 | 弯腰事件识别（基于躯干前倾角 + 髋部弯曲角度） |\n| 5 | 每小时/每日弯腰频次统计 |\n| 6 | 疑似搬重物动作识别（参考） |\n| 7 | 提醒类型分类（prolonged_standing / frequent_bending / heavy_lifting_suspected / combined_fatigue_risk / normal） |\n| 8 | 智能音箱/APP 友好提醒文本生成 |\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_pregnant_posture_fatigue_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备孕妇活动区域固定摄像头视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行孕妇久站/过度劳累识别 | 调用 `-m scripts.smyx_pregnant_posture_fatigue_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地孕妇活动区域固定摄像头视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络孕妇活动区域固定摄像头视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，孕期健康管理场景默认 `other` | 按需填写 |\n| `--list` | 显示孕妇久站/过度劳累识别历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pregnant_posture_fatigue_detection_analysis.py`](scripts/smyx_pregnant_posture_fatigue_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 mp4/avi/mov 视频，最大 10MB；**关键**：画面必须能看到孕妇全身轮廓，否则姿态分类不可靠 |\n| 🔎 使用提醒 | 弯腰事件可能因穿宽松孕妇装、镜头角度偏差等出现误识别；建议结合每日趋势综合判断 |\n| 🔎 使用提醒 | 久站提醒的语气应温柔友好，避免造成孕妇心理负担；不应将本工具变成\"监视\"型工具 |\n| 🔏 隐私合规 | 隐私合规：家庭孕妇视频涉及高度敏感个人隐私，使用前需取得孕妇本人明确知情同意，妥善加密保管；建议优先采用人体轮廓模式 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json\n```\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1782401439549\n}\n\nFile v1.0.1:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\n\n> 仅输出基于视觉的姿态与动作统计与友好提醒，不提供早产、胎盘早剥、腰背疼痛等具体医学诊断；如孕妇有腹痛、阴道出血、明显不适等情况请立即就医并由产科医生评估。\n\nFile v1.0.1:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.1:scripts/config.yaml\n\n{}\n\nFile v1.0.1:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.1:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.1:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.1:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.1:skill-card.md\n\n## Description: <br>\nUses fixed-camera image or video inputs to detect prolonged standing, bending, and related pregnancy fatigue-risk signals, then returns structured reminders and report links for health-reference use. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nDevelopers and operators of home, prenatal school, community health, or smart-home workflows use this skill to submit fixed-camera pregnancy activity footage, receive posture and fatigue-risk summaries, and retrieve historical analysis reports. It is for health-reference reminders, not medical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Review before execution as proposals could introduce incorrect or misleading guidance into skills. <br>\nMitigation: Review and scan skill before deployment. <br>\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-pregnant-posture-fatigue-detection-analysis) <br>\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Guidance] <br>\n**Output Format:** [Markdown or plain text containing structured JSON analysis, reminder guidance, and report/export links; command examples are bash.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related t...","readmeExcerpt":"Skill: Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别 Owner: smyx-sunjinhui Summary: Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, ","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input /path/to/livingroom.mp4\n\n# 分析网络孕妇活动区域视频\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --url https://example.com/livingroom.mp4\n\n# 显示历史孕妇久站/过度劳累识别报告（自动触发关键词：查看孕妇久站历史报告、孕妇劳累提醒清单等）\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pregnant_posture_fatigue_detection_analysis --input lr.mp4 --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-pregnant-posture-fatigue-detection-analysis\"\ndescription: \"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 🤰 Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **孕妇久站/过度劳累识别** |\n| 🎯 核心目标 | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` |\n\nUsing a fixed camera at home (e.g., living room, kitchen), the system analyzes a pregnant woman's posture in real time, detecting prolonged standing (continuous standing beyond a threshold, default 30 minutes) and frequent bending (bending frequency exceeding normal levels, e.g., > 10 times per hour), and assesses physical-exertion and fatigue risk. When prolonged standing or frequent bending is detected, it outputs a 'fatigue risk reminder' suggesting the pregnant woman sit down to rest or avoid heavy physical activity, preventing complications from over-fatigue during pregnancy. Application scenarios: pregnant women's homes, prenatal schools, community health centers. The system monitors in real time; when fatiguing behavior is detected, it pushes reminders via smart speaker or mobile app (e.g., 'You've been standing for 30 minutes, please sit down and rest'). Skill features: over-fatigue during pregnancy (prolonged standing, frequent bending) may increase the risk of preterm labor, placental abruption, lumbar/back pain, etc. AI real-time monitoring and reminders help pregnant women adjust activity intensity and protect maternal-infant health. Can be integrated into smart-home cameras or pregnancy-management apps as a caring assistant for expecting parents.\n\n通过家庭固定摄像头（如客厅、厨房）实时分析孕妇的姿态，检测长时间站立（连续站立超过阈值，默认30分钟）以及频繁弯腰（弯腰频次超过正常值，如每小时>10次），评估孕妇的体力消耗和劳累风险。当出现久站或频繁弯腰时，输出'劳累风险提醒'，建议孕妇坐下休息或避免重体力活动，预防孕期过度疲劳引发的并发症。应用场景：孕妇家庭、孕妇学校、社区健康中心。系统实时监测，当检测到劳累行为时通过智能音箱或手机APP推送提醒（如'您已站立30分钟，建议坐下休息'）。技能特点：孕妇过度劳累（久站、频繁弯腰）可能增加早产、胎盘早剥、腰背疼痛等风险。通过AI实时监测并提醒，可帮助孕妇主动调整活动强度，保护母婴健康。该技能可集成到智能家居摄像头或孕期管理APP中，成为准父母的贴心助手。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的孕期健康管理 AI。你的任务是分析固定摄像头（对准孕妇活动区域）的实时视频，检测孕妇的姿态，识别长时间站立（连续站立时长）和频繁弯腰的动作，评估劳累风险。不要提供医疗诊断或具体处方，仅输出基于视觉的姿态和动作统计与友好提醒。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemerge"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-pregnant-posture-fatigue-detection-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1790936065989\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放孕妇久站/过度劳累识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动孕妇久站/过度劳累识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取姿态/劳累风险结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史劳累事件\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PREGNANT_POSTURE_FATIGUE_DETECTION_ANALYSIS` - 孕妇久站/过度劳累识别\n\n## 输入约束\n\n- 摄像头：家庭客厅 / 厨房 / 卧室固定摄像头，覆盖孕妇主要活动区域，能看到全身轮廓\n- 帧率 ≥ 5 FPS；分辨率 ≥ 480p；光照稳定\n- 初次部署可在画面中**框选孕妇主要活动区域 ROI**（可选）\n- 多人场景下建议结合体型/外观特征锁定主目标（如孕妇穿着特定颜色）\n- 隐私敏感场景可启用人体轮廓模式\n\n## 关键观测信号\n\n- `subject_detected` - 是否检测到孕妇\n- `posture` - 当前姿态分类（standing / sitting / squatting / bending / lying / walking）\n- `continuous_standing_duration_min` - 当次连续站立时长（分钟）\n- `bending_event_count_hourly` - 最近 1 小时弯腰次数\n- `bending_event_count_daily` - 当日累计弯腰次数\n- `lifting_object_event_count_daily` - 当日疑似搬重物动作次数（参考）\n- `total_standing_duration_today_min` - 当日累计站立时长\n- `sit_break_count_today` - 当日有效坐下休息次数\n\n## 默认阈值（可由调用方覆盖）\n\n- 连续站立阈值：**30 分钟**（continuous_standing_threshold_min）→ 触发\"久站提醒\"\n- 弯腰频率阈值：**每小时 > 10 次** → 触发\"频繁弯腰提醒\"\n- 搬重物动作 ≥ 1 次/天 → 友好提示\"避免提搬重物\"\n- 站立判定中，短暂转身/换姿势 < 30 秒不打断连续计时\n- 有效坐下休息：坐下 ≥ 3 分钟 → 重置连续站立计时\n\n## 提醒类型\n\n- `prolonged_standing` - 久站提醒（建议坐下休息）\n- `frequent_bending` - 频繁弯腰提醒（建议减少弯腰动作 / 使用辅助工具）\n- `heavy_lifting_suspected` - 疑似搬重物提醒\n- `combined_fatigue_risk` - 多项异常同时出现（更高优先级）\n- `normal` - 正常\n\n## 输出字段（参考）\n\n- `subject_detected` / `posture`\n- `current_session` - 当次会话指标（continuous_standing_duration_min / bending_event_count_hourly）\n- `daily_metrics` - 当日指标（total_standing_duration_today_min / bending_event_count_daily / lifting_object_event_count_daily / sit_break_count_today）\n- `alert_type` - 提醒类型\n- `alert_level` - 提醒级别（info / notice / warning）\n- `alert_message` - 推送/语音播报文本（如\"您已站立 30 分钟，建议坐下休息一会儿~\"）\n- `recommend_action` - 建议动作（voice_play_reminder / push_app_notice / suggest_rest / suggest_avoid_heavy_lifting / observe_only）\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":"Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers, and smart-home or pregnancy apps. For health reference only, not medical diagnosis. | 通过家庭固定摄像头识别孕妇久站、弯腰等姿态，统计连续站立时长和弯腰频次，评估孕期劳累风险。发现久站、频繁弯腰或疑似重体力活动时，生成休息提醒，并可通过智能音箱或手机App推送。适用于家庭、孕妇学校、社区健康中心，可接入智能家居或孕期管理应用；结果仅供健康参考，不替代医生诊断。 Skill: Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别 Owner: smyx-sunjinhui Summary: Uses a fixed home camera to detect prolonged standing, bending, and related posture of a pregnant woman, track standing duration and bending frequency, and assess fatigue risk. It sends rest reminders via speaker or app when tiring behavior is found. Suitable for homes, prenatal schools, community health centers,","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1168,"uniquenessScore":45,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T20:19:22.347Z","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-09T20:19:22.347Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T06:14:15.538Z","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"}]}}}