{"id":"d15acf73-7169-4b93-9813-4f1397ceee56","entityType":"agent","slug":"clawhub-18072937735-smyx-pet-training-command-execution-analysi","name":"Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-pet-training-command-execution-analysi","canonicalPath":"/agent/clawhub-18072937735-smyx-pet-training-command-execution-analysi","generatedAt":"2026-10-10T07:41:23.678Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:09:54.449Z","emptyReason":null},"description":"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-training-command-execution-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-pet-training-command-execution-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-pet-training-command-execution-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等） technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:09:54.449Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:09:54.449Z","emptyReason":null},"stars":null,"forks":null,"downloads":2039,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:09:54.448Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T20:09:54.449Z","lastCrawledAt":"2026-10-09T20:09:54.448Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T20:09:54.448Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-10-02T02:14:27.741Z","changelog":"- Removed the skill-card.md file. - No other changes to logic, features, or documentation.","fileCount":31,"zipByteSize":39566},{"version":"1.0.12","createdAt":"2026-09-27T02:09:26.138Z","changelog":"- Version bump from 1.0.12 to 1.0.14. - SKILL.md updated (no major new features or removals described in the summary). - Internal documentation or metadata refinements. - Outdated \"skill-card.md\" file removed. - No visible user-facing functional changes documented.","fileCount":31,"zipByteSize":39562},{"version":"1.0.11","createdAt":"2026-09-07T18:40:49.080Z","changelog":"- Updated version to 1.0.12. - Removed the file skill-card.md to streamline documentation. - No changes to core functionality; documentation and resource instructions maintained.","fileCount":31,"zipByteSize":39799},{"version":"1.0.10","createdAt":"2026-08-27T20:18:42.261Z","changelog":"- Updated version to 1.0.11. - SKILL.md updated for documentation; no changes to core logic or capabilities. - skill-card.md removed to streamline documentation files.","fileCount":31,"zipByteSize":39719},{"version":"1.0.9","createdAt":"2026-08-18T20:43:29.622Z","changelog":"- Removed the file: skill-card.md. - No other functional or code changes.","fileCount":31,"zipByteSize":39788},{"version":"1.0.8","createdAt":"2026-08-15T14:38:31.016Z","changelog":"## smyx-pet-training-command-execution-analysis 1.0.8 - Updated documentation in SKILL.md for improved clarity, usage flow, and compliance instructions. - Bumped version metadata in SKILL.md. - Removed redundant or outdated file: skill-card.md. - Minor adjustments to configuration files (e.g., config.yaml) to align with documentation changes.","fileCount":31,"zipByteSize":39888},{"version":"1.0.7","createdAt":"2026-08-03T17:58:31.387Z","changelog":"- Version updated to 1.0.7. - Documentation updated: SKILL.md revised for improved clarity and information. - Outdated file removed: skill-card.md deleted. - No code or functional logic changes were made.","fileCount":31,"zipByteSize":39788},{"version":"1.0.6","createdAt":"2026-07-28T21:32:31.920Z","changelog":"smyx-pet-training-command-execution-analysis 1.0.6 - Updated documentation: SKILL.md revised for clarity and detail. - Removed redundant file: skill-card.md deleted. - No changes to core functionality or APIs. - All instructions, usage scenarios, and technical details now consolidated in SKILL.md.","fileCount":31,"zipByteSize":39726}]},"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-training-command-execution-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-training-command-execution-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-training-command-execution-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-training-command-execution-analysi/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-training-command-execution-analysi/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-training-command-execution-analysi/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-training-command-execution-analysi/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-training-command-execution-analysi/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-training-command-execution-analysi/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T07:41:23.673Z"}},"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-training-command-execution-analysi/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-training-command-execution-analysi/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-training-command-execution-analysi/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-training-command-execution-analysi/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T20:09:54.449Z","emptyReason":null},"readme":"Skill: Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n\nOwner: 18072937735\n\nSummary: Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-10-02T02:14:27.741Z | auto\n\n- Removed the skill-card.md file.\n- No other changes to logic, features, or documentation.\n\nv1.0.12 | 2026-09-27T02:09:26.138Z | auto\n\n- Version bump from 1.0.12 to 1.0.14.\n- SKILL.md updated (no major new features or removals described in the summary).\n- Internal documentation or metadata refinements.\n- Outdated \"skill-card.md\" file removed.\n- No visible user-facing functional changes documented.\n\nv1.0.11 | 2026-09-07T18:40:49.080Z | auto\n\n- Updated version to 1.0.12.\n- Removed the file skill-card.md to streamline documentation.\n- No changes to core functionality; documentation and resource instructions maintained.\n\nv1.0.10 | 2026-08-27T20:18:42.261Z | auto\n\n- Updated version to 1.0.11.\n- SKILL.md updated for documentation; no changes to core logic or capabilities.\n- skill-card.md removed to streamline documentation files.\n\nv1.0.9 | 2026-08-18T20:43:29.622Z | auto\n\n- Removed the file: skill-card.md.\n- No other functional or code changes.\n\nv1.0.8 | 2026-08-15T14:38:31.016Z | auto\n\n## smyx-pet-training-command-execution-analysis 1.0.8\n\n- Updated documentation in SKILL.md for improved clarity, usage flow, and compliance instructions.\n- Bumped version metadata in SKILL.md.\n- Removed redundant or outdated file: skill-card.md.\n- Minor adjustments to configuration files (e.g., config.yaml) to align with documentation changes.\n\nv1.0.7 | 2026-08-03T17:58:31.387Z | auto\n\n- Version updated to 1.0.7.\n- Documentation updated: SKILL.md revised for improved clarity and information.\n- Outdated file removed: skill-card.md deleted.\n- No code or functional logic changes were made.\n\nv1.0.6 | 2026-07-28T21:32:31.920Z | auto\n\nsmyx-pet-training-command-execution-analysis 1.0.6\n\n- Updated documentation: SKILL.md revised for clarity and detail.\n- Removed redundant file: skill-card.md deleted.\n- No changes to core functionality or APIs.\n- All instructions, usage scenarios, and technical details now consolidated in SKILL.md.\n\nv1.0.5 | 2026-07-15T20:43:28.593Z | auto\n\n- Updated to version 1.0.5.\n- Removed the file skill-card.md for cleanup.\n- Updated documentation in SKILL.md; no changes to functionality.\n- No impact to APIs, parameters, or external integration.\n\nv1.0.4 | 2026-07-12T09:27:27.069Z | auto\n\n- Updated version to 1.0.4.\n- Minor edits to SKILL.md for consistency and formatting.\n- Removed the file skill-card.md.\n- No changes to core functionality or APIs.\n\nv1.0.3 | 2026-07-04T21:14:27.678Z | auto\n\n- Major documentation and usage instructions refactor in SKILL.md for improved readability and clarity.\n- Reorganized feature descriptions into structured tables and sections for easier reference.\n- Added a concise overview, workflow diagrams, demo link, and more visual formatting.\n- Clarified strong constraints for historical report queries and user identity handling.\n- Removed outdated documentation file (skill-card.md) and updated support resource references.\n\nv1.0.2 | 2026-06-23T21:53:27.842Z | auto\n\nMajor update: User identity handling fully automated, no longer user-facing.\n\n- Replaced all user-facing identity parameter collection with silent internal identity association.\n- Removed open-id extraction logic and related instructions throughout documentation and scripts.\n- API usage and analysis commands no longer require user to input or see any identity fields.\n- All example commands and help text updated to reflect new identity handling.\n- User sees only analysis results and report links—never any IDs, usernames, or identity prompts.\n- Two deprecated/obsolete files removed for clarity.\n\nv1.0.1 | 2026-06-19T01:17:32.182Z | auto\n\n- Added license information (MIT-0) to documentation.\n- Updated config file path references in documentation to reflect actual script locations.\n- Removed redundant \"skill-card.md\" file.\n- General clarification and documentation improvements for configuration and execution flow.\n- No changes to core logic or API; update is documentation and structure only.\n\nv1.0.0 | 2026-05-21T19:08:21.894Z | auto\n\n- Initial release of the smyx-pet-training-command-execution-analysis skill.\n- Analyzes pet training-area videos to detect Sit/Down/Stay command execution by comparing pet posture and command timing.\n- Supports both local video uploads and online video URLs for server-side API calls.\n- Provides execution reports with posture match scoring, response delay, and success/failure judgement; can trigger external repeat-prompt signals if not executed.\n- Includes strict open-id validation flow and uniform cloud-based history report queries with Markdown table output.\n- Designed for applications in smart dog-training devices, remote pet training, and behavioral correction.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 39566 bytes\n\nFiles: _meta.json (164b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2105b), SKILL.md (12781b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790907267741\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAnalyzes pet-training videos to assess whether a pet performs sit, down, and stay commands and reports posture matching and response timing.\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 trainers and developers use this skill to assess command execution in training videos and review analysis results or past reports. It does not provide medical diagnosis or behavioral therapy advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Videos or video URLs are sent to Life Emergence services for analysis.\n\nMitigation: Confirm permission to share the footage and review the service's data handling before use.\n\nRisk: The skill can silently create or reuse an identity, log in remotely, and store tokens in a workspace SQLite database.\n\nMitigation: Review the account flow before installation and restrict access to the workspace and stored tokens.\n\nRisk: Matching prompts can automatically retrieve cloud report history without clear user confirmation.\n\nMitigation: Require explicit user consent before querying history and confirm the account and report scope.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis)\n- [Pet training analysis API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis report or Markdown history table, with optional saved output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include command matching, response timing, and report links.]\n\n## Skill Version(s):\n\n1.0.13 (source: ClawHub server release; bundled frontmatter lists 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.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, 39562 bytes\n\nFiles: _meta.json (164b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2059b), SKILL.md (12781b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790474966138\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nAnalyzes pet-training videos or video URLs to assess whether a pet follows sit, down, and stay commands and provides a structured training 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\nPet owners, trainers, and developers use the skill to assess command response and posture timing from training videos and review prior training reports. It does not provide medical diagnosis or behavior therapy.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Training footage or video URLs and report-history requests are sent to the LifeEmergence service.\n\nMitigation: Avoid private home footage and private URLs unless the publisher clarifies consent and data retention.\n\nRisk: The skill may create or reuse a cloud-linked identity and store service tokens locally without an explicit user step.\n\nMitigation: Review account creation and token handling before installation; avoid sensitive account contexts until the publisher clarifies these practices.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis)\n- [Pet training API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Analysis, Guidance]\n\n**Output Format:** [Markdown tables and structured report text]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include response timing, posture match, training suggestions, and report links; results can be saved to a file.]\n\n## Skill Version(s):\n\n1.0.12 (source: server-resolved ClawHub release; bundled SKILL.md says 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, 39799 bytes\n\nFiles: _meta.json (164b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2591b), SKILL.md (12781b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1788806449080\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes pet training videos or video URLs through server-side APIs to determine whether a pet performs Sit, Down, or Stay commands, compare posture timing against command timestamps, and return command-execution results without medical or behavior-therapy advice.\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 can use this skill to evaluate pet obedience training from local or network video input, producing posture-command matching, response-latency, success-status, and report-link outputs for smart pet-training and remote training workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Videos, video URLs, account-linked reports, and reusable credentials may be sent to or stored by a remote service.\n\nMitigation: Review the backend and privacy model before installation, and deploy only where the data handling, retention, and account-linking behavior is acceptable.\n\nRisk: Packaged development HTTP endpoints may expose sensitive traffic if used as-is.\n\nMitigation: Replace development HTTP configuration with approved TLS production endpoints before use.\n\nRisk: Historical report retrieval can access account-linked training history.\n\nMitigation: Limit use to authorized account contexts and confirm that stored credentials and tokens are managed according to local policy.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis)\n- [Skill usage demo](https://lifeemergence.com/sample.html)\n- [Pet training command execution API documentation](artifact/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-style structured analysis reports, with optional saved text output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include command name, command timestamp, observed pet posture, posture-match score, response latency, execution status, intervention guidance, history tables, and report links.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; artifact frontmatter reports 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39719 bytes\n\nFiles: _meta.json (164b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2475b), SKILL.md (12781b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787861922261\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes pet training videos or video URLs to determine whether a pet executed Sit, Down, or Stay commands, returning posture-match, timing, success, and report-link information without medical or behavior-therapy guidance.\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 training-area videos for command execution, posture matching, response latency, and training report retrieval. It is intended for smart dog-training devices, remote pet training, and behavior-correction workflows, not for medical diagnosis or behavior-therapy plans.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet videos or supplied video URLs are sent to the publisher's remote analysis service.\n\nMitigation: Install only when that remote processing is acceptable, and obtain explicit consent before upload or history queries.\n\nRisk: The skill creates or reuses a local account identity and persists tokens locally.\n\nMitigation: Document account and token storage for users and provide a reset or deletion path for persisted identity data.\n\nRisk: The release includes private development API endpoints.\n\nMitigation: Replace private development endpoints with intended production HTTPS endpoints before approval.\n\n## Reference(s):\n\n- [Pet Training Command API Documentation](references/api_doc.md)\n- [Common Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-like structured analysis text with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May write the rendered analysis to a user-specified output file.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release evidence; artifact frontmatter reports 1.0.11 and artifact _meta reports 1.0.0)\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, 39788 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2671b), SKILL.md (12780b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787085809622\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nAnalyzes pet training videos or video URLs by calling backend APIs to compare observed posture against Sit, Down, and Stay commands, report timing and success, and support non-medical training feedback.\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 can use this skill to evaluate whether a pet follows training commands in uploaded or URL-based videos. It returns posture-command match results, response timing, structured reports, and report links for training review without providing medical diagnosis or behavior therapy.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Training videos or video URLs are sent to a Life Emergence/Open API backend for analysis.\n\nMitigation: Install only when backend processing is acceptable, use appropriate training videos, and avoid passing unrelated local paths.\n\nRisk: The skill silently creates or reuses a local identity and can persist tokens or identity data for report history.\n\nMitigation: Use a contained workspace and review or clear data/smyx-api-key.txt and the local SQLite user database when identity or token reuse is not desired.\n\nRisk: The security scan verdict is suspicious because of backend login/report calls and local token handling.\n\nMitigation: Review the security summary and guidance before deployment and restrict installation to environments where these behaviors are acceptable.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis)\n- [Pet training command execution API documentation](artifact/references/api_doc.md)\n- [Shared analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON analysis report with optional saved file output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include command name, command timestamp, observed pet posture, posture match score, response latency, execution status, intervention suggestion, and report link.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release and SKILL.md frontmatter)\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, 39888 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2914b), SKILL.md (12780b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786804711016\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nAnalyzes pet training videos or video URLs by calling server-side APIs to assess whether a pet executes Sit, Down, or Stay commands, including posture match, command timing, response delay, and training-result reporting.\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 evaluate pet command-following from training-area videos, generate structured posture-command match reports, and retrieve cloud-stored historical training reports. The skill is positioned for smart dog-training devices, remote pet training, and training-effect review, not for medical diagnosis or behavior therapy.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet videos or video URLs may be sent to lifeemergence.com services for analysis.\n\nMitigation: Use only footage that users are authorized to share, avoid sensitive household recordings where possible, and review provider retention and handling expectations before deployment.\n\nRisk: The skill may automatically create or reuse a cloud-linked identity and store authentication tokens locally.\n\nMitigation: Run the skill in a controlled workspace, protect local data directories, rotate or remove stored tokens when access is no longer needed, and disclose the identity-linking behavior to operators.\n\nRisk: History or report prompts may query cloud-stored report data without an additional confirmation boundary.\n\nMitigation: Limit use to authorized users, confirm that historical report access is expected before enabling the skill, and review returned report links for appropriate access scope.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Pet Training Command Execution API Documentation](artifact/references/api_doc.md)\n- [Common Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Analysis, Markdown, JSON, Files, Guidance]\n\n**Output Format:** [Markdown or JSON structured analysis report, with optional saved output file and report link]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include command name, command timestamp, observed pet posture, posture-match score, response delay, execution status, recommendations, and historical report entries.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter reports 1.0.9)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 31 files, 39788 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2728b), SKILL.md (12780b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785779911387\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description: <br>\nAnalyzes pet training videos or video URLs through a server-side service to judge whether Sit, Down, or Stay commands were executed, returning posture-match results, response timing, structured reports, and report links without medical or behavior-therapy advice. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to evaluate pet command-following from training-area video, including posture matching, command timestamp comparison, response latency, and report-history lookup for remote or smart-device-assisted training workflows. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet-training media or supplied video URLs are sent to lifeemergence.com services for analysis. <br>\nMitigation: Use only media and URLs appropriate for that external service, and confirm retention and account handling before processing sensitive videos. <br>\nRisk: The skill can create or reuse a backend identity and store service tokens in a local workspace database. <br>\nMitigation: Review the installation before use, run it in an isolated workspace when possible, and remove local stored data or rotate credentials if access should be withdrawn. <br>\nRisk: History queries can retrieve cloud report records associated with the resolved identity. <br>\nMitigation: Run history lookup only for the intended account or workspace, and review report output before sharing it. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis) <br>\n- [Pet training command execution API documentation](references/api_doc.md) <br>\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Guidance] <br>\n**Output Format:** [Markdown or JSON report text with optional report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save report output to a user-specified file; history queries return structured report lists.] <br>\n\n## Skill Version(s): <br>\n1.0.7 (source: server release metadata and SKILL.md frontmatter) <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.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, 39726 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2536b), SKILL.md (12780b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785274351920\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nAnalyzes pet training videos or video URLs through remote APIs to judge whether a pet performed Sit, Down, or Stay commands, compare posture timing with command timestamps, and return structured training results without providing medical diagnosis or behavior therapy advice. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to evaluate pet command execution from training-area video, including posture match, response delay, and historical training report lookup. It is intended for smart pet-training devices, remote training workflows, and behavior-correction support, not clinical diagnosis or therapy. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet videos or video URLs are processed by remote Life Emergence services. <br>\nMitigation: Use the skill only when remote processing of the submitted media is acceptable, and avoid submitting sensitive video content. <br>\nRisk: The skill can create or reuse an internal identity, query cloud report history, and retain account tokens in the workspace data directory. <br>\nMitigation: Review or clear the local data store when account linkage, retained tokens, or historical cloud report access are not acceptable. <br>\n\n\n## Reference(s): <br>\n- [API Interface Documentation](references/api_doc.md) <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Analysis, API Calls, Markdown, JSON, Files] <br>\n**Output Format:** [Structured Markdown or JSON analysis report with optional saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include command name, command timestamp, detected pet posture, posture match score, response delay, success judgment, recommendations, report links, and historical report tables.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: SKILL.md frontmatter and 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.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, 39707 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2561b), SKILL.md (12780b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784148208593\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nAnalyzes pet training videos or video URLs through server-side APIs to recognize whether a pet executes Sit, Down, or Stay commands and returns structured posture-matching, timing, and execution results. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nDevelopers and operators of smart pet-training or remote training workflows use this skill to submit training videos and receive structured command-execution recognition results, response-latency data, and report links. The skill is for training-effect reference and does not provide medical diagnosis or behavior-therapy advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet images or videos are sent to Life Emergence server APIs for analysis. <br>\nMitigation: Use only with media appropriate for remote processing and review privacy or compliance requirements before deployment. <br>\nRisk: The skill can silently create or reuse a local internal identity and register or log in to a remote service. <br>\nMitigation: Run it in account-isolated workspaces and confirm identity behavior before enabling it for shared or multi-user environments. <br>\nRisk: Reusable tokens and local user data may persist in the workspace data area. <br>\nMitigation: Review or clear the local data database and smyx-api-key file when separating users, sessions, or environments. <br>\n\n\n## Reference(s): <br>\n- [API Documentation](artifact/references/api_doc.md) <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON] <br>\n**Output Format:** [Markdown text containing structured JSON-style analysis results, historical report lists, and report links.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save results to a user-specified output file; analysis and history queries are backed by remote API calls.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release and frontmatter) <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, 39792 bytes\n\nFiles: _meta.json (163b), references/api_doc.md (938b), scripts/__init__.py (61b), scripts/config.py (698b), scripts/config.yaml (3b), scripts/skill.py (596b), scripts/smyx_pet_training_command_execution_analysis.py (3590b), skill-card.md (2744b), SKILL.md (12780b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.4\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\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_training_command_execution_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_pet_training_command_execution_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_training_command_execution_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 宠物类型，可选值：cat/dog/other，默认 dog | 按需填写 |\n| `--list` | 显示训练指令执行历史分析报告列表清单（可输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🎓 指令姿态识别参考标准 | Command Posture Reference\n| 指令      | 标准姿态             | 完成判定                    | 响应延迟参考   |\n|---------|------------------|-------------------------|----------|\n| 坐（Sit）  | 后腿坐地、前腿伸直、躯干竖直   | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 3 秒为良好 |\n| 卧（Down） | 四肢着地、腹部贴近地面、头部放低 | 姿态匹配度 ≥ 70 且保持 ≥ 1 秒    | ≤ 4 秒为良好 |\n| 等（Stay） | 当前姿态保持不变、无位移     | 静止时长 ≥ 指令要求时长（默认 ≥ 5 秒） | 无位移视为成功  |\n\n| 执行结果    | 含义              | 建议干预                     |\n|---------|-----------------|--------------------------|\n| ✅ 成功    | 姿态匹配 & 在响应窗口内完成 | 给予奖励（语音/零食）              |\n| ⚠️ 部分成功 | 姿态正确但响应延迟过长     | 鼓励 + 缩短指令-奖励间隔           |\n| 🚨 未执行  | 未达到姿态匹配或超时      | **触发外部声控重复提示**，必要时降低指令难度 |\n\n> 注：以上参考标准仅作为视觉识别参考，最终判定以 API 输出结果为准。猫等小动物的指令训练标准差异较大，需结合品种特点综合判断。\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_pet_training_command_execution_analysis.py`](scripts/smyx_pet_training_command_execution_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 视频要求：支持 mp4/avi/mov 格式，最大 10MB，建议覆盖完整指令-响应过程 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供训练效果参考，不提供疾病诊断或行为治疗方案 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n| 🔎 使用提醒 | 声控重复提示信号由智能训狗设备基于本技能的输出结果触发，本技能仅负责输出干预建议 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783848447069\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示\n\nFile v1.0.4:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.4:scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nThis skill analyzes pet training videos or video URLs through server-side APIs to assess whether a pet executes Sit, Down, or Stay commands, compare posture timing against command timestamps, and return training-focused results without medical or behavior-therapy advice. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users, developers, and pet-training device builders use this skill to analyze pet training videos, produce posture-command matching results, estimate response latency, and retrieve prior analysis reports. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet or home videos and video URLs are processed by the publisher's cloud service. <br>\nMitigation: Use only footage appropriate for third-party cloud processing, and avoid private camera footage unless the publisher's retention and access controls are acceptable. <br>\nRisk: The skill can automatically create or reuse an account identity and store access tokens in a local workspace database. <br>\nMitigation: Restrict workspace access, review local workspace data, and clear the workspace data directory when uninstalling if retained identity or token data is not desired. <br>\nRisk: The security verdict is suspicious because the skill sends videos, URLs, and history requests to cloud APIs while managing identity silently. <br>\nMitigation: Install only when that cloud processing model is acceptable, and review the service trust boundary before using sensitive media. <br>\n\n\n## Reference(s): <br>\n- [API interface documentation](artifact/references/api_doc.md) <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-training-command-execution-analysis) <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 reports, JSON detail output, and command-line execution guidance] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include report links, command names, command timestamps, posture match scores, response latency, execution status, and history report tables.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release and SKILL.md frontmatter) <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 Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等） Owner: 18072937735 Summary: Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and j","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_pet_training_command_execution_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_pet_training_command_execution_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --input /path/to/training_video.mp4 --pet-type dog\n\n# 分析网络训练区域视频（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_pet_training_command_execution_analysis --url https://example.com/training_video.mp4 --pet-type dog\n\n# 显示历史分析报告清单（自动触发关键词：查看历史训练报告、指令执行报告清单等）\npython -m scripts.smyx_pet_training_command_execution_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_pet_training_command_execution_analysis --input training_video.mp4 --pet-type dog --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-pet-training-command-execution-analysis\"\ndescription: \"Triggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to call server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued commands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When the command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical / behavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction. | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🎓 Pet Training Command Execution Recognition | 宠物训练指令执行识别（坐/卧/等）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **宠物训练指令执行识别（坐/卧/等）** |\n| 🎯 核心目标 | 当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频URL，调用服务端API检测宠物身体姿态是否符合“坐/卧/等”指令标准，对比指令发出时间，判断是否执行成功；未执行时可由外部设备触发声控重复提示信号（不提供疾病诊断或行为治疗方案）。应用场景：智能训狗设备、宠物远程训练、行为矫正。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PET_TRAINING_COMMAND_EXECUTION_ANALYSIS` |\n\nTriggers when a user provides a training-area video of a pet for analysis; supports local uploads or network URLs to\ncall server-side APIs for command-execution recognition, detecting whether the pet's body posture matches the issued\ncommands (Sit / Down / Stay), comparing posture timing against command timestamps, and judging execution success. When\nthe command is not executed, the result can trigger an external voice repeat-prompt signal (not a medical /\nbehavior-therapy advice). Application scenarios: smart dog-training devices, remote pet training, behavior correction.\n\n当用户提供训练区域视频时，触发本技能进行姿态-指令匹配分析；支持通过上传本地视频或网络视频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 | 姿态匹配度评分（0~ |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供训练区域视频 URL 或文件需要分析时，默认触发本技能进行训练指令执行识别 |\n| 🔎 明确分析意图 | 当用户明确需要进行训练评估时，提及坐下、趴下、卧下、等一下、训狗、宠物训练、指令执行、服从性、行为矫正、训练打卡等关键词，并且上传了视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史训练报告、历史指令执行报告、训练记录清单、查询训练进度、显示所有训狗报告、显示指令执行报告，查询训练成功率报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-training-command-execution-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790907267741\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_TRAINING_COMMAND_EXECUTION_ANALYSIS` - 宠物训练指令执行识别（坐/卧/等）\n\n## 设备联动\n\n- 输出包含：指令名称、指令发出时间、宠物完成姿态、姿态匹配度、响应延迟（秒）\n- 未执行成功时，可由智能训狗设备根据本技能输出结果触发声控重复提示"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":981,"uniquenessScore":40,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T20:09:54.449Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T20:09:54.449Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T07:41:23.678Z","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"}]}}}