{"id":"33a413ad-edd4-4050-bf88-3241658d32f8","entityType":"agent","slug":"clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis","name":"Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis","generatedAt":"2026-10-10T05:07:35.857Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:48:25.012Z","emptyReason":null},"description":"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-eating-speed-slow-feed-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-pet-eating-speed-slow-feed-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-pet-eating-speed-slow-feed-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:48:25.012Z","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-09T20:48:25.012Z","emptyReason":null},"stars":null,"forks":null,"downloads":2010,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:48:24.955Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T20:48:25.012Z","lastCrawledAt":"2026-10-09T20:48:24.955Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T20:48:24.955Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-10-02T01:12:26.802Z","changelog":"- Updated SKILL.md content and metadata for accuracy and clarity. - Version bumped from 1.0.15 to 1.0.17. - Removed outdated skill-card.md file.","fileCount":31,"zipByteSize":39188},{"version":"1.0.12","createdAt":"2026-09-25T11:35:28.710Z","changelog":"smyx-pet-eating-speed-slow-feed-analysis 1.0.12 - Updated documentation in SKILL.md, including version and metadata. - Removed the redundant skill-card.md file. - Updated configuration in skills/smyx_common/scripts/config.yaml.","fileCount":31,"zipByteSize":39273},{"version":"1.0.11","createdAt":"2026-09-13T07:52:31.171Z","changelog":"- Updated SKILL.md with new details and version number. - Removed the skill-card.md file. - Version bumped from 1.0.11 to 1.0.14. - No changes to core functionality or script logic.","fileCount":31,"zipByteSize":39544},{"version":"1.0.10","createdAt":"2026-08-27T11:00:31.906Z","changelog":"- Updated SKILL.md content and increased version to 1.0.12. - Removed the file skill-card.md. - Documentation now contains only SKILL.md, reflecting the latest skill details and examples.","fileCount":31,"zipByteSize":39404},{"version":"1.0.9","createdAt":"2026-08-17T11:07:29.382Z","changelog":"Version 1.0.10 - Updated SKILL.md for content changes and version increment. - Removed the redundant or deprecated skill-card.md file. - Edited configuration in skills/smyx_common/scripts/config.yaml. - Improved skill documentation and streamlined instructions.","fileCount":31,"zipByteSize":39584},{"version":"1.0.8","createdAt":"2026-08-13T05:07:41.390Z","changelog":"smyx-pet-eating-speed-slow-feed-analysis v1.0.9 - Updated documentation in SKILL.md with clarified instructions and details. - Removed the file skill-card.md. - No core functionality changes; update focuses on documentation refinement and file cleanup.","fileCount":31,"zipByteSize":39367},{"version":"1.0.7","createdAt":"2026-08-05T23:13:28.894Z","changelog":"- Removed the documentation file skill-card.md. - No changes to functionality or APIs. - Skill usage and behavior remain unchanged.","fileCount":31,"zipByteSize":39437},{"version":"1.0.6","createdAt":"2026-08-02T05:04:32.463Z","changelog":"- Version updated from 1.0.6 to 1.0.8. - The documentation (SKILL.md) has been revised and expanded. - The sample skill-card.md file has been removed. - No changes to code or business logic documented; update is focused on documentation clarity and structure.","fileCount":31,"zipByteSize":39416}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-eating-speed-slow-feed-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-eating-speed-slow-feed-analysis` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/18072937735/smyx-pet-eating-speed-slow-feed-analysis before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T05:07:35.853Z"}},"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-pet-eating-speed-slow-feed-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-eating-speed-slow-feed-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:48:25.012Z","emptyReason":null},"readme":"Skill: Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n\nOwner: 18072937735\n\nSummary: Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-10-02T01:12:26.802Z | auto\n\n- Updated SKILL.md content and metadata for accuracy and clarity.\n- Version bumped from 1.0.15 to 1.0.17.\n- Removed outdated skill-card.md file.\n\nv1.0.12 | 2026-09-25T11:35:28.710Z | auto\n\nsmyx-pet-eating-speed-slow-feed-analysis 1.0.12\n\n- Updated documentation in SKILL.md, including version and metadata.\n- Removed the redundant skill-card.md file.\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n\nv1.0.11 | 2026-09-13T07:52:31.171Z | auto\n\n- Updated SKILL.md with new details and version number.\n- Removed the skill-card.md file.\n- Version bumped from 1.0.11 to 1.0.14.\n- No changes to core functionality or script logic.\n\nv1.0.10 | 2026-08-27T11:00:31.906Z | auto\n\n- Updated SKILL.md content and increased version to 1.0.12.\n- Removed the file skill-card.md.\n- Documentation now contains only SKILL.md, reflecting the latest skill details and examples.\n\nv1.0.9 | 2026-08-17T11:07:29.382Z | auto\n\nVersion 1.0.10\n\n- Updated SKILL.md for content changes and version increment.\n- Removed the redundant or deprecated skill-card.md file.\n- Edited configuration in skills/smyx_common/scripts/config.yaml.\n- Improved skill documentation and streamlined instructions.\n\nv1.0.8 | 2026-08-13T05:07:41.390Z | auto\n\nsmyx-pet-eating-speed-slow-feed-analysis v1.0.9\n\n- Updated documentation in SKILL.md with clarified instructions and details.\n- Removed the file skill-card.md.\n- No core functionality changes; update focuses on documentation refinement and file cleanup.\n\nv1.0.7 | 2026-08-05T23:13:28.894Z | auto\n\n- Removed the documentation file skill-card.md.\n- No changes to functionality or APIs. \n- Skill usage and behavior remain unchanged.\n\nv1.0.6 | 2026-08-02T05:04:32.463Z | auto\n\n- Version updated from 1.0.6 to 1.0.8.\n- The documentation (SKILL.md) has been revised and expanded.\n- The sample skill-card.md file has been removed.\n- No changes to code or business logic documented; update is focused on documentation clarity and structure.\n\nv1.0.5 | 2026-07-18T06:25:27.245Z | auto\n\n- Updated version to 1.0.6 in SKILL.md.\n- Removed the file skill-card.md.\n- No functional or capability changes; documentation only.\n\nv1.0.4 | 2026-07-10T08:40:32.296Z | auto\n\n- Version updated from 1.0.4 to 1.0.5.\n- Documentation (SKILL.md) updated to reflect latest changes, version, and details.\n- Minor adjustments to metadata for clarity.\n- Outdated auxiliary documentation (skill-card.md) removed.\n- No changes to core functionality or application logic.\n\nv1.0.3 | 2026-07-01T21:58:25.946Z | auto\n\n- Major documentation upgrade: SKILL.md now features clearer layout, bilingual tables, more accessible overview, and enhanced usage/workflow sections.\n- Improved explanation of trigger conditions, system behaviors, and data source mandates.\n- Expanded parameter and API usage documentation for easier onboarding.\n- Outdated or redundant documentation file (skill-card.md) removed.\n\nv1.0.2 | 2026-06-24T13:44:28.729Z | auto\n\n- Major update: All user identity (open-id) handling is now fully automatic and internal; users are no longer asked to input identity information or see identity fields.\n- Updated scripts and documentation to remove any prompts or user instructions regarding identity parameters.\n- Simplified API usage—identity is managed invisibly by the system; script auto-selects or creates user context as needed.\n- Command examples and workflow show improved privacy and usability, with identity logic handled behind the scenes.\n- Removed references to manual or user-supplied open-id in output, errors, and usage documentation.\n- Cleaned up code and documentation for clarity and consistency with the new automatic identity logic.\n\nv1.0.1 | 2026-06-19T20:24:29.807Z | auto\n\n- Updated version from 1.0.0 to 1.0.2.\n- Added explicit license field (\"MIT-0\") to SKILL.md.\n- Corrected the open-id configuration file lookup: primary config path is now scripts/config.yaml (relative to skill root) instead of skills/smyx_common/scripts/config.yaml.\n- Removed the redundant skill-card.md file.\n- General metadata and documentation improvements for clarity and accuracy.\n\nv1.0.0 | 2026-05-21T18:18:07.239Z | auto\n\nInitial release of pet eating speed slow feed analysis skill.\n\n- Enables analysis of pet eating speed using food-bowl area videos via server-side API, supporting local files and URLs.\n- Detects feeding start/end times, calculates speed (g/s and sec/bowl), and identifies risks if speed is below safety threshold (e.g., <30 sec/bowl).\n- Automatically emits intervention suggestions (e.g., slow-feed baffle or voice alert) to help prevent choking and vomiting; does not diagnose diseases.\n- Provides clear workflow for open-id acquisition, video requirements, and strict usage rules for analysis and historical report queries.\n- Outputs analysis and history in standardized formats, including Markdown tables with direct report links for easy review.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 39188 bytes\n\nFiles: _meta.json (160b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2029b), SKILL.md (12131b), 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)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790903546802\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物进食速度检测与慢食干预 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动进食速度检测分析任务\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAnalyzes pet feeding videos or video URLs to estimate eating speed, provide a report, and suggest slow-feeding interventions when eating appears too fast, without diagnosing disease.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners and developers of smart feeders use this skill to review feeding videos, estimate eating speed, and identify when a slow-feeding prompt may be appropriate. It can also retrieve prior analysis reports; results are informational, not veterinary diagnoses.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet-feeding videos or video URLs are sent to an external service for analysis.\n\nMitigation: Review before installing, obtain consent before sharing footage, and confirm the provider's privacy, retention, and deletion practices.\n\nRisk: Analysis and history reports may be linked to an internal identity, and account tokens may be stored locally.\n\nMitigation: Use a separate workspace and account, limit access to local files and reports, and review what history the service retains.\n\n## Reference(s):\n\n- [Skill release on ClawHub](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis)\n- [Pet eating analysis API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Guidance]\n\n**Output Format:** [Markdown report or JSON]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Feeding-speed estimates, risk prompts, intervention suggestions, and report links; optional saved report file.]\n\n## Skill Version(s):\n\n1.0.13 (source: ClawHub server-resolved release)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 39273 bytes\n\nFiles: _meta.json (160b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2215b), SKILL.md (12131b), 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)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790336128710\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物进食速度检测与慢食干预 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动进食速度检测分析任务\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nAnalyzes pet feeding videos to estimate eating speed and duration, provide slow-feeding recommendations, and retrieve past reports without diagnosing disease.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners and developers of smart feeding products use this skill to analyze feeding videos, review eating-speed reports, and identify when a slow-feeding intervention may be appropriate.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet videos or video URLs are sent to an external analysis service.\n\nMitigation: Obtain consent before submitting media and avoid sharing unnecessary personal or location information.\n\nRisk: The skill can silently create or reuse an account identity and store service tokens locally.\n\nMitigation: Require explicit consent before account creation and protect or remove stored credentials according to local policy.\n\nRisk: History queries can retrieve reports associated with the account identity.\n\nMitigation: Request consent before history lookups and share retrieved reports only with the intended user.\n\n## Reference(s):\n\n- [Pet eating analysis API documentation](artifact/references/api_doc.md)\n- [Analysis API errors and authentication](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis report or Markdown history table]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Includes eating duration, speed estimates, recommendations, and report links; may be saved to a file. Device interventions are not performed by this skill.]\n\n## Skill Version(s):\n\n1.0.12 (source: server-resolved ClawHub release; artifact frontmatter lists 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 39544 bytes\n\nFiles: _meta.json (160b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2851b), SKILL.md (12131b), 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)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1789285951171\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物进食速度检测与慢食干预 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动进食速度检测分析任务\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes pet food-bowl videos from local files or URLs to estimate eating start and end times, eating speed, and whether a slow-feed intervention recommendation should be emitted without providing disease diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze pet feeding-area videos, receive structured feeding-speed reports, and surface slow-feed intervention guidance for compatible pet-care workflows. The skill is positioned for smart slow-feeder bowls, pet health management, and canine care, with results framed as behavioral reference information rather than medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Household pet videos may be sent to a remote service for analysis.\n\nMitigation: Use only with user-approved videos and confirm the remote service is appropriate for the deployment environment before installation.\n\nRisk: The skill can use automatic account identity, persist local identity tokens, and query account-scoped history.\n\nMitigation: Review identity and token handling before broad use, obtain explicit consent for account creation or history lookup, and avoid exposing internal identity values in outputs.\n\nRisk: Evidence reports active plaintext development API endpoints.\n\nMitigation: Configure and verify HTTPS-only production endpoints before using the skill in production or customer-facing settings.\n\nRisk: Evidence guidance calls out dependency review for the PyYAML package.\n\nMitigation: Review and correct dependency declarations before deployment.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis)\n- [Publisher Profile](https://clawhub.ai/user/18072937735)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Pet Eating Speed API Documentation](references/api_doc.md)\n- [Shared Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown reports and JSON returned from command-line/API execution]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can optionally save results to a user-selected output file and can list account-scoped historical reports.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; artifact SKILL.md frontmatter reports 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 31 files, 39404 bytes\n\nFiles: _meta.json (160b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2519b), SKILL.md (12131b), 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)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787828431906\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\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 pet food-bowl videos or video URLs to estimate feeding start and end times and eating speed, then returns non-diagnostic slow-feed intervention guidance when eating appears too fast.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill in smart slow-feeder bowl and pet-care workflows to analyze food-bowl videos, review structured feeding-speed results, and retrieve prior cloud reports. The skill is intended for behavior and feeding-speed reference only, not disease diagnosis or treatment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet feeding videos or video URLs may be sent to the configured remote backend for analysis.\n\nMitigation: Use non-sensitive footage, confirm the configured endpoint, and avoid household footage that should not leave the local environment.\n\nRisk: The workflow can silently create or reuse a backend identity and fetch cloud report history.\n\nMitigation: Run in an isolated workspace and verify account, retention, and report-access behavior with the publisher before deployment.\n\nRisk: Backend tokens may be stored in the workspace database.\n\nMitigation: Limit access to the workspace, rotate credentials after testing, and review token storage and cleanup expectations before production use.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis)\n- [Publisher profile](https://clawhub.ai/user/18072937735)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API interface document](artifact/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Structured report text, Markdown tables for report history, or JSON output when requested]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include feeding timestamps, eating-speed estimates, threshold comparison, intervention advice, and cloud report links when available.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact frontmatter states 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39584 bytes\n\nFiles: _meta.json (159b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2925b), SKILL.md (12131b), 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)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1786964849382\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\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 pet food-bowl videos or video URLs to estimate eating start and end times, feeding duration, eating speed, and slow-feed intervention recommendations without providing disease diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze pet eating behavior from bowl-area videos, generate structured reports, and decide whether slow-feed reminders or device-side interventions should be considered. It is intended for pet health management and smart slow-feeder workflows, not veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet videos and report history are processed through cloud APIs, which may expose sensitive household or account-linked media.\n\nMitigation: Use only videos appropriate for cloud processing and require the publisher to disclose media retention, processing location, and access controls before broad deployment.\n\nRisk: The skill silently creates or reuses account identity and stores access tokens locally.\n\nMitigation: Run in an isolated workspace, review local token storage behavior, and ensure users know how account identity is provisioned and revoked.\n\nRisk: Development or internal API endpoint configuration can route analysis or history queries to unintended services.\n\nMitigation: Replace dev/internal endpoints with production HTTPS endpoints and verify authorization on history-report queries before commercial use.\n\nRisk: Eating-speed analysis could be mistaken for medical advice.\n\nMitigation: Present results as behavioral observations and slow-feeding suggestions only, and direct medical concerns to a veterinarian.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Pet Eating Speed API Documentation](artifact/references/api_doc.md)\n- [SMYX Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON structured analysis report with timestamps, speed estimates, risk notes, recommendations, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May query cloud-hosted analysis and history-report APIs; local file or URL video inputs are supported.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release evidence; artifact frontmatter says 1.0.10)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39367 bytes\n\nFiles: _meta.json (159b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2487b), SKILL.md (12130b), 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)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786597661390\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\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 pet food-bowl videos or video URLs through cloud APIs to estimate feeding duration and speed, produce structured reports and report links, and suggest slow-feeding interventions without diagnosing disease.\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 pet-care users and developers use the skill to submit local or network feeding videos for eating-speed analysis, slow-feed intervention recommendations, and cloud history report retrieval.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet or home feeding videos, video URLs, and account-linked identity data are sent to configured Lifeemergence cloud services.\n\nMitigation: Use the skill only with videos and account contexts approved for those cloud services.\n\nRisk: The skill may create a local workspace database that caches tokens and retrieves prior reports automatically.\n\nMitigation: Review local workspace storage and token handling before deployment, and clear cached data when it is no longer needed.\n\nRisk: The security scanner marked the release suspicious because identity, local tokens, and cloud history are handled silently.\n\nMitigation: Require an installation review focused on identity handling, token storage, and cloud history access.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Pet eating speed API documentation](artifact/references/api_doc.md)\n- [Common analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, guidance]\n\n**Output Format:** [Markdown and JSON analysis reports with report links and optional saved output files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local video files, video URLs, pet type selection, report detail levels, and historical report listing.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter says 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.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, 39437 bytes\n\nFiles: _meta.json (159b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2583b), SKILL.md (12130b), 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)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785971608894\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\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 pet feeding-area videos or video URLs through server-side APIs to estimate feeding duration and eating speed, flag fast-eating risk, and provide slow-feed intervention guidance without disease diagnosis.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze pet food-bowl videos, produce structured eating-speed reports, and decide whether slow-feed reminders or device-side interventions are appropriate. It is intended for pet health management and smart slow-feeder workflows, not medical diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet videos, URLs, account identifiers, and report history may be sent to LifeEmergence cloud APIs.\n\nMitigation: Review data-sharing acceptability before installation and avoid submitting sensitive media or identifiers unless that transfer is approved.\n\nRisk: The skill can silently create or reuse an identity, read local identity material, and persist returned tokens in a shared workspace SQLite database.\n\nMitigation: Run it in a controlled workspace, limit filesystem access, and clear stored identity or token state between users.\n\nRisk: Cloud report history can be queried with limited user control.\n\nMitigation: Restrict use to authorized accounts and review whether historical report access is appropriate for the deployment.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis)\n- [Pet eating speed API documentation](artifact/references/api_doc.md)\n- [Common analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Markdown and JSON analysis reports with optional report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include feeding start/end times, eating-speed estimates, risk labels, slow-feed recommendations, and historical report tables.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release evidence; artifact frontmatter reports 1.0.8)\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, 39416 bytes\n\nFiles: _meta.json (159b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2626b), SKILL.md (12130b), 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)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785647072463\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\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 pet food-bowl videos or video URLs through server-side APIs to estimate eating duration and speed, report fast-eating risk, and provide slow-feed intervention guidance without diagnosing disease. <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, pet-care operators, and developers use this skill to analyze pet feeding-area videos for eating start and end times, speed estimates, fast-eating risk, and slow-feed intervention guidance for smart feeders or pet health management. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet or home videos may be uploaded or submitted by URL to a cloud analysis service. <br>\nMitigation: Install and run the skill only when users and workspace owners accept cloud processing of the video content. <br>\nRisk: The skill can create or reuse a backend identity and persist identity-linked tokens locally. <br>\nMitigation: Use it only in workspaces where account linkage and local token storage are acceptable, and review or clear local stored credentials as needed. <br>\nRisk: History-report keywords can trigger cloud history queries tied to the resolved backend identity. <br>\nMitigation: Use the history feature only where querying identity-linked cloud report history is expected and authorized. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis) <br>\n- [Pet Eating Speed API Documentation](references/api_doc.md) <br>\n- [Shared Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Files, Guidance] <br>\n**Output Format:** [Markdown text with structured JSON content and optional saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Outputs may include cloud report links and slow-feed intervention guidance; the --output option can write the result to a local file.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter reports 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.5: 31 files, 39459 bytes\n\nFiles: _meta.json (159b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2687b), SKILL.md (12130b), 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)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784355927245\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\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 pet food-bowl videos or video URLs to estimate eating start and end times, eating speed, and non-diagnostic slow-feeding intervention guidance. <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 developers use this skill to analyze pet feeding videos, estimate feeding duration and speed, and generate slow-feeding recommendations, structured reports, or report links. The skill is intended for pet behavior and health-management support, not disease diagnosis or treatment advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet feeding videos or URLs are processed by external LifeEmergence services. <br>\nMitigation: Use non-sensitive videos, confirm permission to submit the media, and avoid uploading household footage that should not leave the user's environment. <br>\nRisk: The skill may silently create or reuse an internal identity and store authentication tokens in a workspace SQLite database. <br>\nMitigation: Review or clear workspace data files and stored credentials when identity reuse across runs is not desired. <br>\nRisk: Cloud history lookup can return reports associated with the internally resolved identity. <br>\nMitigation: Run history queries only for authorized users and review report links before sharing results. <br>\n\n\n## Reference(s): <br>\n- [Pet Eating Speed API Documentation](artifact/references/api_doc.md) <br>\n- [Shared Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, Shell commands, Guidance] <br>\n**Output Format:** [Markdown or JSON-style structured analysis report with command-line invocation examples] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include eating timestamps, eating-speed estimates, risk labels, intervention suggestions, historical report summaries, and report links.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact SKILL.md frontmatter says 1.0.6) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 39444 bytes\n\nFiles: _meta.json (159b), references/api_doc.md (884b), scripts/__init__.py (54b), scripts/config.py (686b), scripts/config.yaml (3b), scripts/skill.py (588b), scripts/smyx_pet_eating_speed_slow_feed_analysis.py (3553b), skill-card.md (2630b), SKILL.md (12130b), 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)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\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_pet_eating_speed_slow_feed_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行进食速度检测分析 | 调用 `-m scripts.smyx_pet_eating_speed_slow_feed_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示进食速度历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🍽️ 进食速度安全参考阈值 | Eating Speed Reference\n| 等级         | 进食时长（每碗）   | 状态描述     | 建议干预          |\n|------------|------------|----------|---------------|\n| 🚨 过快（高风险） | < 30 秒     | 噎食/呕吐风险高 | 弹出慢食隔板 + 语音提醒 |\n| ⚠️ 偏快      | 30 ~ 60 秒  | 需关注      | 语音温和提醒        |\n| ✅ 正常       | 60 ~ 300 秒 | 安全       | 无需干预          |\n| 💤 偏慢      | > 300 秒    | 关注食欲变化   | 无需干预，但建议记录食欲  |\n\n> 注：以上阈值仅供参考，幼犬/大型犬/部分品种（拉布拉多、金毛等贪食型犬种）天然进食速度偏快，需结合品种与体重综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_eating_speed_slow_feed_analysis.py`](scripts/smyx_pet_eating_speed_slow_feed_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整进食过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供健康参考，不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 干预信号（慢食隔板弹出 / 语音提醒）由设备端基于本技能的输出结果实施，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783672832296\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）\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 pet food-bowl videos through SMYX cloud APIs to estimate feeding start and end times, eating speed, and slow-feed intervention suggestions without providing disease diagnosis. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nPet-care developers, smart-feeder operators, and external users use this skill to analyze local or URL-based food-bowl videos, review eating-speed metrics, and retrieve historical analysis reports from the cloud service. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet or home video content is sent to the Life Emergence/SMYX backend for analysis. <br>\nMitigation: Use only footage that is appropriate for the backend's privacy, retention, and account controls; avoid sensitive household footage unless those controls are acceptable. <br>\nRisk: The skill can create or reuse a local identity and store authentication tokens in the workspace data directory. <br>\nMitigation: Run it in an isolated workspace when reviewing or testing, and inspect or clear the workspace data directory after use if token persistence is not desired. <br>\nRisk: Eating-speed findings are wellness references, not veterinary diagnosis or treatment guidance. <br>\nMitigation: Treat reports as behavioral data and slow-feed suggestions; escalate health concerns to a qualified veterinarian. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-eating-speed-slow-feed-analysis) <br>\n- [Pet Eating Speed API Documentation](references/api_doc.md) <br>\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, files, shell commands, guidance] <br>\n**Output Format:** [Markdown or JSON structured analysis report with optional saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include report export links and history rows returned by the cloud API.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; artifact frontmatter reports 1.0.5) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预 Owner: 18072937735 Summary: Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/b","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input /path/to/eating_video.mp4 --pet-type dog\n\n# 分析网络食盆视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --url https://example.com/eating_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史进食报告、慢食干预报告清单等）\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_eating_speed_slow_feed_analysis --input eating_video.mp4 --pet-type dog --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-pet-eating-speed-slow-feed-analysis\"\ndescription: \"Triggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to call server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (g/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an intervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing diseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care. | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🍽️ Pet Eating Speed Slow Feed Analysis | 宠物进食速度检测与慢食干预\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物进食速度检测与慢食干预** |\n| 🎯 核心目标 | 当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 < 30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` |\n\nTriggers when a user provides a video of the pet food-bowl area for analysis; supports local uploads or network URLs to\ncall server-side APIs for eating-speed detection, recording start/end timestamps of feeding, estimating eating speed (\ng/s and seconds-per-bowl), and when the speed falls below the safety threshold (e.g. < 30 sec/bowl) emitting an\nintervention signal (slow-feed baffle pop-up or voice prompt) to prevent choking and vomiting (without diagnosing\ndiseases). Application scenarios: smart slow-feeder bowls, pet health management, canine care.\n\n当用户提供食盆区域视频时，触发本技能进行进食速度检测分析；支持通过上传本地视频或网络视频URL，调用服务端API记录进食开始/结束时间，计算进食速度（克/秒），当低于安全阈值（例如 <\n30 秒/碗）时触发外部干预信号（智能慢食碗隔板弹出、语音提醒），预防噎食与呕吐（不诊断疾病）。应用场景：智能慢食碗、宠物健康管理、犬类护理。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物健康行为分析AI。你的任务是基于食盆区域的连续视频，检测宠物进食的开始和结束时间，估算进食速度，并根据预设安全阈值判断是否存在进食过快风险，输出分析结果及干预建议。不要提供疾病诊断，仅客观描述进食行为数据。 ** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过食盆区域视频进行宠物进食速度检测与慢食干预分析，获取标准化的进食时长、进食速度（克/秒）数据，并对进食过快情况输出干预建议，帮助预防噎食与呕吐\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 进食开始/结束时间检测 |\n| 3 | 进食时长统计 |\n| 4 | 进食速度估算（克/秒） |\n| 5 | 安全阈值对比（默认 < 30 秒/碗 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供食盆区域视频 URL 或文件需要分析时，默认触发本技能进行进食速度检测 |\n| 🔎 明确分析意图 | 当用户明确需要进行进食行为监测时，提及食盆、慢食碗、进食速度、吃饭太快、噎食、干呕、暴饮暴食、慢食干预等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史进食报告、历史慢食干预报告、进食速度报告清单、查询进食记录、显示所有食盆监测报告、显示进食速度分析报告，查询慢食干预报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-eating-speed-slow-feed-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790903546802\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_PET_EATING_SPEED_SLOW_FEED_ANALYSIS` - 宠物进食速度检测与慢食干预\n\n## 干预联动\n\n- 触发条件：进食速度 ＜ 安全阈值（默认 30 秒/碗）\n- 外部干预通道：智能慢食碗隔板弹出 / 语音播报提醒（由设备侧基于报告结果实施）"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1036,"uniquenessScore":39,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T20:48:25.012Z","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-09T20:48:25.012Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T05:07:35.857Z","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"}]}}}