{"id":"1b1a3da8-07fa-4fed-96f0-766fd8efd855","entityType":"agent","slug":"clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis","name":"Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis","generatedAt":"2026-10-10T08:47:28.574Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T01:30:23.192Z","emptyReason":null},"description":"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-pica-behavior-recognition-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-pet-pica-behavior-recognition-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-pet-pica-behavior-recognition-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":65,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料） 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-10T01:30:23.192Z","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-10T01:30:23.192Z","emptyReason":null},"stars":null,"forks":null,"downloads":1805,"packageName":null,"latestVersion":"1.0.12","tractionLabel":"1.8K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T01:30:23.192Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T01:30:23.192Z","lastCrawledAt":"2026-10-10T01:30:23.192Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T01:30:23.192Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.12","createdAt":"2026-09-28T04:42:47.232Z","changelog":"- Updated SKILL.md: version bump from 1.0.16 to 1.0.17 and content modifications. - Updated configuration in skills/smyx_common/scripts/config.yaml. - Removed skill-card.md file.","fileCount":31,"zipByteSize":39878},{"version":"1.0.11","createdAt":"2026-09-15T14:44:29.866Z","changelog":"- Version number updated from 1.0.13 to 1.0.16 in SKILL.md. - Removed file: skill-card.md. - No fundamental changes to usage, parameters, or workflow documentation. - SKILL.md content remains the same aside from version bump and possible metadata/maintenance updates.","fileCount":31,"zipByteSize":40104},{"version":"1.0.10","createdAt":"2026-08-24T14:08:39.224Z","changelog":"- Version updated from 1.0.12 to 1.0.13. - Documentation updated in SKILL.md to reflect minor revisions. - skill-card.md file was removed. - No changes were made to functionality, code, or usage instructions.","fileCount":31,"zipByteSize":39942},{"version":"1.0.9","createdAt":"2026-08-19T21:35:29.736Z","changelog":"- Updated SKILL.md to reflect the latest documentation and metadata, including version number increment. - Removed skill-card.md from the project. - No functional or API changes; this release focuses on documentation updates and cleanup.","fileCount":31,"zipByteSize":40025},{"version":"1.0.8","createdAt":"2026-08-14T17:08:32.103Z","changelog":"- Updated version to 1.0.11 in SKILL.md. - Documentation content improved and version information aligned. - skill-card.md file removed. - Minor configuration updates in config.yaml.","fileCount":31,"zipByteSize":40057},{"version":"1.0.7","createdAt":"2026-08-08T03:29:48.363Z","changelog":"- Version updated to 1.0.9 - Documentation in SKILL.md updated (including version number and any details referencing version) - Outdated file skill-card.md removed - No code or feature changes; this is a documentation cleanup and maintenance update only","fileCount":31,"zipByteSize":39953},{"version":"1.0.6","createdAt":"2026-07-30T07:53:29.056Z","changelog":"- Updated skill version from 1.0.6 to 1.0.8. - SKILL.md was revised, including the new version, but retained functionality and structure. - Removed the skill-card.md file. - No major feature or interface changes; documentation and resource references remain consistent. - All core instructions, workflows, and requirements are unchanged.","fileCount":31,"zipByteSize":40072},{"version":"1.0.5","createdAt":"2026-07-14T22:59:29.743Z","changelog":"smyx-pet-pica-behavior-recognition-analysis 1.0.6 - Updated SKILL.md version and metadata for alignment with current release. - Removed deprecated skill-card.md documentation file. - Minor improvements to internal scripts/util.py. - No changes to core skill logic or APIs.","fileCount":31,"zipByteSize":40078}]},"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-pica-behavior-recognition-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-pica-behavior-recognition-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-pica-behavior-recognition-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-pica-behavior-recognition-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-pica-behavior-recognition-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-10T08:47:28.569Z"}},"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-pica-behavior-recognition-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-pica-behavior-recognition-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-pica-behavior-recognition-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-10T01:30:23.192Z","emptyReason":null},"readme":"Skill: Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n\nOwner: 18072937735\n\nSummary: Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\nTags: latest:1.0.12\n\nVersion history:\n\nv1.0.12 | 2026-09-28T04:42:47.232Z | auto\n\n- Updated SKILL.md: version bump from 1.0.16 to 1.0.17 and content modifications.\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n- Removed skill-card.md file.\n\nv1.0.11 | 2026-09-15T14:44:29.866Z | auto\n\n- Version number updated from 1.0.13 to 1.0.16 in SKILL.md.\n- Removed file: skill-card.md.\n- No fundamental changes to usage, parameters, or workflow documentation.\n- SKILL.md content remains the same aside from version bump and possible metadata/maintenance updates.\n\nv1.0.10 | 2026-08-24T14:08:39.224Z | auto\n\n- Version updated from 1.0.12 to 1.0.13.\n- Documentation updated in SKILL.md to reflect minor revisions.\n- skill-card.md file was removed.\n- No changes were made to functionality, code, or usage instructions.\n\nv1.0.9 | 2026-08-19T21:35:29.736Z | auto\n\n- Updated SKILL.md to reflect the latest documentation and metadata, including version number increment.\n- Removed skill-card.md from the project.\n- No functional or API changes; this release focuses on documentation updates and cleanup.\n\nv1.0.8 | 2026-08-14T17:08:32.103Z | auto\n\n- Updated version to 1.0.11 in SKILL.md.\n- Documentation content improved and version information aligned.\n- skill-card.md file removed.\n- Minor configuration updates in config.yaml.\n\nv1.0.7 | 2026-08-08T03:29:48.363Z | auto\n\n- Version updated to 1.0.9\n- Documentation in SKILL.md updated (including version number and any details referencing version)\n- Outdated file skill-card.md removed\n- No code or feature changes; this is a documentation cleanup and maintenance update only\n\nv1.0.6 | 2026-07-30T07:53:29.056Z | auto\n\n- Updated skill version from 1.0.6 to 1.0.8.\n- SKILL.md was revised, including the new version, but retained functionality and structure.\n- Removed the skill-card.md file.\n- No major feature or interface changes; documentation and resource references remain consistent.\n- All core instructions, workflows, and requirements are unchanged.\n\nv1.0.5 | 2026-07-14T22:59:29.743Z | auto\n\nsmyx-pet-pica-behavior-recognition-analysis 1.0.6\n\n- Updated SKILL.md version and metadata for alignment with current release.\n- Removed deprecated skill-card.md documentation file.\n- Minor improvements to internal scripts/util.py.\n- No changes to core skill logic or APIs.\n\nv1.0.4 | 2026-07-06T12:38:27.947Z | auto\n\n- Bumped version from 1.0.4 to 1.0.5 in SKILL.md.\n- No functional code or API changes; documentation/version only.\n\nv1.0.3 | 2026-07-03T21:23:29.109Z | auto\n\n**Major documentation update and restructuring:**\n- Revamped SKILL.md for improved readability with clear sectioning, overview table, workflow steps, and multi-language support.\n- Added feature summaries, trigger conditions, and strict API/data retrieval rules in more explicit tabular format.\n- Enhanced clarity on system/user boundaries, identity handling, and output requirements.\n- Expanded examples and resource index for easier developer reference.\n- Removed outdated skill-card.md for consistency.\n\nv1.0.2 | 2026-06-24T05:18:27.419Z | auto\n\n- User identity handling is now fully automatic; users are no longer asked to provide or input any identity information.\n- All requirements for user-supplied open-id, username, or mobile number have been removed from both workflow and documentation.\n- Internal authentication and user association are now silently managed by the system and are never exposed in outputs or error messages.\n- Updated examples and documentation for simplified API usage—users only need to provide video input; all identity processing is handled internally.\n- Removed scripts and documentation files related to manual identity and open-id handling.\n\nv1.0.1 | 2026-06-15T15:14:28.697Z | auto\n\nVersion 1.0.1\n\n- Updated skill version to 1.0.2 and added license information (MIT-0).\n- Documentation improvements and minor clarifications in SKILL.md; no code logic changed.\n- Removed obsolete file skill-card.md.\n- No functional updates; compatibility and interface remain unchanged.\n\nv1.0.0 | 2026-05-21T19:22:58.260Z | auto\n\n- Initial release of the pet pica behavior recognition and analysis skill.\n- Supports detection of pet mouth contact with hazardous non-food items (e.g. electric wires, plastic bags, socks, tissues, toy fragments) in indoor camera videos.\n- Triggers warning signals when contact lasts ≥ 2 seconds, helping to prevent intestinal obstruction, electric shock, and related dangers.\n- Allows both local video uploads and network URL inputs for analysis via server-side APIs.\n- Provides strict open-id acquisition and verification process for user identification and secure report management.\n- Includes automatic historical report queries and Markdown-formatted results with direct viewing links.\n\nArchive index:\n\nArchive v1.0.12: 31 files, 39878 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2343b), SKILL.md (12726b), 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-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790570567232\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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 indoor pet videos for prolonged contact with hazardous non-food items and returns behavior alerts, risk information, and report links 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 home-monitoring operators use this skill to review indoor camera footage for potentially hazardous chewing or ingestion behavior and consult current or historical safety reports. Results are monitoring aids, not veterinary diagnoses.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor camera footage or video URLs are sent to the publisher's remote services and may reveal private home activity.\n\nMitigation: Request explicit confirmation before analysis; avoid private footage unless the publisher's privacy and retention terms are acceptable.\n\nRisk: Analysis and history queries can create or reuse an internal account identity and persist authentication and history state locally.\n\nMitigation: Confirm before analysis or history queries, and restrict access to stored account and report data.\n\nRisk: Behavior alerts may be mistaken for a veterinary diagnosis or a guarantee of safety.\n\nMitigation: Treat results as monitoring guidance, not a diagnosis; seek veterinary advice for suspected ingestion or injury.\n\n## Reference(s):\n\n- [ClawHub release](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis)\n- [Pet pica analysis API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Structured analysis results and Markdown report tables]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Behavior warnings, risk levels, intervention suggestions, and report links]\n\n## Skill Version(s):\n\n1.0.12 (source: server-resolved ClawHub release; bundled SKILL.md states 1.0.17)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 40104 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2822b), SKILL.md (12726b), 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-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1789483469866\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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\nPet Pica Behavior Recognition analyzes indoor camera videos or video URLs through remote APIs to detect pets contacting non-food hazardous items such as electric wires, plastic bags, socks, tissues, and toy fragments, and outputs warning-oriented safety guidance 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 users and smart-home or pet-safety operators use this skill to analyze indoor pet video, identify possible chewing or pica contact with hazardous non-food objects, and receive structured warnings, recommendations, and report links. The output is safety-monitoring support only and should not be treated as veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Private indoor-camera videos or video URLs may be uploaded to a remote service with unclear retention and deletion terms.\n\nMitigation: Avoid sensitive household footage unless the publisher documents data handling, retention, deletion, and secure transport guarantees.\n\nRisk: The skill can silently create or reuse an account identity and store reusable tokens locally.\n\nMitigation: Run in an isolated workspace, review local credential storage before reuse, and clear stored identity or token files when the skill is no longer needed.\n\nRisk: Configuration evidence includes insecure HTTP defaults for some service endpoints.\n\nMitigation: Use only HTTPS service endpoints and verify the configured API URL before executing analysis or report-history queries.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis)\n- [Publisher Profile](https://clawhub.ai/user/18072937735)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Pet Pica API Documentation](references/api_doc.md)\n- [Analysis API Error Reference](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:** [Structured text or JSON with warning status, risk descriptions, recommendations, report history, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local mp4, avi, and mov video files up to 10 MB or remote video URLs; report history is retrieved from the remote service.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release evidence; artifact frontmatter lists 1.0.16)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 31 files, 39942 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2497b), SKILL.md (12726b), 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-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787580519224\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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 indoor camera video from a local file or URL to detect pet mouth contact with hazardous non-food items and output warning guidance for sustained contact 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 users and smart-home or pet-safety operators use this skill to analyze indoor pet videos for pica-like contact with wires, plastic, socks, tissues, toy fragments, and similar hazards. It returns structured monitoring results, risk indications, intervention guidance, and report links for pet safety workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Video inputs and generated reports may be sent to the configured analysis service and associated with a persistent local or remote identity.\n\nMitigation: Use only videos the user is comfortable sending to that service, and review endpoint configuration, retention practices, and identity-linkage behavior before installing.\n\nRisk: The skill can silently create or reuse identity data and provide cloud-linked history access that users may not expect.\n\nMitigation: Review the local API key file, local database behavior, and report-history access path before deployment, and disclose this identity handling to users.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis)\n- [Pet Pica API documentation](references/api_doc.md)\n- [SMYX analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-like structured analysis text, with optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May submit local video files or video URLs to the configured analysis service and may query cloud-linked analysis history for the current identity.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release evidence; artifact frontmatter states 1.0.13)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 40025 bytes\n\nFiles: _meta.json (162b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2638b), SKILL.md (12726b), 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-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787175329736\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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 indoor pet camera videos from local files or URLs by calling server-side APIs to detect sustained contact between a pet's mouth and non-food hazardous items such as electric wires, plastic, socks, tissues, and toy fragments, then returns a safety warning 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 users and developers use this skill for pet safety monitoring workflows that analyze indoor video, identify possible pica behavior around hazardous non-food objects, and produce warning-oriented reports or history tables. The output is for safety monitoring and intervention guidance, not veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor camera videos may be uploaded to provider-operated APIs for analysis.\n\nMitigation: Install and use the skill only where uploading that video content to the provider is acceptable.\n\nRisk: The skill can create or reuse local/cloud identities and cache access tokens in the workspace data directory.\n\nMitigation: Run it in a separate workspace or account and clear stored tokens and reports when they should not persist.\n\nRisk: Historical report queries can fetch prior cloud reports with limited user control.\n\nMitigation: Use accounts where reused report history is expected, and review cloud report access before deployment.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Pet pica behavior 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 report or JSON analysis result, with optional Markdown tables for history queries and shell commands for invoking the packaged script.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include risk level, detected object categories, intervention suggestions, report links, and historical report listings.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 40057 bytes\n\nFiles: _meta.json (162b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2693b), SKILL.md (12726b), 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.8:SKILL.md\n\n---\nname: \"smyx-pet-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786727312103\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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: dev\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nAnalyzes indoor pet camera videos or video URLs through a remote service to detect sustained mouth contact with hazardous non-food objects and return non-diagnostic pet safety warnings.\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 with indoor camera footage to monitor pets for pica-like chewing or mouthing of wires, plastics, fabric, paper, and similar hazardous objects. It produces safety-monitoring alerts and guidance only; it does not diagnose disease.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Indoor camera videos or video URLs may be sent to a configured remote service.\n\nMitigation: Install only when this data sharing is acceptable, review the endpoint configuration before use, and avoid submitting sensitive home media.\n\nRisk: The skill can automatically create or reuse an account identity and query cloud report history.\n\nMitigation: Confirm that automatic identity handling and cloud history lookup fit the intended deployment and account policy before installation.\n\nRisk: Authentication tokens may be stored in a local workspace SQLite database.\n\nMitigation: Use a trusted workspace, restrict local file access, and clear stored tokens when the skill is no longer needed.\n\nRisk: Packaged configuration may reference development, HTTP, or private-network endpoints.\n\nMitigation: Review and replace default endpoint configuration with approved production endpoints before use.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Pet pica 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, guidance, files]\n\n**Output Format:** [Markdown or JSON structured analysis report with warning guidance and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save results to a file when requested; local video inputs are limited to mp4, avi, and mov files up to 10MB.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release evidence; artifact frontmatter reports 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39953 bytes\n\nFiles: _meta.json (162b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2457b), SKILL.md (12725b), 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-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1786159788363\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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 indoor pet camera videos or video URLs through server-side APIs to detect sustained mouth contact with hazardous non-food items and return pica-behavior warnings, structured reports, recommendations, and report links 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\nPet owners, smart-home operators, and developers use this skill to analyze indoor camera footage for pet contact with wires, plastic, socks, tissues, or toy fragments, triggering warnings when sustained contact suggests a safety risk. It supports local video uploads, network video URLs, and cloud history/report lookup.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Sensitive indoor pet-camera videos or supplied video URLs may be sent to LifeEmergence cloud services and linked to cloud report history.\n\nMitigation: Use the skill only where cloud processing, account linkage, and report retention are acceptable; avoid highly private footage unless retention, deletion, and authorization controls are clear.\n\nRisk: The skill may silently create or reuse an account identity and store or transmit identity tokens.\n\nMitigation: Deploy only in environments where local token storage and automatic identity association have been reviewed and approved.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [API Interface Documentation](references/api_doc.md)\n- [SMYX Analysis API Error Reference](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, guidance]\n\n**Output Format:** [Structured analysis text, JSON details, Markdown tables for history results, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include warning levels, detected object categories, recommendations, and cloud report export URLs.]\n\n## Skill Version(s):\n\n1.0.7 (source: server-resolved release evidence)\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, 40072 bytes\n\nFiles: _meta.json (162b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2882b), SKILL.md (12725b), 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-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785398009056\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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 indoor pet-camera videos or URLs through cloud APIs to detect sustained contact between a pet's mouth and hazardous non-food objects and return warning-oriented structured reports without medical 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>\nExternal users and developers use this skill to analyze indoor pet-monitoring videos for pica-like contact with wires, plastic, socks, tissues, toy fragments, and similar non-food hazards. It is intended for safety monitoring and alert-oriented reporting, not medical diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Indoor camera footage may contain private household scenes and is sent to a lifeemergence cloud service for analysis. <br>\nMitigation: Use only footage that is appropriate to share with that service, avoid unrelated indoor scenes, and prefer a separate test workspace or account for evaluation. <br>\nRisk: The skill silently creates or reuses a local identity and stores account tokens in the workspace data directory. <br>\nMitigation: Review local identity and token files before deployment, separate testing from production identities, and remove the local database or API-key file when the skill is no longer used. <br>\nRisk: The reports are safety-monitoring outputs and may be mistaken for veterinary diagnosis. <br>\nMitigation: Present results as behavioral risk alerts and intervention suggestions only, and route health concerns to a qualified veterinarian. <br>\n\n\n## Reference(s): <br>\n- [Pet Pica Behavior API Documentation](artifact/references/api_doc.md) <br>\n- [SMYX 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-pica-behavior-recognition-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Analysis, Markdown, JSON, Files, API Calls, Shell commands] <br>\n**Output Format:** [Markdown and JSON structured reports with optional saved output files and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Outputs warning-oriented pet safety findings, risk level details, intervention suggestions, and historical report listings when requested.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter lists 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.5: 31 files, 40078 bytes\n\nFiles: _meta.json (162b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2879b), SKILL.md (12725b), 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-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784069969743\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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 indoor pet camera video from local files or URLs to detect sustained mouth contact with hazardous non-food items such as electric wires, plastic bags, socks, tissues, and toy fragments, then returns warning-oriented safety results 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 and developers use this skill to analyze indoor pet monitoring video for possible pica behavior and receive structured safety warnings, risk levels, intervention suggestions, and report links. It also supports querying historical reports associated with the skill-managed identity. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Indoor camera media or video URLs are sent to the publisher's cloud service for analysis. <br>\nMitigation: Use only with appropriate authorization, avoid submitting sensitive footage when possible, and confirm cloud data-handling expectations before deployment. <br>\nRisk: The skill may silently create or reuse a persistent local identity and query historical reports linked to that identity. <br>\nMitigation: Run it in controlled workspaces, restrict access to local identity and token storage, and review report access against the deployment's privacy policy. <br>\nRisk: The security evidence flags the release as suspicious because it sends media and report data to external APIs while managing persistent identities and tokens. <br>\nMitigation: Review before installing, validate the publisher and endpoints, and deploy only where these data flows are acceptable. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [API Documentation](artifact/references/api_doc.md) <br>\n- [Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON-style structured analysis or report-list output] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include warning signals, risk levels, intervention suggestions, historical report tables, and report links.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter and changelog list 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, 39761 bytes\n\nFiles: _meta.json (162b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2313b), SKILL.md (12725b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-pet-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_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-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783341507947\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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 indoor pet videos or video URLs for pica-like chewing or mouthing of hazardous non-food items and returns risk warnings without providing medical 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>\nExternal pet owners, smart-home operators, and developers use this skill to submit indoor camera footage for pet pica behavior monitoring and retrieve structured risk reports or report history. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Private indoor camera videos, video URLs, report history, and exported report links may be sent to or retrieved from the Life Emergence cloud service. <br>\nMitigation: Use only footage you are authorized to share, and review the service's handling of video retention, report history, exported report links, and stored tokens before deployment. <br>\nRisk: The skill may silently create or reuse a local or cloud identity and store session tokens locally. <br>\nMitigation: Run it in an appropriate user environment, monitor local credential storage, and clear local identity or token data when access is no longer needed. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, guidance] <br>\n**Output Format:** [Markdown report text, with JSON available through the script detail mode] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include risk levels, intervention guidance, report links, and cloud report-history tables.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; artifact frontmatter says 1.0.5) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.3: 31 files, 39957 bytes\n\nFiles: _meta.json (162b), references/api_doc.md (1282b), scripts/__init__.py (48b), scripts/config.py (699b), scripts/config.yaml (3b), scripts/skill.py (598b), scripts/smyx_pet_pica_behavior_recognition_analysis.py (3606b), skill-card.md (2873b), SKILL.md (12725b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: \"smyx-pet-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.4\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_pica_behavior_recognition_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_pica_behavior_recognition_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## 危险物品 & 风险等级参考\n\n| 风险等级  | 物品示例                            | 危险类型            | 默认接触阈值 | 建议干预                 |\n|-------|---------------------------------|-----------------|--------|----------------------|\n| 🚨 紧急 | 通电电线 / 充电中数据线 / 化学清洁剂瓶 / 药品     | 触电 / 烧伤 / 中毒    | ≥ 1 秒  | 立即声光劝阻 + 推送主人 + 紧急联系 |\n| ⚠️ 高  | 塑料袋 / 袜子 / 内衣 / 橡皮筋 / 发圈 / 玩具碎片 | 窒息 / 肠梗阻 / 线性异物 | ≥ 2 秒  | 声光劝阻 + 推送告警          |\n| ⚠️ 中  | 纸巾 / 厕纸 / 包装盒纸片                 | 消化道堵塞           | ≥ 3 秒  | 声音温和提醒 + 记录          |\n| ℹ️ 关注 | 自身玩具 / 磨牙棒                      | 正常啃咬            | —      | 无需干预                 |\n\n> 注：以上参考标准仅供视觉判定参考，最终判定以 API 输出结果为准。幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，需更频繁监测。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_pica_behavior_recognition_analysis.py`](scripts/smyx_pet_pica_behavior_recognition_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| 🔎 使用提醒 | 幼宠、好奇心强的猎犬种（拉布拉多、金毛、比格等）天然异食风险更高，AI 角色在输出时需主动提醒 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783113809109\n}\n\nFile v1.0.3:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物异食行为识别（啃咬电线/塑料）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动异食行为识别分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\n- 输出可直接由智能家居安防设备（智能音箱、宠物摄像头）消费，实现声光劝阻或推送告警\n\nFile v1.0.3:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.3:scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.3:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.3:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nAnalyzes indoor camera video from a local upload or network URL through a remote service to identify pet mouth contact with hazardous non-food items such as electric wires, plastic, socks, tissues, or toy fragments, and returns warning-oriented safety monitoring results 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 and developers use this skill to analyze indoor pet camera footage for pica-risk behaviors, including sustained contact with wires, plastic, socks, tissues, toy fragments, and other non-food hazards. It supports safety monitoring workflows that return structured reports, warning signals, intervention suggestions, and historical report listings. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Indoor camera footage or video URLs may be sent to a remote service for analysis. <br>\nMitigation: Use the skill only with media you are permitted to share, avoid private camera URLs with embedded credentials, and confirm the publisher's handling of uploaded media before deployment. <br>\nRisk: The skill may create or reuse a hidden user identity and associate analysis history with that identity. <br>\nMitigation: Review account-linking behavior and retained report history before use in privacy-sensitive environments. <br>\nRisk: Tokens or profile data may be stored in a local workspace database. <br>\nMitigation: Restrict workspace access, avoid shared machines for sensitive use, and clear local state according to the publisher's operational guidance. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-pica-behavior-recognition-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Pet pica behavior API documentation](artifact/references/api_doc.md) <br>\n- [Shared analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, files, guidance] <br>\n**Output Format:** [Markdown or JSON structured analysis report, with optional file output] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include risk level, warning signal, intervention guidance, report links, and historical report tables.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata; artifact frontmatter says 1.0.4) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.3:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.3:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料） Owner: 18072937735 Summary: Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 se","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_pet_pica_behavior_recognition_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_pet_pica_behavior_recognition_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input /path/to/indoor_video.mp4 --pet-type dog\n\n# 分析网络室内监控视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --url https://example.com/indoor_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史异食报告、误食预警报告清单等）\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_pica_behavior_recognition_analysis --input indoor_video.mp4 --pet-type dog --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-pet-pica-behavior-recognition-analysis\"\ndescription: \"Triggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call server-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous items (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a warning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases). Application scenarios: indoor cameras, pet safety monitoring, smart-home security. | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# ⚠️ Pet Pica Behavior Recognition | 宠物异食行为识别（啃咬电线/塑料）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物异食行为识别（啃咬电线/塑料）** |\n| 🎯 核心目标 | 当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥ 2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` |\n\nTriggers when a user provides an indoor camera video for analysis; supports local uploads or network URLs to call\nserver-side APIs for pet pica-behavior recognition, detecting contact between the pet's mouth and non-food hazardous\nitems (electric wires, plastic bags, socks, tissues, toy fragments, etc.); when the contact lasts ≥ 2 seconds, outputs a\nwarning signal to help prevent intestinal obstruction, electric shock and other dangers (without diagnosing diseases).\nApplication scenarios: indoor cameras, pet safety monitoring, smart-home security.\n\n当用户提供室内监控视频时，触发本技能进行异食行为识别；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物嘴部与电线、塑料袋、袜子、纸巾、玩具碎片等非食物物品的接触动作；持续接触 ≥\n2 秒时输出预警信号，预防肠梗阻、触电等危险（不诊断疾病）。应用场景：室内摄像头、宠物安全监控、智能家居安防。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的宠物安全监测AI。你的任务是基于室内环境的连续视频，检测宠物是否有啃咬或咀嚼非食物物品（如电线、塑料制品、袜子、纸巾、玩具碎片等）的行为。当检测到宠物嘴部与危险物品接触并持续超过 2 秒时，输出预警信号。不要提供疾病诊断，仅客观描述行为和风险等级。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过室内监控视频识别宠物异食行为（嘴部与危险物品接触），持续 ≥ 2 秒时输出预警，预防肠梗阻、触电、中毒等危险\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 宠物嘴部定位 |\n| 3 | 危险物品识别（电线/塑料/袜子/纸巾/玩具碎片等） |\n| 4 | 接触动作检测 |\n| 5 | 持续时长统计（秒） |\n| 6 | 风险等级判定 |\n| 7 | 预警信号输出 |\n| 8 | 外部干预建议（声光劝阻 / |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供室内监控视频 URL 或文件需要分析时，默认触发本技能进行异食行为识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行宠物安全监控时，提及啃电线、咬塑料、吞袜子、误食、肠梗阻、触电、宠物乱咬、异食癖、宠物安全监控等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史异食报告、历史误食预警报告、异食行为报告清单、查询误食记录、显示所有宠物安全报告、显示异食识别报告，查询宠物安全风险提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-pica-behavior-recognition-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790570567232\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_PICA_BEHAVIOR_RECOGNITION_ANALYSIS` - 宠物异食行为识别（啃咬电线/塑料）\n\n## 危险物品类别（建议覆盖）\n\n- 电线 / 充电线 / 数据线（触电、电烧伤风险）\n- 塑料袋 / 塑料瓶盖 / 塑料碎片（窒息、肠梗阻风险）\n- 袜子 / 内衣 / 抹布（肠梗阻高发）\n- 纸巾 / 厕纸（堵塞消化道风险）\n- 玩具碎片 / 橡皮筋 / 发圈（线性异物，猫高发）\n- 药品包装 / 化学清洁剂瓶（中毒风险）\n\n## 设备联动\n\n- 持续接触 ≥ 2 秒 即触发预警信号\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":1009,"uniquenessScore":42,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T01:30:23.192Z","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-10T01:30:23.192Z","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-10T08:47:28.574Z","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"}]}}}