{"id":"718b0704-76bf-4a7c-ae1a-65439e5b6b20","entityType":"agent","slug":"clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy","name":"Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy","canonicalPath":"/agent/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy","generatedAt":"2026-10-10T07:28:59.498Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:19:21.723Z","emptyReason":null},"description":"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-vomiting-regurgitation-detection-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-vomiting-regurgitation-detection-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-vomiting-regurgitation-detection-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别 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-09T23:19:21.723Z","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-09T23:19:21.723Z","emptyReason":null},"stars":null,"forks":null,"downloads":1897,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"1.9K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:19:21.723Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T23:19:21.723Z","lastCrawledAt":"2026-10-09T23:19:21.723Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T23:19:21.723Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-10-04T13:23:38.599Z","changelog":"- Updated version to 1.0.17 in SKILL.md - Removed the obsolete skill-card.md file - No changes to logic, features, or workflow; documentation/version update only","fileCount":31,"zipByteSize":39875},{"version":"1.0.12","createdAt":"2026-09-27T04:22:40.552Z","changelog":"- Updated skill version to 1.0.16. - Revised documentation in SKILL.md, including version numbers and possibly additional clarifications or adjustments for use, workflow, or examples. - Removed the skill-card.md file from the project. - Updated the configuration in skills/smyx_common/scripts/config.yaml.","fileCount":31,"zipByteSize":39902},{"version":"1.0.11","createdAt":"2026-09-09T03:55:29.495Z","changelog":"- Version bump from 1.0.12 to 1.0.14. - Documentation updated in SKILL.md; minor wording and version references adjusted. - skill-card.md file removed. No functional or API/code changes indicated.","fileCount":31,"zipByteSize":40085},{"version":"1.0.10","createdAt":"2026-08-23T22:18:44.649Z","changelog":"- Removed the file: skill-card.md - No changes to scripts or core skill logic. - Documentation and usage remain unchanged.","fileCount":31,"zipByteSize":40055},{"version":"1.0.9","createdAt":"2026-08-21T16:34:31.579Z","changelog":"- Updated version number to 1.0.12 and removed the deprecated \"skill-card.md\" file. - Made minor adjustments to configuration in \"config.yaml\". - Revised SKILL.md version field and minor text updates. - No changes to feature set or workflow.","fileCount":31,"zipByteSize":40108},{"version":"1.0.8","createdAt":"2026-08-13T21:00:36.062Z","changelog":"- Removed the skill-card.md file. - No impact to skill’s functional logic or user experience. - Documentation/card metadata is no longer included in the codebase.","fileCount":31,"zipByteSize":39924},{"version":"1.0.7","createdAt":"2026-08-07T19:17:42.783Z","changelog":"- Updated version from 1.0.8 to 1.0.10 in SKILL.md. - Minor documentation or metadata adjustments; no functionality or workflow changes listed. - Removed the skill-card.md file. - No changes to usage, input/output, or capability descriptions.","fileCount":31,"zipByteSize":40062},{"version":"1.0.6","createdAt":"2026-07-31T00:25:27.807Z","changelog":"- Updated version number in SKILL.md and description metadata (now 1.0.8). - Removed the redundant skill-card.md file. - No changes to core logic or workflow—documentation and metadata only.","fileCount":31,"zipByteSize":40107}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-vomiting-regurgitation-detection-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-vomiting-regurgitation-detection-analysis` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/18072937735/smyx-vomiting-regurgitation-detection-analysis before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/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:28:59.493Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-vomiting-regurgitation-detection-analy/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-09T23:19:21.723Z","emptyReason":null},"readme":"Skill: Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n\nOwner: 18072937735\n\nSummary: AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-10-04T13:23:38.599Z | auto\n\n- Updated version to 1.0.17 in SKILL.md\n- Removed the obsolete skill-card.md file\n- No changes to logic, features, or workflow; documentation/version update only\n\nv1.0.12 | 2026-09-27T04:22:40.552Z | auto\n\n- Updated skill version to 1.0.16.\n- Revised documentation in SKILL.md, including version numbers and possibly additional clarifications or adjustments for use, workflow, or examples.\n- Removed the skill-card.md file from the project.\n- Updated the configuration in skills/smyx_common/scripts/config.yaml.\n\nv1.0.11 | 2026-09-09T03:55:29.495Z | auto\n\n- Version bump from 1.0.12 to 1.0.14.\n- Documentation updated in SKILL.md; minor wording and version references adjusted.\n- skill-card.md file removed. No functional or API/code changes indicated.\n\nv1.0.10 | 2026-08-23T22:18:44.649Z | auto\n\n- Removed the file: skill-card.md\n- No changes to scripts or core skill logic.\n- Documentation and usage remain unchanged.\n\nv1.0.9 | 2026-08-21T16:34:31.579Z | auto\n\n- Updated version number to 1.0.12 and removed the deprecated \"skill-card.md\" file.\n- Made minor adjustments to configuration in \"config.yaml\".\n- Revised SKILL.md version field and minor text updates.\n- No changes to feature set or workflow.\n\nv1.0.8 | 2026-08-13T21:00:36.062Z | auto\n\n- Removed the skill-card.md file.\n- No impact to skill’s functional logic or user experience.\n- Documentation/card metadata is no longer included in the codebase.\n\nv1.0.7 | 2026-08-07T19:17:42.783Z | auto\n\n- Updated version from 1.0.8 to 1.0.10 in SKILL.md.\n- Minor documentation or metadata adjustments; no functionality or workflow changes listed.\n- Removed the skill-card.md file.\n- No changes to usage, input/output, or capability descriptions.\n\nv1.0.6 | 2026-07-31T00:25:27.807Z | auto\n\n- Updated version number in SKILL.md and description metadata (now 1.0.8).\n- Removed the redundant skill-card.md file.\n- No changes to core logic or workflow—documentation and metadata only.\n\nv1.0.5 | 2026-07-17T11:07:28.781Z | auto\n\n- Version updated from 1.0.5 to 1.0.7.\n- Documentation improvements: SKILL.md updated and clarified, with no user-facing feature or parameter changes.\n- Obsolete or redundant file removed: skill-card.md deleted for cleaner directory.\n- Minor updates to internal scripts/util.py for code maintenance or consistency (no behavior changes specified).\n\nv1.0.4 | 2026-07-08T09:40:45.641Z | auto\n\n- Removed the file skill-card.md from the project.\n- No feature, workflow, or user-facing changes.  \n- All detection and reporting capabilities remain the same.\n\nv1.0.3 | 2026-07-04T11:25:24.901Z | auto\n\n**Changelog for v1.0.5**\n\n- Major documentation overhaul: SKILL.md restructured and expanded for clarity, including table-format overviews, task flows, and resource indexing.\n- Improved descriptions of input/output scenarios, workflow steps, and permission controls.\n- Strengthened and clarified constraints regarding identity handling and report query protocols.\n- Streamlined requirements, AI role, and usage examples.\n- Removed deprecated file: skill-card.md.\n\nv1.0.2 | 2026-06-23T22:42:44.364Z | auto\n\nVersion 1.0.2\n\n- Internal user identity handling is now fully automatic; users are never asked to input or view any ID or sensitive parameter.\n- All prompts, documentation, and usage instructions have been revised to remove references to user/manual open-id acquisition.\n- Scripts and API calls internally manage identity initialization and association; process for report listing and analysis is simplified for the user.\n- Removed documentation and flows prompting the user for usernames or phone numbers.\n- Minor documentation cleanup and removal of obsolete files.\n\nv1.0.1 | 2026-06-18T12:13:52.010Z | auto\n\n- Adjusted open-id config file search logic: now first checks scripts/config.yaml in the skill's own directory, then checks the workspace public config directory.\n- Updated file paths and parameter descriptions in documentation to match new config.yaml location.\n- Minor text and formatting fixes for clarity in operating steps and constraints.\n- Added license metadata to SKILL.md.\n- Removed the redundant skill-card.md documentation file.\n\nv1.0.0 | 2026-05-23T03:40:09.303Z | auto\n\nInitial release of AI-powered pet vomiting and regurgitation detection & analysis.\n\n- Detects vomiting and regurgitation actions in pets from indoor fixed-camera video using motion and vomitus recognition.\n- Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening; distinguishes vomitus types (food, hairball, bile).\n- Records event time, frequency, and vomitus characteristics for early digestive issue discovery.\n- Supports historical report queries with strict cloud data retrieval and user open-id enforcement.\n- Designed for home health monitoring, multi-pet households, senior pet care, and inpatient animal hospital observation.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 39875 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2227b), SKILL.md (13526b), 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 (166b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1791120218599\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物呕吐/反流行为识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` - 宠物呕吐/反流行为识别\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAnalyzes pet-area camera video for vomiting or regurgitation behaviors and visible vomit, then reports observed events and characteristics.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners, caregivers, and veterinary staff use this skill to review indoor footage for possible vomiting or regurgitation events, track their frequency, and consult historical reports. Results are visual observations, not a veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor pet-area footage or video URLs are sent to Life Emergence cloud services.\n\nMitigation: Share only footage you are comfortable sending to the service, and review its privacy terms before use.\n\nRisk: The skill silently creates or reuses an account and stores an internal identity and tokens in a local workspace database.\n\nMitigation: Review account creation and local credential storage before installation; restrict access to the workspace.\n\nRisk: History-report lookup may automatically retrieve sensitive past reports when prompted.\n\nMitigation: Confirm the intended account and whether cloud history access fits your privacy expectations.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-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):** [Analysis, Reports, Guidance]\n\n**Output Format:** [JSON or Markdown text with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Event observations, timestamps, frequency, vomit characteristics, and cloud report history when requested.]\n\n## Skill Version(s):\n\n1.0.13 (source: server-resolved ClawHub release; bundled SKILL.md says 1.0.17)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 39902 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2333b), SKILL.md (13526b), 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 (166b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790482960552\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物呕吐/反流行为识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` - 宠物呕吐/反流行为识别\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nAnalyzes indoor pet videos for vomiting or regurgitation behavior and produces event summaries, observations, and report links.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners and veterinary care teams use this skill to review indoor camera footage for possible vomiting or regurgitation events, inspect event details, and retrieve prior reports. Results support observation rather than veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor pet footage or video URLs are sent to a cloud service and may expose household activity.\n\nMitigation: Use only footage you are authorized to share; confirm the service endpoint, retention period, and deletion process with the publisher before submitting real household video.\n\nRisk: Analysis history is linked to an automatically managed identity, and user records and tokens are stored locally.\n\nMitigation: Review authentication and local storage practices with the publisher, restrict access to stored records, and use a trusted device.\n\nRisk: Similar-looking behaviors can be misclassified, and results are not a medical diagnosis.\n\nMitigation: Confirm suspected events against the footage and consult a veterinarian for persistent symptoms or urgent concerns.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis)\n- [Pet analysis API documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, JSON, Markdown]\n\n**Output Format:** [Structured analysis text or JSON with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include event observations, risk prompts, history listings, and an optional saved result file.]\n\n## Skill Version(s):\n\n1.0.12 (source: server-resolved 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.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 40085 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2803b), SKILL.md (13526b), 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 (166b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1788926129495\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` - 宠物呕吐/反流行为识别\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video that identifies behavior cues, detects visible vomitus, and records event time, frequency, and vomitus characteristics for pet health monitoring.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze indoor pet videos for vomiting or regurgitation behavior, summarize observed events, and retrieve prior report history. The results support behavior observation and care triage, not medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor pet videos and report history may be sent to the publisher's backend.\n\nMitigation: Use only with informed consent for the video content, review the configured endpoints before installation, and avoid submitting sensitive footage unless the data handling path is acceptable.\n\nRisk: Evidence security guidance says the published default points to private HTTP development servers.\n\nMitigation: Configure HTTPS production endpoints before normal use and remove or disable private development endpoints from deployment configuration.\n\nRisk: Evidence security guidance says reusable tokens are stored locally in plaintext.\n\nMitigation: Move credentials and reusable tokens to a protected credential store and rotate any exposed values before production use.\n\nRisk: The skill observes behavior but does not provide a veterinary diagnosis.\n\nMitigation: Present results as visual observations and direct users to veterinary care for frequent vomiting, blood, lethargy, or other concerning signs.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis)\n- [API documentation](references/api_doc.md)\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown report with structured JSON analysis content, report links, and optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local video files or video URLs and can return historical report listings.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; artifact frontmatter reports 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 40055 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2624b), SKILL.md (13526b), 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 (166b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787523524649\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` - 宠物呕吐/反流行为识别\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nDetects pet vomiting and regurgitation behavior from indoor fixed-camera video, including abdominal contractions, head-forward extension, mouth opening, vomitus on the floor, event timing, frequency, and vomitus characteristics.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners, animal-care teams, and developers use this skill to analyze pet-area videos for visual signs of vomiting or regurgitation and to produce structured observation reports. The skill is intended for behavior monitoring and report review, not medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor pet camera footage or provided video URLs are sent to a remote analysis service.\n\nMitigation: Install only after confirming that the publisher, production endpoints, data retention controls, and cloud-processing terms are acceptable for the footage being analyzed.\n\nRisk: The skill automatically creates or reuses an internal identity and stores tokens locally.\n\nMitigation: Run it in a controlled environment, limit access to local token storage, and clear or rotate stored credentials according to local security policy.\n\nRisk: Visual analysis can produce false positives or miss behavior that looks similar to vomiting or regurgitation.\n\nMitigation: Treat results as behavior observations, confirm concerning events with additional context, and seek veterinary review for frequent, severe, bloody, or otherwise concerning symptoms.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [API Documentation](references/api_doc.md)\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Guidance]\n\n**Output Format:** [Markdown text with structured JSON analysis, cloud report history, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can save analysis output to a file when an output path is provided; list mode returns cloud report history.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.10:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.10:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.9: 31 files, 40108 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2902b), SKILL.md (13526b), 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 (165b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787330071579\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_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\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video that reports observed event timing, frequency, motion cues, and vomitus characteristics for pet health monitoring.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, pet owners, animal-care teams, and agent operators use this skill to analyze fixed-camera pet footage for observed vomiting or regurgitation behavior, vomitus characteristics, event timing, and historical report lookup. Results are behavior observations and should not be treated as veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends indoor pet-camera footage and user-linked report history to the configured backend service.\n\nMitigation: Install only when the publisher and backend are trusted for this footage and history, and review data handling expectations before use.\n\nRisk: The package can create or reuse a local identity and store service tokens for report access.\n\nMitigation: Run in an environment where local credential storage is acceptable, restrict filesystem access, and remove local state when the skill is no longer needed.\n\nRisk: Configuration includes environment-specific endpoints and debug-oriented settings.\n\nMitigation: Review configuration before deployment and use production HTTPS endpoints appropriate for the runtime environment.\n\nRisk: Visual analysis may miss events or confuse similar pet behaviors with vomiting or regurgitation.\n\nMitigation: Treat outputs as behavior observations, confirm important events with source footage or vomitus evidence, and seek veterinary review for concerning symptoms.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis)\n- [API Documentation](references/api_doc.md)\n- [Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-style structured report text, with optional saved file output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include observed event summaries, vomitus descriptions, risk prompts, report links, and historical report tables returned by the configured service.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter reports 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39924 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2355b), SKILL.md (13526b), 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 (165b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786654836062\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_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: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nDetects pet vomiting or regurgitation in fixed-camera indoor video, including characteristic movements, vomitus appearance, event timing, frequency, and structured observation reports.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to submit pet-area video or a video URL for vomiting/regurgitation observation, event timing, frequency summaries, vomitus characteristics, and report retrieval. Results are behavior observations and should not be treated as veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor pet-camera videos or URLs are sent to the publisher's cloud analysis service.\n\nMitigation: Use only footage you are authorized to upload, and confirm privacy, retention, and access-control assurances before use.\n\nRisk: Analyses are tied to an internally managed account, and access tokens may be stored locally for reuse.\n\nMitigation: Use a controlled account, review token storage and rotation expectations, and avoid sensitive household footage unless those controls are acceptable.\n\nRisk: Visual behavior analysis can miss or misclassify vomiting-like behavior and is not a medical diagnosis.\n\nMitigation: Treat results as observations and consult a veterinarian for frequent, severe, bloody, or otherwise concerning vomiting symptoms.\n\n## Reference(s):\n\n- [API documentation](references/api_doc.md)\n- [Shared API error documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, guidance]\n\n**Output Format:** [Markdown text with structured JSON-like analysis results and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May write the report text to a user-specified output file.]\n\n## Skill Version(s):\n\n1.0.8 (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.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, 40062 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2661b), SKILL.md (13526b), 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 (165b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786130262783\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_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\nDetects pet vomiting or regurgitation behavior from fixed-camera indoor video and returns structured observations about event timing, frequency, movement cues, and visible vomitus characteristics.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze pet-area videos for vomiting or regurgitation events in home monitoring, multi-pet care, senior pet care, or animal hospital observation workflows. The output is for visual behavior observation and should not be treated as a veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Private home camera footage or video URLs may be sent to a remote cloud backend.\n\nMitigation: Use the skill only with videos intended for that service, and avoid submitting footage that contains sensitive people, locations, or private household details.\n\nRisk: The skill can silently create or reuse account identity and service tokens with limited user control.\n\nMitigation: Run it in a dedicated test workspace or disposable account context when evaluating the skill, and review locally stored credentials before broader use.\n\nRisk: Report history and generated report links may be associated with the remote service account context.\n\nMitigation: Review whether cloud report retention and account association are acceptable before using the history-report workflow.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API interface documentation](artifact/references/api_doc.md)\n- [Analysis API error-code reference](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, guidance]\n\n**Output Format:** [Markdown with structured JSON-like analysis content, command examples, and report links when available]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts a local video file path or video URL; supported documented formats are mp4, avi, and mov with a documented 10 MB maximum file size.]\n\n## Skill Version(s):\n\n1.0.7 (source: ClawHub 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, 40107 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2887b), SKILL.md (13525b), 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 (165b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785457527807\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` - 宠物呕吐/反流行为识别\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nDetects pet vomiting or regurgitation behavior from fixed indoor camera video and returns structured observations about event timing, frequency, motion cues, vomitus characteristics, and report links. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal pet owners, multi-pet households, senior pet caregivers, and animal-hospital staff can use this skill to analyze indoor pet videos for visual vomiting or regurgitation indicators and retrieve historical structured reports. The outputs are behavior observations, not medical diagnoses. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Indoor pet videos may contain sensitive household imagery and are sent to external services for analysis. <br>\nMitigation: Use the skill only when cloud processing is acceptable, limit submissions to necessary footage, and avoid videos that reveal unrelated private spaces or people. <br>\nRisk: Analysis activity is associated with an automatically managed local or cloud identity. <br>\nMitigation: Review the identity and account model before installation and use an environment where persisted identity data can be managed or removed. <br>\nRisk: Historical reports may be stored and retrieved from cloud services. <br>\nMitigation: Confirm that report retention and deletion controls meet the deployment's privacy requirements before using history lookup features. <br>\nRisk: The skill provides visual behavior observations that may be mistaken for veterinary diagnosis. <br>\nMitigation: Present results as observational support only and escalate frequent, bloody, or severe vomiting indicators to a qualified veterinarian. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands, guidance] <br>\n**Output Format:** [Markdown or JSON structured analysis report with observations, risk prompts, recommendations, history tables, and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include cloud-hosted report links and historical report query results.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter lists 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.5: 31 files, 39969 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2530b), SKILL.md (13525b), 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 (165b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784286448781\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_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 indoor fixed-camera pet video to detect vomiting or regurgitation behavior, vomitus appearance, event timing, frequency, and report history. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and pet-care operators use this skill to review indoor pet camera footage for visual signs of vomiting or regurgitation and to retrieve prior cloud reports. Results are behavioral observations and should not be treated as veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Sensitive indoor pet camera footage and report data may be sent to a remote service for analysis and history lookup. <br>\nMitigation: Install only after confirming user consent, service trust, data retention expectations, and whether the uploaded media is appropriate for cloud processing. <br>\nRisk: The skill can silently create or reuse cloud identity state and persist local tokens. <br>\nMitigation: Review account creation, token storage, and cleanup behavior before deployment; restrict execution to environments where that identity behavior is acceptable. <br>\nRisk: Broad automatic triggers can initiate remote analysis or report retrieval when users provide pet footage or ask for historical reports. <br>\nMitigation: Require clear operator confirmation for sensitive media workflows and document when remote calls occur. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis) <br>\n- [API Documentation](references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Guidance] <br>\n**Output Format:** [Markdown or JSON structured analysis report with report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May write the analysis result to a user-selected output file.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter states 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, 39952 bytes\n\nFiles: references/api_doc.md (695b), scripts/__init__.py (64b), scripts/config.py (690b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_vomiting_regurgitation_detection_analysis.py (3500b), skill-card.md (2634b), SKILL.md (13525b), 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 (165b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行呕吐/反流行为识别 | 调用 `-m scripts.smyx_vomiting_regurgitation_detection_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## 🤢 呕吐 vs 反流：关键区别\n\n| 特征 | 呕吐（Vomiting） | 反流（Regurgitation） |\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| 🟢 偶发 | 24小时内 1 次，呕吐物为毛球或食物 | 观察，注意饮食和饮水量 |\n| 🟡 频发 | 24小时内 2-3 次，或连续两天呕吐 | 建议预约兽医检查 |\n| 🟠 严重 | 24小时内 ≥4 次，呕吐物含胆汁或泡沫 | 尽快就医，注意补充水分 |\n| 🔴 危急 | 呕吐物带血，或伴精神萎靡/拒食 | ⚠️ 立即就医，警惕中毒、肠梗阻 |\n\n## 💡 高风险群体关注\n\n| 类别 | 重点关注原因 |\n|------|--------------|\n| 多宠家庭 | 难以及时发现哪个宠物呕吐，AI 可区分个体 |\n| 老年宠物 | 慢性肾病、肿瘤等可表现为频繁呕吐 |\n| 幼宠 | 易误食异物，呕吐后脱水风险更高 |\n| 长毛猫 | 毛球症高发，需定期梳毛辅助 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_vomiting_regurgitation_detection_analysis.py`](scripts/smyx_vomiting_regurgitation_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB；建议时长 ≥ 30 秒 |\n| 🔎 使用提醒 | 摄像头需固定且视角覆盖宠物活动区域及地面，移动/手持拍摄可能影响检测效果 |\n| 🧑‍⚖️ 结果性质 | **识别结果仅供行为观察参考，不提供医疗诊断**；频繁呕吐或呕吐物带血建议立即就医 |\n| 🔎 使用提醒 | 宠物可能做出类似呕吐的伸懒腰、咳嗽等动作，存在一定误检可能，建议结合呕吐物确认 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 当显示历史识别报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783503645641\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_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>\nDetects pet vomiting and regurgitation behavior from indoor fixed-camera video, records event timing and frequency, and summarizes visible vomitus characteristics for observation-oriented health monitoring. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nPet owners, animal-care teams, and veterinary support staff use this skill to analyze uploaded pet-area videos for vomiting or regurgitation events and to review structured observation reports. The skill is for visual behavior observation and does not provide a medical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet and household videos may be sent to the vendor's cloud service for analysis. <br>\nMitigation: Use only approved videos, review vendor and retention expectations before use, and avoid media that contains unnecessary private household details. <br>\nRisk: The skill may silently create or reuse an account-linked identity and persist authentication tokens locally. <br>\nMitigation: Run in a controlled environment, review local token storage before deployment, and clear credentials when the skill is no longer needed. <br>\nRisk: The skill can query cloud report history associated with the resolved identity. <br>\nMitigation: Confirm the account scope before use and restrict access to users authorized to view prior reports. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-vomiting-regurgitation-detection-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [API 接口文档](references/api_doc.md) <br>\n- [SMYX Analysis API 接口文档](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown and JSON text reports with optional saved output files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include structured analysis details, report history output, and report export links.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release evidence; artifact frontmatter reports 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","readmeExcerpt":"Skill: Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别 Owner: 18072937735 Summary: AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery.","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_vomiting_regurgitation_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input /path/to/pet_room.mp4 --pet-type cat\n\n# 分析网络宠物活动区域视频\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --url https://example.com/pet_room.mp4 --pet-type cat\n\n# 显示历史识别报告/显示报告清单列表（自动触发关键词：查看历史呕吐报告、呕吐报告清单等）\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --input video.mp4 --pet-type cat --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-vomiting-regurgitation-detection-analysis\"\ndescription: \"AI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation. | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🤢 Pet Vomiting / Regurgitation Detection | 宠物呕吐/反流行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物呕吐/反流行为识别** |\n| 🎯 核心目标 | 通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_VOMITING_REGURGITATION_DETECTION_ANALYSIS` |\n\nAI-powered pet vomiting and regurgitation detection from indoor fixed-camera video. Identifies rhythmic abdominal contractions, head-forward extension, and mouth opening actions, plus detects vomitus on the floor (food, hairball, bile). Records event time, frequency, and vomitus characteristics for early digestive issue discovery. Scenarios: daily home health monitoring, multi-pet households, senior pet care, animal hospital inpatient observation.\n\n通过室内固定摄像头分析宠物活动区域的连续视频，利用动作识别技术检测宠物的呕吐或反流行为（包括腹部节律性收缩、口部张合、头部前伸等典型动作），同时识别地面是否出现呕吐物（食物残渣、毛球、黄色胆汁等），记录发生时间、频次以及呕吐物特征。有助于主人及早发现宠物的消化系统问题，避免延误治疗。应用场景：宠物家庭日常健康监护、多宠家庭、老年宠物护理、宠物医院住院观察。\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| 8 | 呕吐物特征描述 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供宠物活动区域视频需要分析时，默认触发本技能进行呕吐/反流行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要呕吐监测时，提及呕吐、吐毛球、反流、干呕、消化异常等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呕吐报告、历史呕吐监测报告、呕吐行为报告清单、显示所有呕吐报告、查询呕吐事件记录 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_vomiting_regurgitation_detection_analysis --list\n```\n\n| 类型 | 要求 "},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-vomiting-regurgitation-detection-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1791120218599\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/ai-analysis/v2/start-common-ai-analysis` - 启动通用 AI 分析任务（呕吐/反流行为识别）\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_VOMITING_REGURGITATION_DETECTION_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":905,"uniquenessScore":44,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T23:19:21.723Z","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-09T23:19:21.723Z","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:28:59.498Z","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"}]}}}