{"id":"3c3d48a0-7d5c-46b8-9666-e03549035823","entityType":"agent","slug":"clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis","name":"Feeding/Drinking Behavior Monitoring | 畜禽采食/饮水行为监测","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis","generatedAt":"2026-10-11T17:46:49.766Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-11T14:16:41.506Z","emptyReason":null},"description":"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。 Skill: Feeding/Drinking Behavior Monitoring | 畜禽采食/饮水行为监测 Owner: 18072937735 Summary: Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。 Tags: latest:1.0.10 Version history: v1.0.10 | 2026-08-25T22:05:29.785Z | auto - Updated SKILL.md","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-feed-drink-behavior-monitor-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-feed-drink-behavior-monitor-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-feed-drink-behavior-monitor-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against indivi"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-11T14:16:41.506Z","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-11T14:16:41.506Z","emptyReason":null},"stars":null,"forks":null,"downloads":1051,"packageName":null,"latestVersion":"1.0.10","tractionLabel":"1.1K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T14:16:41.434Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T14:16:41.506Z","lastCrawledAt":"2026-10-11T14:16:41.434Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T14:16:41.434Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.10","createdAt":"2026-08-25T22:05:29.785Z","changelog":"- Updated SKILL.md with minor edits; version bumped from 1.0.7 to 1.0.9. - Removed redundant file: skill-card.md. - No functional or interface changes; documentation only.","fileCount":31,"zipByteSize":39544},{"version":"1.0.9","createdAt":"2026-08-18T04:00:29.855Z","changelog":"- Updated configuration file: skills/smyx_common/scripts/config.yaml. - Removed documentation file: skill-card.md. - No user-facing behavioral or API changes; functionality remains the same.","fileCount":31,"zipByteSize":39579},{"version":"1.0.8","createdAt":"2026-08-14T09:35:33.904Z","changelog":"- Updated version to 1.0.7 in SKILL.md. - Removed the file skill-card.md. - Documentation cleanup: no functional or script changes noted. - Ensured all references to removed files are eliminated.","fileCount":31,"zipByteSize":39727},{"version":"1.0.7","createdAt":"2026-08-09T01:24:46.450Z","changelog":"- Updated version number to 1.0.7. - Removed the file skill-card.md. - Minor update to SKILL.md only; no functional or feature changes.","fileCount":31,"zipByteSize":39563},{"version":"1.0.6","createdAt":"2026-07-31T11:47:28.532Z","changelog":"- Updated version identifier in documentation (SKILL.md) from 1.0.3 to 1.0.4. - Removed deprecated summary file skill-card.md. - No changes to core functionality or usage; documentation was streamlined and version numbering aligned.","fileCount":31,"zipByteSize":39739},{"version":"1.0.5","createdAt":"2026-07-19T08:03:27.392Z","changelog":"- Bumped version to 1.0.3 and updated documentation accordingly. - Made minor edits to SKILL.md content; removed the file skill-card.md. - No core functionality changes; documentation cleanup and file organization only.","fileCount":31,"zipByteSize":39667},{"version":"1.0.4","createdAt":"2026-07-06T14:08:28.932Z","changelog":"- Updated the version number in SKILL.md from \"1.0.0\" to \"1.0.2\". - No changes to functionality, dependencies, or features. - Documentation content remains unchanged except for the version adjustment.","fileCount":31,"zipByteSize":39572},{"version":"1.0.3","createdAt":"2026-07-04T18:55:30.094Z","changelog":"- Initial release of the livestock feeding and drinking behavior monitoring skill. - Supports analysis of fixed-camera feeder and waterer videos/images to quantify feeding duration, feeding bouts, and drinking frequency. - Provides structured reports, baseline comparisons, and automatic anomaly alerts for livestock behavior. - Includes robust privacy, data security measures, and precise historical report querying via cloud API. - Available in both English and Chinese, with detailed usage workflows and requirements.","fileCount":31,"zipByteSize":39570}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-feed-drink-behavior-monitor-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-11T17:46:49.760Z"}},"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-feed-drink-behavior-monitor-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-feed-drink-behavior-monitor-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-11T14:16:41.506Z","emptyReason":null},"readme":"Skill: Feeding/Drinking Behavior Monitoring | 畜禽采食/饮水行为监测\n\nOwner: 18072937735\n\nSummary: Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n\nTags: latest:1.0.10\n\nVersion history:\n\nv1.0.10 | 2026-08-25T22:05:29.785Z | auto\n\n- Updated SKILL.md with minor edits; version bumped from 1.0.7 to 1.0.9.\n- Removed redundant file: skill-card.md.\n- No functional or interface changes; documentation only.\n\nv1.0.9 | 2026-08-18T04:00:29.855Z | auto\n\n- Updated configuration file: skills/smyx_common/scripts/config.yaml.\n- Removed documentation file: skill-card.md.\n- No user-facing behavioral or API changes; functionality remains the same.\n\nv1.0.8 | 2026-08-14T09:35:33.904Z | auto\n\n- Updated version to 1.0.7 in SKILL.md.\n- Removed the file skill-card.md.\n- Documentation cleanup: no functional or script changes noted.\n- Ensured all references to removed files are eliminated.\n\nv1.0.7 | 2026-08-09T01:24:46.450Z | auto\n\n- Updated version number to 1.0.7.\n- Removed the file skill-card.md.\n- Minor update to SKILL.md only; no functional or feature changes.\n\nv1.0.6 | 2026-07-31T11:47:28.532Z | auto\n\n- Updated version identifier in documentation (SKILL.md) from 1.0.3 to 1.0.4.\n- Removed deprecated summary file skill-card.md.\n- No changes to core functionality or usage; documentation was streamlined and version numbering aligned.\n\nv1.0.5 | 2026-07-19T08:03:27.392Z | auto\n\n- Bumped version to 1.0.3 and updated documentation accordingly.\n- Made minor edits to SKILL.md content; removed the file skill-card.md.\n- No core functionality changes; documentation cleanup and file organization only.\n\nv1.0.4 | 2026-07-06T14:08:28.932Z | auto\n\n- Updated the version number in SKILL.md from \"1.0.0\" to \"1.0.2\".  \n- No changes to functionality, dependencies, or features.  \n- Documentation content remains unchanged except for the version adjustment.\n\nv1.0.3 | 2026-07-04T18:55:30.094Z | auto\n\n- Initial release of the livestock feeding and drinking behavior monitoring skill.\n- Supports analysis of fixed-camera feeder and waterer videos/images to quantify feeding duration, feeding bouts, and drinking frequency.\n- Provides structured reports, baseline comparisons, and automatic anomaly alerts for livestock behavior.\n- Includes robust privacy, data security measures, and precise historical report querying via cloud API.\n- Available in both English and Chinese, with detailed usage workflows and requirements.\n\nArchive index:\n\nArchive v1.0.10: 31 files, 39544 bytes\n\nFiles: references/api_doc.md (680b), scripts/__init__.py (48b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_feed_drink_behavior_monitor_analysis.py (3591b), skill-card.md (2427b), SKILL.md (12157b), 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 (161b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\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\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备食槽/饮水器视频输入 | 提供本地文件路径或网络 URL；确保画面稳定、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行采食/饮水行为监测 | 调用 `-m scripts.smyx_feed_drink_behavior_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看采食时长、采食/饮水频次、基线对比与异常提醒 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地食槽/饮水区域图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络食槽/饮水区域图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_feed_drink_behavior_monitor_analysis.py`](scripts/smyx_feed_drink_behavior_monitor_analysis.py) | 调用 API 进行采食/饮水行为监测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 分析结果仅为行为统计与偏差提醒，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与采食/饮水行为监测直接相关的视频/图像数据，不采集与行为监测无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 分析结果仅供参考，实际饲喂调整与健康处置请结合养殖场规程与专业兽医意见 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽采食饮水行为监测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 轻度 / 中度 / 重度） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽采食饮水行为监测报告-20260703160500001 | 轻度 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地猪舍食槽视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4\n```\n\n### 🐔 分析本地鸡舍饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4\n```\n\n### 🌐 分析网络食槽/饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史行为监测报告\n\n> 自动触发关键词：查看历史采食饮水报告、历史报告、行为监测清单等。\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input pig_feeder.mp4 --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input chicken_waterer.mp4 --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787695529785\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` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts.\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 farm operations teams use this skill to analyze fixed-camera feeder or waterer media, producing behavior statistics, baseline comparisons, anomaly levels, and report links for livestock feeding and drinking monitoring. It is not a disease diagnosis or treatment tool.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Local camera media may be uploaded to a cloud analysis service.\n\nMitigation: Run only with approved media and approved service endpoints, and avoid submitting footage outside the intended feeder or waterer monitoring scope.\n\nRisk: Bundled configuration includes development or plaintext HTTP endpoints alongside HTTPS endpoints.\n\nMitigation: Confirm the skill is configured for trusted HTTPS production endpoints before installation or execution.\n\nRisk: Automatically managed identity and reusable service tokens can tie report history to a workspace.\n\nMitigation: Use an approved workspace identity, restrict access to local workspace data, and rotate or clear stored tokens according to policy.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON]\n\n**Output Format:** [Structured text or JSON analysis results; historical report lists may be returned as Markdown tables.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include feeding duration, feeding and drinking frequency, behavior timing, anomaly level, and a report export link.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact frontmatter is 1.0.9)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39579 bytes\n\nFiles: references/api_doc.md (680b), scripts/__init__.py (48b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_feed_drink_behavior_monitor_analysis.py (3591b), skill-card.md (2588b), SKILL.md (12157b), 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 (160b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\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\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备食槽/饮水器视频输入 | 提供本地文件路径或网络 URL；确保画面稳定、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行采食/饮水行为监测 | 调用 `-m scripts.smyx_feed_drink_behavior_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看采食时长、采食/饮水频次、基线对比与异常提醒 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地食槽/饮水区域图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络食槽/饮水区域图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_feed_drink_behavior_monitor_analysis.py`](scripts/smyx_feed_drink_behavior_monitor_analysis.py) | 调用 API 进行采食/饮水行为监测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 分析结果仅为行为统计与偏差提醒，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与采食/饮水行为监测直接相关的视频/图像数据，不采集与行为监测无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 分析结果仅供参考，实际饲喂调整与健康处置请结合养殖场规程与专业兽医意见 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽采食饮水行为监测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 轻度 / 中度 / 重度） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽采食饮水行为监测报告-20260703160500001 | 轻度 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地猪舍食槽视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4\n```\n\n### 🐔 分析本地鸡舍饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4\n```\n\n### 🌐 分析网络食槽/饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史行为监测报告\n\n> 自动触发关键词：查看历史采食饮水报告、历史报告、行为监测清单等。\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input pig_feeder.mp4 --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input chicken_waterer.mp4 --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787025629855\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` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts.\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 farm operators, livestock managers, and developers use this skill to analyze feeder or waterer camera footage, generate structured feeding and drinking behavior reports, and review cloud-hosted historical reports for the current identity.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Livestock media or supplied media URLs are sent to a cloud service for analysis.\n\nMitigation: Use only footage that is approved for the configured cloud service and account, and avoid uploading media that contains unnecessary sensitive information.\n\nRisk: The skill can create or reuse backend identity state and query identity-linked historical reports.\n\nMitigation: Install only where this identity behavior is expected, and review account isolation before using historical report queries.\n\nRisk: Authentication tokens may be stored in a local workspace database.\n\nMitigation: Protect the workspace, rotate credentials if the workspace is shared or exposed, and remove local state when decommissioning the skill.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis)\n- [Publisher profile](https://clawhub.ai/user/18072937735)\n- [Skill API documentation](references/api_doc.md)\n- [Shared 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 reports and tables, JSON responses, and optional saved text files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include feeding duration, feeding bout counts, drinking frequency, baseline comparison, anomaly level, timestamps, and report links.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release evidence; artifact frontmatter reports 1.0.7)\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, 39727 bytes\n\nFiles: references/api_doc.md (680b), scripts/__init__.py (48b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_feed_drink_behavior_monitor_analysis.py (3591b), skill-card.md (2702b), SKILL.md (12157b), 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 (160b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\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\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备食槽/饮水器视频输入 | 提供本地文件路径或网络 URL；确保画面稳定、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行采食/饮水行为监测 | 调用 `-m scripts.smyx_feed_drink_behavior_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看采食时长、采食/饮水频次、基线对比与异常提醒 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地食槽/饮水区域图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络食槽/饮水区域图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_feed_drink_behavior_monitor_analysis.py`](scripts/smyx_feed_drink_behavior_monitor_analysis.py) | 调用 API 进行采食/饮水行为监测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 分析结果仅为行为统计与偏差提醒，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与采食/饮水行为监测直接相关的视频/图像数据，不采集与行为监测无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 分析结果仅供参考，实际饲喂调整与健康处置请结合养殖场规程与专业兽医意见 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽采食饮水行为监测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 轻度 / 中度 / 重度） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽采食饮水行为监测报告-20260703160500001 | 轻度 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地猪舍食槽视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4\n```\n\n### 🐔 分析本地鸡舍饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4\n```\n\n### 🌐 分析网络食槽/饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史行为监测报告\n\n> 自动触发关键词：查看历史采食饮水报告、历史报告、行为监测清单等。\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input pig_feeder.mp4 --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input chicken_waterer.mp4 --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786700133904\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` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\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 farm operators, livestock managers, and developers use this skill to analyze fixed-camera feeder or waterer media for feeding duration, feeding bouts, drinking frequency, baseline deviations, and behavior anomaly alerts. The results are behavior statistics and alerts, not disease diagnosis or treatment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends livestock media or media URLs to the Life Emergence cloud service for analysis.\n\nMitigation: Use only media approved for that service and avoid including unrelated sensitive footage before execution.\n\nRisk: The skill can create or reuse a local identity and store service tokens in the workspace data directory.\n\nMitigation: Review and remove local identity and token data, including data/smyx-api-key.txt and workspace data records, when uninstalling or rotating identities.\n\nRisk: Historical report queries read cloud records associated with the current identity.\n\nMitigation: Confirm the active identity before querying history and avoid sharing workspaces across users with different report access expectations.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API interface documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON text, including structured analysis reports, historical report lists, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can save analysis output to a user-provided file path; historical report lists are formatted for human review.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release evidence; artifact SKILL.md frontmatter says 1.0.7)\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, 39563 bytes\n\nFiles: references/api_doc.md (680b), scripts/__init__.py (48b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_feed_drink_behavior_monitor_analysis.py (3591b), skill-card.md (2461b), SKILL.md (12157b), 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 (160b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\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\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备食槽/饮水器视频输入 | 提供本地文件路径或网络 URL；确保画面稳定、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行采食/饮水行为监测 | 调用 `-m scripts.smyx_feed_drink_behavior_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看采食时长、采食/饮水频次、基线对比与异常提醒 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地食槽/饮水区域图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络食槽/饮水区域图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_feed_drink_behavior_monitor_analysis.py`](scripts/smyx_feed_drink_behavior_monitor_analysis.py) | 调用 API 进行采食/饮水行为监测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 分析结果仅为行为统计与偏差提醒，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与采食/饮水行为监测直接相关的视频/图像数据，不采集与行为监测无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 分析结果仅供参考，实际饲喂调整与健康处置请结合养殖场规程与专业兽医意见 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽采食饮水行为监测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 轻度 / 中度 / 重度） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽采食饮水行为监测报告-20260703160500001 | 轻度 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地猪舍食槽视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4\n```\n\n### 🐔 分析本地鸡舍饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4\n```\n\n### 🌐 分析网络食槽/饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史行为监测报告\n\n> 自动触发关键词：查看历史采食饮水报告、历史报告、行为监测清单等。\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input pig_feeder.mp4 --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input chicken_waterer.mp4 --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786238686450\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` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nAnalyzes fixed-camera feeder and waterer videos to quantify livestock feeding duration, feeding bouts, drinking frequency, and behavior anomaly alerts.\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 agricultural operations use this skill to analyze livestock feeder or waterer images and videos, compare behavior against baselines, and review historical monitoring reports. It supports feeding and drinking behavior statistics and anomaly alerts, but not disease diagnosis or treatment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends feeder or waterer images and videos to the publisher's remote service for analysis.\n\nMitigation: Use only footage that is acceptable for external processing, and confirm the publisher's retention and handling practices before using sensitive facility media.\n\nRisk: The skill can automatically create or reuse an identity and cache tokens in a local workspace SQLite database.\n\nMitigation: Run the skill in an isolated workspace, avoid shared machines for sensitive use, and clear the workspace data store when the identity should not persist.\n\nRisk: History-list mode retrieves cloud report history for the current resolved identity.\n\nMitigation: Verify the workspace and identity context before listing reports, and avoid mixing unrelated operators or facilities in the same workspace.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis)\n- [API interface documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON analysis report with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local media paths or media URLs; history-list mode returns structured report records.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release evidence; artifact frontmatter is 1.0.6)\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, 39739 bytes\n\nFiles: references/api_doc.md (680b), scripts/__init__.py (48b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_feed_drink_behavior_monitor_analysis.py (3591b), skill-card.md (2845b), SKILL.md (12157b), 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 (160b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.4\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\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\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备食槽/饮水器视频输入 | 提供本地文件路径或网络 URL；确保画面稳定、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行采食/饮水行为监测 | 调用 `-m scripts.smyx_feed_drink_behavior_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看采食时长、采食/饮水频次、基线对比与异常提醒 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地食槽/饮水区域图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络食槽/饮水区域图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_feed_drink_behavior_monitor_analysis.py`](scripts/smyx_feed_drink_behavior_monitor_analysis.py) | 调用 API 进行采食/饮水行为监测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 分析结果仅为行为统计与偏差提醒，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与采食/饮水行为监测直接相关的视频/图像数据，不采集与行为监测无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 分析结果仅供参考，实际饲喂调整与健康处置请结合养殖场规程与专业兽医意见 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽采食饮水行为监测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 轻度 / 中度 / 重度） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽采食饮水行为监测报告-20260703160500001 | 轻度 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地猪舍食槽视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4\n```\n\n### 🐔 分析本地鸡舍饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4\n```\n\n### 🌐 分析网络食槽/饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史行为监测报告\n\n> 自动触发关键词：查看历史采食饮水报告、历史报告、行为监测清单等。\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input pig_feeder.mp4 --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input chicken_waterer.mp4 --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785498448532\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` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts, and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. <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 agricultural operations use this skill to analyze fixed-camera livestock feeder or waterer images and videos for feeding duration, feeding bouts, drinking frequency, baseline deviations, and anomaly alerts. It also supports querying historical behavior monitoring reports from the configured service. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Livestock images or videos, media URLs, generated identity values, and report queries are sent to configured lifeemergence.com services. <br>\nMitigation: Use only media and URLs that the operator is authorized to send to the configured service, and avoid private or internal URLs unless the backend fetch path is trusted. <br>\nRisk: The local workspace data directory may contain a SQLite database with user records and service tokens. <br>\nMitigation: Treat the workspace data directory as sensitive, restrict access to it, and clean stored state when the skill is no longer needed. <br>\nRisk: The skill produces behavior statistics and anomaly alerts, not veterinary diagnosis or treatment guidance. <br>\nMitigation: Use outputs as decision-support data and confirm feeding, health, or treatment actions through farm procedures and qualified professionals. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [畜禽采食/饮水行为监测 API 接口文档](references/api_doc.md) <br>\n- [Common Analysis API 接口文档](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Analysis, Text, Markdown, JSON, Shell commands, Files] <br>\n**Output Format:** [Markdown or JSON text, with optional saved output files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Outputs may include structured behavior metrics, anomaly levels, historical report lists, and report links.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact SKILL.md frontmatter says 1.0.4) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 39667 bytes\n\nFiles: references/api_doc.md (680b), scripts/__init__.py (48b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_feed_drink_behavior_monitor_analysis.py (3591b), skill-card.md (2823b), SKILL.md (12157b), 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 (160b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.3\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\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\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备食槽/饮水器视频输入 | 提供本地文件路径或网络 URL；确保画面稳定、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行采食/饮水行为监测 | 调用 `-m scripts.smyx_feed_drink_behavior_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看采食时长、采食/饮水频次、基线对比与异常提醒 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地食槽/饮水区域图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络食槽/饮水区域图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_feed_drink_behavior_monitor_analysis.py`](scripts/smyx_feed_drink_behavior_monitor_analysis.py) | 调用 API 进行采食/饮水行为监测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 分析结果仅为行为统计与偏差提醒，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与采食/饮水行为监测直接相关的视频/图像数据，不采集与行为监测无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 分析结果仅供参考，实际饲喂调整与健康处置请结合养殖场规程与专业兽医意见 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽采食饮水行为监测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 轻度 / 中度 / 重度） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽采食饮水行为监测报告-20260703160500001 | 轻度 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地猪舍食槽视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4\n```\n\n### 🐔 分析本地鸡舍饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4\n```\n\n### 🌐 分析网络食槽/饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史行为监测报告\n\n> 自动触发关键词：查看历史采食饮水报告、历史报告、行为监测清单等。\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input pig_feeder.mp4 --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input chicken_waterer.mp4 --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784448207392\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` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera feeder and waterer images or videos to quantify livestock feeding duration, feeding bouts, drinking frequency, baseline deviations, and behavior anomaly alerts. <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>\nFarm operators, livestock managers, and agents use this skill to analyze feeder or waterer camera footage, summarize feeding and drinking behavior, compare activity against historical baselines, and surface non-diagnostic anomaly alerts for husbandry review. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Using the skill may upload livestock images or videos, or forward video URLs, to a cloud analysis service. <br>\nMitigation: Install and run it only in workspaces where cloud processing of that media is acceptable, and avoid providing footage that contains unrelated sensitive content. <br>\nRisk: The skill can query cloud report history and silently manage local account identity, including tokens or profile data in local storage. <br>\nMitigation: Review workspace identity and storage practices before use, restrict access to the workspace, and clear local credentials when the skill is no longer needed. <br>\nRisk: Behavior anomaly alerts are observational and are not veterinary diagnosis or treatment advice. <br>\nMitigation: Use results as husbandry decision support and confirm health or treatment decisions through farm procedures and qualified veterinary review. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Common analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON-style structured reports with optional report links and shell command examples] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include feeding duration, feeding frequency, drinking frequency, time distribution, baseline deviation level, anomaly level, and cloud report links.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter reports 1.0.3) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 39572 bytes\n\nFiles: references/api_doc.md (680b), scripts/__init__.py (48b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_feed_drink_behavior_monitor_analysis.py (3591b), skill-card.md (2796b), SKILL.md (12157b), 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 (160b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.2\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\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\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备食槽/饮水器视频输入 | 提供本地文件路径或网络 URL；确保画面稳定、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行采食/饮水行为监测 | 调用 `-m scripts.smyx_feed_drink_behavior_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看采食时长、采食/饮水频次、基线对比与异常提醒 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地食槽/饮水区域图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络食槽/饮水区域图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_feed_drink_behavior_monitor_analysis.py`](scripts/smyx_feed_drink_behavior_monitor_analysis.py) | 调用 API 进行采食/饮水行为监测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 分析结果仅为行为统计与偏差提醒，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与采食/饮水行为监测直接相关的视频/图像数据，不采集与行为监测无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 分析结果仅供参考，实际饲喂调整与健康处置请结合养殖场规程与专业兽医意见 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽采食饮水行为监测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 轻度 / 中度 / 重度） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽采食饮水行为监测报告-20260703160500001 | 轻度 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地猪舍食槽视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4\n```\n\n### 🐔 分析本地鸡舍饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4\n```\n\n### 🌐 分析网络食槽/饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史行为监测报告\n\n> 自动触发关键词：查看历史采食饮水报告、历史报告、行为监测清单等。\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input pig_feeder.mp4 --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input chicken_waterer.mp4 --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783346908932\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` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测\n\nFile v1.0.4:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.4:scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts, and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. <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 livestock operators and developers use this skill to analyze feeder or waterer camera media, produce structured feeding and drinking behavior statistics, compare results with historical baselines, and review anomaly alerts or prior cloud reports. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Livestock media, media URLs, and an automatically chosen identity are sent to the publisher's cloud service. <br>\nMitigation: Install and run the skill only when this data sharing is acceptable for the environment and avoid submitting unrelated or sensitive media. <br>\nRisk: The skill stores local user and token data in the workspace data directory. <br>\nMitigation: Avoid placing unrelated secrets in data/smyx-api-key.txt, and check or remove the local database when uninstalling or rotating access. <br>\nRisk: Behavior anomaly alerts could be mistaken for veterinary diagnosis or treatment advice. <br>\nMitigation: Use results as behavior statistics and baseline alerts only, and pair operational decisions with farm procedures and professional veterinary guidance. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [Behavior Monitoring API Documentation](references/api_doc.md) <br>\n- [Common Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, code, configuration, guidance] <br>\n**Output Format:** [Markdown and JSON-style structured analysis text, with optional Markdown tables for report lists and shell command examples.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include report export links, anomaly level, analysis time, feeding and drinking frequency, behavior duration, and local output files when requested.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; artifact frontmatter says 1.0.2) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.3: 31 files, 39570 bytes\n\nFiles: references/api_doc.md (680b), scripts/__init__.py (48b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_feed_drink_behavior_monitor_analysis.py (3591b), skill-card.md (2717b), SKILL.md (12157b), 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 (160b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.0\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\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\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备食槽/饮水器视频输入 | 提供本地文件路径或网络 URL；确保画面稳定、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行采食/饮水行为监测 | 调用 `-m scripts.smyx_feed_drink_behavior_monitor_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看采食时长、采食/饮水频次、基线对比与异常提醒 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地食槽/饮水区域图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络食槽/饮水区域图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_feed_drink_behavior_monitor_analysis.py`](scripts/smyx_feed_drink_behavior_monitor_analysis.py) | 调用 API 进行采食/饮水行为监测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 分析结果仅为行为统计与偏差提醒，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与采食/饮水行为监测直接相关的视频/图像数据，不采集与行为监测无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 分析结果仅供参考，实际饲喂调整与健康处置请结合养殖场规程与专业兽医意见 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽采食饮水行为监测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 轻度 / 中度 / 重度） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽采食饮水行为监测报告-20260703160500001 | 轻度 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地猪舍食槽视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4\n```\n\n### 🐔 分析本地鸡舍饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4\n```\n\n### 🌐 分析网络食槽/饮水器视频\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史行为监测报告\n\n> 自动触发关键词：查看历史采食饮水报告、历史报告、行为监测清单等。\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input pig_feeder.mp4 --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --input chicken_waterer.mp4 --output result.json\n```\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783191330094\n}\n\nFile v1.0.3:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽采食/饮水行为监测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测\n\nFile v1.0.3:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.3:scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.3:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.3:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nAnalyzes fixed-camera feeder and waterer videos or images to quantify livestock feeding duration, feeding bouts, and drinking frequency, compare behavior with baselines, and raise anomaly alerts. <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>\nDevelopers, farm operators, and livestock monitoring teams use this skill to analyze feeder and waterer media, produce structured behavior reports, and review historical feeding and drinking records for early appetite or routine changes. It provides behavior statistics and anomaly alerts, not veterinary diagnosis or treatment advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill sends livestock images, videos, or provided media URLs to the Life Emergence remote service for analysis. <br>\nMitigation: Use only media that is appropriate to share with that service, avoid unnecessary sensitive content, and confirm the deployment environment permits remote processing. <br>\nRisk: The skill silently creates or reuses an account-linked identity and may read data/smyx-api-key.txt. <br>\nMitigation: Review or remove data/smyx-api-key.txt before use and run the skill in a workspace where this identity behavior is acceptable. <br>\nRisk: The skill can store and reuse authentication tokens in local SQLite-backed user records. <br>\nMitigation: Install only where local token persistence is acceptable, restrict workspace access, and clear local user/token storage when rotating credentials or decommissioning the skill. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-feed-drink-behavior-monitor-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API interface documentation](references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON-style structured reports with optional report links and command examples] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Accepts local or URL media inputs and can output historical report listings.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: ClawHub release evidence; artifact frontmatter says 1.0.0) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.3:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.3:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Feeding/Drinking Behavior Monitoring | 畜禽采食/饮水行为监测 Owner: 18072937735 Summary: Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。 Tags: latest:1.0.10 Version history: v1.0.10 | 2026-08-25T22:05:29.785Z | auto - Updated SKILL.md ","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list"},{"language":"txt","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"python -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/pig_feeder.mp4"},{"language":"bash","snippet":"python -m scripts.smyx_feed_drink_behavior_monitor_analysis --input /path/to/chicken_waterer.mp4"},{"language":"bash","snippet":"python -m scripts.smyx_feed_drink_behavior_monitor_analysis --url https://example.com/cow_feeder.mp4"},{"language":"bash","snippet":"python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-feed-drink-behavior-monitor-analysis\"\ndescription: \"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🐖 Livestock Feeding & Drinking Behavior Monitor | 畜禽采食/饮水行为监测\n\n> 通过视频统计畜禽采食时长、饮水频次，异常时预警。\n>\n> **精准饲喂行为中枢** · 食槽/饮水器视频智能分析 · 采食时长与频次统计 · 基线对比 · 异常预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽采食/饮水行为监测** |\n| 🎯 核心目标 | 基于食槽或饮水区域的固定摄像头视频，识别畜禽采食与饮水行为，统计每日采食时长、采食频次、饮水频次，并与个体历史基线对比，输出行为异常提醒 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、采食时长、采食/饮水频次、行为分布时序、异常提醒等级、报告链接 |\n| 🏢 适用场景 | 猪/鸡/牛等畜禽的食欲下降早期预警、精准饲喂管理、群体行为节律观察 |\n| 🧩 场景码 | `SMYX_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽采食与饮水行为监测 AI。你的任务是分析食槽或饮水区域的固定摄像头视频，检测畜禽的采食和饮水行为，统计每日采食时长、采食频次、饮水频次，与个体历史基线进行对比，输出行为异常提醒。不要提供疾病诊断或治疗建议，仅基于视觉观察输出行为统计结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食槽或饮水区域的固定摄像头视频，量化畜禽的采食与饮水行为，比较其与个体历史基线的差异，为食欲下降的早期预警和精准饲喂管理提供客观的行为学数据支撑。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 食槽/饮水区域畜禽个体检测与定位 |\n| 2 | 采食行为识别（低头进食、咀嚼、吞咽等动作特征） |\n| 3 | 饮水行为识别（接触饮水器、抬头饮咽等动作特征） |\n| 4 | 单次采食时长与采食频次统计 |\n| 5 | 每日饮水频次与饮水节律统计 |\n| 6 | 行为分布时序（早/中/晚三时段） |\n| 7 | 与个体历史基线对比并输出偏差等级 |\n| 8 | 采食/饮水行为异常提醒（轻度 / 中度 / 重度） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供食槽/饮水区域固定摄像头视频 URL 或文件需要行为统计时，默认触发本技能进行采食与饮水行为监测 |\n| 🔎 明确分析意图 | 当用户明确提及采食时长、采食频次、饮水频次、食欲监测、饮水监测、食欲下降、精准饲喂、行为基线、行为异常等关键词，并且上传了图片或视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史采食饮水报告、历史行为监测报告、采食饮水报告清单、查询畜禽行为记录、显示所有采食饮水报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_feed_drink_behavior_monitor_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_feed_drink_behavior_monitor_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 固定摄像头正对食槽或饮水器，拍摄角度稳定，避免大幅位移或频繁调整视角 |\n| 2 | 画面中食槽/饮水器全景可见，能清晰观察畜禽头部与饮食器具的接触动作 |\n| 3 | 光照条件稳定，白天充足自然光或稳定人工光源，避免强逆光和大面积过曝 |\n| 4 | 视频建议 15 秒~5 分钟，帧率不低于 15fps，覆盖典型采食/饮水时段 |\n| 5 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 6 | 尽量避免人员进出、清扫作业等大面积遮挡影响行为统计 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-feed-drink-behavior-monitor-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787695529785\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` - 启动畜禽采食/饮水行为监测分析任务\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_FEED_DRINK_BEHAVIOR_MONITOR_ANALYSIS` - 畜禽采食/饮水行为监测"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。 Skill: Feeding/Drinking Behavior Monitoring | 畜禽采食/饮水行为监测 Owner: 18072937735 Summary: Analyzes fixed-camera videos of feeders and waterers to quantify livestock feeding duration, feeding bouts and drinking frequency, comparing them against individual baselines to raise behavior anomaly alerts. | 通过视频统计畜禽采食时长、饮水频次，异常时预警。 Tags: latest:1.0.10 Version history: v1.0.10 | 2026-08-25T22:05:29.785Z | auto - Updated SKILL.md","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":823,"uniquenessScore":51,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T14:16:41.506Z","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-11T14:16:41.506Z","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-11T17:46:49.766Z","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"}]}}}