{"id":"3035c94a-e73a-49a5-92e5-a07b549cf086","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis","name":"Unattended Monitoring Skill | 无人陪伴监测技能","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis","generatedAt":"2026-10-10T06:30:16.233Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T21:28:27.422Z","emptyReason":null},"description":"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 Skill: Unattended Monitoring Skill | 无人陪伴监测技能 Owner: smyx-sunjinhui Summary: Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 Tags: latest:1.0.13 Version history: v1.0.13 | 2026-09-29T06","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-unaccompanied-monitoring-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-unaccompanied-monitoring-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-unaccompanied-monitoring-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:28:27.422Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:28:27.422Z","emptyReason":null},"stars":null,"forks":null,"downloads":1980,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:28:27.422Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T21:28:27.422Z","lastCrawledAt":"2026-10-09T21:28:27.422Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T21:28:27.422Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-09-29T06:47:27.911Z","changelog":"- Updated the skill documentation in SKILL.md with improved version metadata (now 1.0.19). - Removed the redundant skill-card.md file. - Documentation updates include improved version consistency and clearer description of features and usage. - No changes to code or core functionality.","fileCount":31,"zipByteSize":38802},{"version":"1.0.12","createdAt":"2026-09-22T12:37:37.429Z","changelog":"- Updated skill version from 1.0.16 to 1.0.17 in SKILL.md. - Removed the redundant skill-card.md documentation file. - Updated and refined configuration settings in config.yaml. - Minor documentation restructuring and adjustments in SKILL.md for clarity.","fileCount":31,"zipByteSize":38894},{"version":"1.0.11","createdAt":"2026-09-09T07:24:33.385Z","changelog":"- Updated version numbers in documentation from 1.0.14 to 1.0.16. - Removed the file: skill-card.md. - Minor documentation edits and metadata updates in SKILL.md; functionality and instructions remain unchanged.","fileCount":31,"zipByteSize":38921},{"version":"1.0.10","createdAt":"2026-08-24T04:03:28.731Z","changelog":"- Updated SKILL.md version to 1.0.14 and revised documentation. - Removed the skill-card.md file. - No functional changes to code; this release is document-focused. - Ensured consistency in versioning and cleaned up resources.","fileCount":31,"zipByteSize":38820},{"version":"1.0.9","createdAt":"2026-08-19T09:32:28.798Z","changelog":"- Removed the skill-card.md file from the project. - No changes to functionality or user-facing documentation. - This update reduces redundant documentation files.","fileCount":31,"zipByteSize":38983},{"version":"1.0.8","createdAt":"2026-08-16T04:59:30.908Z","changelog":"- Updated skill version from 1.0.11 to 1.0.13 in documentation. - Removed the redundant \"skill-card.md\" file. - Made minor updates in SKILL.md, including versioning and consistency improvements. - No changes to core features or logic.","fileCount":31,"zipByteSize":38908},{"version":"1.0.7","createdAt":"2026-08-05T13:05:41.936Z","changelog":"- Updated version to 1.0.11. - SKILL.md updated with version and minor content changes. - Removed skill-card.md file.","fileCount":31,"zipByteSize":38935},{"version":"1.0.6","createdAt":"2026-07-29T14:05:30.553Z","changelog":"- Updated skill version to 1.0.10. - SKILL.md: Updated documentation, including version number and maintenance of all usage, workflow, and parameter details. - Removed outdated skill-card.md file.","fileCount":31,"zipByteSize":38896}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-unaccompanied-monitoring-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T06:30:16.229Z"}},"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-unaccompanied-monitoring-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-unaccompanied-monitoring-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T21:28:27.422Z","emptyReason":null},"readme":"Skill: Unattended Monitoring Skill | 无人陪伴监测技能\n\nOwner: smyx-sunjinhui\n\nSummary: Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-09-29T06:47:27.911Z | auto\n\n- Updated the skill documentation in SKILL.md with improved version metadata (now 1.0.19).\n- Removed the redundant skill-card.md file.\n- Documentation updates include improved version consistency and clearer description of features and usage.\n- No changes to code or core functionality.\n\nv1.0.12 | 2026-09-22T12:37:37.429Z | auto\n\n- Updated skill version from 1.0.16 to 1.0.17 in SKILL.md.\n- Removed the redundant skill-card.md documentation file.\n- Updated and refined configuration settings in config.yaml.\n- Minor documentation restructuring and adjustments in SKILL.md for clarity.\n\nv1.0.11 | 2026-09-09T07:24:33.385Z | auto\n\n- Updated version numbers in documentation from 1.0.14 to 1.0.16.\n- Removed the file: skill-card.md.\n- Minor documentation edits and metadata updates in SKILL.md; functionality and instructions remain unchanged.\n\nv1.0.10 | 2026-08-24T04:03:28.731Z | auto\n\n- Updated SKILL.md version to 1.0.14 and revised documentation.\n- Removed the skill-card.md file.\n- No functional changes to code; this release is document-focused.\n- Ensured consistency in versioning and cleaned up resources.\n\nv1.0.9 | 2026-08-19T09:32:28.798Z | auto\n\n- Removed the skill-card.md file from the project.\n- No changes to functionality or user-facing documentation.\n- This update reduces redundant documentation files.\n\nv1.0.8 | 2026-08-16T04:59:30.908Z | auto\n\n- Updated skill version from 1.0.11 to 1.0.13 in documentation.\n- Removed the redundant \"skill-card.md\" file.\n- Made minor updates in SKILL.md, including versioning and consistency improvements.\n- No changes to core features or logic.\n\nv1.0.7 | 2026-08-05T13:05:41.936Z | auto\n\n- Updated version to 1.0.11.\n- SKILL.md updated with version and minor content changes.\n- Removed skill-card.md file.\n\nv1.0.6 | 2026-07-29T14:05:30.553Z | auto\n\n- Updated skill version to 1.0.10.\n- SKILL.md: Updated documentation, including version number and maintenance of all usage, workflow, and parameter details.\n- Removed outdated skill-card.md file.\n\nv1.0.5 | 2026-07-18T10:05:26.915Z | auto\n\n- Updated version from 1.0.6 to 1.0.9 in SKILL.md.\n- Documentation improvements and expanded usage notes in SKILL.md.\n- Minor script/config adjustments and utility updates.\n- Removed redundant file: skill-card.md.\n\nv1.0.4 | 2026-07-01T03:43:24.367Z | auto\n\n- Updated skill version to 1.0.6.\n- Improved or modified logic in scripts/dao.py and scripts/util.py.\n- Removed outdated documentation file skill-card.md.\n- Updated documentation and usage instructions in SKILL.md.\n\nv1.0.3 | 2026-06-26T04:10:43.527Z | auto\n\n- Major refactor: Skill structure modularized for clarity and maintainability.\n- All Face Analysis–related files removed; new module `smyx_analysis` introduced.\n- Internal user identity handling fully automated; user no longer required or prompted to provide open-id or personal identification.\n- Cloud-only history report query strictly enforced, disallowing local or manual report lookups.\n- Documentation and usage guide in SKILL.md substantially rewritten for clearer process, stricter requirements, and improved usability.\n- Dependencies, script paths, and demo examples updated to reflect new modular design.\n\nv1.0.2 | 2026-05-14T11:17:40.645Z | auto\n\n- Updated configuration files: added/modified config-dev.yaml and config-test.yaml for improved environment management.\n- Refactored config.py to better handle configuration loading and logic.\n- Added utility enhancements in util.py for more robust operations.\n- No changes to core skill logic or user-facing functionality.\n\nv1.0.1 | 2026-05-10T04:39:37.849Z | auto\n\n- Updated documentation in SKILL.md with more detailed instructions and constraints.\n- Clarified the open-id retrieval and validation process, emphasizing priority rules and user prompts.\n- Added and refined requirements for mandatory cloud data retrieval—local memory is strictly forbidden.\n- Ensured examples and output formatting guidelines for reporting are explicit and consistent.\n- No logic or feature changes indicated in source scripts; updates mainly improve documentation and configuration clarity.\n\nv1.0.0 | 2026-04-18T03:54:01.482Z | auto\n\n- Initial release of the unaccompanied-monitoring-analysis skill for elderly remote care.\n- Monitors home interactions using sensors and video to detect prolonged isolation, automatically sending care reminders to family or community staff.\n- Enforces strict memory and data acquisition rules: retrieves historical reports only from the cloud, never from local files or long-term memory.\n- Requires open-id identification through a prioritized configuration file check; user prompt if not found.\n- Provides structured analysis reports, customizable alert thresholds, and Markdown-formatted history tables with direct report links.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 38802 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2337b), SKILL.md (10130b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.19\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790664447911\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAnalyzes home-monitoring images or video for prolonged periods without interaction or visitors and provides care reports and reminders for families of older adults living alone.\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\nFamilies and caregivers use the skill to review home-monitoring footage for extended periods without visitors or interaction, receive care-oriented analysis, and access account-linked historical reports. Results supplement, rather than replace, in-person checks and professional care.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive home-monitoring images or videos may be uploaded to Life Emergence cloud services.\n\nMitigation: Confirm the monitored person and family understand the upload before analyzing footage; share only necessary media.\n\nRisk: Reports are linked to an account that may be created or reused without an explicit user prompt, and tokens may be stored locally.\n\nMitigation: Explain account linkage before use, restrict access to the workspace data directory, and obtain confirmation before looking up report history.\n\nRisk: Monitoring results may be mistaken for a substitute for direct welfare checks.\n\nMitigation: Treat alerts as care reminders and confirm concerns through in-person checks or professional care.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis)\n- [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, Guidance]\n\n**Output Format:** [Structured analysis text and Markdown report links or history tables]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Optional JSON detail level and saved result file]\n\n## Skill Version(s):\n\n1.0.13 (source: server-resolved ClawHub release; bundled SKILL.md states 1.0.19)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 38894 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2539b), SKILL.md (10130b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790080657429\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nDetermines when elderly people living alone have no interaction or visitors for extended periods, and pushes care reminders to family members for remote elder-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, family members, and elder-care operators use this skill to analyze home monitoring images or video for prolonged lack of interaction or visitors and to retrieve historical monitoring reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Home monitoring footage and report history are processed through cloud APIs.\n\nMitigation: Install and run the skill only with authorization from the monitored person or legal guardian, and confirm that cloud processing is acceptable for the care setting.\n\nRisk: The skill can create or reuse an identity and store service tokens in the workspace data directory.\n\nMitigation: Review workspace data storage before deployment, restrict access to the workspace, and rotate or remove stored tokens if the skill is no longer used.\n\nRisk: Automated unattended-monitoring alerts can miss events or produce misleading care status.\n\nMitigation: Use the reports as care reminders only and keep human check-ins or professional care procedures as the primary safety mechanism.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Unattended monitoring API documentation](artifact/references/api_doc.md)\n- [Shared analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown or JSON-like text with report links; optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local image/video files, public media URLs, historical report listing, detail-level selection, and optional output file paths.]\n\n## Skill Version(s):\n\n1.0.12 (source: server release metadata; artifact 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.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 38921 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2554b), SKILL.md (10130b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1788938673385\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\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\nDetermines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home.\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, family members, and elder-care platform operators use this skill to analyze home monitoring images or videos for prolonged absence of interaction or visitors and to retrieve historical monitoring reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Private monitoring images or videos may be sent to the Lifeemergence backend.\n\nMitigation: Use only with explicit consent and approved media sources; confirm the configured backend endpoint before execution.\n\nRisk: The skill can create or reuse an internal identity and store authentication tokens in the workspace.\n\nMitigation: Run in a controlled workspace, review local credential storage, and rotate or remove stored tokens when access is no longer needed.\n\nRisk: Default or helper configuration may allow HTTP or non-production API endpoints.\n\nMitigation: Restrict outbound requests to approved HTTPS production hosts before deployment.\n\nRisk: Monitoring results are care reminders and may be incorrect or incomplete.\n\nMitigation: Use results as prompts for human follow-up, not as a replacement for direct visits, emergency response, or professional care.\n\n## Reference(s):\n\n- [API 接口文档](artifact/references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [analysis, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown text with structured JSON analysis and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can output current analysis results, saved result files, or historical report listings from the Lifeemergence API.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release evidence; artifact frontmatter reports 1.0.16)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 31 files, 38820 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2327b), SKILL.md (10130b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (158b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787544208731\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes home monitoring images, videos, or URLs to detect prolonged periods without interaction or visitors for elderly people living alone and can generate care reminders and report links for family 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\nExternal caregivers, family members, and elder-care service teams use this skill to analyze fixed-view home monitoring media for prolonged isolation signals and retrieve historical unattended-monitoring reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill processes household monitoring images, videos, URLs, and identity-linked report requests through remote APIs.\n\nMitigation: Confirm monitored-person consent, report storage location, reminder recipients, and endpoint scope before deployment.\n\nRisk: Bundled configuration evidence includes development and private-network endpoint defaults.\n\nMitigation: Review and configure approved production API endpoints and credentials before use.\n\nRisk: Automated unattended-monitoring analysis may be incomplete or incorrect and is not a substitute for direct care.\n\nMitigation: Treat outputs as care prompts that require human follow-up and professional judgment.\n\n## Reference(s):\n\n- [API interface documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, guidance]\n\n**Output Format:** [Markdown text with optional JSON detail and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May write result content to a user-specified output file; historical report lists are presented from remote API results.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact frontmatter reports 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.10:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.10:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.9: 31 files, 38983 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2737b), SKILL.md (10130b), 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 (157b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787131948798\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nDetermines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and care-operations teams use this skill to analyze home monitoring media for prolonged lack of interaction or visitors and to produce care reminders, structured results, historical report listings, and report links for family or community follow-up.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Private home monitoring images, videos, or URLs may be sent to the configured remote backend.\n\nMitigation: Use only media for which the monitored person and anyone captured on camera have given appropriate consent, and verify the backend endpoint and retention policy before installation.\n\nRisk: The skill can silently create or reuse a local workspace identity and authentication tokens.\n\nMitigation: Review identity and token handling in the target workspace before deployment, and run the skill only in an environment where that automatic association is expected.\n\nRisk: Automated unattended-care analysis can miss events or generate misleading reassurance or alerts.\n\nMitigation: Treat results as care-reminder support only, and keep human check-ins, professional care processes, and emergency procedures in place.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API interface documentation](references/api_doc.md)\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown and JSON text from CLI/API responses, including structured analysis results, historical report listings, recommendations, and report export links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local media files or media URLs; local file validation is configured for mp4, avi, and mov files up to 10 MB.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release evidence; artifact SKILL.md frontmatter lists 1.0.13)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.9:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.9:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.8: 31 files, 38908 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2578b), SKILL.md (10130b), 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 (157b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786856370908\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nDetermines whether an elderly person living alone has gone without interaction or visitors for an extended period and produces care reminders for remote-care workflows.\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\nCare teams, family-support workflows, and agents that process home monitoring images or videos use this skill to request unattended-monitoring analysis, review structured care-alert reports, and retrieve historical monitoring reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive home monitoring images or videos may be sent to a configured cloud service.\n\nMitigation: Use only with clear consent from the monitored person and confirm the intended API endpoints before installation or execution.\n\nRisk: The skill may automatically associate account or identity data and store reusable tokens in the workspace data area.\n\nMitigation: Review the data-handling behavior, restrict workspace access, and clear stored tokens when the skill is no longer needed.\n\nRisk: Security review classified the release as suspicious because sensitive media and session data are handled with automatic cloud and local persistence behavior.\n\nMitigation: Install only after a manual security review confirms that the cloud service, persistence behavior, and operational consent model are acceptable.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [API Interface Documentation](references/api_doc.md)\n- [Common Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown reports and tables, JSON detail output, and optional saved result files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local file paths, public media URLs, history-list retrieval, output detail selection, and optional result-file output.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter reports 1.0.13)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 31 files, 38935 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2721b), SKILL.md (10130b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (157b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785935141936\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nDetermines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home.\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, family members, and elder-care operators use this skill to analyze home monitoring images or videos for prolonged lack of interaction or visitors. Agents can also query vendor-hosted historical reports and return care reminders, report summaries, and report links.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Private home monitoring images, videos, report queries, and identity-linked request metadata may be sent to vendor cloud services.\n\nMitigation: Confirm consent from monitored people and family recipients before use, and use the skill only for the intended elder-care monitoring scenario.\n\nRisk: Cloud report history, automatic identity creation, and stored tokens may expose sensitive care records if storage or access controls are not reviewed.\n\nMitigation: Verify where reports and tokens are stored, who can access them, and how they are removed before enabling the skill in a real care workflow.\n\nRisk: The security summary reports too little user-facing control or privacy disclosure for sensitive elder-care footage.\n\nMitigation: Run human privacy and security review before deployment and avoid analyzing unrelated private footage.\n\n## Reference(s):\n\n- [Unattended Monitoring Skill on ClawHub](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [API Interface Documentation](references/api_doc.md)\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown reports and tables, JSON API results, and shell commands for analysis or report lookup.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include report links, care recommendations, and historical report rows returned from vendor cloud services.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release metadata; artifact frontmatter reports 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.7:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.7:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.6: 31 files, 38896 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2619b), SKILL.md (10130b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (157b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785333930553\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nAnalyzes elderly-home monitoring images or videos for prolonged periods without interaction or visitors and returns structured monitoring reports, suggestions, and report links. <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, family-care platforms, and care-operations teams can use this skill to submit monitoring media or URLs, review unattended/visitor activity analysis, and query prior reports. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive elderly-home monitoring images, videos, or URLs may be sent to configured Life Emergence remote services. <br>\nMitigation: Install only in deployments approved to share this media with those services, and review data handling, retention, and access controls before use. <br>\nRisk: The skill silently creates or reuses a user identity and stores tokens or report associations in the workspace data directory. <br>\nMitigation: Run it in a controlled workspace, protect stored credentials and report data, and clear workspace state when the identity should not persist. <br>\nRisk: Family-reminder behavior is claimed by the release but is not proven by the local artifact alone. <br>\nMitigation: Verify the backend and deployment controls separately before relying on alerts for care response or safety-critical workflows. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API interface documentation](artifact/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON analysis output with optional report links and saved output files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Accepts local image/video file paths or media URLs; history lookup returns prior report information from the configured remote service.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: ClawHub release metadata; artifact frontmatter states 1.0.10) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.5: 31 files, 39016 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2989b), SKILL.md (10129b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (157b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784369126915\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nDetermines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. <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>\nCare teams, family caregivers, and agents supporting elder-care workflows use this skill to analyze home monitoring images, videos, or URLs for extended periods without interaction or visitors and to retrieve related cloud report history. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Private elder-care photos, videos, or supplied URLs are sent to LifeEmergence cloud services for analysis. <br>\nMitigation: Use only with explicit consent from monitored people and caregivers, and verify the provider's data handling, retention, and access policies before deployment. <br>\nRisk: Cloud report history can be queried and may reveal sensitive home-care monitoring records. <br>\nMitigation: Limit installation and use to trusted agents and accounts with a legitimate care workflow need, and review access controls for report history before enabling the skill. <br>\nRisk: The skill may silently create or reuse an identity and store tokens locally. <br>\nMitigation: Avoid use where account binding must be explicitly confirmed by the user, and review local token storage and identity reuse behavior before production use. <br>\nRisk: Analysis results are care reminders and may be incomplete or inaccurate. <br>\nMitigation: Treat outputs as decision support only and require human follow-up for elder safety, urgent care, or professional nursing decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-unaccompanied-monitoring-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Unaccompanied monitoring API documentation](references/api_doc.md) <br>\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON text with structured analysis results, report-list output, and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can optionally write the returned report text to a local output file.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter says 1.0.9) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.5:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.5:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.4: 31 files, 38599 bytes\n\nFiles: references/api_doc.md (681b), scripts/__init__.py (31b), scripts/config.py (664b), scripts/config.yaml (3b), scripts/skill.py (573b), scripts/unaccompanied_monitoring_analysis.py (3226b), skill-card.md (2786b), SKILL.md (10129b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (22801b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (157b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 📖 监测说明 | Monitoring Notes\n- 分析监控画面中人员出现情况，统计连续无互动/无来访时长\n- 支持设置提醒阈值（默认超过 24 小时无人推送给家属提醒）\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.unaccompanied_monitoring_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--list` | 显示历史无人陪伴监测分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/unaccompanied_monitoring_analysis.py`](scripts/unaccompanied_monitoring_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持格式：jpg/jpeg/png/mp4/avi/mov，最大 10MB |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供关怀提醒参考，不能替代人工探望和专业护理 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1782877404367\n}\n\nFile v1.0.4:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析\n\nFile v1.0.4:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.4:scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nDetermines when elderly people living alone have no interaction or visitors for extended periods and pushes care reminders for remote home-care scenarios. <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 care teams, families, and developers use this skill to analyze home monitoring images, videos, or media URLs for long periods without interaction or visitors, then receive structured reports, recommendations, and report links. It can also retrieve cloud-hosted historical monitoring reports for the internally resolved account. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Monitoring footage, media URLs, and related account metadata are sent to the LifeEmergence cloud service for analysis. <br>\nMitigation: Use the skill only with authorized monitoring data, confirm consent and retention expectations, and verify who can access generated reports before deployment. <br>\nRisk: Historical report retrieval can expose cloud-hosted monitoring reports for the internally resolved account. <br>\nMitigation: Restrict use of report-listing commands to authorized operators and confirm the account context before retrieving history. <br>\nRisk: The skill can create or reuse an internal identity and persist tokens in local workspace storage. <br>\nMitigation: Protect the workspace data directory, remove local tokens before sharing the environment, and rotate or revoke tokens when access changes. <br>\n\n\n## Reference(s): <br>\n- [API interface 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-unaccompanied-monitoring-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json] <br>\n**Output Format:** [Markdown text with structured JSON analysis content, report links, or a Markdown-formatted history list.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [The skill can print results to stdout or write them to a user-selected output file; history retrieval is sourced from the cloud API.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; artifact frontmatter reports 1.0.6) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Unattended Monitoring Skill | 无人陪伴监测技能 Owner: smyx-sunjinhui Summary: Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 Tags: latest:1.0.13 Version history: v1.0.13 | 2026-09-29T06","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.unaccompanied_monitoring_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json"},{"language":"bash","snippet":"python -m scripts.unaccompanied_monitoring_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地监控图片\npython -m scripts.unaccompanied_monitoring_analysis --input /path/to/monitor.jpg 分析网络监控视频\npython -m scripts.unaccompanied_monitoring_analysis --url https://example.com/monitor.mp4 显示历史监测报告/显示监测报告清单列表/显示历史无人陪伴（自动触发关键词：查看历史监测报告、历史报告、监测报告清单等）\npython -m scripts.unaccompanied_monitoring_analysis --list\n\n# 输出精简报告\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.unaccompanied_monitoring_analysis --input monitor.jpg --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"unaccompanied-monitoring-analysis\"\ndescription: \"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景\"\nversion: \"1.0.19\"\nlicense: \"MIT-0\"\n---\n\n# 👤 Unattended Monitoring Skill | 无人陪伴监测技能\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **无人陪伴监测技能** |\n| 🎯 核心目标 | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `UNACCOMPANIED_MONITORING` |\n\nDesigned specifically for the remote care of elderly individuals living alone, this feature leverages intelligent\nsensing and behavior analysis algorithms to monitor social interactions and visitor activity within the home in\nreal-time. By synthesizing multimodal data from door/window sensors, infrared detectors, and video analytics, the system\naccurately identifies periods of isolation where no family or visitor interaction occurs for a prolonged duration (with\ncustomizable thresholds, e.g., 24/48 hours). Once triggered, the system automatically generates a care alert, sending\nnotifications to family members via APP push, SMS, or phone calls, while also supporting linkage with community service\nstaff to ensure timely attention. Ideal for solitary elderly households and community elderly care platforms, this\nfeature provides robust data support and an early warning mechanism for effective remote caregiving.\n\n本功能专为居家独居老人的远程关怀场景设计，基于智能感知与行为分析算法，实时监测老人居所内的人员互动与来访情况。系统通过门窗传感器、红外探测及视频分析等多模态数据，精准识别长时间（可自定义阈值，如24/48小时）无家属或访客互动的状态。一旦触发监测条件，系统将自动生成关怀提醒，通过APP推送、短信或电话等方式发送至家属终端，同时支持联动社区服务人员，确保老人获得及时关注。适用于独居老人家庭、社区养老服务平台，为远程关怀提供数据支撑与预警机制\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\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供监控画面需要检测是否长时间无人陪伴时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要无人陪伴监测、独居关怀时，提及无人陪伴、独居监测、老人关怀、来访统计等关键词，并且上传了监控图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史监测报告、无人陪伴报告清单、监测报告列表、查询历史监测报告、显示所有监测报告、无人陪伴分析报告，查询无人陪伴监测分析报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.unaccompanied_monitoring_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.unaccompanied_monitoring_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Ma"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-unaccompanied-monitoring-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790664447911\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放无人陪伴监测分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_UNACCOMPANIED_MONITORING_ANALYSIS` - 开放平台无人陪伴监测分析"},{"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":"Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 Skill: Unattended Monitoring Skill | 无人陪伴监测技能 Owner: smyx-sunjinhui Summary: Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能，判定独居老人长时间无人互动来访，主动推送关怀提醒给家属，适用于居家独居老人远程关怀场景 Tags: latest:1.0.13 Version history: v1.0.13 | 2026-09-29T06","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":912,"uniquenessScore":51,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T21:28:27.422Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T21:28:27.422Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T06:30:16.233Z","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"}]}}}