{"id":"b9ecb61e-f42e-4848-be4a-f88f9fc57f2b","entityType":"agent","slug":"clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis","name":"Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis","generatedAt":"2026-10-10T06:53:35.316Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T17:43:03.850Z","emptyReason":null},"description":"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2.2K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-grooming-stress-behavior-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-pet-grooming-stress-behavior-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-pet-grooming-stress-behavior-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":67,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T17:43:03.850Z","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-09T17:43:03.850Z","emptyReason":null},"stars":null,"forks":null,"downloads":2191,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"2.2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T17:43:03.671Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T17:43:03.850Z","lastCrawledAt":"2026-10-09T17:43:03.671Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T17:43:03.671Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-09-30T02:40:28.594Z","changelog":"- Updated version to 1.0.15 in SKILL.md. - Removed the file skill-card.md. - No changes to core features or usage. - Documentation maintenance only.","fileCount":31,"zipByteSize":39812},{"version":"1.0.12","createdAt":"2026-09-22T19:13:33.219Z","changelog":"- Updated skill version to 1.0.14. - Removed the file skill-card.md. - Minor updates to documentation (SKILL.md), including the version number in metadata. - No feature, logic, or config changes beyond documentation and metadata updates.","fileCount":31,"zipByteSize":40178},{"version":"1.0.11","createdAt":"2026-09-13T20:43:29.565Z","changelog":"- Updated version number from 1.0.12 to 1.0.13 in SKILL.md. - Removed file: skill-card.md. - No functional or structural changes to skill logic or content. Only metadata and documentation changes.","fileCount":31,"zipByteSize":40004},{"version":"1.0.10","createdAt":"2026-08-30T02:53:30.449Z","changelog":"- Version bumped to 1.0.12. - Documentation updated in SKILL.md. - skill-card.md file removed. - No changes to code or functionality.","fileCount":31,"zipByteSize":39970},{"version":"1.0.9","createdAt":"2026-08-20T16:24:32.748Z","changelog":"- Updated configuration in skills/smyx_common/scripts/config.yaml. - Removed the documentation file skill-card.md. - No changes to core features or user workflow.","fileCount":31,"zipByteSize":40011},{"version":"1.0.8","createdAt":"2026-08-12T06:13:38.998Z","changelog":"- Upgraded version from 1.0.8 to 1.0.10. - Updated documentation and workflow details in SKILL.md. - Removed the skill-card.md file. - No changes to core functionality or APIs.","fileCount":31,"zipByteSize":40014},{"version":"1.0.7","createdAt":"2026-08-05T22:13:29.659Z","changelog":"- Removed the file: skill-card.md - No user-facing functionality or behavior is changed. - Documentation cleanup; file removal only.","fileCount":31,"zipByteSize":40048},{"version":"1.0.6","createdAt":"2026-07-30T14:47:32.746Z","changelog":"- Bumped the skill version from 1.0.5 to 1.0.8 in SKILL.md. - Removed the redundant skill-card.md file for cleaner documentation management. - No functional or behavioral changes to code or features; changes are limited to version update and documentation cleanup.","fileCount":31,"zipByteSize":40009}]},"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-grooming-stress-behavior-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-grooming-stress-behavior-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-grooming-stress-behavior-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-grooming-stress-behavior-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-grooming-stress-behavior-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-10T06:53:35.310Z"}},"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-grooming-stress-behavior-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-grooming-stress-behavior-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-grooming-stress-behavior-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-09T17:43:03.850Z","emptyReason":null},"readme":"Skill: Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n\nOwner: 18072937735\n\nSummary: Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-09-30T02:40:28.594Z | auto\n\n- Updated version to 1.0.15 in SKILL.md.\n- Removed the file skill-card.md.\n- No changes to core features or usage.\n- Documentation maintenance only.\n\nv1.0.12 | 2026-09-22T19:13:33.219Z | auto\n\n- Updated skill version to 1.0.14.\n- Removed the file skill-card.md.\n- Minor updates to documentation (SKILL.md), including the version number in metadata.\n- No feature, logic, or config changes beyond documentation and metadata updates.\n\nv1.0.11 | 2026-09-13T20:43:29.565Z | auto\n\n- Updated version number from 1.0.12 to 1.0.13 in SKILL.md.\n- Removed file: skill-card.md.\n- No functional or structural changes to skill logic or content. Only metadata and documentation changes.\n\nv1.0.10 | 2026-08-30T02:53:30.449Z | auto\n\n- Version bumped to 1.0.12.\n- Documentation updated in SKILL.md.\n- skill-card.md file removed. \n- No changes to code or functionality.\n\nv1.0.9 | 2026-08-20T16:24:32.748Z | auto\n\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n- Removed the documentation file skill-card.md.\n- No changes to core features or user workflow.\n\nv1.0.8 | 2026-08-12T06:13:38.998Z | auto\n\n- Upgraded version from 1.0.8 to 1.0.10.\n- Updated documentation and workflow details in SKILL.md.\n- Removed the skill-card.md file.\n- No changes to core functionality or APIs.\n\nv1.0.7 | 2026-08-05T22:13:29.659Z | auto\n\n- Removed the file: skill-card.md\n- No user-facing functionality or behavior is changed.\n- Documentation cleanup; file removal only.\n\nv1.0.6 | 2026-07-30T14:47:32.746Z | auto\n\n- Bumped the skill version from 1.0.5 to 1.0.8 in SKILL.md.\n- Removed the redundant skill-card.md file for cleaner documentation management.\n- No functional or behavioral changes to code or features; changes are limited to version update and documentation cleanup.\n\nv1.0.5 | 2026-07-12T18:33:36.465Z | auto\n\n- Updated utility script: made changes to skills/smyx_common/scripts/util.py.\n- Removed markdown documentation: deleted skill-card.md file.\n- No changes to core workflow or user interface.\n- Documentation and end-user visible behavior remain the same.\n\nv1.0.4 | 2026-07-09T20:05:27.974Z | auto\n\n- Updated to version 1.0.5.\n- Documentation and metadata improvements in SKILL.md, including version bump and expanded details.\n- Removed redundant documentation file (skill-card.md).\n- Internal script updates in config.py, dao.py, and util.py for improved maintainability.\n- No changes to user-facing features or APIs.\n\nv1.0.3 | 2026-06-28T19:43:24.968Z | auto\n\n**Version 1.0.3 Changelog**\n\n- Updated internal user identity handling: user identity is now auto-processed; users are no longer asked to provide or view identity parameters.\n- Simplified usage and instructions by removing all open-id prompts and requirements from documentation and workflow.\n- All historical report queries fully rely on cloud API; local/manual gathering is strictly disallowed.\n- Documentation and output methods improved for clarity, including new, concise tables and sample outputs.\n- Cleaned up legacy/unused files and scripts for a leaner project structure.\n\nv1.0.2 | 2026-06-23T09:08:30.076Z | auto\n\nsmyx-pet-grooming-stress-behavior-analysis v1.0.2\n\n- Updated internal scripts and utilities for improved stability and consistency.\n- Adjusted configuration file handling logic to prefer shared configs in `smyx_common` when present.\n- Improved API documentation to clarify parameters and error handling.\n- Removed redundant documentation file (`skill-card.md`) for clarity.\n- No change to user-facing features or API interface.\n\nv1.0.1 | 2026-06-21T11:17:25.515Z | auto\n\n- Updated open-id retrieval priority: now checks scripts/config.yaml in the skill root as the first config source.\n- Added license information (\"MIT-0\") to SKILL.md.\n- Removed local 'skill-card.md' file.\n- Version bump from 1.0.0 to 1.0.2.\n- Minor doc updates in SKILL.md for clarity and process accuracy.\n\nv1.0.0 | 2026-05-21T17:20:42.867Z | auto\n\nInitial release of smyx-pet-grooming-stress-behavior-analysis.\n\n- Analyzes pet grooming session videos for stress behaviors such as struggling, panting, and tail tucking.\n- Supports both local video uploads and network URLs, calling server-side APIs for recognition.\n- Outputs standardized stress level grading and detailed behavioral observations to assist timely intervention.\n- Enforces strict open-id acquisition for report tracking; disallows default or auto-generated ids.\n- Provides automatic history report querying with results formatted as Markdown tables with clickable report links.\n- Designed for use in pet grooming shops, veterinary clinics, and pet care services.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 39812 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2188b), SKILL.md (13633b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (162b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790736028594\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物美容过程应激行为识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动美容应激行为分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAnalyzes pet grooming videos or video URLs for stress-related behaviors and returns a graded report to help groomers respond.\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 groomers, veterinary staff, and pet care providers use this skill to review grooming footage for signs of stress and view graded behavior reports or cloud report history. It is an observational aid, not a veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Grooming videos or video URLs are sent to a cloud service and may contain sensitive customer or clinic footage.\n\nMitigation: Use only with appropriate consent and after checking the provider's access controls and retention policy.\n\nRisk: The skill may silently create or reuse a cloud-linked identity and store tokens locally.\n\nMitigation: Review the identity and local token behavior before installation, and limit use to trusted environments.\n\nRisk: Cloud report history can be retrieved with limited user control.\n\nMitigation: Confirm the intended account and permissions before requesting history, and avoid sharing report links beyond authorized recipients.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis)\n- [Skill 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, Guidance]\n\n**Output Format:** [Markdown behavior report or history table with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can save a report to a local file and link to cloud reports.]\n\n## Skill Version(s):\n\n1.0.13 (source: server-resolved ClawHub release; artifact frontmatter lists 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 40178 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (3139b), SKILL.md (13633b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (162b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790104413219\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nAnalyzes pet grooming video files or URLs through cloud APIs to identify stress behaviors such as struggling, panting, and tail tucking, then returns stress-level grading and report links for grooming, veterinary, and pet-care workflows.\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, groomers, veterinary clinics, pet-care teams, and agent developers use this skill to submit grooming-session videos or URLs for behavior observation, stress-level assessment, historical report lookup, and report-link generation.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Grooming videos or video URLs are sent to lifeemergence.com cloud services for analysis and report generation.\n\nMitigation: Use only footage that is permitted under the user's privacy, consent, customer, clinic, or business data-handling rules; avoid sensitive camera footage unless cloud processing is approved.\n\nRisk: The skill can create or reuse a cloud-linked service identity and persist local tokens for report history.\n\nMitigation: Run the skill in a controlled workspace, review local token storage before reuse or sharing, and clear workspace data when the linked identity should not persist.\n\nRisk: Historical report lookup can retrieve cloud report history associated with the resolved identity.\n\nMitigation: Confirm the workspace identity before listing reports and avoid using shared workspaces for customer or clinic footage unless report history access is intended.\n\nRisk: Stress-level output is behavior-observation guidance and may be incomplete or incorrect for animal health decisions.\n\nMitigation: Treat results as observational support, review the underlying video and report before acting, and escalate health or welfare concerns to qualified veterinary or animal-care professionals.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis)\n- [Skill usage demo](https://lifeemergence.com/sample.html)\n- [Pet grooming stress analysis API reference](references/api_doc.md)\n- [Common AI analysis API reference](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-like structured text with command examples, analysis summaries, stress-level results, historical report records, and report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local video files or network video URLs; supports pet type, detail level, output file, and historical report listing options.]\n\n## Skill Version(s):\n\n1.0.12 (source: server release metadata; artifact frontmatter reports 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 40004 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2593b), SKILL.md (13633b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (162b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1789332209565\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes pet grooming videos or video URLs for stress-related behaviors such as struggling, panting, and tail tucking, then returns a stress-level assessment and report link.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal pet grooming, veterinary, and pet care teams use this skill to submit grooming-session media for stress behavior observation and intervention-oriented reporting.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Grooming media and supplied URLs are sent to the Life Emergence service for analysis.\n\nMitigation: Use the skill only with media the user is authorized to share and disclose external processing before use.\n\nRisk: Analyses can be tied to a persistent local or cloud identity, with service tokens stored in a shared workspace database.\n\nMitigation: Run the skill in an isolated workspace, restrict database access, and rotate or clear stored credentials when the workspace is shared.\n\nRisk: The security review notes plaintext development endpoints and recommends production endpoint changes before broad use.\n\nMitigation: Configure HTTPS production endpoints and verify network settings before deploying the skill for regular use.\n\nRisk: History-list triggers query cloud report records associated with the resolved identity.\n\nMitigation: Limit history queries to users who expect cloud report retrieval and avoid exposing report links outside the intended audience.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis)\n- [API interface documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown and JSON structured analysis text with optional report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local video uploads, video URLs, pet type selection, history-list queries, and optional file output.]\n\n## Skill Version(s):\n\n1.0.11 (source: ClawHub release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 31 files, 39970 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2586b), SKILL.md (13633b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (162b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1788058410449\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes pet grooming videos or video URLs through a server-side API to identify stress behaviors such as struggling, panting, and tail tucking, then returns stress grading and a structured report.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to analyze pet grooming session media for observable stress behaviors and retrieve structured reports or cloud history for grooming shops, veterinary clinics, and pet care services. Results are for behavior observation support, not disease diagnosis or behavior correction.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet grooming media or video URLs may be sent to the configured backend for analysis.\n\nMitigation: Review endpoint configuration and obtain appropriate consent before using the skill with pet grooming media.\n\nRisk: The skill can create or reuse an internal identity, query cloud history for that identity, and store account tokens in the workspace.\n\nMitigation: Require explicit consent for history lookup and identity or account creation, and review local token storage before installation.\n\nRisk: Development or debug endpoint settings could route analysis to unintended services.\n\nMitigation: Disable dev and debug settings and verify production endpoint configuration before deployment.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis)\n- [API Interface Documentation](references/api_doc.md)\n- [Analysis API Interface 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 or JSON-like structured text with report links and optional saved output files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports basic, standard, and json detail modes; local video inputs are limited to supported formats and size limits documented by the artifact.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact frontmatter says 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 40011 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2650b), SKILL.md (13633b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787243072748\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nAnalyzes pet grooming videos or video URLs for stress behaviors such as struggling, panting, and tail tucking, then returns a structured stress-level report to help grooming or veterinary staff decide when to pause or intervene.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal pet care staff, groomers, and veterinary clinic teams can use the skill to submit grooming-session media and receive behavior observations, stress-level grading, and report links. It is intended as behavioral observation support, not disease diagnosis or behavior-correction advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet videos, video URLs, and report data may be sent to vendor remote services.\n\nMitigation: Use only with media approved for vendor processing, and avoid submitting sensitive or restricted grooming footage.\n\nRisk: The skill can silently create or reuse an identity and may store authentication tokens locally.\n\nMitigation: Review workspace identity and token state before installation, avoid workspaces containing sensitive smyx-api-key.txt values unless intended, and clear local credentials when decommissioning.\n\nRisk: Stress-level output could be mistaken for medical diagnosis or prescriptive behavior correction.\n\nMitigation: Present results as behavioral observations only, and have qualified staff review severe stress indicators before deciding whether to pause grooming or seek veterinary input.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API documentation](references/api_doc.md)\n- [Analysis API error codes](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown reports and JSON analysis results from remote API calls]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include report links and historical report tables; analysis depends on remote service availability and submitted media quality.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter reports 1.0.10)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.9:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.9:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.8: 31 files, 40014 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2702b), SKILL.md (13633b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786515218998\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nAnalyzes pet grooming video files or URLs through cloud APIs to identify stress behaviors such as struggling, panting, and tail tucking, then returns a structured stress-level report.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users, pet grooming businesses, veterinary clinics, and pet care service teams use this skill to analyze grooming-session videos for observable pet stress signals and stress-level grading. Agents can also retrieve cloud history reports associated with the internally resolved user identity.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Grooming videos or video URLs are sent to lifeemergence.com cloud services for analysis.\n\nMitigation: Use only footage with appropriate authorization and consent, and review service retention and data-processing expectations before using customer, clinic, or business video.\n\nRisk: The skill silently creates and reuses identity sessions and stores account/session tokens locally.\n\nMitigation: Run it in a workspace with appropriate access controls, review local token/session storage before installation, and clear local session records when they are no longer needed.\n\nRisk: Cloud history report queries are associated with an internally resolved identity.\n\nMitigation: Confirm user/account boundaries before retrieving history reports and avoid exposing report links or history results to unauthorized users.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Pet Grooming Stress Behavior Analysis API Documentation](artifact/references/api_doc.md)\n- [SMYX Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration]\n\n**Output Format:** [Markdown text with structured JSON report content and optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Includes stress behavior observations, stress-level grading, history-report listings, and report export links when returned by the cloud service.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter reports 1.0.10)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 31 files, 40048 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2621b), SKILL.md (13632b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785968009659\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nAnalyzes pet grooming videos or video URLs through server-side APIs to identify stress behaviors such as struggling, panting, and tail tucking and return a stress-level report.\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, groomers, veterinary clinics, and pet-care teams use this skill to submit grooming-session media for stress behavior observation, stress-level grading, report links, and history lookup. The artifact describes the results as behavior observation support and says it does not provide disease diagnosis or behavior-correction plans.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Grooming media or URLs are sent to configured lifeemergence.com services for analysis.\n\nMitigation: Use only approved media, avoid sensitive footage unless retention and access controls are understood, and review the service relationship before installation.\n\nRisk: The skill may create or reuse a cloud identity and store authentication tokens locally.\n\nMitigation: Run it in an isolated workspace or approved account context, restrict access to the workspace data directory, and clear stored tokens when the skill is no longer needed.\n\nRisk: History lookup retrieves cloud-stored reports associated with the resolved identity.\n\nMitigation: Confirm the identity context before history queries and avoid shared workspaces where report access could cross users.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis)\n- [API 接口文档](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown report with JSON-formatted structured results and report links; optional saved text output.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include cloud history tables and exported report image links when the history-list workflow is used.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release metadata; artifact frontmatter lists 1.0.8)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.7:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.7:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.6: 31 files, 40009 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2781b), SKILL.md (13632b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785422852746\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nAnalyzes pet grooming session video files or URLs for stress-related behaviors such as struggling, panting, tail tucking, and other grooming-session stress signals, then returns a stress-level assessment and structured report. <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 groomers, veterinary clinic staff, and pet care providers use this skill to review grooming-session videos and identify observable stress behaviors that may require prompt intervention. The output is for behavior observation support and is not a disease diagnosis or behavior-correction plan. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet grooming media or URLs are processed by lifeemergence.com services. <br>\nMitigation: Use only media and URLs whose external processing is acceptable; avoid sensitive clinic/shop videos or internal URLs unless that handling is approved. <br>\nRisk: The skill may create or reuse a local identity and store returned authentication tokens in a workspace SQLite database. <br>\nMitigation: Review the identity and token-storage behavior before installation, and isolate or remove workspace state according to local credential-handling policy. <br>\nRisk: Stress-level output could be mistaken for veterinary diagnosis or behavior-correction advice. <br>\nMitigation: Use the report as observational support only and route animal welfare or medical concerns to qualified personnel. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Pet grooming stress behavior API documentation](references/api_doc.md) <br>\n- [SMYX analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, files, guidance] <br>\n**Output Format:** [Markdown or JSON analysis report, optionally written to a local output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include stress behavior observations, stress-level grading, recommendations, historical report listings, and report links.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter reports 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.5: 31 files, 40086 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2875b), SKILL.md (13632b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1783881216465\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nAnalyzes pet grooming session videos or video URLs through server-side APIs to identify stress behaviors such as struggling, panting, and tail tucking, then returns stress grading and structured observations for grooming, veterinary, and pet-care contexts. <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 groomers, veterinary clinic staff, pet-care providers, and developers use this skill to submit grooming videos or URLs for stress-behavior analysis and to retrieve structured reports or historical report lists. The output is intended as behavior-observation support, not medical diagnosis or behavior-correction advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Uploaded grooming videos or supplied URLs are sent to the LifeEmergence/Open API service for analysis. <br>\nMitigation: Use the skill only when sharing that footage or URL with the service is acceptable; avoid sensitive customer footage or internal URLs unless retention, deletion, and authentication terms are clear. <br>\nRisk: The skill can silently create or reuse a local identity and store service tokens in workspace data for remote history access. <br>\nMitigation: Run it in a controlled workspace, review local token storage expectations before deployment, and clear workspace data when identity persistence is not desired. <br>\nRisk: Stress scoring could be mistaken for veterinary diagnosis or behavior-correction guidance. <br>\nMitigation: Present results as observational support for grooming decisions and escalate health concerns to qualified veterinary staff. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [API Documentation](references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, shell commands, guidance] <br>\n**Output Format:** [Markdown and structured JSON-like text with report links; historical reports may be returned as Markdown tables or structured lists.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include a report export link and can optionally save the returned analysis text to a user-specified output file.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: frontmatter and server release evidence, released 2026-07-12) <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, 39885 bytes\n\nFiles: references/api_doc.md (678b), scripts/__init__.py (56b), scripts/config.py (679b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_pet_grooming_stress_behavior_analysis.py (3586b), skill-card.md (2733b), SKILL.md (13632b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (161b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_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_grooming_stress_behavior_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/bird/other，默认 cat | 按需填写 |\n| `--list` | 显示美容应激历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 📊 分析指标说明\n\n| 指标     | 说明                  | 风险参考                                    |\n|--------|---------------------|-----------------------------------------|\n| 挣扎次数   | 美容过程中宠物身体明显挣脱/扭动的次数 | 0-2次 轻微；3-5次 中度；>5次 重度                  |\n| 挣扎幅度   | 每次挣扎时身体扭动的激烈程度      | 轻微（局部挪动）/ 中度（全身扭动）/ 剧烈（猛烈挣脱）            |\n| 张口喘气频次 | 非运动状态下的张口快速呼吸频率     | 猫：应激标志；狗：>60次/分钟为异常喘气                   |\n| 尾巴姿态   | 尾巴的位置和运动状态          | 夹紧贴腹（高应激）/ 低垂不动（中度）/ 轻微颤抖（轻度）/ 正常摆动（放松） |\n| 耳朵状态   | 耳朵的位置和运动            | 贴头紧压（恐惧）/ 频繁转动（警觉）/ 竖立正常（放松）            |\n| 综合应激等级 | 基于多指标加权的综合评分        | 1级（放松）→ 5级（极度应激）                        |\n\n## 🚨 应激等级定义\n\n| 等级    | 状态   | 行为特征                 | 建议措施               |\n|-------|------|----------------------|--------------------|\n| 1级 🟢 | 放松   | 身体松弛，尾巴自然摆动，呼吸平稳     | 正常进行               |\n| 2级 🟡 | 轻度紧张 | 偶尔轻微挪动，耳朵频繁转动，呼吸略快   | 安抚语气，放慢节奏          |\n| 3级 🟠 | 中度应激 | 明显挣扎（2-3次），尾巴夹紧，张口喘气 | 暂停操作，给予休息和安抚       |\n| 4级 🔴 | 重度应激 | 频繁挣扎（>5次），剧烈扭动，持续喘气  | 立即暂停，移至安静环境，评估是否继续 |\n| 5级 ⚫  | 极度应激 | 试图逃跑/攻击，瞳孔放大，全身颤抖    | 停止美容操作，隔离冷静，必要时就医  |\n\n## ✂️ 美容阶段关联分析\n\n本技能支持按美容阶段分别评估应激水平，常见阶段包括：\n\n| 阶段    | 常见应激源      | 关注重点      |\n|-------|------------|-----------|\n| 入笼等待  | 环境噪音、陌生气味  | 喘气、来回踱步   |\n| 洗澡    | 水温、水流冲击    | 挣扎幅度、耳朵贴头 |\n| 吹毛    | 吹风机噪音、热风   | 喘气频次、颤抖   |\n| 剪毛/修型 | 剪刀/推子靠近    | 挣扎次数、尾巴夹紧 |\n| 修甲    | 肢体被固定、剪甲触感 | 剧烈挣扎、试图咬人 |\n| 全程    | 陌生人接触、束缚感  | 综合应激趋势变化  |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_grooming_stress_behavior_analysis.py`](scripts/smyx_pet_grooming_stress_behavior_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| 🔎 使用提醒 | 短鼻犬种（法斗、巴哥等）张口喘气需区分正常呼吸和应激喘气 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783627527974\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别\n\nFile v1.0.4:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.4:scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nAnalyzes pet grooming session videos or URLs through server-side APIs to identify stress behaviors such as struggling, panting, and tail tucking, then returns stress level grading and structured observations for grooming, veterinary, or pet care workflows. <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 grooming teams, veterinary clinics, pet care services, and developers use this skill to submit grooming-session media for stress behavior analysis and receive structured observations, stress level grading, recommendations, and report links. It can also query cloud-hosted historical analysis reports associated with the managed user identity. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill uploads or submits grooming media and supplied URLs to the publisher's cloud service for analysis. <br>\nMitigation: Use only media that is appropriate to share with the publisher's cloud service, especially when videos may include customers, staff, premises, or other sensitive footage. <br>\nRisk: Cloud-hosted historical reports are queryable through the skill. <br>\nMitigation: Review report access expectations before deployment and limit use to environments where cloud report retrieval is acceptable. <br>\nRisk: The skill creates or reuses local identity and session state for backend access. <br>\nMitigation: Install and run it only in trusted agent environments where local identity/session state can be managed and reviewed. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown and JSON structured analysis reports with optional report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save analysis results to a requested output file and may return cloud history report tables.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别 Owner: 18072937735 Summary: Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_pet_grooming_stress_behavior_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_pet_grooming_stress_behavior_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input /path/to/grooming_video.mp4 --pet-type cat\n\n# 分析网络美容过程视频\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --url https://example.com/grooming_video.mp4 --pet-type cat\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史应激报告（自动触发关键词：查看历史应激报告、历史报告、美容应激报告清单等）\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_grooming_stress_behavior_analysis --input video.mp4 --pet-type cat --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-pet-grooming-stress-behavior-analysis\"\ndescription: \"Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# ✂️ Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物美容过程应激行为识别** |\n| 🎯 核心目标 | 当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_GROOMING_STRESS_BEHAVIOR_ANALYSIS` |\n\nTriggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or\nnetwork URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and\nother stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application\nscenarios: pet grooming shop cameras, veterinary clinics, pet care services.\n\n当用户提供宠物美容过程视频URL或文件时，触发本技能进行应激行为分析；支持通过上传本地视频或网络视频URL，调用服务端API进行识别，检测挣扎、张口喘气、尾巴夹紧等应激行为信号，输出应激等级，帮助美容师及时干预，减少宠物应激伤害，提升服务体验。应用场景：宠物美容店摄像头、宠物医院、宠物护理服务。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | 假设你是一个专业的宠物行为与应激分析AI。你的任务是基于美容过程的连续视频，检测宠物表现出的应激相关行为，包括身体挣扎幅度、张口喘气频次、尾巴姿态等，综合评估应激等级。不要提供疾病诊断或行为矫正方案，仅客观描述观察到的行为信号。 |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过美容过程视频进行宠物应激行为识别分析，获取标准化的行为观察结果和应激等级评估\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 视频分析 |\n| 2 | 挣扎行为检测 |\n| 3 | 喘气频次识别 |\n| 4 | 尾巴姿态分析 |\n| 5 | 耳朵/瞳孔状态观察 |\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_grooming_stress_behavior_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_grooming_stress_behavior_analysis "},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-grooming-stress-behavior-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790736028594\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_GROOMING_STRESS_BEHAVIOR_ANALYSIS` - 宠物美容过程应激行为识别"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":923,"uniquenessScore":40,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T17:43:03.850Z","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-09T17:43:03.850Z","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-10T06:53:35.316Z","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"}]}}}