{"id":"3fad873d-0c40-45ca-9b92-278d22ae2882","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis","name":"Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis","generatedAt":"2026-10-10T07:12:46.297Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:41:50.567Z","emptyReason":null},"description":"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-litter-box-usage-monitor-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-litter-box-usage-monitor-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-litter-box-usage-monitor-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":64,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:41:50.567Z","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-10T04:41:50.567Z","emptyReason":null},"stars":null,"forks":null,"downloads":1676,"packageName":null,"latestVersion":"1.0.11","tractionLabel":"1.7K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:41:50.566Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T04:41:50.567Z","lastCrawledAt":"2026-10-10T04:41:50.566Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T04:41:50.566Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.11","createdAt":"2026-09-30T14:05:28.336Z","changelog":"- Updated SKILL.md to reflect new version and maintained accurate feature documentation. - Bumped version from 1.0.15 to 1.0.17 in SKILL.md. - Removed the redundant skill-card.md file. - No changes to core features or user workflow. - Documentation now better matches current skill structure and resource indexing.","fileCount":31,"zipByteSize":39038},{"version":"1.0.10","createdAt":"2026-09-25T08:47:26.048Z","changelog":"- Updated skill version to 1.0.15 - SKILL.md: Version and metadata updated; content remains functionally equivalent with improved clarity and formatting - Removed: Deprecated skill-card.md file - Minor configuration update in skills/smyx_common/scripts/config.yaml","fileCount":31,"zipByteSize":39075},{"version":"1.0.9","createdAt":"2026-08-30T08:37:29.692Z","changelog":"smyx-litter-box-usage-monitor-analysis 1.0.9 Changelog - Updated documentation in SKILL.md for clarity and accuracy. - Removed obsolete skill-card.md file. - No code or functional changes; documentation and resource references only.","fileCount":31,"zipByteSize":39325},{"version":"1.0.8","createdAt":"2026-08-19T18:37:58.015Z","changelog":"smyx-litter-box-usage-monitor-analysis 1.0.8 - Updated documentation (SKILL.md) with revised version info and minor content changes. - Modified configuration file (config.yaml) with updates for this release. - Removed the skill-card.md auxiliary documentation file.","fileCount":31,"zipByteSize":39501},{"version":"1.0.7","createdAt":"2026-08-13T17:48:37.498Z","changelog":"- Updated the version to 1.0.10. - Documentation refreshed in SKILL.md; revised version, no content changes to logic or features. - Removed obsolete file: skill-card.md. - No changes to functionality or scripts; documentation maintenance only.","fileCount":31,"zipByteSize":39233},{"version":"1.0.6","createdAt":"2026-08-06T02:44:29.179Z","changelog":"- Updated version to 1.0.9 in SKILL.md. - Made minor metadata adjustments in SKILL.md. - Removed redundant file: skill-card.md. - No changes to core logic or usage instructions.","fileCount":31,"zipByteSize":39308},{"version":"1.0.5","createdAt":"2026-07-27T12:42:30.698Z","changelog":"- Updated version to 1.0.7 in SKILL.md to reflect latest release. - Removed the file skill-card.md from the project. - No changes made to core functionality or workflow. - Documentation and usage instructions in SKILL.md remain consistent with previous versions.","fileCount":31,"zipByteSize":39260},{"version":"1.0.4","createdAt":"2026-07-19T04:12:27.569Z","changelog":"Version 1.0.5 - Updated version number in documentation. - Removed deprecated skill-card.md file. - SKILL.md updated for clarity and maintenance. - No changes to core logic or user-facing workflow.","fileCount":31,"zipByteSize":39466}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-litter-box-usage-monitor-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-litter-box-usage-monitor-analysis` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/smyx-sunjinhui/smyx-litter-box-usage-monitor-analysis before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-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-10T07:12:46.293Z"}},"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-litter-box-usage-monitor-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-litter-box-usage-monitor-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:41:50.567Z","emptyReason":null},"readme":"Skill: Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n\nOwner: smyx-sunjinhui\n\nSummary: Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\nTags: latest:1.0.11\n\nVersion history:\n\nv1.0.11 | 2026-09-30T14:05:28.336Z | auto\n\n- Updated SKILL.md to reflect new version and maintained accurate feature documentation.\n- Bumped version from 1.0.15 to 1.0.17 in SKILL.md.\n- Removed the redundant skill-card.md file. \n- No changes to core features or user workflow.\n- Documentation now better matches current skill structure and resource indexing.\n\nv1.0.10 | 2026-09-25T08:47:26.048Z | auto\n\n- Updated skill version to 1.0.15\n- SKILL.md: Version and metadata updated; content remains functionally equivalent with improved clarity and formatting\n- Removed: Deprecated skill-card.md file\n- Minor configuration update in skills/smyx_common/scripts/config.yaml\n\nv1.0.9 | 2026-08-30T08:37:29.692Z | auto\n\nsmyx-litter-box-usage-monitor-analysis 1.0.9 Changelog\n\n- Updated documentation in SKILL.md for clarity and accuracy.\n- Removed obsolete skill-card.md file.\n- No code or functional changes; documentation and resource references only.\n\nv1.0.8 | 2026-08-19T18:37:58.015Z | auto\n\nsmyx-litter-box-usage-monitor-analysis 1.0.8\n\n- Updated documentation (SKILL.md) with revised version info and minor content changes.\n- Modified configuration file (config.yaml) with updates for this release.\n- Removed the skill-card.md auxiliary documentation file.\n\nv1.0.7 | 2026-08-13T17:48:37.498Z | auto\n\n- Updated the version to 1.0.10.\n- Documentation refreshed in SKILL.md; revised version, no content changes to logic or features.\n- Removed obsolete file: skill-card.md.\n- No changes to functionality or scripts; documentation maintenance only.\n\nv1.0.6 | 2026-08-06T02:44:29.179Z | auto\n\n- Updated version to 1.0.9 in SKILL.md.\n- Made minor metadata adjustments in SKILL.md.\n- Removed redundant file: skill-card.md. \n- No changes to core logic or usage instructions.\n\nv1.0.5 | 2026-07-27T12:42:30.698Z | auto\n\n- Updated version to 1.0.7 in SKILL.md to reflect latest release.\n- Removed the file skill-card.md from the project.\n- No changes made to core functionality or workflow.\n- Documentation and usage instructions in SKILL.md remain consistent with previous versions.\n\nv1.0.4 | 2026-07-19T04:12:27.569Z | auto\n\nVersion 1.0.5\n\n- Updated version number in documentation.\n- Removed deprecated skill-card.md file.\n- SKILL.md updated for clarity and maintenance.\n- No changes to core logic or user-facing workflow.\n\nv1.0.3 | 2026-07-06T14:38:26.772Z | auto\n\nv1.0.4\n\n- Updated version number to 1.0.4 in SKILL.md.\n- No functional or content changes; documentation version only.\n\nv1.0.2 | 2026-07-02T06:54:31.273Z | auto\n\n- Internal Python scripts updated: changes in dao.py and util.py.\n- Documentation cleanup: removed skill-card.md file.\n- No changes to user-facing functionality or skill description.\n- Version bump to 1.0.2.\n\nv1.0.1 | 2026-06-28T11:18:25.460Z | auto\n\n- Revamped privacy and identity handling: all user identity parameters are now processed internally and never exposed or requested from the user.\n- Updated documentation for clearer, more structured tasks and restrictions, including explicit workflow, capabilities, and output formats.\n- Strengthened historical report list query: now strictly requires cloud API usage; local/manual/long-term memory fetching is strictly prohibited.\n- Added license information and refined sample usage commands.\n- Streamlined configuration and demo sections for better user and developer clarity.\n\nv1.0.0 | 2026-05-22T17:31:30.504Z | auto\n\nsmyx-litter-box-usage-monitor-analysis v1.0.0\n\n- Initial release: analyze video of litter box areas to detect individual cat usage events (entries/exits), daily frequency, and per-visit duration.\n- Compares current statistics to historical baseline and issues early-warning alerts for significant behavior changes related to urinary health (e.g., cystitis, obstruction).\n- Supports multi-cat environments with individual tracking; automatically generates structured reports and usage history.\n- Strict open-id handling rules for security and cloud API access; guides users if open-id is missing.\n- Bilingual documentation and outputs provided (English and Chinese).\n- No medical diagnosis is provided—alerts are based strictly on behavioral statistics.\n\nArchive index:\n\nArchive v1.0.11: 31 files, 39038 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (2020b), SKILL.md (12237b), 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.11:SKILL.md\n\n---\nname: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790777128336\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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: prod\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes litter-box video to track each cat's visit frequency and duration, compare them with historical patterns, and flag behavioral changes without providing a medical diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners, catteries, veterinary teams, and boarding staff use litter-box video to review individual cats' visit patterns and receive behavioral alerts; the results are not veterinary diagnoses.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Private pet-monitoring videos or URLs are sent to an external cloud service.\n\nMitigation: Confirm the provider's retention, deletion, account creation, and report-access terms before submitting real household, clinic, or boarding footage.\n\nRisk: Automatically reused local identities and stored cloud tokens can expose private reports in shared workspaces.\n\nMitigation: Avoid shared or multi-user workspaces until identity isolation is fixed; protect workspace access and stored tokens.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-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, JSON, Files]\n\n**Output Format:** [Structured analysis report or Markdown history table, with optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include behavioral alerts, suggestions, and report links.]\n\n## Skill Version(s):\n\n1.0.11 (source: ClawHub release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39075 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (2183b), SKILL.md (12237b), 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.10:SKILL.md\n\n---\nname: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1790326046048\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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: prod\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes litter-box video to summarize each cat's visit frequency and duration, compare activity with historical patterns, and flag behavior changes for veterinary follow-up without making a diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners, catteries, boarding facilities, and veterinary staff use litter-box video to review visit patterns, spot unusual changes, and access prior reports. Alerts are behavioral indicators, not medical diagnoses.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet or home video may be sent to a cloud service.\n\nMitigation: Use only with informed user consent and an acceptable cloud data-retention and deletion policy.\n\nRisk: Persistent identities and tokens may expose or mix private report history in shared workspaces.\n\nMitigation: Use isolated workspaces per user and review identity separation and token handling before enabling historical reports.\n\nRisk: Behavioral alerts may be mistaken for medical diagnoses.\n\nMitigation: Present findings as monitoring signals and refer concerning changes to a veterinarian.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis)\n- [Litter-box analysis API reference](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Behavioral analysis report or historical-report list, with optional JSON and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Reports may include per-cat visit frequency, duration, trend alerts, and follow-up guidance.]\n\n## Skill Version(s):\n\n1.0.10 (source: server-resolved ClawHub release)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.10:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.10:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.9: 31 files, 39325 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (2741b), SKILL.md (12237b), 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: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1788079049692\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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\nAnalyzes litter-box area video or image inputs to estimate individual cat entry and exit events, daily usage frequency, per-visit duration, historical-baseline changes, and behavior-statistics-based urinary health alerts without providing a medical diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, developers, and operators in multi-cat homes, catteries, veterinary inpatient wards, or boarding centers use this skill to analyze litter-box footage, produce structured usage reports, and surface behavior-statistics-based urinary health alerts for follow-up review.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Litter-box videos or URLs may be sent to a remote service.\n\nMitigation: Use only media that is appropriate for remote processing, and avoid private home footage, signed URLs, or internal URLs unless the deployment has explicit approval for that data flow.\n\nRisk: The skill may create or reuse an account identity and store tokens locally in the workspace.\n\nMitigation: Install only in environments where local token storage is acceptable, and review workspace storage, retention, and access controls before use.\n\nRisk: Cloud report history may be queried automatically with limited user-facing control.\n\nMitigation: Confirm that report-history access matches user expectations and organizational policy before enabling historical report workflows.\n\nRisk: Behavior-statistics alerts may be mistaken for medical diagnosis.\n\nMitigation: Present outputs as screening or monitoring signals only, and direct users to veterinary review for diagnosis or treatment decisions.\n\n## Reference(s):\n\n- [API Documentation](artifact/references/api_doc.md)\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-style structured analysis reports with report links and optional saved output files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May query cloud report history and produce behavior-statistics-based alerts; does not provide medical diagnosis.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter says 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39501 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (3166b), SKILL.md (12237b), 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: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1787164678015\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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\nAnalyzes litter-box area videos or video URLs to estimate each cat's litter-box visit frequency and duration, compare behavior with historical baselines, and produce behavior-based urinary health alerts that are not medical diagnoses.\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 such as multi-cat households, catteries, boarding centers, and veterinary inpatient teams use this skill to submit litter-box area videos and receive structured usage-frequency, per-visit-duration, historical-baseline, and alert outputs. The skill is intended for behavior monitoring and early warning only, not diagnosis or replacement of veterinary care.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Private in-home pet videos or video URLs can be sent to external services for remote processing.\n\nMitigation: Use only videos the user is authorized to share, avoid footage containing people or sensitive household details when possible, and confirm consent for remote processing before running the skill.\n\nRisk: The skill can create or reuse an internal user identity and query account-linked historical reports.\n\nMitigation: Run the skill in a workspace with an intended identity context, disclose that history may be account-linked, and review returned historical data before sharing it onward.\n\nRisk: Authentication tokens may be persisted locally in SQLite storage.\n\nMitigation: Install only in trusted environments, restrict workspace access, and remove local skill data when the skill is no longer needed.\n\nRisk: Current configuration includes dev or private endpoint settings in addition to public service endpoints.\n\nMitigation: Review configuration before use and allow network access only to expected production endpoints.\n\nRisk: Behavior alerts may be mistaken for veterinary diagnosis.\n\nMitigation: Present results as behavior-based monitoring signals and direct users to veterinary evaluation for medical decisions.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis)\n- [API documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Guidance]\n\n**Output Format:** [Structured text or JSON analysis report, with optional Markdown table output for historical report lists]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include report links and cloud-returned historical report data; local video inputs are limited to mp4, avi, and mov files up to 10 MB according to the artifact documentation.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter says 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39233 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (2578b), SKILL.md (12237b), 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: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786643317498\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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\nAnalyzes litter-box area videos or URLs to estimate each cat's litter-box visit frequency and duration, compare behavior with historical baselines, and surface behavior-based urinary health alerts without providing a medical diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners, catteries, boarding centers, and veterinary inpatient teams use this skill to review litter-box area videos and generate structured usage statistics for multi-cat health monitoring. The skill is intended to provide behavior-based alerts and report links, not veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet videos, URLs, report history, internal user identifiers, and account tokens may be sent to or reused with lifeemergence.com services.\n\nMitigation: Install and run the skill only in workspaces where cloud processing and reuse of these identifiers are acceptable, and review available deletion or credential reset controls before use.\n\nRisk: The skill auto-creates or reuses user identities and persists service tokens in local workspace data.\n\nMitigation: Use trusted workspaces with appropriate local file access controls, and clear or reset stored credentials when rotating users or moving the workspace.\n\nRisk: Litter-box frequency and duration alerts can be mistaken for medical diagnosis.\n\nMitigation: Present outputs as behavior statistics and early-warning signals, and direct users to a veterinarian for diagnosis or treatment decisions.\n\n## Reference(s):\n\n- [API documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Markdown or JSON structured reports with usage statistics, alerts, recommendations, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save the report to a local file when an output path is supplied.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release metadata; artifact frontmatter says 1.0.10)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.7:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.7:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.6: 31 files, 39308 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (2758b), SKILL.md (12236b), 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: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785984269179\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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:\n\nAnalyzes litter-box area video or URL inputs to track cat entry and exit events, summarize usage frequency and visit duration against history, and produce behavior-based urinary-health alerts without providing a medical diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users such as pet owners, catteries, veterinary inpatient wards, and boarding centers use this skill to review litter-box videos, monitor per-cat usage patterns, and surface behavior-based urinary-health alerts for follow-up with veterinary care.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The security scan reports that the skill sends supplied videos or URLs to a cloud service for analysis.\n\nMitigation: Use only with videos and URLs that are appropriate to share with the third-party cloud service, and avoid submitting sensitive household, clinic, or boarding-center footage without consent.\n\nRisk: The security scan reports that the skill silently creates or reuses an account identity and can query account-scoped history.\n\nMitigation: Review the workspace identity and history behavior before deployment, and isolate workspace data when multiple users or sensitive reports are involved.\n\nRisk: The security scan reports that service tokens may be stored in a local workspace SQLite database.\n\nMitigation: Restrict access to the workspace data directory, rotate credentials after testing, and avoid running the skill in shared or untrusted workspaces.\n\nRisk: The skill produces behavior-based health alerts that are not medical diagnoses.\n\nMitigation: Present alerts as screening signals and direct users to veterinary evaluation for diagnosis or treatment decisions.\n\n## Reference(s):\n\n- [API documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON]\n\n**Output Format:** [Structured text or JSON analysis reports, with Markdown table output for report history listings.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include a report export link returned by the remote service.]\n\n## Skill Version(s):\n\n1.0.6 (source: server release metadata; artifact frontmatter declares 1.0.9)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39260 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (2741b), SKILL.md (12236b), 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: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1785156150698\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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>\nAnalyzes litter-box area video or media URLs to estimate each cat's entry and exit events, daily usage frequency, visit duration, and behavior-based urinary-health alerts without providing a medical diagnosis. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nPet owners, catteries, boarding centers, and veterinary care teams can use this skill to analyze litter-box camera footage, summarize usage frequency and visit duration, and flag behavior changes that may warrant follow-up. The skill is intended for monitoring and triage support, not medical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill sends litter-box footage or media URLs to the LifeEmergence cloud service for analysis. <br>\nMitigation: Use only media that is appropriate to share with that service, and review organizational privacy requirements before installation or use. <br>\nRisk: The security evidence reports silent local identity reuse or creation and locally stored service tokens. <br>\nMitigation: Install only in an isolated workspace where identity files, local databases, and tokens can be managed, rotated, and removed when no longer needed. <br>\nRisk: Behavior-based urinary-health alerts may be mistaken for clinical diagnosis. <br>\nMitigation: Present alerts as monitoring signals and route concerning results to a qualified veterinarian for diagnosis and treatment decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [API Documentation](references/api_doc.md) <br>\n- [Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown or JSON report content with report links and optional saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include structured monitoring results, frequency and duration summaries, alerts, recommendations, and cloud report links.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter reports 1.0.7) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 39466 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (3283b), SKILL.md (12236b), 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.4:SKILL.md\n\n---\nname: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1784434347569\n}\n\nFile v1.0.4:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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>\nAnalyzes litter-box area video or video URLs to track cat entry and exit events, summarize usage frequency and visit duration, compare behavior with historical baselines, and return behavior-based urinary health alerts without providing a medical diagnosis. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, pet-care teams, catteries, veterinary inpatient wards, and boarding centers use this skill to turn litter-box camera footage into per-cat usage frequency, visit duration, historical comparison, and behavior-alert reports. Results are behavior-statistics alerts and are not a substitute for veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Litter-box footage or video URLs may be processed by the vendor cloud service. <br>\nMitigation: Use only media appropriate for vendor processing, avoid footage containing people or sensitive household details, and review the vendor's retention and access practices before installation. <br>\nRisk: Reports are associated with a persistent internal user identity. <br>\nMitigation: Use an appropriate workspace or account boundary for the intended user group, and avoid sharing workspace data where report association could expose private household or pet-health information. <br>\nRisk: Local workspace data may contain service tokens or identity material used by the vendor service. <br>\nMitigation: Restrict access to the workspace, avoid committing local data stores, and remove local credential or token data before sharing or archiving the environment. <br>\nRisk: Behavior-based alerts can be mistaken for veterinary diagnosis. <br>\nMitigation: Present outputs as monitoring signals only and direct users to consult a veterinarian for medical assessment or treatment decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis) <br>\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui) <br>\n- [API interface documentation](artifact/references/api_doc.md) <br>\n- [Common analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance] <br>\n**Output Format:** [Markdown with structured JSON-like analysis content, cloud report links, and optional saved output files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Supports local video files or video URLs, historical report listing, configurable detail level, and optional output-file writing.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: ClawHub release metadata; artifact frontmatter and release changelog mention 1.0.5) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.3: 31 files, 39122 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (2455b), SKILL.md (12236b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (157b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.4\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783348706772\n}\n\nFile v1.0.3:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` - 宠物猫砂盆使用频次与时长\n\nFile v1.0.3:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.3:scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.3:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.3:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nAnalyzes litter-box video or video URLs to identify cat entry and exit events, summarize usage frequency and visit duration, compare results with historical baselines, and flag behavior-based urinary health concerns without providing a medical diagnosis. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, developers, and care teams can use this skill to process litter-box area videos for multi-cat households, catteries, veterinary inpatient wards, and boarding centers. It produces behavior statistics and early-warning prompts for review, not veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Videos, supplied video URLs, and cloud report history are processed by the vendor's cloud service. <br>\nMitigation: Use only footage and URLs where vendor cloud processing and linked report history are acceptable. <br>\nRisk: The skill can create or reuse an internal identity and store authentication tokens in the workspace data directory. <br>\nMitigation: Run it in an appropriate workspace, avoid sensitive household or facility footage unless this handling is acceptable, and review or clear local stored credentials when needed. <br>\n\n\n## Reference(s): <br>\n- [Pet Litter Box Usage Monitor API Reference](artifact/references/api_doc.md) <br>\n- [SMYX Analysis API Error Reference](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, guidance] <br>\n**Output Format:** [Markdown text with structured JSON report content and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save the generated report text to a user-specified output file and can return historical report lists linked to the resolved internal identity.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata; artifact frontmatter states 1.0.4) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.3:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.3:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.2: 31 files, 38992 bytes\n\nFiles: references/api_doc.md (677b), scripts/__init__.py (70b), scripts/config.py (681b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_litter_box_usage_monitor_analysis.py (3592b), skill-card.md (2744b), SKILL.md (12236b), 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.2:SKILL.md\n\n---\nname: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.3\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件检测 |\n| 3 | 单次停留时长统计 |\n| 4 | 每日使用频次汇总 |\n| 5 | 个体历史基线比对 |\n| 6 | 频次异常/时长异常告警 |\n| 7 | 多猫并发处理 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供猫砂盆区域视频 URL 或文件需要做使用频次/时长监测时，默认触发本技能 |\n| 🔎 明确分析意图 | 当用户明确需要监测如厕行为时，提及猫咪尿频、排尿时长、猫砂盆使用次数、FLUTD、膀胱炎、尿闭、肾病行为、多猫如厕监测等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史猫砂盆使用报告、历史如厕监测、使用频次报告清单、查询如厕行为历史、显示所有使用监测报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_litter_box_usage_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行猫砂盆使用监测分析 | 调用 `-m scripts.smyx_litter_box_usage_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 cat | 按需填写 |\n| `--list` | 显示猫砂盆使用监测历史报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_litter_box_usage_monitor_analysis.py`](scripts/smyx_litter_box_usage_monitor_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB |\n| 🔎 使用提醒 | 多猫家庭需要先建立个体识别基线（多次提交带个体识别的样本），首次使用可能仅提供全局统计 |\n| 🔎 使用提醒 | 频次/时长异常阈值默认采用 mean ± 2σ，可在 API 端按猫个体自定义 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅作为如厕行为参考，不替代兽医泌尿科检查 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1782975271273\n}\n\nFile v1.0.2:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` - 宠物猫砂盆使用频次与时长\n\nFile v1.0.2:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.2:scripts/config.yaml\n\n{}\n\nFile v1.0.2:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.2:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.2:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.2:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nAnalyzes litter-box area video or video URLs to identify cat entry and exit events, summarize usage frequency and visit duration, compare behavior against historical baselines, and produce non-diagnostic urinary-health early-warning alerts. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, pet-care operators, catteries, boarding centers, and veterinary inpatient teams use this skill to process litter-box camera footage and review structured behavior statistics, report links, and early-warning alerts. The output is intended as behavior-based monitoring support and does not replace veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet videos, video URLs, identity-linked request data, and report history are sent to the Life Emergence/SMYX remote service. <br>\nMitigation: Use only media you are permitted to share, avoid footage containing people or private interiors, and confirm consent and retention expectations before use. <br>\nRisk: The skill automatically creates or reuses user identity and stores tokens locally. <br>\nMitigation: Review or remove the automatic identity and token storage behavior before using the skill in shared workspaces. <br>\nRisk: Urinary-health alerts are behavior-statistics outputs and are not medical diagnoses. <br>\nMitigation: Treat alerts as monitoring signals and refer concerning changes to a veterinarian. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-litter-box-usage-monitor-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Pet Litter Box Usage Monitor API documentation](references/api_doc.md) <br>\n- [SMYX analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON-style structured analysis text, with optional report links and shell command examples] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can save analysis output to a file when an output path is provided.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release metadata; artifact frontmatter lists 1.0.3) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.2:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.2:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长 Owner: smyx-sunjinhui Summary: Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_litter_box_usage_monitor_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_litter_box_usage_monitor_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input /path/to/litterbox.mp4 --pet-type cat\n\n# 分析网络猫砂盆区域视频\npython -m scripts.smyx_litter_box_usage_monitor_analysis --url https://example.com/litterbox.mp4 --pet-type cat\n\n# 显示历史使用监测报告/分析报告清单列表（自动触发关键词：查看历史使用监测报告、如厕监测清单等）\npython -m scripts.smyx_litter_box_usage_monitor_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_litter_box_usage_monitor_analysis --input box.mp4 --pet-type cat --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-litter-box-usage-monitor-analysis\"\ndescription: \"Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts. | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🚽 Pet Litter Box Usage Monitor (Frequency & Duration) | 宠物猫砂盆使用频次与时长\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物猫砂盆使用频次与时长** |\n| 🎯 核心目标 | 当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_LITTER_BOX_USAGE_MONITOR_ANALYSIS` |\n\n    Triggers when a user provides a litter-box area video URL or file for analysis; uses object detection and tracking to identify each cat's entry/exit times at the litter box, records daily usage frequency and per-visit duration (entry → exit), and compares against the historical baseline. When frequency rises/falls significantly, or per-visit duration is abnormally long/short, outputs a urinary-disease (cystitis, urinary obstruction, kidney disease) early-warning alert. Especially useful for individualized health management in multi-cat households. Application: multi-cat homes, catteries, vet hospital inpatient wards, boarding centers. Does NOT provide medical diagnosis — only outputs behavior-statistics-based alerts.\n\n当用户提供猫砂盆区域视频URL或文件时，触发本技能进行使用频次与时长分析；通过智能猫砂盆或固定摄像头分析视频，利用目标检测和跟踪技术识别每只猫咪进出猫砂盆的时刻，记录每日使用频次、单次停留时长（从进入至离开），并与历史基线对比；若频次显著增减或单次时长异常，则输出泌尿系统疾病（膀胱炎、尿闭、肾病等）预警，有助于多猫家庭的个体化管理及早发现健康问题。应用场景：多猫家庭、猫舍、宠物医院住院部、宠物寄养中心。仅输出基于行为统计的提示，不提供医疗诊断。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物泌尿健康AI。你的任务是分析猫砂盆区域的固定摄像头视频，检测每只猫咪的进入和离开时间，统计使用频次和单次停留时长，并与该猫的历史基线进行比较，输出异常预警。不要提供医疗诊断，仅输出基于行为统计的提示。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n监测猫砂盆区域视频，识别每只猫咪进出事件，统计使用频次/单次时长，对比历史基线给出泌尿健康行为预警\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 猫咪个体识别与跟踪 |\n| 2 | 进入/离开事件"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-litter-box-usage-monitor-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790777128336\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放宠物猫砂盆使用频次与时长 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动猫砂盆使用监测任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LITTER_BOX_USAGE_MONITOR_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":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1116,"uniquenessScore":38,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T04:41:50.567Z","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-10T04:41:50.567Z","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-10T07:12:46.297Z","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"}]}}}