{"id":"71c95452-5175-48dc-a607-1ca4203c71d9","entityType":"agent","slug":"clawhub-18072937735-smyx-pet-breed-individual-recognition-analy","name":"Pet Breed & Individual Identification Skill | 宠物品种个体识别技能","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy","canonicalPath":"/agent/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy","generatedAt":"2026-10-10T00:34:04.874Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T19:38:36.400Z","emptyReason":null},"description":"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手 Skill: Pet Breed & Individual Identification Skill | 宠物品种个体识别技能 Owner: 18072937735 Summary: Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手 Tags: latest:1.0.14 Version history: v1.0.14 | 2026-10-03T20:09:26.104Z | auto - Updated skill version","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2.1K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-pet-breed-individual-recognition-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-pet-breed-individual-recognition-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-pet-breed-individual-recognition-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intellige"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T19:38:36.400Z","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-09T19:38:36.400Z","emptyReason":null},"stars":null,"forks":null,"downloads":2070,"packageName":null,"latestVersion":"1.0.14","tractionLabel":"2.1K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T19:38:36.372Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T19:38:36.400Z","lastCrawledAt":"2026-10-09T19:38:36.372Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T19:38:36.372Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.14","createdAt":"2026-10-03T20:09:26.104Z","changelog":"- Updated skill version to 1.0.18. - SKILL.md improved with new version info; minor clarifications and documentation refinements. - Removed the file skill-card.md. - Updated configuration in skills/smyx_common/scripts/config.yaml. - No changes to core functionality or user workflow.","fileCount":31,"zipByteSize":39624},{"version":"1.0.13","createdAt":"2026-09-17T17:53:29.231Z","changelog":"- Updated documentation in SKILL.md, including a version bump from 1.0.14 to 1.0.16. - Removed the redundant or outdated file: skill-card.md. - No functional logic changes; all updates are documentation-related.","fileCount":31,"zipByteSize":39835},{"version":"1.0.12","createdAt":"2026-08-26T00:19:31.688Z","changelog":"- Updated SKILL.md with version bump from 1.0.12 to 1.0.14 and revised content. - Removed the skill-card.md file. - No functional changes or new features introduced; update is limited to documentation.","fileCount":31,"zipByteSize":39702},{"version":"1.0.11","createdAt":"2026-08-16T22:53:28.056Z","changelog":"- Removed skill-card.md file. - No user-facing or functional changes; documentation and all code remain unchanged. - Version number in SKILL.md already listed as 1.0.12 and is unchanged in this update.","fileCount":31,"zipByteSize":39755},{"version":"1.0.10","createdAt":"2026-08-15T16:32:39.500Z","changelog":"- Updated version to 1.0.12. - Documentation improvements and clarifications in SKILL.md. - Removed outdated file skill-card.md. - Updated configuration in skills/smyx_common/scripts/config.yaml.","fileCount":31,"zipByteSize":39635},{"version":"1.0.9","createdAt":"2026-07-29T21:28:29.587Z","changelog":"- Updated version number from 1.0.8 to 1.0.10 in documentation. - Removed the file skill-card.md. - No changes to features, requirements, or workflow; documentation only update.","fileCount":31,"zipByteSize":39761},{"version":"1.0.8","createdAt":"2026-07-14T05:24:29.679Z","changelog":"Version 1.0.8 - Updated SKILL.md version and metadata to 1.0.8. - Documentation and usage instructions refreshed in SKILL.md. - Removed redundant skill-card.md file to streamline documentation. - Minor code or utility script (util.py) adjustments as part of maintenance.","fileCount":31,"zipByteSize":39928},{"version":"1.0.7","createdAt":"2026-07-10T05:04:47.598Z","changelog":"- Brought SKILL.md up to date for version 1.0.7. - Removed the redundant skill-card.md file. - No functional or API changes included; documentation only.","fileCount":31,"zipByteSize":39633}]},"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-breed-individual-recognition-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/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-10T00:34:04.869Z"}},"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-breed-individual-recognition-analy/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-pet-breed-individual-recognition-analy/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T19:38:36.400Z","emptyReason":null},"readme":"Skill: Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\nOwner: 18072937735\n\nSummary: Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\n\nTags: latest:1.0.14\n\nVersion history:\n\nv1.0.14 | 2026-10-03T20:09:26.104Z | auto\n\n- Updated skill version to 1.0.18.\n- SKILL.md improved with new version info; minor clarifications and documentation refinements.\n- Removed the file skill-card.md.\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n- No changes to core functionality or user workflow.\n\nv1.0.13 | 2026-09-17T17:53:29.231Z | auto\n\n- Updated documentation in SKILL.md, including a version bump from 1.0.14 to 1.0.16.\n- Removed the redundant or outdated file: skill-card.md.\n- No functional logic changes; all updates are documentation-related.\n\nv1.0.12 | 2026-08-26T00:19:31.688Z | auto\n\n- Updated SKILL.md with version bump from 1.0.12 to 1.0.14 and revised content.\n- Removed the skill-card.md file.\n- No functional changes or new features introduced; update is limited to documentation.\n\nv1.0.11 | 2026-08-16T22:53:28.056Z | auto\n\n- Removed skill-card.md file.\n- No user-facing or functional changes; documentation and all code remain unchanged.\n- Version number in SKILL.md already listed as 1.0.12 and is unchanged in this update.\n\nv1.0.10 | 2026-08-15T16:32:39.500Z | auto\n\n- Updated version to 1.0.12.\n- Documentation improvements and clarifications in SKILL.md.\n- Removed outdated file skill-card.md.\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n\nv1.0.9 | 2026-07-29T21:28:29.587Z | auto\n\n- Updated version number from 1.0.8 to 1.0.10 in documentation.\n- Removed the file skill-card.md.\n- No changes to features, requirements, or workflow; documentation only update.\n\nv1.0.8 | 2026-07-14T05:24:29.679Z | auto\n\nVersion 1.0.8\n\n- Updated SKILL.md version and metadata to 1.0.8.\n- Documentation and usage instructions refreshed in SKILL.md.\n- Removed redundant skill-card.md file to streamline documentation.\n- Minor code or utility script (util.py) adjustments as part of maintenance.\n\nv1.0.7 | 2026-07-10T05:04:47.598Z | auto\n\n- Brought SKILL.md up to date for version 1.0.7.\n- Removed the redundant skill-card.md file.\n- No functional or API changes included; documentation only.\n\nv1.0.6 | 2026-07-04T01:14:25.064Z | auto\n\nVersion 1.0.6\n\n- Updated documentation in SKILL.md for improved clarity and detail.\n- Internal code changes in config.py, dao.py, and util.py (details not specified). \n- No changes to user-facing commands or configuration structure.\n- All functionality remains as described; workflows and output remain the same.\n\nv1.0.5 | 2026-06-26T19:44:25.859Z | auto\n\n**Major privacy and user experience update: internalizes user identification, streamlines report queries, and rewrites documentation for clarity.**\n\n- Removed all requirements for users to input, see, or manage identity parameters (open-id) — user identification is now handled entirely internally and automatically.\n- Refined and strictly enforced that all historical report queries fetch exclusively from the cloud API; local/cached report retrieval is forbidden.\n- Documentation is extensively reorganized with new summaries, tabular breakdowns, clear workflow, and more visual structure for easier onboarding and usage.\n- Removed unnecessary user prompts regarding identity; all results, errors, and workflows no longer expose or request user-related identifiers.\n- Updated usage examples and parameter lists, including revised CLI instructions reflecting streamlined identity handling.\n- Cleaned up obsolete or redundant files and configurations.\n\nv1.0.4 | 2026-06-20T10:44:26.895Z | auto\n\n- Major skill refactor: modular restructuring and privacy policy update.\n- Migrated face_analysis and related code into new smyx_analysis module; removed legacy face_analysis directory.\n- Simplified open-id acquisition: now only accepts explicit user input (username or phone), removing automatic config.yaml lookups.\n- Updated data privacy and security statement, clarifying no raw data is retained and all transfers are encrypted.\n- Reduced supported file size for uploads from 100MB to 10MB.\n- Improved report-listing output and API documentation references.\n- Cleaned up configuration files and dependency management.\n\nv1.0.3 | 2026-05-19T09:38:40.359Z | auto\n\nVersion 1.0.3\n\n- Updated internal scripts: __init__.py, config.py, and util.py in skills/smyx_common/scripts.\n- No updates to skill description, documentation, or user-facing functionality.\n- Changes focused on internal code organization or logic improvements.\n\nv1.0.2 | 2026-05-11T07:48:48.273Z | auto\n\nVersion 1.0.2\n\n- No file changes were detected in this release.\n- No new features, fixes, or documentation updates.\n- Functionality and documentation remain unchanged from the previous version.\n\nv1.0.1 | 2026-05-07T07:30:41.795Z | auto\n\n- Improved configuration handling for open-id prioritization and loading in the skill and shared config files.\n- Updated config files (config.yaml, config-dev.yaml, config-test.yaml) for clearer api-key management and open-id assignment.\n- Enhanced skill logic to ensure open-id acquisition strictly follows required priority order.\n- Minor documentation and SKILL.md format tweaks for clarity and completeness.\n- General code refactoring and utility improvements for more robust and maintainable operation.\n\nv1.0.0 | 2026-04-16T15:03:34.057Z | auto\n\nInitial release — provides precise pet breed and individual identity recognition for cats and dogs, optimized for multi-pet households.\n\n- Identifies cat/dog breeds and distinguishes between different individual pets using DCNN-based algorithms.\n- Deeply optimized for multi-pet families, enabling simultaneous recognition of multiple pets in one image/frame.\n- Establishes independent profiles for each pet, accurately tracking activities and behaviors.\n- Implements strict rules requiring all historical report queries to be fetched via cloud API only, never from local files or memory.\n- Enforces open-id acquisition flow before any API call, ensuring correct user identification and data association.\n- Supports image/video upload, network URLs, and interactive viewing of historical recognition reports in a clear Markdown table format.\n\nArchive index:\n\nArchive v1.0.14: 31 files, 39624 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2166b), SKILL.md (12639b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (166b)\n\nFile v1.0.14:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.14:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.14\",\n  \"publishedAt\": 1791058166104\n}\n\nFile v1.0.14:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放宠物品种个体识别分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.14: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.14:scripts/config.yaml\n\n{}\n\nFile v1.0.14:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.14: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.14: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.14: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.14:skill-card.md\n\n## Description:\n\nIdentifies cat and dog breeds and distinguishes individual pets in images and videos for multi-pet households.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nPet owners and developers use this skill to analyze pet images or videos, distinguish cats and dogs by breed and individual, and view account-linked analysis reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet images or videos, remote media URLs, and an internal user identifier are sent to lifeemergence.com services.\n\nMitigation: Use only media you are comfortable sharing with the service and review the vendor's data retention and account controls first.\n\nRisk: The skill may silently create or reuse a platform identity and store authentication tokens in a local workspace database.\n\nMitigation: Review local credential storage and account access controls before use, especially on shared workspaces.\n\nRisk: Account-linked historical reports can be retrieved with limited user control.\n\nMitigation: Limit access to the workspace and confirm the vendor's report retention and deletion options before analyzing sensitive household footage.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis)\n- [Pet analysis API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown]\n\n**Output Format:** [Text analysis with report links; Markdown table for report history]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Analysis results can be saved to a local file.]\n\n## Skill Version(s):\n\n1.0.14 (source: ClawHub release metadata; bundled SKILL.md lists 1.0.18)\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.14:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.14:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.13: 31 files, 39835 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2449b), SKILL.md (12639b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (166b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1789667609231\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAccurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\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 agents use this skill to analyze pet images or videos, identify cat and dog breeds, distinguish individual pets in multi-pet scenes, and list prior pet analysis reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet images/videos, generated or reused identity, report history, and locally stored tokens may be sent to configured external services.\n\nMitigation: Review service endpoints and obtain explicit user consent for identity creation, token persistence, media upload, and history retrieval before installation or use.\n\nRisk: The security evidence reports active plaintext HTTP endpoints despite HTTPS protection claims.\n\nMitigation: Use HTTPS-only production endpoints and remove or disable plaintext HTTP configuration before deployment.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Pet breed individual recognition API documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Structured text and JSON results, with Markdown tables or report links when report history is requested.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include pet counts, breed and individual identification results, confidence values, remarks, report links, and historical report lists.]\n\n## Skill Version(s):\n\n1.0.13 (source: server release metadata; artifact frontmatter reports 1.0.16)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39702 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2402b), SKILL.md (12639b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (166b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1787703571688\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nIdentifies cat and dog breeds from pet images or videos and can distinguish individual pets in multi-pet households.\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 agents use this skill to submit pet media for breed and individual pet recognition, receive structured analysis results, and list prior pet recognition reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill may upload pet images or videos and query report history through an external service.\n\nMitigation: Review the publisher's service documentation and avoid private household media unless retention and identity handling are clearly documented.\n\nRisk: The security evidence reports plaintext development HTTP configuration despite claims of HTTPS transport.\n\nMitigation: Use only HTTPS endpoints for media, credentials, and report traffic before deployment.\n\nRisk: The security evidence reports that account or service tokens may be stored locally.\n\nMitigation: Limit use on shared systems, protect local token storage, and rotate or revoke tokens if exposure is suspected.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis)\n- [Publisher profile](https://clawhub.ai/user/18072937735)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [API interface documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands]\n\n**Output Format:** [Markdown or JSON analysis reports with report links and optional Markdown tables for history lists]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs may include detected pet count, breed labels, individual differentiation, confidence values, comments, and report export links.]\n\n## Skill Version(s):\n\n1.0.12 (source: server release metadata; artifact frontmatter reports 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 39755 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2470b), SKILL.md (12639b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (166b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1786920808056\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAccurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households.\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 agents use this skill to analyze pet images, videos, or URLs for cat and dog breed identification, individual pet distinction in multi-pet households, confidence details, and report history.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet photos, videos, or supplied URLs are sent to the publisher's remote service.\n\nMitigation: Use only media you are comfortable sharing with the publisher's service, and avoid sensitive household media unless retention and transport details are clarified.\n\nRisk: Report history is associated with an internal identity that the skill can create or reuse silently.\n\nMitigation: Review the identity behavior before installation and ensure users understand that history lookup is tied to that internal identity.\n\nRisk: A local SQLite database may store account tokens.\n\nMitigation: Install only in environments where local token storage is acceptable, and protect or periodically clear the workspace data store according to local policy.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis)\n- [Pet breed individual recognition API documentation](references/api_doc.md)\n- [Common analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, configuration]\n\n**Output Format:** [Markdown or JSON analysis reports, Markdown report-history tables, and optional saved output files.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local image or video paths, public media URLs, detail-level selection, report-list requests, and optional output file paths.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; SKILL.md frontmatter states 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39635 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2248b), SKILL.md (12639b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (166b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1786811559500\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nIdentifies cat and dog breeds and distinguishes individual pets in multi-pet households from images, videos, or media URLs.\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 agent developers use this skill to submit pet images, videos, or media URLs for breed identification, individual pet distinction, and retrieval of prior pet recognition reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Pet media is processed by a cloud service.\n\nMitigation: Use the skill only when users are comfortable sending pet images, videos, or URLs to the cloud service for analysis.\n\nRisk: The skill can query account-linked report history and automatically reuse or create an identity.\n\nMitigation: Prefer a release that asks before history lookup or registration and clearly declares the identity and history permissions it uses.\n\nRisk: Tokens and identity data may persist in the workspace data directory.\n\nMitigation: Run the skill in an isolated workspace and limit retained identity data before deployment.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis)\n- [API interface documentation](artifact/references/api_doc.md)\n- [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):** [Analysis, Markdown, JSON, Files]\n\n**Output Format:** [Markdown or JSON text with optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include pet counts, breed assessments, individual pet distinctions, confidence values, remarks, report links, and history lists.]\n\n## Skill Version(s):\n\n1.0.10 (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.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, 39761 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2559b), SKILL.md (12639b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (165b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1785360509587\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.9:skill-card.md\n\n## Description: <br>\nAccurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. <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 agents use this skill to analyze pet images, videos, or media URLs for cat and dog breed identification, individual pet distinction, confidence-bearing structured results, and history/report lookup. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet images, videos, or supplied URLs are processed by external LifeEmergence services. <br>\nMitigation: Use only media appropriate for cloud processing, avoid private or internal URLs, and do not submit sensitive home footage unless cloud processing is acceptable. <br>\nRisk: The skill can create or reuse a persistent account identity and store service tokens in the workspace. <br>\nMitigation: Run it in an isolated workspace, review stored credentials before reuse, and remove local account/token data when the skill is no longer needed. <br>\nRisk: History lookup can retrieve account-linked prior analysis reports. <br>\nMitigation: Confirm the user intends to list historical reports and that the active workspace identity is the expected one before using report-history functionality. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Pet recognition API documentation](references/api_doc.md) <br>\n- [Common analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON] <br>\n**Output Format:** [Markdown text containing structured JSON results and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May write the same result text to a user-specified output file.] <br>\n\n## Skill Version(s): <br>\n1.0.9 (source: server release evidence; artifact frontmatter reports 1.0.10) <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.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, 39928 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2749b), SKILL.md (12638b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (165b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1784006669679\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description: <br>\nAccurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手 <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 agents use this skill to analyze pet images or videos, identify cat and dog breeds, distinguish individual pets in multi-pet households, and retrieve prior recognition reports. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Media and URL inputs are sent to a cloud pet-recognition service. <br>\nMitigation: Use only media acceptable for external cloud processing, and avoid private household footage or identifying content unless the account linkage and provider retention model are acceptable. <br>\nRisk: The skill silently creates or reuses an account identity and stores authentication tokens/profile data in the workspace. <br>\nMitigation: Review the workspace data and account-linkage behavior before installation; use an isolated workspace or account when privacy boundaries matter. <br>\nRisk: History and report APIs can retrieve prior recognition reports tied to the managed identity. <br>\nMitigation: Limit access to the workspace and provider account, and avoid shared identities for sensitive media. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [API 接口文档](artifact/references/api_doc.md) <br>\n- [smyx_analysis API接口文档](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, files] <br>\n**Output Format:** [Markdown or JSON analysis report text, with optional file output when requested.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Reports may include pet count, breed and individual labels, confidence values, remarks, history entries, and report/export links.] <br>\n\n## Skill Version(s): <br>\n1.0.8 (source: SKILL.md frontmatter and ClawHub 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.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, 39633 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2464b), SKILL.md (12638b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (165b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1783659887598\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description: <br>\nIdentifies cat and dog breeds from images or videos and can distinguish individual pets in multi-pet households. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to analyze pet media, receive breed and individual-identification results, and retrieve historical pet recognition reports. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet media and report queries are processed by the lifeemergence cloud service. <br>\nMitigation: Use only with media appropriate for third-party cloud processing and review the service's data handling behavior before using sensitive household media. <br>\nRisk: The skill may silently create or reuse an account identity and send identity data to the cloud service. <br>\nMitigation: Run it only in environments where automatic account association is acceptable, and avoid exposing internal identity values in user-facing output. <br>\nRisk: The skill stores session tokens in a local SQLite database. <br>\nMitigation: Protect the local workspace and remove stored tokens or account state when the environment is no longer trusted. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis) <br>\n- [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, shell commands, guidance] <br>\n**Output Format:** [Markdown or JSON-formatted analysis results with report links when available] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include detected pet count, breed predictions, individual differentiation, confidence values, short notes, and historical report links.] <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, 39698 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), skill-card.md (2594b), SKILL.md (12638b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28605b), _meta.json (165b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1783127665064\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nIdentifies cat and dog breeds from pet media, distinguishes individual pets in multi-pet households, and can retrieve prior cloud analysis reports. <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 agents use this skill to submit pet images, videos, or media URLs for breed identification, individual pet differentiation, and structured report retrieval. It is intended for pet management workflows where cloud processing of pet media is acceptable. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Pet photos, videos, or media URLs are sent to lifeemergence.com cloud services for analysis. <br>\nMitigation: Use only with media whose cloud transfer is acceptable, and avoid sensitive household footage unless that data flow has been approved. <br>\nRisk: The skill silently creates or reuses an account-linked identifier and uses it to retrieve cloud report history. <br>\nMitigation: Enable the skill only in contexts where account-linked report history is expected and disclosed to users or operators. <br>\nRisk: Tokens may be stored in a local workspace database. <br>\nMitigation: Run the skill in a trusted workspace, restrict local file access, and rotate or clear local credentials according to operational policy. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-pet-breed-individual-recognition-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown or JSON text containing structured analysis results, report-list output, and report links.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Accepts a local media path or media URL; local inputs are checked for supported format and size before upload.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: 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: 30 files, 35236 bytes\n\nFiles: references/api_doc.md (701b), scripts/__init__.py (31b), scripts/config.py (672b), scripts/config.yaml (3b), scripts/pet_breed_individual_recognition_analysis.py (3222b), scripts/skill.py (579b), SKILL.md (12638b), 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 (22801b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (13468b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (23409b), _meta.json (165b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.pet_breed_individual_recognition_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📸 识别要求 | Recognition Requirements\n\n为了获得准确的品种/个体识别，请确保：\n\n| 要求 | 说明 |\n|---|---|\n| 🐾 宠物完整出镜 | 避免身体、脸部或关键特征被过度遮挡 |\n| 💡 光线充足清晰 | 避免过度模糊、暗角、逆光或强烈噪点 |\n| 🐕 多宠间距适中 | 多宠同框时尽量保持宠物之间有一定间距，便于分别识别个体 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备宠物图片/视频输入 | 提供本地图片/视频文件路径或网络 URL；确保宠物完整出镜、光线充足 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行宠物品种个体识别分析 | 调用 `-m scripts.pet_breed_individual_recognition_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化的宠物品种个体识别分析报告，包含输入基本信息、检测到的宠物数量、每个宠物的品种判定、个体区分结果、置信度、趣味备注 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地图片/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络图片/视频 URL 地址 | API 服务自动下载 |\n| `--list` | 显示历史宠物品种个体识别分析报告列表清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/pet_breed_individual_recognition_analysis.py`](scripts/pet_breed_individual_recognition_analysis.py) | 调用 API 进行宠物品种个体识别分析、本地文件上传、网络 URL 由 API 服务自动下载 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 配置 API 地址、默认参数和格式限制 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口详细规范和错误码 | 仅在需要了解 API 接口详细规范和错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 支持 `jpg` / `jpeg` / `png` / `mp4` / `avi` / `mov`，最大 `10MB` |\n| 🧾 结果性质 | 分析结果仅供宠物爱好参考，纯种鉴定请以专业机构结果为准 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网路地址参数，不需要下载本地，默认地址都是公网地址，API 服务会自动下载 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段 `` 作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `宠物品种个体识别报告-{记录id}` 形式拼接 |\n| 宠物数量 | 从接口返回数据中提取 |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 📝 隐私与数据安全声明 | Privacy & Data Security\n\n本技能在处理用户上传的视频时，严格遵守数据安全规范：\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 🔐 **数据保密处理**：系统基于用户名/手机号生成的标识仅作为用户关联信息，**不保存任何可直接识别个人身份的明文信息** |\n| 2 | 🛡️ **安全传输**：所有数据（包括视频文件及关联标识）均通过 **HTTPS/TLS 加密通道** 发送至云端 API 进行分析，防止数据在传输过程中被窃取或篡改 |\n| 3 | 🧹 **数据留存策略**：云端服务器遵循“最小必要原则”，**分析任务完成后即刻删除原始视频数据，不进行持久化存储**，确保用户隐私数据不被留存或滥用 |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🖼️ 识别本地图片中的宠物\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg\n```\n\n### 🌐 识别网络图片\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg\n```\n\n### 📚 显示历史识别报告 / 显示识别报告清单列表 / 显示历史宠物识别\n\n> 自动触发关键词：查看历史识别报告、历史报告、识别报告清单等。\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1782503065859\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- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5: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","readmeExcerpt":"Skill: Pet Breed & Individual Identification Skill | 宠物品种个体识别技能 Owner: 18072937735 Summary: Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手 Tags: latest:1.0.14 Version history: v1.0.14 | 2026-10-03T20:09:26.104Z | auto - Updated skill version ","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.pet_breed_individual_recognition_analysis --list"},{"language":"txt","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"python -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg"},{"language":"bash","snippet":"python -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg"},{"language":"bash","snippet":"python -m scripts.pet_breed_individual_recognition_analysis --list"},{"language":"bash","snippet":"python -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --detail basic"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"pet-breed-individual-recognition-analysis\"\ndescription: \"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手\"\nversion: \"1.0.18\"\nlicense: \"MIT-0\"\n---\n\n# 🐾 Pet Breed & Individual Identification Skill | 宠物品种个体识别技能\n\n> **智能宠物管家中枢** · 猫狗品种识别 · 多宠个体区分 · 家庭宠物智能管理\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **Pet Breed & Individual Identification Skill / 宠物品种个体识别技能** |\n| 🎯 核心目标 | 识别图片/视频中的宠物，准确判断猫狗品种，并支持多宠家庭区分不同独立个体 |\n| 🖼️ 输入类型 | 宠物图片、视频、本地文件、网络图片/视频 URL |\n| 🧠 技术能力 | 基于深度卷积神经网络（DCNN）的宠物检测、品种分类、个体识别、多目标区分 |\n| 📝 输出能力 | 宠物数量、品种判定、个体区分结果、置信度、趣味备注、报告链接 |\n| 🏡 适用场景 | 多宠家庭、智能宠物管家、家庭监控、宠物活动记录、宠物身份档案管理 |\n\nEquipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart butler assistant for modern multi-pet families.\n\n本功能搭载了基于深度卷积神经网络的高精度品种识别算法，能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库，更针对多宠家庭场景进行了深度优化，支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案，系统能够准确记录每只宠物的活动轨迹与行为习惯，有效解决多宠环境下的身份混淆问题，为宠物主人提供个性化的智能管理服务，是现代化多宠家庭不可或缺的智能管家助手。\n\n---\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n本 Skill 用于：识别图片/视频中的宠物，准确判断猫狗品种，支持多宠家庭区分不同独立个体。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 检测图片/视频中的猫、狗等常见宠物 |\n| 2 | 判断猫狗宠物品种，支持主流和稀有品种识别 |\n| 3 | 多宠家庭中区分不同独立个体 |\n| 4 | 支持同一画面中多个宠物的同时识别与区分 |\n| 5 | 配合家庭监控自动记录宠物活动与行为习惯 |\n| 6 | 查询历史宠物品种个体识别分析报告清单 |\n\n### 3. 🏡 支持场景\n\n| 场景 | 说明 |\n|---|---|\n| 🧬 品种识别 | 精准识别上百种猫狗品种 |\n| 🐾 个体区分 | 多宠家庭能分辨出“这只是谁”“那只是谁” |\n| 🏠 智能管家 | 配合家庭监控自动记录宠物活动 |\n\n### 4. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | 当用户提供宠物图片/视频需要识别品种/个体时，默认触发本技能 |\n| 🔎 明确识别意图 | 当用户明确需要宠物识别、品种鉴定时，提及宠物品种识别、猫咪品种、狗狗品种、区分宠物、个体识别等关键词，并且上传了图片/视频 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看历史识别报告、宠物识别报告清单、识别报告列表、查询历史识别报告、显示所有识别报告、宠物品种分析报告，查询宠物品种个体识别分析报告 |\n\n### 5. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者图片/视频文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发任何历史报告查询关键词（如“查看所有识别报告”、“显示所有宠物识别”、“查看历史报告”等），必须直接调用云端 API 查询 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.pet_breed_individual_recognition_analysis --list\n``"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-pet-breed-individual-recognition-analysis\",\n  \"version\": \"1.0.14\",\n  \"publishedAt\": 1791058166104\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放宠物品种个体识别分析 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动AI分析任务\n2. `/web/ai-analysis/v2/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/ai/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `OPEN_PET_BREED_INDIVIDUAL_RECOGNITION_ANALYSIS` - 开放平台宠物品种个体识别分析"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手 Skill: Pet Breed & Individual Identification Skill | 宠物品种个体识别技能 Owner: 18072937735 Summary: Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能，精准识别猫狗宠物品种，支持多宠家庭区分不同独立个体，智能宠物管家好帮手 Tags: latest:1.0.14 Version history: v1.0.14 | 2026-10-03T20:09:26.104Z | auto - Updated skill version","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":914,"uniquenessScore":50,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T19:38:36.400Z","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-09T19:38:36.400Z","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-10T00:34:04.874Z","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"}]}}}