{"id":"d286a798-efb4-4216-8663-3b54bad9aeea","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis","name":"Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis","generatedAt":"2026-10-10T05:51:07.621Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T17:35:28.939Z","emptyReason":null},"description":"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 Skill: Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能 Owner: smyx-sunjinhui Summary: Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 Tags: latest:1.0.15 Version h","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2.2K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-incontinence-alert-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-incontinence-alert-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-incontinence-alert-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":67,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden pat"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T17:35:28.939Z","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-09T17:35:28.939Z","emptyReason":null},"stars":null,"forks":null,"downloads":2202,"packageName":null,"latestVersion":"1.0.15","tractionLabel":"2.2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T17:35:28.931Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T17:35:28.939Z","lastCrawledAt":"2026-10-09T17:35:28.931Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T17:35:28.931Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.15","createdAt":"2026-09-29T05:19:26.499Z","changelog":"- Version bumped from 1.0.16 to 1.0.17. - Documentation updated in SKILL.md; no changes to skill logic or API. - skill-card.md file removed. - No functional or interface changes; update is for documentation maintenance.","fileCount":30,"zipByteSize":41705},{"version":"1.0.14","createdAt":"2026-09-25T01:17:35.255Z","changelog":"- Updated version number to 1.0.16 and package metadata. - Documentation improvements and edits to SKILL.md. - Removed the redundant skill-card.md file. - Minor config adjustments in config.yaml for consistency.","fileCount":30,"zipByteSize":41673},{"version":"1.0.13","createdAt":"2026-09-07T16:32:30.600Z","changelog":"- Updated SKILL.md to increment version from 1.0.14 to 1.0.15. - Removed the file skill-card.md. - No other functionality changes documented; primarily documentation and version update.","fileCount":30,"zipByteSize":41909},{"version":"1.0.12","createdAt":"2026-08-26T15:29:31.539Z","changelog":"- Updated version number to 1.0.14. - Removed the file skill-card.md. - No core functionality or logic changes; documentation only.","fileCount":30,"zipByteSize":41906},{"version":"1.0.11","createdAt":"2026-08-23T13:47:32.180Z","changelog":"- Version update with SKILL.md: version number changed from 1.0.11 to 1.0.13 - Minor documentation or metadata enhancements in SKILL.md - Removed obsolete file: skill-card.md","fileCount":30,"zipByteSize":41966},{"version":"1.0.10","createdAt":"2026-08-12T09:47:40.742Z","changelog":"- Removed the file: skill-card.md - No other functional or documentation changes in this release.","fileCount":30,"zipByteSize":41840},{"version":"1.0.9","createdAt":"2026-08-08T07:12:31.134Z","changelog":"- Updated version to 1.0.11 in SKILL.md. - Removed outdated file: skill-card.md. - No functional or logic changes; documentation version alignment and cleanup only.","fileCount":30,"zipByteSize":41880},{"version":"1.0.8","createdAt":"2026-08-01T11:08:36.221Z","changelog":"- Updated version to 1.0.10 in SKILL.md. - Removed the skill-card.md file. - No functional or code logic changes; update is limited to documentation and resource file adjustments.","fileCount":30,"zipByteSize":41825}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-incontinence-alert-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-incontinence-alert-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T05:51:07.617Z"}},"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-incontinence-alert-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-incontinence-alert-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T17:35:28.939Z","emptyReason":null},"readme":"Skill: Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n\nOwner: smyx-sunjinhui\n\nSummary: Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\n\nTags: latest:1.0.15\n\nVersion history:\n\nv1.0.15 | 2026-09-29T05:19:26.499Z | auto\n\n- Version bumped from 1.0.16 to 1.0.17.\n- Documentation updated in SKILL.md; no changes to skill logic or API.\n- skill-card.md file removed.\n- No functional or interface changes; update is for documentation maintenance.\n\nv1.0.14 | 2026-09-25T01:17:35.255Z | auto\n\n- Updated version number to 1.0.16 and package metadata.\n- Documentation improvements and edits to SKILL.md.\n- Removed the redundant skill-card.md file.\n- Minor config adjustments in config.yaml for consistency.\n\nv1.0.13 | 2026-09-07T16:32:30.600Z | auto\n\n- Updated SKILL.md to increment version from 1.0.14 to 1.0.15.\n- Removed the file skill-card.md.\n- No other functionality changes documented; primarily documentation and version update.\n\nv1.0.12 | 2026-08-26T15:29:31.539Z | auto\n\n- Updated version number to 1.0.14.\n- Removed the file skill-card.md.\n- No core functionality or logic changes; documentation only.\n\nv1.0.11 | 2026-08-23T13:47:32.180Z | auto\n\n- Version update with SKILL.md: version number changed from 1.0.11 to 1.0.13\n- Minor documentation or metadata enhancements in SKILL.md\n- Removed obsolete file: skill-card.md\n\nv1.0.10 | 2026-08-12T09:47:40.742Z | auto\n\n- Removed the file: skill-card.md\n- No other functional or documentation changes in this release.\n\nv1.0.9 | 2026-08-08T07:12:31.134Z | auto\n\n- Updated version to 1.0.11 in SKILL.md.\n- Removed outdated file: skill-card.md.\n- No functional or logic changes; documentation version alignment and cleanup only.\n\nv1.0.8 | 2026-08-01T11:08:36.221Z | auto\n\n- Updated version to 1.0.10 in SKILL.md.\n- Removed the skill-card.md file.\n- No functional or code logic changes; update is limited to documentation and resource file adjustments.\n\nv1.0.7 | 2026-07-12T21:24:25.445Z | auto\n\n- Removed the documentation file skill-card.md from the project.\n- No changes to core features or functionality; all user workflows and API usage remain the same.\n\nv1.0.6 | 2026-07-12T05:37:26.266Z | auto\n\n- Updated skill version to 1.0.7.\n- Documentation and skill info updated in SKILL.md.\n- Removed the redundant skill-card.md file.\n- Internal scripts updated: config.py and util.py modified for consistency and maintenance.\n\nv1.0.5 | 2026-07-01T16:23:28.663Z | auto\n\n- Updated documentation in SKILL.md with revised notes and minor formatting adjustments.\n- Removed the file \"skill-card.md\".\n- Made updates to internal scripts (dao.py, util.py) in the skills/smyx_common/scripts directory.\n\nv1.0.4 | 2026-06-24T17:10:36.546Z | auto\n\n**Major update: workflow and structure streamlined, with strict privacy enhancements and internal identification automation.**\n\n- All user identity (open-id) handling is now fully automatic; users are never required or prompted to provide any identifiers.\n- Removed all requirements, prompts, and documentation mentioning user-supplied identity or open-id inputs.\n- Updated workflow and documentation to emphasize privacy: user identity is handled internally and is never exposed.\n- Skill logic and API invocation flow are refined to focus only on file/URL input, analysis, and result/report display.\n- Codebase modularized; legacy/unused files removed, new analysis and common logic separated.\n- Output, report queries, and table formatting remain, but now rely solely on cloud API, without any local history lookup.\n\nv1.0.3 | 2026-05-13T02:09:42.696Z | auto\n\n- Updated development and test configuration files: config-dev.yaml and config-test.yaml\n- Internal improvements to configuration management in config.py and related helper utilities\n- Adjusted __init__.py and util.py for enhanced compatibility and maintainability\n- No changes to skill features or user-facing behavior\n\nv1.0.2 | 2026-05-09T01:35:41.431Z | auto\n\n- Improved error handling and logging in analysis scripts.\n- Refactored open-id retrieval logic for increased reliability.\n- Minor internal code cleanup for maintainability.\n\nv1.0.1 | 2026-04-30T19:25:38.633Z | auto\n\n- Updated SKILL.md metadata with a version field and set version to 1.0.0.\n- No changes to feature logic or user-facing functionality; content and documentation remain consistent.\n- Housekeeping update for documentation accuracy and clarity.\n\nv1.0.0 | 2026-04-16T04:36:13.696Z | auto\n\n- Initial release of the incontinence_alert_analysis skill.\n- Enables automatic detection of wet clothing and abnormal excretion via visual AI for elderly, bedridden patients, and infants.\n- Instantly notifies caregivers to support timely intervention and reduce skin complications.\n- Strictly enforces cloud-only report queries, never using local or long-term memory for report retrieval.\n- Provides clear open-id acquisition flow, requiring valid identification before analysis.\n- Outputs structured care reports and supports history retrieval in Markdown table format with direct report links.\n\nArchive index:\n\nArchive v1.0.15: 30 files, 41705 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2308b), SKILL.md (10439b), 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 (152b)\n\nFile v1.0.15:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.15:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.15\",\n  \"publishedAt\": 1790659166499\n}\n\nFile v1.0.15:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.15:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.15:scripts/config.yaml\n\n{}\n\nFile v1.0.15:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.15:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.15:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.15:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.15:skill-card.md\n\n## Description:\n\nAnalyzes care images, videos, or media URLs for possible wet clothing and excretion, returning alerts and care reports for caregivers.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nCaregivers and care teams use the skill to assess images or videos of older adults, bedridden patients, or infants for possible incontinence and to review prior care reports. Results support, rather than replace, hands-on checks and professional judgment.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive care images, videos, URLs, and report data may be sent to lifeemergence.com services.\n\nMitigation: Use only with patient, guardian, or authorized caregiver consent; confirm cloud retention and access controls before use.\n\nRisk: The skill may silently create or reuse an account identity and store tokens in a local SQLite database.\n\nMitigation: Review account creation and protect local token storage before deployment in a caregiving setting.\n\nRisk: Cloud history retrieval has limited user control and may expose prior care reports.\n\nMitigation: Limit report access to authorized caregivers and verify the records returned for the intended patient.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis)\n- [Skill API documentation](artifact/references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Structured care analysis, alerts, recommendations, and Markdown-linked historical reports; optional JSON file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Findings require human confirmation; historical reports are retrieved from the cloud.]\n\n## Skill Version(s):\n\n1.0.15 (source: server-resolved release metadata; bundled frontmatter says 1.0.17)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.15:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.15:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.14: 30 files, 41673 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2235b), SKILL.md (10439b), 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 (152b)\n\nFile v1.0.14:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.14:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.14\",\n  \"publishedAt\": 1790299055255\n}\n\nFile v1.0.14:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.14:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.14:scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.14:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.14:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.14:skill-card.md\n\n## Description:\n\nAnalyzes care images and videos for wet clothing or excretion and provides alerts, care suggestions, and report links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nCaregivers and care teams use the skill to review images or videos of elderly, bedridden, or infant care recipients for possible incontinence and to retrieve past care reports. Results support, but do not replace, direct checks and professional care.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive care images or videos and identity-linked reports may be processed by lifeemergence.com cloud services.\n\nMitigation: Obtain consent before uploading, and confirm the provider's retention, access controls, and report-sharing practices.\n\nRisk: Account and token management and report-history lookup happen automatically.\n\nMitigation: Review local token storage and the identity associated with cloud reports before using the skill.\n\nRisk: Visual alerts may be inaccurate due to lighting, angle, or clothing thickness.\n\nMitigation: Have a caregiver check alerts directly; do not substitute the results for professional care.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis)\n- [Incontinence analysis API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis results or a Markdown report list with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can save analysis results to a file; supports basic, standard, and JSON detail levels.]\n\n## Skill Version(s):\n\n1.0.14 (source: server-resolved ClawHub release metadata; bundled SKILL.md frontmatter says 1.0.16)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.14:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.14:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.13: 30 files, 41909 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2794b), SKILL.md (10439b), 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 (152b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1788798750600\n}\n\nFile v1.0.13:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nUses visual AI to analyze caregiving images, videos, or media URLs for damp clothing or abnormal excretion and return caregiver alerts, care suggestions, and report links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nCaregivers and care operations teams use this skill to analyze uploaded care images, videos, or URLs for incontinence-related conditions in disabled seniors, bedridden patients, infants, or other people receiving care. The skill produces structured monitoring results, alert levels, warnings, suggestions, and links to generated reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive caregiving images or videos may be sent to the publisher's cloud service.\n\nMitigation: Use only with explicit consent from the person or guardian, upload the minimum necessary media, and restrict report access to authorized caregivers.\n\nRisk: Insecure or non-production networking configuration could expose care media or report data.\n\nMitigation: Verify the installed package is configured for HTTPS production endpoints before use.\n\nRisk: Silent identity handling and persistent token storage can leave reusable credentials or care-history links in the local workspace.\n\nMitigation: Limit workspace access, treat local databases as sensitive, and rotate or clear stored credentials when access changes.\n\nRisk: Visual analysis may be wrong or incomplete and is not a substitute for professional care judgment.\n\nMitigation: Require human confirmation before taking care actions, especially for urgent alerts or unclear images.\n\n## Reference(s):\n\n- [Incontinence Alert Analysis API Documentation](references/api_doc.md)\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, configuration]\n\n**Output Format:** [Markdown or JSON text with optional saved JSON output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can include structured alert levels, care warnings, care suggestions, report links, and Markdown tables for historical report lists.]\n\n## Skill Version(s):\n\n1.0.13 (source: server release metadata; artifact frontmatter lists 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 30 files, 41906 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2844b), SKILL.md (10439b), 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 (152b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1787758171539\n}\n\nFile v1.0.12:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nUses visual AI to analyze care images or videos for wet clothing or abnormal excretion and return caregiver-facing alerts, care suggestions, and report links for elderly, bedridden, or infant care.\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 caregivers and care-system operators use this skill to submit care images, videos, or media URLs for incontinence-status analysis, alert review, and historical report lookup. It is intended as a care-assistance workflow and does not replace professional medical judgment or human checks.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may send sensitive care images, videos, or media URLs to remote services.\n\nMitigation: Use only with patient or guardian consent and confirm the backend endpoint, privacy policy, retention policy, deletion process, and caregiver notification access before deployment.\n\nRisk: The skill silently creates or reuses internal identities and can query cloud report history.\n\nMitigation: Restrict use to authorized caregivers, verify report-access controls, and audit who can view historical reports.\n\nRisk: Backend tokens may be stored locally in the workspace data directory.\n\nMitigation: Protect the workspace, avoid shared machines for real care data, rotate credentials when needed, and remove local tokens after testing or decommissioning.\n\nRisk: Care-analysis results can be wrong or incomplete and should not drive care decisions alone.\n\nMitigation: Require human confirmation for alerts and continue to follow professional care or medical judgment.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Incontinence alert analysis API documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON care-analysis reports, Markdown history tables, shell command examples, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include alert levels, wet-clothing or excretion indicators, care warnings, care suggestions, history records, and export URLs.]\n\n## Skill Version(s):\n\n1.0.12 (source: server release evidence; artifact frontmatter says 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 30 files, 41966 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2822b), SKILL.md (10439b), 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 (152b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1787492852180\n}\n\nFile v1.0.11:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAutomatically identifies wet clothing and abnormal excretion from images or video and notifies caregivers with structured care alerts for incontinent elderly people, bedridden patients, and infants.\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 caregivers, care organizations, and developers use this skill to analyze care images or videos for damp clothing, abnormal excretion, and related incontinence alerts. It can also retrieve cloud-stored historical care reports for authorized review.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill can upload intimate patient or infant media and query cloud-stored care history through remote services.\n\nMitigation: Install only for authorized care workflows with consent, access controls, and a trusted publisher and backend.\n\nRisk: The skill automatically creates or reuses identity records and can persist account tokens in a local workspace database.\n\nMitigation: Run it in a controlled workspace, restrict local file access, and clear or rotate stored credentials when the deployment is no longer needed.\n\nRisk: Care alerts and analysis results may be incomplete or incorrect and are not a substitute for professional medical or caregiver judgment.\n\nMitigation: Require a human caregiver or clinician to confirm alerts before making care decisions.\n\nRisk: Configured service endpoints and cloud report storage create data-governance and retention obligations.\n\nMitigation: Review endpoint configuration, backend trust, retention practices, and applicable privacy requirements before deployment.\n\n## Reference(s):\n\n- [智能失禁状态提醒分析 API 文档](references/api_doc.md)\n- [API接口文档](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-incontinence-alert-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Guidance]\n\n**Output Format:** [Markdown care reports, Markdown historical-report tables, or JSON analysis results]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can save analysis output to a file; accepts local media paths or media URLs and supports basic, standard, and JSON detail levels.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; artifact SKILL.md 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.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 30 files, 41840 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2610b), SKILL.md (10439b), 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 (152b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1786528060742\n}\n\nFile v1.0.10:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAutomatically identifies wet clothing and abnormal excretion via visual AI and notifies caregivers for elderly, bedridden, infant, and other care scenarios.\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 caregivers and care-operations agents use this skill to analyze care images, videos, local files, or media URLs for damp clothing and abnormal excretion, then produce alerts, care suggestions, and report links. It also supports cloud-backed retrieval of historical incontinence alert reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive care images, videos, media URLs, and historical report queries are sent to Lifeemergence cloud endpoints.\n\nMitigation: Install and run only where patients, guardians, and caregivers understand and consent to the cloud data flow and where the publisher's privacy, retention, and access-control practices are acceptable.\n\nRisk: The skill can silently create or reuse a persistent identity and store authentication tokens locally.\n\nMitigation: Use an isolated runtime or account, restrict access to local token storage, and review identity handling before deployment.\n\nRisk: Visual AI care analysis may be inaccurate and is not a substitute for professional judgment or direct caregiver inspection.\n\nMitigation: Require human confirmation of alerts and care recommendations before taking clinical or caregiving action.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis)\n- [Smart Incontinence Status Alert API documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [markdown, json, shell commands, guidance]\n\n**Output Format:** [Markdown reports, JSON analysis payloads, Markdown tables for report lists, and report URLs]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save analysis output to a user-specified file path; cloud API responses include structured diagnosis fields, care warnings, suggestions, and report export links.]\n\n## Skill Version(s):\n\n1.0.10 (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.10:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.10:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.9: 30 files, 41880 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2732b), SKILL.md (10439b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (151b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1786173151134\n}\n\nFile v1.0.9:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nAutomatically identifies wet clothing and abnormal excretion via visual AI, produces structured care reports, and helps caregivers respond to incontinence-related alerts for elderly, bedridden, and infant care.\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 caregivers and operators use this skill to analyze uploaded or URL-based care images and videos for damp clothing, abnormal excretion, alert severity, and recommended follow-up actions. It can also retrieve cloud-stored historical incontinence alert reports for the associated user identity.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill handles sensitive patient or infant care media and report history through external lifeemergence.com services.\n\nMitigation: Use only when those services are trusted for the media and report data involved, and confirm consent, authorization, retention, and deletion requirements before deployment.\n\nRisk: The security summary says the skill may silently create or reuse identities and store service tokens locally.\n\nMitigation: Prefer a dedicated workspace and account, review local credential storage, and avoid mixing test, personal, and production care data.\n\nRisk: The analysis is a care-support signal and may be affected by media quality, lighting, angle, clothing thickness, or service availability.\n\nMitigation: Require caregiver or clinical confirmation before using alerts to make care decisions, and keep manual inspection procedures in place.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Incontinence Alert Analysis API Documentation](references/api_doc.md)\n- [Smyx Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, files]\n\n**Output Format:** [Markdown or JSON analysis reports, with optional saved output files and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports basic, standard, and JSON detail levels; accepts local media files or media URLs; can list historical cloud reports.]\n\n## Skill Version(s):\n\n1.0.9 (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.9:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.9:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.8: 30 files, 41825 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2743b), SKILL.md (10439b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (151b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1785582516221\n}\n\nFile v1.0.8:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description: <br>\nUses visual AI to identify wet clothing or abnormal excretion in care images or video, helping caregivers respond with timely alerts and structured reports. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nCaregivers and care-operations agents use this skill to analyze uploaded or URL-based care images and video for wet-clothing or excretion alerts, generate structured care reports, and retrieve cloud-stored report history for follow-up. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can send sensitive patient, infant, or caregiver images and video URLs to the publisher's cloud service. <br>\nMitigation: Use only with explicit consent, authorized caregiver access, and confirmed retention, deletion, and access-control terms for real care data. <br>\nRisk: The skill can create or reuse a local identity and persist local tokens. <br>\nMitigation: Deploy in a controlled environment, audit local identity and token storage, and rotate or remove credentials when access is no longer needed. <br>\nRisk: Historical care reports are stored and retrieved from the cloud. <br>\nMitigation: Restrict report retrieval to authorized caregivers, define report retention expectations, and review access logging before production use. <br>\nRisk: Visual analysis may be wrong or incomplete for care decisions. <br>\nMitigation: Treat alerts and reports as caregiver-support signals and require human confirmation before clinical or hygiene actions are delayed or escalated. <br>\n\n\n## Reference(s): <br>\n- [Incontinence Alert Analysis API Documentation](artifact/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown reports or JSON, with shell commands for execution] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Supports local file or URL inputs, basic/standard/json detail levels, optional report output files, and cloud history listing.] <br>\n\n## Skill Version(s): <br>\n1.0.8 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 30 files, 41876 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2899b), SKILL.md (10438b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (151b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1783891465445\n}\n\nFile v1.0.7:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description: <br>\nAutomatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal caregivers and care operations teams use this skill to analyze care images, videos, or media URLs for wet clothing, abnormal excretion, alert level, care suggestions, and report history. It is intended as a caregiver alert and record-review aid, not a substitute for professional medical judgment or manual inspection. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive care images, videos, media URLs, identity metadata, and report history may be sent to the publisher cloud service. <br>\nMitigation: Use only with consent and authorization, restrict access to caregivers who need the data, and confirm privacy and compliance requirements before deployment. <br>\nRisk: The skill silently handles account identity and tokens and can retrieve cloud history for the current identity. <br>\nMitigation: Review local token storage and automatic report-history access before installation, and run it only in workspaces where that identity behavior is acceptable. <br>\nRisk: Visual analysis can be wrong due to lighting, angle, clothing thickness, image quality, or scene ambiguity. <br>\nMitigation: Require caregiver confirmation before acting on alerts and do not use the output as a replacement for professional medical judgment or manual checks. <br>\n\n\n## Reference(s): <br>\n- [Incontinence Alert Analysis API Documentation](references/api_doc.md) <br>\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Analysis, API Calls, Markdown, JSON, Files, Shell commands] <br>\n**Output Format:** [Markdown or JSON text reports with optional saved output files and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can analyze local media files or media URLs, list cloud report history, and save results when an output path is provided.] <br>\n\n## Skill Version(s): <br>\n1.0.7 (source: evidence release and skill frontmatter) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.7:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.7:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.6: 30 files, 41847 bytes\n\nFiles: references/api_doc.md (2899b), scripts/config.py (707b), scripts/config.yaml (3b), scripts/incontinence_alert_analysis.py (9228b), scripts/skill.py (579b), skill-card.md (2822b), SKILL.md (10438b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (151b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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.incontinence_alert_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频/图片文件路径 | 适用于本地文件分析 |\n| `--url` | 网络媒体 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--user-type` | 护理对象类型，可选值：elderly(失能老人)/bedridden(卧床病人)/infant(婴幼儿)/other，默认 other | 按需填写 |\n| `--detection-mode` | 检测模式，可选值：real-time(实时监控)/regular-check(定时巡查)，默认 real-time | 按需填写 |\n| `--list` | 显示历史失禁提醒检测报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/incontinence_alert_analysis.py`](scripts/incontinence_alert_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 格式，图片支持 jpg/png/jpeg 格式，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供护理参考，不能替代专业医护人员判断和人工检查 |\n| 🔏 隐私合规 | 本工具涉及个人隐私，请严格保密检测记录，仅授权看护人员访问 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1783834646266\n}\n\nFile v1.0.6:references/api_doc.md\n\n# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nAutomatically identifies damp clothing and abnormal excretion in caregiving media, then returns structured alerts, care suggestions, and report links for caregivers. <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>\nCaregivers, care-platform operators, and supporting agents use this skill to analyze local files or media URLs for incontinence-related alerts and to retrieve prior cloud reports. Results are auxiliary care signals and should be confirmed by authorized caregivers rather than treated as a substitute for professional judgment. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive caregiving images, videos, or URLs may be processed by the provider's cloud service. <br>\nMitigation: Use only media the caregiver is authorized to process, avoid unrelated people or scenes, and confirm privacy approval before deployment. <br>\nRisk: The skill silently manages identity, retrieves history, and stores authentication tokens locally with limited user control. <br>\nMitigation: Review workspace data-directory access, token storage, account linkage, and report-history permissions before enabling it for real users. <br>\nRisk: Visual analysis can be wrong or delayed and is not a professional medical judgment. <br>\nMitigation: Require caregiver review of alerts and use the output as an auxiliary prompt for cleaning, changing, or escalation decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-incontinence-alert-analysis) <br>\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Incontinence alert analysis API reference](artifact/references/api_doc.md) <br>\n- [SMYX analysis API reference](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Markdown, JSON, Shell commands, Guidance] <br>\n**Output Format:** [Markdown reports with optional structured JSON and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May upload caregiving media or pass media URLs to the provider cloud service; history lookup returns Markdown tables derived from cloud records.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter says 1.0.7) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能 Owner: smyx-sunjinhui Summary: Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 Tags: latest:1.0.15 Version h","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.incontinence_alert_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json"},{"language":"bash","snippet":"python -m scripts.incontinence_alert_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析失能老人实时监控视频\npython -m scripts.incontinence_alert_analysis --input /path/to/care_video.mp4 --user-type elderly --detection-mode real-time 分析卧床病人巡查图片\npython -m scripts.incontinence_alert_analysis --input /path/to/care_image.jpg --user-type bedridden --detection-mode regular-check 分析婴幼儿监控视频\npython -m scripts.incontinence_alert_analysis --url https://example.com/baby_care.mp4 --user-type infant --detection-mode real-time 显示历史分析报告/显示分析报告清单列表/显示历史护理报告（自动触发关键词：查看历史护理报告、历史报告、护理报告清单等）\npython -m scripts.incontinence_alert_analysis --list\n\n# 输出精简报告\npython -m scripts.incontinence_alert_analysis --input video.mp4 --user-type elderly --detail basic\n\n# 保存结果到文件\npython -m scripts.incontinence_alert_analysis --input image.jpg --user-type bedridden --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"incontinence_alert_analysis\"\ndescription: \"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **智能失禁状态提醒技能** |\n| 🎯 核心目标 | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `INCONTINENCE_ALERT` |\n\nBased on visual AI technology, this capability automatically identifies conditions such as damp clothing or abnormal\nexcretion in disabled seniors, bedridden patients, or infants. By analyzing image texture, reflection characteristics,\nand regional changes, the system monitors body surface and contact area status in real-time. Upon detecting anomalies,\nit immediately pushes notifications to caregivers to facilitate timely cleaning and changing. It is suitable for\nscenarios in nursing homes, home care, and maternal-infant care, effectively reducing the risks of skin eczema, diaper\nrash, and infection, while enhancing nursing quality and response efficiency.\n\n本技能基于视觉AI技术，自动识别失能老人、卧床病人或婴幼儿的衣物潮湿、排泄异常等状况。系统通过分析图像纹理、反射特征及区域变化，实时监测体表与接触面状态，发现异常后第一时间向看护人员推送通知，帮助及时清洁更换。适用于养老机构、居家护理及母婴照护场景，有效降低皮肤湿疹、尿布疹及感染风险，提升护理质量与响应效率。\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过监控摄像头视频/图片进行智能失禁状态识别，自动检测衣物潮湿、排泄异常状况，及时触发预警通知看护人员，提升护理效率\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频/图片分析 |\n| 2 | 衣物潮湿识别 |\n| 3 | 排泄物检测 |\n| 4 | 异常状态预警 |\n| 5 | 护理记录生成 |\n| 6 | 护理提醒建议 |\n\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.incontinence_alert_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.incontinence_alert_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执行本技能分析或历史报告查询时，脚本会"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-incontinence-alert-analysis\",\n  \"version\": \"1.0.15\",\n  \"publishedAt\": 1790659166499\n}"},{"path":"references/api_doc.md","content":"# 智能失禁状态提醒分析 API 文档\n\n## 接口概述\n\n本技能调用云端视觉AI接口，自动识别护理对象衣物潮湿和排泄异常状况，及时提醒看护人员，提升护理质量，减少压疮、红臀等并发症发生。\n\n## 支持识别的异常状态\n\n| 异常类型 | 描述 | 预警级别 |\n|----------|------|----------|\n| 衣物轻微潮湿 | 衣物局部潮湿，未渗透，可安排时间更换 | 🟡 需要关注 |\n| 衣物中度潮湿 | 衣物明显潮湿，需要更换护理用品 | 🟠 需要处理 |\n| 排泄异常 | 明显排泄，需要立即清洁更换 | 🔴 需要立即处理 |\n| 正常干燥 | 衣物干燥，无需处理 | 🟢 正常 |\n\n## 适用人群\n\n| 对象类型 | 特点 |\n|----------|------|\n| 失能老人 | 长期卧床，无法自主表达 |\n| 卧床病人 | 术后康复需要长期卧床 |\n| 婴幼儿 | 无法自主表达，需要及时更换尿布 |\n| 其他 | 其他需要护理的人群 |\n\n## 检测模式\n\n| 模式 | 适用场景 |\n|------|----------|\n| 实时监控 | 24小时持续监测，异常即时报警 |\n| 定时巡查 | 按固定时间间隔拍照检测，节省资源 |\n\n## API 响应字段说明\n\n### 基础信息\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| id | string | 分析记录ID |\n| data.analysis_time | string | 分析时间 |\n| data.person_detection.status | string | 对象检测状态 |\n| data.person_detection.quality_score | int | 画面质量评分 0-100 |\n\n### 诊断结果\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.diagnosis.health_score | int | 整体状况评分 0-100 |\n| data.diagnosis.alert_level | string | 预警等级：normal/warning/alert/emergency |\n| data.diagnosis.damp_clothing | boolean | 是否检测到衣物潮湿 |\n| data.diagnosis.excretion_detected | boolean | 是否检测到排泄 |\n| data.diagnosis.need_change | boolean | 是否需要更换护理用品 |\n| data.diagnosis.clothing_condition | object | 各部位衣物状态 |\n| data.diagnosis.detection_area | object | 各检测区域评估 |\n\n### 警示与建议\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| data.care_warnings | array[string] | 护理警示信息列表 |\n| data.care_suggestions | array[string] | 清洁护理建议列表 |\n\n## 错误码说明\n\n| 错误码 | 说明 |\n|--------|------|\n| 200 | 请求成功 |\n| 400 | 请求参数错误 |\n| 401 | API 鉴权失败 |\n| 413 | 文件大小超出限制 |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误 |\n| 503 | 服务繁忙，请稍后重试 |\n\n## 隐私与伦理提示\n\n1. 本工具仅作为辅助提醒工具，不能替代人工检查和专业护理\n2. 检测结果受光线、角度、衣物厚度等因素影响，可能存在误判\n3. 涉及个人隐私敏感信息，请妥善保管检测记录，仅授权看护人员访问\n4. 发现预警后请及时进行人工确认，避免延误护理"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 Skill: Smart Incontinence Status Alert Skill | 智能失禁状态提醒技能 Owner: smyx-sunjinhui Summary: Automatically identifies wet clothing and abnormal excretion via visual AI. Instantly notifies caregivers to improve care for incontinent elderly, bedridden patients, and infants, reducing skin issues and complications. | 智能失禁状态提醒技能，基于视觉AI自动识别衣物潮湿、排泄异常等状况，第一时间推送通知给看护人员，提升失能老人、卧床病人、婴幼儿的护理质量，减少皮肤问题和并发症 Tags: latest:1.0.15 Version h","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":887,"uniquenessScore":49,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T17:35:28.939Z","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-09T17:35:28.939Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T05:51:07.621Z","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"}]}}}