{"id":"7608c62d-138b-4163-80c3-fd0a26f62f84","entityType":"agent","slug":"clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis","name":"Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis","generatedAt":"2026-10-10T07:29:23.319Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:19:24.036Z","emptyReason":null},"description":"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-reptile-tail-loss-detection-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-reptile-tail-loss-detection-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-reptile-tail-loss-detection-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-reptile-tail-loss-detection-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-reptile-tail-loss-detection-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":66,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:19:24.036Z","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-09T23:19:24.036Z","emptyReason":null},"stars":null,"forks":null,"downloads":1897,"packageName":null,"latestVersion":"1.0.12","tractionLabel":"1.9K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:19:24.011Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T23:19:24.036Z","lastCrawledAt":"2026-10-09T23:19:24.011Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T23:19:24.011Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.12","createdAt":"2026-09-29T16:25:26.814Z","changelog":"- Updated SKILL.md: version bumped from 1.0.15 to 1.0.17, with minor copy or content changes. - Removed skill-card.md (the short summary/entry file). - No changes to functionality; adjustments only to documentation and file structure.","fileCount":31,"zipByteSize":45145},{"version":"1.0.11","createdAt":"2026-09-24T09:25:27.629Z","changelog":"- Updated version to 1.0.15 in SKILL.md. - Minor documentation updates in SKILL.md. - Removed the file skill-card.md. - No changes to core logic or functionality.","fileCount":31,"zipByteSize":45402},{"version":"1.0.10","createdAt":"2026-08-26T08:50:29.125Z","changelog":"- Updated version number to 1.0.12 in SKILL.md. - Minor content or documentation updates in SKILL.md. - Removed skill-card.md from the project.","fileCount":31,"zipByteSize":45342},{"version":"1.0.9","createdAt":"2026-08-17T12:39:40.858Z","changelog":"- skill-card.md file removed; central SKILL.md now contains all documentation. - Updated configuration in skills/smyx_common/scripts/config.yaml. - No changes to core detection logic or main functionality. - Documentation and info are now solely managed through SKILL.md for improved maintenance.","fileCount":31,"zipByteSize":45263},{"version":"1.0.8","createdAt":"2026-08-12T22:29:34.429Z","changelog":"- Version bumped to 1.0.10 for alignment. - Documentation (SKILL.md) updated; clarifications and refinements applied throughout. - Outdated file (skill-card.md) removed. - No functional or code changes to the detection logic itself.","fileCount":31,"zipByteSize":45312},{"version":"1.0.7","createdAt":"2026-08-03T22:22:28.811Z","changelog":"- Removed the file skill-card.md from the project. - No changes to functionality or user experience; documentation asset only.","fileCount":31,"zipByteSize":45307},{"version":"1.0.6","createdAt":"2026-07-29T19:22:28.296Z","changelog":"- Updated skill version to 1.0.8. - Removed the file skill-card.md. - Revised and updated documentation in SKILL.md for clarity and detail. - No changes to core functionality; documentation only.","fileCount":31,"zipByteSize":45420},{"version":"1.0.5","createdAt":"2026-07-16T01:34:46.742Z","changelog":"smyx-reptile-tail-loss-detection-analysis 1.0.6 - Updated documentation in SKILL.md for improved clarity and detail. - Removed the deprecated skill-card.md file. - No changes to core features or logic; update is documentation-only.","fileCount":31,"zipByteSize":45474}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-reptile-tail-loss-detection-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-reptile-tail-loss-detection-analysis` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/18072937735/smyx-reptile-tail-loss-detection-analysis before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T07:29:23.315Z"}},"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-reptile-tail-loss-detection-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-tail-loss-detection-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:19:24.036Z","emptyReason":null},"readme":"Skill: Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n\nOwner: 18072937735\n\nSummary: Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\n\nTags: latest:1.0.12\n\nVersion history:\n\nv1.0.12 | 2026-09-29T16:25:26.814Z | auto\n\n- Updated SKILL.md: version bumped from 1.0.15 to 1.0.17, with minor copy or content changes.\n- Removed skill-card.md (the short summary/entry file).\n- No changes to functionality; adjustments only to documentation and file structure.\n\nv1.0.11 | 2026-09-24T09:25:27.629Z | auto\n\n- Updated version to 1.0.15 in SKILL.md.\n- Minor documentation updates in SKILL.md.\n- Removed the file skill-card.md.\n- No changes to core logic or functionality.\n\nv1.0.10 | 2026-08-26T08:50:29.125Z | auto\n\n- Updated version number to 1.0.12 in SKILL.md.\n- Minor content or documentation updates in SKILL.md.\n- Removed skill-card.md from the project.\n\nv1.0.9 | 2026-08-17T12:39:40.858Z | auto\n\n- skill-card.md file removed; central SKILL.md now contains all documentation.\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n- No changes to core detection logic or main functionality.\n- Documentation and info are now solely managed through SKILL.md for improved maintenance.\n\nv1.0.8 | 2026-08-12T22:29:34.429Z | auto\n\n- Version bumped to 1.0.10 for alignment.\n- Documentation (SKILL.md) updated; clarifications and refinements applied throughout.\n- Outdated file (skill-card.md) removed.\n- No functional or code changes to the detection logic itself.\n\nv1.0.7 | 2026-08-03T22:22:28.811Z | auto\n\n- Removed the file skill-card.md from the project.\n- No changes to functionality or user experience; documentation asset only.\n\nv1.0.6 | 2026-07-29T19:22:28.296Z | auto\n\n- Updated skill version to 1.0.8.\n- Removed the file skill-card.md.\n- Revised and updated documentation in SKILL.md for clarity and detail.\n- No changes to core functionality; documentation only.\n\nv1.0.5 | 2026-07-16T01:34:46.742Z | auto\n\nsmyx-reptile-tail-loss-detection-analysis 1.0.6\n\n- Updated documentation in SKILL.md for improved clarity and detail.\n- Removed the deprecated skill-card.md file.\n- No changes to core features or logic; update is documentation-only.\n\nv1.0.4 | 2026-07-11T05:08:45.272Z | auto\n\n- Updated SKILL.md to version 1.0.5 with minor documentation or instructions changes.\n- Removed deprecated file: skill-card.md.\n- Modified configuration and utility scripts in skills/smyx_common/scripts/, likely for maintenance or refinement.\n- No breaking changes to APIs or user-facing workflows.\n\nv1.0.3 | 2026-06-30T18:42:29.978Z | auto\n\n- Updated user workflow: open-id is now handled automatically by the backend, removing all user-facing prompts or requirements for identity input.\n- Streamlined documentation for clear module overview, task goals, capabilities, triggers, and API parameter usage.\n- Enforced new data security: identity tokens must never be prompted for, displayed, or used as user parameters.\n- Enhanced historical event queries: all report retrievals go through cloud API, strictly prohibiting local or memory-based aggregation.\n- Removed and deprecated old local API service scripts; updated resource references and file structure for clarity and maintainability.\n\nv1.0.2 | 2026-06-22T16:22:31.275Z | auto\n\n- Removed the documentation file skill-card.md.\n- Updated the configuration reference in the common scripts config.yaml.\n- No changes to the core logic or detection features.\n- Documentation is now consolidated in SKILL.md.\n\nv1.0.1 | 2026-06-17T07:24:24.467Z | auto\n\n- Removed the file skill-card.md from the project.\n- No changes to code or configuration—only documentation cleanup for this version.\n\nv1.0.0 | 2026-06-16T05:56:10.513Z | auto\n\nsmyx-reptile-tail-loss-detection-analysis v1.0.2\n\n- Adds AI-powered periodic visual analysis of gecko and lizard tails for early detection of tail loss, wounds, and abnormal shortening using enclosure cameras.\n- Compares current tail length to historical measurements and species-specific body-length ratios, triggering alerts if significant loss or fresh wounds are detected.\n- Classifies tail-tip conditions (e.g., intact, amputated, scabbed, regenerated) and recognizes context (shedding, cohabitation, stress, image quality) to minimize false positives.\n- Enforces strict open-id (user identity) verification before analysis and mandates cloud-based query for historical reports.\n- Provides a structured, multi-level alert system for keepers with actionable recommendations, designed for integration into vivarium camera systems.\n- Clear constraints prevent overstepping into medical advice and require high image quality for reliable results.\n\nArchive index:\n\nArchive v1.0.12: 31 files, 45145 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2207b), SKILL.md (18779b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力可主动断尾再生**；鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾**（断尾即永久缺失，意外原因可能性更高）；绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / **tail_loss_event_fresh** / **tail_loss_event_with_infection_risk** / tail_loss_event_scabbed / tail_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医，**严防败血症致死**）。**核心物种特异性硬约束**：**已有再生尾基线**的个体（注册时录入或历史已识别）→ 再生尾形态、颜色、鳞片纹路与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾**。生理性上下文必须考虑（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable`。不提供任何医疗建议，仅输出基于视觉的判断结果；**严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌**；**严禁输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量**；**严禁输出\"自行缝合\"\"自行剪除坏死组织\"等任何外科操作建议**；严禁伪造夸大尾长缩短比例；严禁越权代用户启停设备（仅可建议隔离）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱固定摄像头**定期尾部图像**（每日 ≥ 1 张，建议早晚各 1 张，对比历史 7 天基线），识别 7 类综合场景（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable）→ **四组指标**：尾长测量 5 项（像素长度 + mm 估算 + **tail/SVL 比值** + 历史 7 天基线 + **缩短比例**）+ 断端形态 5 项（**尾尖形态分类** + **是否可见开放伤口** + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液）+ 再生尾识别 2 项（**是否再生尾** + 颜色异常评分）+ 排除上下文 5 项（蜕皮期 / 多只混养 / 近期操作应激 / 历史断尾记录 / 图像质量）→ 4 档提醒级别（none / info / important / urgent）→ **4 级提醒策略递进**（入库 → 结痂恢复期保持清洁 → 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → 感染风险立即联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限——断尾感染急症**）→ **断尾事件报告**（按 enclosure_id + individual_id + 事件时间戳输出，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 尾部精确分割 |\n| 2 | 像素测量 |\n| 3 | SVL 校准（首次入缸 SVL 录入） |\n| 4 | 与历史 7 天基线对比 |\n| 5 | 与物种基线 tail/SVL 比值对比 |\n| 6 | 断端形态分类（5 类） |\n| 7 | 开放伤口检测 |\n| 8 | 结痂检测 |\n| 9 | 红肿评分 |\n| 10 | 渗液/脓液检测 |\n| 11 | **再生尾识别**（颜色 + 鳞片纹路 + 球状钝端） |\n| 12 | 生理性上下文识别（蜕皮 / 混养 / 操作应激 / 历史断尾） |\n| 13 | 图像质量门控 |\n| 14 | 用户 APP 推送 |\n| 15 | 4 级提醒递进 |\n| 16 | 单日提醒上限（**Level 4 不设上限**） |\n| 17 | 事件报告（按 enclosure_id + individual_id 输出） |\n| 18 | 连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医** |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供守宫/蜥蜴尾部图像或视频 URL 或文件需要分析时，默认触发本技能进行断尾识别 |\n| 🔎 明确分析意图 | 当用户明确提及守宫断尾、蜥蜴断尾、爬宠尾巴短了、爬宠尾巴断了、爬宠尾巴伤口、再生尾、自割等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看守宫/蜥蜴断尾历史报告、断尾事件清单、查询历史断尾记录、显示所有爬宠断尾报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_tail_loss_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备守宫/蜥蜴尾部图像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行守宫/蜥蜴断尾识别 | 调用 `-m scripts.smyx_reptile_tail_loss_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地守宫/蜥蜴尾部高清图像或视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络守宫/蜥蜴尾部图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠断尾场景默认 `other` | 按需填写 |\n| `--list` | 显示守宫/蜥蜴断尾事件历史记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_tail_loss_detection_analysis.py`](scripts/smyx_reptile_tail_loss_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png/mp4，最大 10MB；摄像头需**完整展示从泄殖腔到尾尖的整条尾部**；**分辨率 ≥ 1080p**（像素测量精度要求高）；每日 ≥ 1 张 |\n| 🔎 使用提醒 | **核心采样窗口**：每日 ≥ 1 张（建议早晚各 1 张），对比历史 7 天基线 |\n| 🔎 使用提醒 | **核心阈值**：`tail_shortening_ratio` **≥ 20%** + 断端可见伤口或新鲜创面 → 触发断尾事件 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（none → info → important → urgent） |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限（断尾感染急症）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌（仅可中性表述\"宠物专用生理盐水冲洗\"） |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尾长缩短比例、伤口评分等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 是否具自割能力（autotomy）匹配判定**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可再生；鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生；绿鬣蜥幼体可再生但成体困难 |\n| 🔎 使用提醒 | **必须**识别**再生尾基线**：再生尾形态颜色与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误判 |\n| 🧑‍⚖️ 结果性质 | **必须**在图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p 时返回 `tail_signal_unreliable` 并建议重新拍摄 |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医**（断尾感染可能引发败血症致死） |\n| 📜 报告输出 | **必须**：断尾事件报告**按 enclosure_id + individual_id + 事件时间戳输出**，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史断尾事件记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790699126814\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discharge_or_pus_detected` - 是否有渗液/脓液（感染强信号）\n\n### 再生尾识别\n- `is_regenerated_tail` - **是否为再生尾**（再生尾颜色与原尾不同，无原始鳞片纹路，球状钝端）\n- `regenerated_tail_color_anomaly` - 再生尾颜色异常评分\n\n### 上下文与排除信号\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期尾尖可能呈白色脱皮态，易误判）\n- `multi_individual_cohabitation` - 是否多只混养（争斗断尾高发场景）\n- `recent_handling_stress` - 近期是否有人为操作（应激断尾）\n- `previous_autotomy_recorded` - 历史断尾记录已存在\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 完整露出 / 无遮挡）\n\n## 综合判定\n\n- `tail_intact_normal` - 尾部完整正常\n- `tail_shedding_artifact` - 蜕皮造成的尾尖白皮假象，非断尾\n- `tail_regenerated_baseline` - 再生尾已存在基线，无新增断尾事件\n- `tail_loss_event_fresh` - **新发断尾事件**（缩短 ≥ 20% + 断端可见伤口或新鲜创面）\n- `tail_loss_event_with_infection_risk` - **断尾 + 感染风险**（伤口红肿 ≥ 3 / 有渗液脓液）\n- `tail_loss_event_scabbed` - 断尾已结痂（事件已发生数日，进入恢复期）\n- `tail_signal_unreliable` - 信号不可靠（图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考）\n\n## 4 级提醒策略递进\n\n- Level 1（tail_intact_normal / tail_regenerated_baseline / tail_shedding_artifact）：仅入库，不主动提示\n- Level 2（tail_loss_event_scabbed）：温和提示，记录断尾已结痂进入恢复期，建议**继续保持环境清洁 + 评估是否需隔离**\n- Level 3（tail_loss_event_fresh）：重要提示，建议**立即隔离受伤个体到单独养殖箱 + 用洁净水或宠物专用生理盐水冲洗伤口 + 保持环境湿度与温度稳定 + 减少应激源 + 观察食欲与精神状态**\n- Level 4（tail_loss_event_with_infection_risk）：紧急提示，建议**立即隔离 + 保持伤口清洁 + 立即联系爬宠兽医（断尾感染可能引发败血症致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 2 / Level 3 × 3 / Level 4 不设上限（断尾感染急症）\n\n## 红线约束\n\n- **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、给药方案、**消毒液品牌、抗生素品牌、外用药膏品牌**（仅可提\"宠物专用生理盐水冲洗\"等中性表述）\n- **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量\n- **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离）\n- 尾长测量、缩短比例、伤口评分等指标必须基于真实图像分析；**禁止伪造或夸大指标**\n- 物种特异性：**豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力（autotomy），可主动断尾后再生；**鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾；**绿鬣蜥幼体**可再生但成体困难 → **必须按物种识别再生能力**；**严禁通用阈值盲判已断尾物种的再生尾基线为新发断尾**\n- 必须考虑生理性上下文：**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线** → 不可直接告警\n- 图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable` 并建议重新拍摄\n- 必须告知用户：AI 视觉识别仅供参考，**伤口处理与感染判断需用户结合现场观察并由专业爬宠兽医确认**\n\n## 输出报告字段\n\n- `report_date` - 报告日期\n- `enclosure_id` - 爬宠箱 ID\n- `individual_id` - 个体 ID（多只混养必填）\n- `species` - 宠物物种\n- `tail_length_mm_estimated` - 当前尾长估算\n- `tail_to_svl_ratio` - 尾长/SVL 比值\n- `tail_shortening_ratio` - 尾长缩短比例\n- `tail_tip_morphology` - 尾尖形态\n- `wound_visible` - 断端伤口\n- `redness_swelling_score_0_5` - 红肿评分\n- `is_regenerated_tail` - 是否再生尾\n- `composite_scene` - 综合判定\n- `alert_level` - 提醒等级\n- `recommended_actions` - 建议动作（隔离 / 宠物专用生理盐水冲洗 / 保持环境清洁 / 观察食欲精神 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）\n- `disclaimer` - 免责声明\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nAnalyzes gecko and lizard tail images or videos for signs of tail loss, wounds, and regeneration, and returns event alerts and reports.\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\nReptile keepers and enclosure operators use the skill to review tail imagery for possible autotomy, track changes against prior observations, and view event alerts or historical reports. Visual findings are not a veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Reptile media, URLs, and report-history requests are sent to a cloud service, and the skill may silently create or reuse a cloud-linked identity.\n\nMitigation: Obtain explicit consent before sending sensitive media, looking up history, or creating an account; review the cloud service before installation.\n\nRisk: Service tokens may be stored in a local database under the workspace data directory.\n\nMitigation: Protect access to the workspace data directory and review local token storage before installation.\n\nRisk: Poor-quality imagery or an existing regenerated tail can produce misleading alerts.\n\nMitigation: Check image quality and prior tail history, and have a reptile veterinarian assess concerning wounds or suspected infection.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/18072937735/skills/smyx-reptile-tail-loss-detection-analysis)\n- [Tail-loss analysis API reference](artifact/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis report or Markdown history table; optional JSON file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include event alerts, suggested actions, and report links.]\n\n## Skill Version(s):\n\n1.0.12 (source: server-resolved ClawHub release)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 45402 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2743b), SKILL.md (18779b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力可主动断尾再生**；鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾**（断尾即永久缺失，意外原因可能性更高）；绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / **tail_loss_event_fresh** / **tail_loss_event_with_infection_risk** / tail_loss_event_scabbed / tail_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医，**严防败血症致死**）。**核心物种特异性硬约束**：**已有再生尾基线**的个体（注册时录入或历史已识别）→ 再生尾形态、颜色、鳞片纹路与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾**。生理性上下文必须考虑（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable`。不提供任何医疗建议，仅输出基于视觉的判断结果；**严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌**；**严禁输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量**；**严禁输出\"自行缝合\"\"自行剪除坏死组织\"等任何外科操作建议**；严禁伪造夸大尾长缩短比例；严禁越权代用户启停设备（仅可建议隔离）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱固定摄像头**定期尾部图像**（每日 ≥ 1 张，建议早晚各 1 张，对比历史 7 天基线），识别 7 类综合场景（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable）→ **四组指标**：尾长测量 5 项（像素长度 + mm 估算 + **tail/SVL 比值** + 历史 7 天基线 + **缩短比例**）+ 断端形态 5 项（**尾尖形态分类** + **是否可见开放伤口** + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液）+ 再生尾识别 2 项（**是否再生尾** + 颜色异常评分）+ 排除上下文 5 项（蜕皮期 / 多只混养 / 近期操作应激 / 历史断尾记录 / 图像质量）→ 4 档提醒级别（none / info / important / urgent）→ **4 级提醒策略递进**（入库 → 结痂恢复期保持清洁 → 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → 感染风险立即联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限——断尾感染急症**）→ **断尾事件报告**（按 enclosure_id + individual_id + 事件时间戳输出，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 尾部精确分割 |\n| 2 | 像素测量 |\n| 3 | SVL 校准（首次入缸 SVL 录入） |\n| 4 | 与历史 7 天基线对比 |\n| 5 | 与物种基线 tail/SVL 比值对比 |\n| 6 | 断端形态分类（5 类） |\n| 7 | 开放伤口检测 |\n| 8 | 结痂检测 |\n| 9 | 红肿评分 |\n| 10 | 渗液/脓液检测 |\n| 11 | **再生尾识别**（颜色 + 鳞片纹路 + 球状钝端） |\n| 12 | 生理性上下文识别（蜕皮 / 混养 / 操作应激 / 历史断尾） |\n| 13 | 图像质量门控 |\n| 14 | 用户 APP 推送 |\n| 15 | 4 级提醒递进 |\n| 16 | 单日提醒上限（**Level 4 不设上限**） |\n| 17 | 事件报告（按 enclosure_id + individual_id 输出） |\n| 18 | 连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医** |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供守宫/蜥蜴尾部图像或视频 URL 或文件需要分析时，默认触发本技能进行断尾识别 |\n| 🔎 明确分析意图 | 当用户明确提及守宫断尾、蜥蜴断尾、爬宠尾巴短了、爬宠尾巴断了、爬宠尾巴伤口、再生尾、自割等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看守宫/蜥蜴断尾历史报告、断尾事件清单、查询历史断尾记录、显示所有爬宠断尾报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_tail_loss_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备守宫/蜥蜴尾部图像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行守宫/蜥蜴断尾识别 | 调用 `-m scripts.smyx_reptile_tail_loss_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地守宫/蜥蜴尾部高清图像或视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络守宫/蜥蜴尾部图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠断尾场景默认 `other` | 按需填写 |\n| `--list` | 显示守宫/蜥蜴断尾事件历史记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_tail_loss_detection_analysis.py`](scripts/smyx_reptile_tail_loss_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png/mp4，最大 10MB；摄像头需**完整展示从泄殖腔到尾尖的整条尾部**；**分辨率 ≥ 1080p**（像素测量精度要求高）；每日 ≥ 1 张 |\n| 🔎 使用提醒 | **核心采样窗口**：每日 ≥ 1 张（建议早晚各 1 张），对比历史 7 天基线 |\n| 🔎 使用提醒 | **核心阈值**：`tail_shortening_ratio` **≥ 20%** + 断端可见伤口或新鲜创面 → 触发断尾事件 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（none → info → important → urgent） |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限（断尾感染急症）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌（仅可中性表述\"宠物专用生理盐水冲洗\"） |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尾长缩短比例、伤口评分等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 是否具自割能力（autotomy）匹配判定**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可再生；鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生；绿鬣蜥幼体可再生但成体困难 |\n| 🔎 使用提醒 | **必须**识别**再生尾基线**：再生尾形态颜色与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误判 |\n| 🧑‍⚖️ 结果性质 | **必须**在图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p 时返回 `tail_signal_unreliable` 并建议重新拍摄 |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医**（断尾感染可能引发败血症致死） |\n| 📜 报告输出 | **必须**：断尾事件报告**按 enclosure_id + individual_id + 事件时间戳输出**，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史断尾事件记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790241927629\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discharge_or_pus_detected` - 是否有渗液/脓液（感染强信号）\n\n### 再生尾识别\n- `is_regenerated_tail` - **是否为再生尾**（再生尾颜色与原尾不同，无原始鳞片纹路，球状钝端）\n- `regenerated_tail_color_anomaly` - 再生尾颜色异常评分\n\n### 上下文与排除信号\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期尾尖可能呈白色脱皮态，易误判）\n- `multi_individual_cohabitation` - 是否多只混养（争斗断尾高发场景）\n- `recent_handling_stress` - 近期是否有人为操作（应激断尾）\n- `previous_autotomy_recorded` - 历史断尾记录已存在\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 完整露出 / 无遮挡）\n\n## 综合判定\n\n- `tail_intact_normal` - 尾部完整正常\n- `tail_shedding_artifact` - 蜕皮造成的尾尖白皮假象，非断尾\n- `tail_regenerated_baseline` - 再生尾已存在基线，无新增断尾事件\n- `tail_loss_event_fresh` - **新发断尾事件**（缩短 ≥ 20% + 断端可见伤口或新鲜创面）\n- `tail_loss_event_with_infection_risk` - **断尾 + 感染风险**（伤口红肿 ≥ 3 / 有渗液脓液）\n- `tail_loss_event_scabbed` - 断尾已结痂（事件已发生数日，进入恢复期）\n- `tail_signal_unreliable` - 信号不可靠（图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考）\n\n## 4 级提醒策略递进\n\n- Level 1（tail_intact_normal / tail_regenerated_baseline / tail_shedding_artifact）：仅入库，不主动提示\n- Level 2（tail_loss_event_scabbed）：温和提示，记录断尾已结痂进入恢复期，建议**继续保持环境清洁 + 评估是否需隔离**\n- Level 3（tail_loss_event_fresh）：重要提示，建议**立即隔离受伤个体到单独养殖箱 + 用洁净水或宠物专用生理盐水冲洗伤口 + 保持环境湿度与温度稳定 + 减少应激源 + 观察食欲与精神状态**\n- Level 4（tail_loss_event_with_infection_risk）：紧急提示，建议**立即隔离 + 保持伤口清洁 + 立即联系爬宠兽医（断尾感染可能引发败血症致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 2 / Level 3 × 3 / Level 4 不设上限（断尾感染急症）\n\n## 红线约束\n\n- **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、给药方案、**消毒液品牌、抗生素品牌、外用药膏品牌**（仅可提\"宠物专用生理盐水冲洗\"等中性表述）\n- **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量\n- **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离）\n- 尾长测量、缩短比例、伤口评分等指标必须基于真实图像分析；**禁止伪造或夸大指标**\n- 物种特异性：**豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力（autotomy），可主动断尾后再生；**鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾；**绿鬣蜥幼体**可再生但成体困难 → **必须按物种识别再生能力**；**严禁通用阈值盲判已断尾物种的再生尾基线为新发断尾**\n- 必须考虑生理性上下文：**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线** → 不可直接告警\n- 图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable` 并建议重新拍摄\n- 必须告知用户：AI 视觉识别仅供参考，**伤口处理与感染判断需用户结合现场观察并由专业爬宠兽医确认**\n\n## 输出报告字段\n\n- `report_date` - 报告日期\n- `enclosure_id` - 爬宠箱 ID\n- `individual_id` - 个体 ID（多只混养必填）\n- `species` - 宠物物种\n- `tail_length_mm_estimated` - 当前尾长估算\n- `tail_to_svl_ratio` - 尾长/SVL 比值\n- `tail_shortening_ratio` - 尾长缩短比例\n- `tail_tip_morphology` - 尾尖形态\n- `wound_visible` - 断端伤口\n- `redness_swelling_score_0_5` - 红肿评分\n- `is_regenerated_tail` - 是否再生尾\n- `composite_scene` - 综合判定\n- `alert_level` - 提醒等级\n- `recommended_actions` - 建议动作（隔离 / 宠物专用生理盐水冲洗 / 保持环境清洁 / 观察食欲精神 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）\n- `disclaimer` - 免责声明\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: prod\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nThrough fixed enclosure cameras, the skill analyzes gecko and lizard tail images or videos to detect abnormal tail shortening, visible wounds, scabs, regenerated-tail baselines, and possible tail-loss events.\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 keepers, breeders, and developers use this skill to analyze reptile enclosure media for tail autotomy signals, generate structured event reports, and review account-linked historical reports. It is intended to support monitoring decisions, not to replace professional reptile veterinary judgment.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Media and URLs may be sent to the configured cloud analysis service.\n\nMitigation: Install only when the publisher and configured service are trusted, and avoid submitting sensitive media unless cloud processing is acceptable.\n\nRisk: The skill resolves an internal identity, queries account-linked report history, and may persist account tokens locally.\n\nMitigation: Require authorization review before using real account-linked reports, do not pass arbitrary open-id values, and inspect local token storage practices before deployment.\n\nRisk: Visual tail-loss results can be misleading when images are blurry, incomplete, poorly lit, below the required resolution, or missing SVL/reference data.\n\nMitigation: Treat unreliable inputs as inconclusive, request clearer media, and keep professional reptile veterinary review in the loop for wound or infection concerns.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-reptile-tail-loss-detection-analysis)\n- [API Documentation](artifact/references/api_doc.md)\n- [SMYX Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, guidance]\n\n**Output Format:** [Structured text or JSON reports with alert levels, measurements, recommended actions, disclaimers, and report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May return cloud-service analysis results and historical report records associated with the resolved internal identity.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; artifact frontmatter states 1.0.15)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 45342 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2605b), SKILL.md (18779b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力可主动断尾再生**；鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾**（断尾即永久缺失，意外原因可能性更高）；绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / **tail_loss_event_fresh** / **tail_loss_event_with_infection_risk** / tail_loss_event_scabbed / tail_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医，**严防败血症致死**）。**核心物种特异性硬约束**：**已有再生尾基线**的个体（注册时录入或历史已识别）→ 再生尾形态、颜色、鳞片纹路与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾**。生理性上下文必须考虑（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable`。不提供任何医疗建议，仅输出基于视觉的判断结果；**严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌**；**严禁输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量**；**严禁输出\"自行缝合\"\"自行剪除坏死组织\"等任何外科操作建议**；严禁伪造夸大尾长缩短比例；严禁越权代用户启停设备（仅可建议隔离）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱固定摄像头**定期尾部图像**（每日 ≥ 1 张，建议早晚各 1 张，对比历史 7 天基线），识别 7 类综合场景（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable）→ **四组指标**：尾长测量 5 项（像素长度 + mm 估算 + **tail/SVL 比值** + 历史 7 天基线 + **缩短比例**）+ 断端形态 5 项（**尾尖形态分类** + **是否可见开放伤口** + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液）+ 再生尾识别 2 项（**是否再生尾** + 颜色异常评分）+ 排除上下文 5 项（蜕皮期 / 多只混养 / 近期操作应激 / 历史断尾记录 / 图像质量）→ 4 档提醒级别（none / info / important / urgent）→ **4 级提醒策略递进**（入库 → 结痂恢复期保持清洁 → 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → 感染风险立即联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限——断尾感染急症**）→ **断尾事件报告**（按 enclosure_id + individual_id + 事件时间戳输出，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 尾部精确分割 |\n| 2 | 像素测量 |\n| 3 | SVL 校准（首次入缸 SVL 录入） |\n| 4 | 与历史 7 天基线对比 |\n| 5 | 与物种基线 tail/SVL 比值对比 |\n| 6 | 断端形态分类（5 类） |\n| 7 | 开放伤口检测 |\n| 8 | 结痂检测 |\n| 9 | 红肿评分 |\n| 10 | 渗液/脓液检测 |\n| 11 | **再生尾识别**（颜色 + 鳞片纹路 + 球状钝端） |\n| 12 | 生理性上下文识别（蜕皮 / 混养 / 操作应激 / 历史断尾） |\n| 13 | 图像质量门控 |\n| 14 | 用户 APP 推送 |\n| 15 | 4 级提醒递进 |\n| 16 | 单日提醒上限（**Level 4 不设上限**） |\n| 17 | 事件报告（按 enclosure_id + individual_id 输出） |\n| 18 | 连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医** |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供守宫/蜥蜴尾部图像或视频 URL 或文件需要分析时，默认触发本技能进行断尾识别 |\n| 🔎 明确分析意图 | 当用户明确提及守宫断尾、蜥蜴断尾、爬宠尾巴短了、爬宠尾巴断了、爬宠尾巴伤口、再生尾、自割等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看守宫/蜥蜴断尾历史报告、断尾事件清单、查询历史断尾记录、显示所有爬宠断尾报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_tail_loss_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备守宫/蜥蜴尾部图像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行守宫/蜥蜴断尾识别 | 调用 `-m scripts.smyx_reptile_tail_loss_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地守宫/蜥蜴尾部高清图像或视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络守宫/蜥蜴尾部图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠断尾场景默认 `other` | 按需填写 |\n| `--list` | 显示守宫/蜥蜴断尾事件历史记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_tail_loss_detection_analysis.py`](scripts/smyx_reptile_tail_loss_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png/mp4，最大 10MB；摄像头需**完整展示从泄殖腔到尾尖的整条尾部**；**分辨率 ≥ 1080p**（像素测量精度要求高）；每日 ≥ 1 张 |\n| 🔎 使用提醒 | **核心采样窗口**：每日 ≥ 1 张（建议早晚各 1 张），对比历史 7 天基线 |\n| 🔎 使用提醒 | **核心阈值**：`tail_shortening_ratio` **≥ 20%** + 断端可见伤口或新鲜创面 → 触发断尾事件 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（none → info → important → urgent） |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限（断尾感染急症）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌（仅可中性表述\"宠物专用生理盐水冲洗\"） |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尾长缩短比例、伤口评分等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 是否具自割能力（autotomy）匹配判定**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可再生；鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生；绿鬣蜥幼体可再生但成体困难 |\n| 🔎 使用提醒 | **必须**识别**再生尾基线**：再生尾形态颜色与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误判 |\n| 🧑‍⚖️ 结果性质 | **必须**在图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p 时返回 `tail_signal_unreliable` 并建议重新拍摄 |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医**（断尾感染可能引发败血症致死） |\n| 📜 报告输出 | **必须**：断尾事件报告**按 enclosure_id + individual_id + 事件时间戳输出**，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史断尾事件记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787734229125\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discharge_or_pus_detected` - 是否有渗液/脓液（感染强信号）\n\n### 再生尾识别\n- `is_regenerated_tail` - **是否为再生尾**（再生尾颜色与原尾不同，无原始鳞片纹路，球状钝端）\n- `regenerated_tail_color_anomaly` - 再生尾颜色异常评分\n\n### 上下文与排除信号\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期尾尖可能呈白色脱皮态，易误判）\n- `multi_individual_cohabitation` - 是否多只混养（争斗断尾高发场景）\n- `recent_handling_stress` - 近期是否有人为操作（应激断尾）\n- `previous_autotomy_recorded` - 历史断尾记录已存在\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 完整露出 / 无遮挡）\n\n## 综合判定\n\n- `tail_intact_normal` - 尾部完整正常\n- `tail_shedding_artifact` - 蜕皮造成的尾尖白皮假象，非断尾\n- `tail_regenerated_baseline` - 再生尾已存在基线，无新增断尾事件\n- `tail_loss_event_fresh` - **新发断尾事件**（缩短 ≥ 20% + 断端可见伤口或新鲜创面）\n- `tail_loss_event_with_infection_risk` - **断尾 + 感染风险**（伤口红肿 ≥ 3 / 有渗液脓液）\n- `tail_loss_event_scabbed` - 断尾已结痂（事件已发生数日，进入恢复期）\n- `tail_signal_unreliable` - 信号不可靠（图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考）\n\n## 4 级提醒策略递进\n\n- Level 1（tail_intact_normal / tail_regenerated_baseline / tail_shedding_artifact）：仅入库，不主动提示\n- Level 2（tail_loss_event_scabbed）：温和提示，记录断尾已结痂进入恢复期，建议**继续保持环境清洁 + 评估是否需隔离**\n- Level 3（tail_loss_event_fresh）：重要提示，建议**立即隔离受伤个体到单独养殖箱 + 用洁净水或宠物专用生理盐水冲洗伤口 + 保持环境湿度与温度稳定 + 减少应激源 + 观察食欲与精神状态**\n- Level 4（tail_loss_event_with_infection_risk）：紧急提示，建议**立即隔离 + 保持伤口清洁 + 立即联系爬宠兽医（断尾感染可能引发败血症致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 2 / Level 3 × 3 / Level 4 不设上限（断尾感染急症）\n\n## 红线约束\n\n- **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、给药方案、**消毒液品牌、抗生素品牌、外用药膏品牌**（仅可提\"宠物专用生理盐水冲洗\"等中性表述）\n- **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量\n- **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离）\n- 尾长测量、缩短比例、伤口评分等指标必须基于真实图像分析；**禁止伪造或夸大指标**\n- 物种特异性：**豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力（autotomy），可主动断尾后再生；**鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾；**绿鬣蜥幼体**可再生但成体困难 → **必须按物种识别再生能力**；**严禁通用阈值盲判已断尾物种的再生尾基线为新发断尾**\n- 必须考虑生理性上下文：**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线** → 不可直接告警\n- 图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable` 并建议重新拍摄\n- 必须告知用户：AI 视觉识别仅供参考，**伤口处理与感染判断需用户结合现场观察并由专业爬宠兽医确认**\n\n## 输出报告字段\n\n- `report_date` - 报告日期\n- `enclosure_id` - 爬宠箱 ID\n- `individual_id` - 个体 ID（多只混养必填）\n- `species` - 宠物物种\n- `tail_length_mm_estimated` - 当前尾长估算\n- `tail_to_svl_ratio` - 尾长/SVL 比值\n- `tail_shortening_ratio` - 尾长缩短比例\n- `tail_tip_morphology` - 尾尖形态\n- `wound_visible` - 断端伤口\n- `redness_swelling_score_0_5` - 红肿评分\n- `is_regenerated_tail` - 是否再生尾\n- `composite_scene` - 综合判定\n- `alert_level` - 提醒等级\n- `recommended_actions` - 建议动作（隔离 / 宠物专用生理盐水冲洗 / 保持环境清洁 / 观察食欲精神 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）\n- `disclaimer` - 免责声明\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nAnalyzes gecko and lizard tail images or videos to detect abnormal tail shortening, wounds, scabs, regenerated-tail baselines, and tail-loss event alerts.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to screen reptile enclosure camera media for possible tail autotomy events, infection-risk signals, and unreliable image conditions. It can also query cloud-hosted historical reports and return report links for follow-up review.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Local images, videos, URLs, and report queries may be sent to cloud services.\n\nMitigation: Use only media that is appropriate for cloud processing, confirm user consent, and review the service's retention and access controls before deployment.\n\nRisk: The security evidence reports plaintext development HTTP endpoint defaults.\n\nMitigation: Do not use private media or credentials until the deployment is configured for trusted HTTPS endpoints.\n\nRisk: The security evidence reports silent identity creation or reuse and local token storage.\n\nMitigation: Review token lifecycle, storage location, and cleanup procedures before installation in shared or managed environments.\n\nRisk: Visual tail-health analysis can be unreliable when the tail is obscured, lighting is poor, resolution is low, or no SVL reference is available.\n\nMitigation: Return an unreliable-signal result for poor inputs and require human or veterinary review for wound or infection concerns.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-reptile-tail-loss-detection-analysis)\n- [API Documentation](references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown reports and JSON-style structured analysis results]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include tail-length metrics, alert levels, recommended actions, report links, and history tables.]\n\n## Skill Version(s):\n\n1.0.10 (source: ClawHub 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, 45263 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2450b), SKILL.md (18779b), 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 (160b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力可主动断尾再生**；鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾**（断尾即永久缺失，意外原因可能性更高）；绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / **tail_loss_event_fresh** / **tail_loss_event_with_infection_risk** / tail_loss_event_scabbed / tail_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医，**严防败血症致死**）。**核心物种特异性硬约束**：**已有再生尾基线**的个体（注册时录入或历史已识别）→ 再生尾形态、颜色、鳞片纹路与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾**。生理性上下文必须考虑（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable`。不提供任何医疗建议，仅输出基于视觉的判断结果；**严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌**；**严禁输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量**；**严禁输出\"自行缝合\"\"自行剪除坏死组织\"等任何外科操作建议**；严禁伪造夸大尾长缩短比例；严禁越权代用户启停设备（仅可建议隔离）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱固定摄像头**定期尾部图像**（每日 ≥ 1 张，建议早晚各 1 张，对比历史 7 天基线），识别 7 类综合场景（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable）→ **四组指标**：尾长测量 5 项（像素长度 + mm 估算 + **tail/SVL 比值** + 历史 7 天基线 + **缩短比例**）+ 断端形态 5 项（**尾尖形态分类** + **是否可见开放伤口** + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液）+ 再生尾识别 2 项（**是否再生尾** + 颜色异常评分）+ 排除上下文 5 项（蜕皮期 / 多只混养 / 近期操作应激 / 历史断尾记录 / 图像质量）→ 4 档提醒级别（none / info / important / urgent）→ **4 级提醒策略递进**（入库 → 结痂恢复期保持清洁 → 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → 感染风险立即联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限——断尾感染急症**）→ **断尾事件报告**（按 enclosure_id + individual_id + 事件时间戳输出，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 尾部精确分割 |\n| 2 | 像素测量 |\n| 3 | SVL 校准（首次入缸 SVL 录入） |\n| 4 | 与历史 7 天基线对比 |\n| 5 | 与物种基线 tail/SVL 比值对比 |\n| 6 | 断端形态分类（5 类） |\n| 7 | 开放伤口检测 |\n| 8 | 结痂检测 |\n| 9 | 红肿评分 |\n| 10 | 渗液/脓液检测 |\n| 11 | **再生尾识别**（颜色 + 鳞片纹路 + 球状钝端） |\n| 12 | 生理性上下文识别（蜕皮 / 混养 / 操作应激 / 历史断尾） |\n| 13 | 图像质量门控 |\n| 14 | 用户 APP 推送 |\n| 15 | 4 级提醒递进 |\n| 16 | 单日提醒上限（**Level 4 不设上限**） |\n| 17 | 事件报告（按 enclosure_id + individual_id 输出） |\n| 18 | 连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医** |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供守宫/蜥蜴尾部图像或视频 URL 或文件需要分析时，默认触发本技能进行断尾识别 |\n| 🔎 明确分析意图 | 当用户明确提及守宫断尾、蜥蜴断尾、爬宠尾巴短了、爬宠尾巴断了、爬宠尾巴伤口、再生尾、自割等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看守宫/蜥蜴断尾历史报告、断尾事件清单、查询历史断尾记录、显示所有爬宠断尾报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_tail_loss_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备守宫/蜥蜴尾部图像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行守宫/蜥蜴断尾识别 | 调用 `-m scripts.smyx_reptile_tail_loss_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地守宫/蜥蜴尾部高清图像或视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络守宫/蜥蜴尾部图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠断尾场景默认 `other` | 按需填写 |\n| `--list` | 显示守宫/蜥蜴断尾事件历史记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_tail_loss_detection_analysis.py`](scripts/smyx_reptile_tail_loss_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png/mp4，最大 10MB；摄像头需**完整展示从泄殖腔到尾尖的整条尾部**；**分辨率 ≥ 1080p**（像素测量精度要求高）；每日 ≥ 1 张 |\n| 🔎 使用提醒 | **核心采样窗口**：每日 ≥ 1 张（建议早晚各 1 张），对比历史 7 天基线 |\n| 🔎 使用提醒 | **核心阈值**：`tail_shortening_ratio` **≥ 20%** + 断端可见伤口或新鲜创面 → 触发断尾事件 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（none → info → important → urgent） |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限（断尾感染急症）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌（仅可中性表述\"宠物专用生理盐水冲洗\"） |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尾长缩短比例、伤口评分等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 是否具自割能力（autotomy）匹配判定**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可再生；鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生；绿鬣蜥幼体可再生但成体困难 |\n| 🔎 使用提醒 | **必须**识别**再生尾基线**：再生尾形态颜色与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误判 |\n| 🧑‍⚖️ 结果性质 | **必须**在图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p 时返回 `tail_signal_unreliable` 并建议重新拍摄 |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医**（断尾感染可能引发败血症致死） |\n| 📜 报告输出 | **必须**：断尾事件报告**按 enclosure_id + individual_id + 事件时间戳输出**，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史断尾事件记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1786970380858\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discharge_or_pus_detected` - 是否有渗液/脓液（感染强信号）\n\n### 再生尾识别\n- `is_regenerated_tail` - **是否为再生尾**（再生尾颜色与原尾不同，无原始鳞片纹路，球状钝端）\n- `regenerated_tail_color_anomaly` - 再生尾颜色异常评分\n\n### 上下文与排除信号\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期尾尖可能呈白色脱皮态，易误判）\n- `multi_individual_cohabitation` - 是否多只混养（争斗断尾高发场景）\n- `recent_handling_stress` - 近期是否有人为操作（应激断尾）\n- `previous_autotomy_recorded` - 历史断尾记录已存在\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 完整露出 / 无遮挡）\n\n## 综合判定\n\n- `tail_intact_normal` - 尾部完整正常\n- `tail_shedding_artifact` - 蜕皮造成的尾尖白皮假象，非断尾\n- `tail_regenerated_baseline` - 再生尾已存在基线，无新增断尾事件\n- `tail_loss_event_fresh` - **新发断尾事件**（缩短 ≥ 20% + 断端可见伤口或新鲜创面）\n- `tail_loss_event_with_infection_risk` - **断尾 + 感染风险**（伤口红肿 ≥ 3 / 有渗液脓液）\n- `tail_loss_event_scabbed` - 断尾已结痂（事件已发生数日，进入恢复期）\n- `tail_signal_unreliable` - 信号不可靠（图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考）\n\n## 4 级提醒策略递进\n\n- Level 1（tail_intact_normal / tail_regenerated_baseline / tail_shedding_artifact）：仅入库，不主动提示\n- Level 2（tail_loss_event_scabbed）：温和提示，记录断尾已结痂进入恢复期，建议**继续保持环境清洁 + 评估是否需隔离**\n- Level 3（tail_loss_event_fresh）：重要提示，建议**立即隔离受伤个体到单独养殖箱 + 用洁净水或宠物专用生理盐水冲洗伤口 + 保持环境湿度与温度稳定 + 减少应激源 + 观察食欲与精神状态**\n- Level 4（tail_loss_event_with_infection_risk）：紧急提示，建议**立即隔离 + 保持伤口清洁 + 立即联系爬宠兽医（断尾感染可能引发败血症致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 2 / Level 3 × 3 / Level 4 不设上限（断尾感染急症）\n\n## 红线约束\n\n- **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、给药方案、**消毒液品牌、抗生素品牌、外用药膏品牌**（仅可提\"宠物专用生理盐水冲洗\"等中性表述）\n- **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量\n- **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离）\n- 尾长测量、缩短比例、伤口评分等指标必须基于真实图像分析；**禁止伪造或夸大指标**\n- 物种特异性：**豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力（autotomy），可主动断尾后再生；**鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾；**绿鬣蜥幼体**可再生但成体困难 → **必须按物种识别再生能力**；**严禁通用阈值盲判已断尾物种的再生尾基线为新发断尾**\n- 必须考虑生理性上下文：**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线** → 不可直接告警\n- 图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable` 并建议重新拍摄\n- 必须告知用户：AI 视觉识别仅供参考，**伤口处理与感染判断需用户结合现场观察并由专业爬宠兽医确认**\n\n## 输出报告字段\n\n- `report_date` - 报告日期\n- `enclosure_id` - 爬宠箱 ID\n- `individual_id` - 个体 ID（多只混养必填）\n- `species` - 宠物物种\n- `tail_length_mm_estimated` - 当前尾长估算\n- `tail_to_svl_ratio` - 尾长/SVL 比值\n- `tail_shortening_ratio` - 尾长缩短比例\n- `tail_tip_morphology` - 尾尖形态\n- `wound_visible` - 断端伤口\n- `redness_swelling_score_0_5` - 红肿评分\n- `is_regenerated_tail` - 是否再生尾\n- `composite_scene` - 综合判定\n- `alert_level` - 提醒等级\n- `recommended_actions` - 建议动作（隔离 / 宠物专用生理盐水冲洗 / 保持环境清洁 / 观察食欲精神 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）\n- `disclaimer` - 免责声明\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nThrough fixed enclosure cameras, the skill periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length changes, tail-tip wounds, scabs, or abnormal shortening.\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 reptile keepers, vivarium operators, breeders, and developers use this skill to analyze reptile tail images or videos, compare tail length against history or body-length references, and produce structured tail-loss event reports with suggested next steps.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Reptile enclosure media, remote URLs, account identifiers, or historical report metadata may be sent to the publisher's services.\n\nMitigation: Install only if this data sharing is acceptable, and prefer a version that asks for explicit confirmation before uploads or history queries.\n\nRisk: The skill silently creates or reuses an account identity and stores tokens locally.\n\nMitigation: Review local token handling and retention before deployment, and require documented deletion and retention controls for production use.\n\nRisk: Automatic cloud history queries may expose report metadata without clear user control.\n\nMitigation: Limit use to environments where automatic account linkage and cloud history access are approved, or require an updated workflow with explicit user confirmation.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-reptile-tail-loss-detection-analysis)\n- [API Documentation](references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown, JSON, and command-line output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include report links and structured tail measurement, morphology, alert level, recommended action, and disclaimer fields.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.9:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.9:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.8: 31 files, 45312 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2615b), SKILL.md (18779b), 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 (160b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力可主动断尾再生**；鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾**（断尾即永久缺失，意外原因可能性更高）；绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / **tail_loss_event_fresh** / **tail_loss_event_with_infection_risk** / tail_loss_event_scabbed / tail_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医，**严防败血症致死**）。**核心物种特异性硬约束**：**已有再生尾基线**的个体（注册时录入或历史已识别）→ 再生尾形态、颜色、鳞片纹路与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾**。生理性上下文必须考虑（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable`。不提供任何医疗建议，仅输出基于视觉的判断结果；**严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌**；**严禁输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量**；**严禁输出\"自行缝合\"\"自行剪除坏死组织\"等任何外科操作建议**；严禁伪造夸大尾长缩短比例；严禁越权代用户启停设备（仅可建议隔离）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱固定摄像头**定期尾部图像**（每日 ≥ 1 张，建议早晚各 1 张，对比历史 7 天基线），识别 7 类综合场景（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable）→ **四组指标**：尾长测量 5 项（像素长度 + mm 估算 + **tail/SVL 比值** + 历史 7 天基线 + **缩短比例**）+ 断端形态 5 项（**尾尖形态分类** + **是否可见开放伤口** + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液）+ 再生尾识别 2 项（**是否再生尾** + 颜色异常评分）+ 排除上下文 5 项（蜕皮期 / 多只混养 / 近期操作应激 / 历史断尾记录 / 图像质量）→ 4 档提醒级别（none / info / important / urgent）→ **4 级提醒策略递进**（入库 → 结痂恢复期保持清洁 → 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → 感染风险立即联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限——断尾感染急症**）→ **断尾事件报告**（按 enclosure_id + individual_id + 事件时间戳输出，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 尾部精确分割 |\n| 2 | 像素测量 |\n| 3 | SVL 校准（首次入缸 SVL 录入） |\n| 4 | 与历史 7 天基线对比 |\n| 5 | 与物种基线 tail/SVL 比值对比 |\n| 6 | 断端形态分类（5 类） |\n| 7 | 开放伤口检测 |\n| 8 | 结痂检测 |\n| 9 | 红肿评分 |\n| 10 | 渗液/脓液检测 |\n| 11 | **再生尾识别**（颜色 + 鳞片纹路 + 球状钝端） |\n| 12 | 生理性上下文识别（蜕皮 / 混养 / 操作应激 / 历史断尾） |\n| 13 | 图像质量门控 |\n| 14 | 用户 APP 推送 |\n| 15 | 4 级提醒递进 |\n| 16 | 单日提醒上限（**Level 4 不设上限**） |\n| 17 | 事件报告（按 enclosure_id + individual_id 输出） |\n| 18 | 连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医** |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供守宫/蜥蜴尾部图像或视频 URL 或文件需要分析时，默认触发本技能进行断尾识别 |\n| 🔎 明确分析意图 | 当用户明确提及守宫断尾、蜥蜴断尾、爬宠尾巴短了、爬宠尾巴断了、爬宠尾巴伤口、再生尾、自割等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看守宫/蜥蜴断尾历史报告、断尾事件清单、查询历史断尾记录、显示所有爬宠断尾报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_tail_loss_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备守宫/蜥蜴尾部图像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行守宫/蜥蜴断尾识别 | 调用 `-m scripts.smyx_reptile_tail_loss_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地守宫/蜥蜴尾部高清图像或视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络守宫/蜥蜴尾部图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠断尾场景默认 `other` | 按需填写 |\n| `--list` | 显示守宫/蜥蜴断尾事件历史记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_tail_loss_detection_analysis.py`](scripts/smyx_reptile_tail_loss_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png/mp4，最大 10MB；摄像头需**完整展示从泄殖腔到尾尖的整条尾部**；**分辨率 ≥ 1080p**（像素测量精度要求高）；每日 ≥ 1 张 |\n| 🔎 使用提醒 | **核心采样窗口**：每日 ≥ 1 张（建议早晚各 1 张），对比历史 7 天基线 |\n| 🔎 使用提醒 | **核心阈值**：`tail_shortening_ratio` **≥ 20%** + 断端可见伤口或新鲜创面 → 触发断尾事件 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（none → info → important → urgent） |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限（断尾感染急症）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌（仅可中性表述\"宠物专用生理盐水冲洗\"） |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尾长缩短比例、伤口评分等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 是否具自割能力（autotomy）匹配判定**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可再生；鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生；绿鬣蜥幼体可再生但成体困难 |\n| 🔎 使用提醒 | **必须**识别**再生尾基线**：再生尾形态颜色与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误判 |\n| 🧑‍⚖️ 结果性质 | **必须**在图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p 时返回 `tail_signal_unreliable` 并建议重新拍摄 |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医**（断尾感染可能引发败血症致死） |\n| 📜 报告输出 | **必须**：断尾事件报告**按 enclosure_id + individual_id + 事件时间戳输出**，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史断尾事件记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786573774429\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discharge_or_pus_detected` - 是否有渗液/脓液（感染强信号）\n\n### 再生尾识别\n- `is_regenerated_tail` - **是否为再生尾**（再生尾颜色与原尾不同，无原始鳞片纹路，球状钝端）\n- `regenerated_tail_color_anomaly` - 再生尾颜色异常评分\n\n### 上下文与排除信号\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期尾尖可能呈白色脱皮态，易误判）\n- `multi_individual_cohabitation` - 是否多只混养（争斗断尾高发场景）\n- `recent_handling_stress` - 近期是否有人为操作（应激断尾）\n- `previous_autotomy_recorded` - 历史断尾记录已存在\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 完整露出 / 无遮挡）\n\n## 综合判定\n\n- `tail_intact_normal` - 尾部完整正常\n- `tail_shedding_artifact` - 蜕皮造成的尾尖白皮假象，非断尾\n- `tail_regenerated_baseline` - 再生尾已存在基线，无新增断尾事件\n- `tail_loss_event_fresh` - **新发断尾事件**（缩短 ≥ 20% + 断端可见伤口或新鲜创面）\n- `tail_loss_event_with_infection_risk` - **断尾 + 感染风险**（伤口红肿 ≥ 3 / 有渗液脓液）\n- `tail_loss_event_scabbed` - 断尾已结痂（事件已发生数日，进入恢复期）\n- `tail_signal_unreliable` - 信号不可靠（图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考）\n\n## 4 级提醒策略递进\n\n- Level 1（tail_intact_normal / tail_regenerated_baseline / tail_shedding_artifact）：仅入库，不主动提示\n- Level 2（tail_loss_event_scabbed）：温和提示，记录断尾已结痂进入恢复期，建议**继续保持环境清洁 + 评估是否需隔离**\n- Level 3（tail_loss_event_fresh）：重要提示，建议**立即隔离受伤个体到单独养殖箱 + 用洁净水或宠物专用生理盐水冲洗伤口 + 保持环境湿度与温度稳定 + 减少应激源 + 观察食欲与精神状态**\n- Level 4（tail_loss_event_with_infection_risk）：紧急提示，建议**立即隔离 + 保持伤口清洁 + 立即联系爬宠兽医（断尾感染可能引发败血症致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 2 / Level 3 × 3 / Level 4 不设上限（断尾感染急症）\n\n## 红线约束\n\n- **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、给药方案、**消毒液品牌、抗生素品牌、外用药膏品牌**（仅可提\"宠物专用生理盐水冲洗\"等中性表述）\n- **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量\n- **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离）\n- 尾长测量、缩短比例、伤口评分等指标必须基于真实图像分析；**禁止伪造或夸大指标**\n- 物种特异性：**豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力（autotomy），可主动断尾后再生；**鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾；**绿鬣蜥幼体**可再生但成体困难 → **必须按物种识别再生能力**；**严禁通用阈值盲判已断尾物种的再生尾基线为新发断尾**\n- 必须考虑生理性上下文：**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线** → 不可直接告警\n- 图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable` 并建议重新拍摄\n- 必须告知用户：AI 视觉识别仅供参考，**伤口处理与感染判断需用户结合现场观察并由专业爬宠兽医确认**\n\n## 输出报告字段\n\n- `report_date` - 报告日期\n- `enclosure_id` - 爬宠箱 ID\n- `individual_id` - 个体 ID（多只混养必填）\n- `species` - 宠物物种\n- `tail_length_mm_estimated` - 当前尾长估算\n- `tail_to_svl_ratio` - 尾长/SVL 比值\n- `tail_shortening_ratio` - 尾长缩短比例\n- `tail_tip_morphology` - 尾尖形态\n- `wound_visible` - 断端伤口\n- `redness_swelling_score_0_5` - 红肿评分\n- `is_regenerated_tail` - 是否再生尾\n- `composite_scene` - 综合判定\n- `alert_level` - 提醒等级\n- `recommended_actions` - 建议动作（隔离 / 宠物专用生理盐水冲洗 / 保持环境清洁 / 观察食欲精神 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）\n- `disclaimer` - 免责声明\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nThis skill analyzes gecko and lizard tail images, videos, or URLs to detect abnormal tail shortening, tail-tip wounds, scabs, and possible tail-loss events.\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 reptile keepers, breeders, and developers use this skill to analyze enclosure camera images, videos, or submitted media URLs for tail-loss signals, produce structured event reports, and review cloud-stored historical tail-loss records.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Submitted enclosure images, videos, or media URLs may be sent to a vendor cloud service.\n\nMitigation: Use only media you intend to share with the vendor service, and avoid private or signed URLs unless sharing them is acceptable.\n\nRisk: The skill may automatically create or reuse an internal identity and store returned session tokens in the workspace data directory.\n\nMitigation: Review workspace data retention and token-handling practices before deployment, and clear stored tokens according to local policy when access is no longer needed.\n\nRisk: Cloud history queries and limited user control over uploads may expose data beyond the local agent session.\n\nMitigation: Confirm the cloud-backed workflow is acceptable for the deployment environment and inform users before processing sensitive reptile enclosure media.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-reptile-tail-loss-detection-analysis)\n- [API interface documentation](artifact/references/api_doc.md)\n- [Smyx Analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON analysis reports with visual findings, alert levels, recommended actions, disclaimers, and optional report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local image/video files or media URLs and can write results to an output file; history queries return Markdown tables from the cloud API.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 45307 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2629b), SKILL.md (18778b), 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 (160b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力可主动断尾再生**；鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾**（断尾即永久缺失，意外原因可能性更高）；绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / **tail_loss_event_fresh** / **tail_loss_event_with_infection_risk** / tail_loss_event_scabbed / tail_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医，**严防败血症致死**）。**核心物种特异性硬约束**：**已有再生尾基线**的个体（注册时录入或历史已识别）→ 再生尾形态、颜色、鳞片纹路与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾**。生理性上下文必须考虑（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable`。不提供任何医疗建议，仅输出基于视觉的判断结果；**严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌**；**严禁输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量**；**严禁输出\"自行缝合\"\"自行剪除坏死组织\"等任何外科操作建议**；严禁伪造夸大尾长缩短比例；严禁越权代用户启停设备（仅可建议隔离）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱固定摄像头**定期尾部图像**（每日 ≥ 1 张，建议早晚各 1 张，对比历史 7 天基线），识别 7 类综合场景（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable）→ **四组指标**：尾长测量 5 项（像素长度 + mm 估算 + **tail/SVL 比值** + 历史 7 天基线 + **缩短比例**）+ 断端形态 5 项（**尾尖形态分类** + **是否可见开放伤口** + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液）+ 再生尾识别 2 项（**是否再生尾** + 颜色异常评分）+ 排除上下文 5 项（蜕皮期 / 多只混养 / 近期操作应激 / 历史断尾记录 / 图像质量）→ 4 档提醒级别（none / info / important / urgent）→ **4 级提醒策略递进**（入库 → 结痂恢复期保持清洁 → 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → 感染风险立即联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限——断尾感染急症**）→ **断尾事件报告**（按 enclosure_id + individual_id + 事件时间戳输出，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 尾部精确分割 |\n| 2 | 像素测量 |\n| 3 | SVL 校准（首次入缸 SVL 录入） |\n| 4 | 与历史 7 天基线对比 |\n| 5 | 与物种基线 tail/SVL 比值对比 |\n| 6 | 断端形态分类（5 类） |\n| 7 | 开放伤口检测 |\n| 8 | 结痂检测 |\n| 9 | 红肿评分 |\n| 10 | 渗液/脓液检测 |\n| 11 | **再生尾识别**（颜色 + 鳞片纹路 + 球状钝端） |\n| 12 | 生理性上下文识别（蜕皮 / 混养 / 操作应激 / 历史断尾） |\n| 13 | 图像质量门控 |\n| 14 | 用户 APP 推送 |\n| 15 | 4 级提醒递进 |\n| 16 | 单日提醒上限（**Level 4 不设上限**） |\n| 17 | 事件报告（按 enclosure_id + individual_id 输出） |\n| 18 | 连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医** |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供守宫/蜥蜴尾部图像或视频 URL 或文件需要分析时，默认触发本技能进行断尾识别 |\n| 🔎 明确分析意图 | 当用户明确提及守宫断尾、蜥蜴断尾、爬宠尾巴短了、爬宠尾巴断了、爬宠尾巴伤口、再生尾、自割等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看守宫/蜥蜴断尾历史报告、断尾事件清单、查询历史断尾记录、显示所有爬宠断尾报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_tail_loss_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备守宫/蜥蜴尾部图像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行守宫/蜥蜴断尾识别 | 调用 `-m scripts.smyx_reptile_tail_loss_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地守宫/蜥蜴尾部高清图像或视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络守宫/蜥蜴尾部图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠断尾场景默认 `other` | 按需填写 |\n| `--list` | 显示守宫/蜥蜴断尾事件历史记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_tail_loss_detection_analysis.py`](scripts/smyx_reptile_tail_loss_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png/mp4，最大 10MB；摄像头需**完整展示从泄殖腔到尾尖的整条尾部**；**分辨率 ≥ 1080p**（像素测量精度要求高）；每日 ≥ 1 张 |\n| 🔎 使用提醒 | **核心采样窗口**：每日 ≥ 1 张（建议早晚各 1 张），对比历史 7 天基线 |\n| 🔎 使用提醒 | **核心阈值**：`tail_shortening_ratio` **≥ 20%** + 断端可见伤口或新鲜创面 → 触发断尾事件 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（none → info → important → urgent） |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限（断尾感染急症）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌（仅可中性表述\"宠物专用生理盐水冲洗\"） |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尾长缩短比例、伤口评分等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 是否具自割能力（autotomy）匹配判定**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可再生；鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生；绿鬣蜥幼体可再生但成体困难 |\n| 🔎 使用提醒 | **必须**识别**再生尾基线**：再生尾形态颜色与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误判 |\n| 🧑‍⚖️ 结果性质 | **必须**在图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p 时返回 `tail_signal_unreliable` 并建议重新拍摄 |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医**（断尾感染可能引发败血症致死） |\n| 📜 报告输出 | **必须**：断尾事件报告**按 enclosure_id + individual_id + 事件时间戳输出**，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史断尾事件记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785795748811\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discharge_or_pus_detected` - 是否有渗液/脓液（感染强信号）\n\n### 再生尾识别\n- `is_regenerated_tail` - **是否为再生尾**（再生尾颜色与原尾不同，无原始鳞片纹路，球状钝端）\n- `regenerated_tail_color_anomaly` - 再生尾颜色异常评分\n\n### 上下文与排除信号\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期尾尖可能呈白色脱皮态，易误判）\n- `multi_individual_cohabitation` - 是否多只混养（争斗断尾高发场景）\n- `recent_handling_stress` - 近期是否有人为操作（应激断尾）\n- `previous_autotomy_recorded` - 历史断尾记录已存在\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 完整露出 / 无遮挡）\n\n## 综合判定\n\n- `tail_intact_normal` - 尾部完整正常\n- `tail_shedding_artifact` - 蜕皮造成的尾尖白皮假象，非断尾\n- `tail_regenerated_baseline` - 再生尾已存在基线，无新增断尾事件\n- `tail_loss_event_fresh` - **新发断尾事件**（缩短 ≥ 20% + 断端可见伤口或新鲜创面）\n- `tail_loss_event_with_infection_risk` - **断尾 + 感染风险**（伤口红肿 ≥ 3 / 有渗液脓液）\n- `tail_loss_event_scabbed` - 断尾已结痂（事件已发生数日，进入恢复期）\n- `tail_signal_unreliable` - 信号不可靠（图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考）\n\n## 4 级提醒策略递进\n\n- Level 1（tail_intact_normal / tail_regenerated_baseline / tail_shedding_artifact）：仅入库，不主动提示\n- Level 2（tail_loss_event_scabbed）：温和提示，记录断尾已结痂进入恢复期，建议**继续保持环境清洁 + 评估是否需隔离**\n- Level 3（tail_loss_event_fresh）：重要提示，建议**立即隔离受伤个体到单独养殖箱 + 用洁净水或宠物专用生理盐水冲洗伤口 + 保持环境湿度与温度稳定 + 减少应激源 + 观察食欲与精神状态**\n- Level 4（tail_loss_event_with_infection_risk）：紧急提示，建议**立即隔离 + 保持伤口清洁 + 立即联系爬宠兽医（断尾感染可能引发败血症致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 2 / Level 3 × 3 / Level 4 不设上限（断尾感染急症）\n\n## 红线约束\n\n- **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、给药方案、**消毒液品牌、抗生素品牌、外用药膏品牌**（仅可提\"宠物专用生理盐水冲洗\"等中性表述）\n- **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量\n- **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离）\n- 尾长测量、缩短比例、伤口评分等指标必须基于真实图像分析；**禁止伪造或夸大指标**\n- 物种特异性：**豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力（autotomy），可主动断尾后再生；**鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾；**绿鬣蜥幼体**可再生但成体困难 → **必须按物种识别再生能力**；**严禁通用阈值盲判已断尾物种的再生尾基线为新发断尾**\n- 必须考虑生理性上下文：**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线** → 不可直接告警\n- 图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable` 并建议重新拍摄\n- 必须告知用户：AI 视觉识别仅供参考，**伤口处理与感染判断需用户结合现场观察并由专业爬宠兽医确认**\n\n## 输出报告字段\n\n- `report_date` - 报告日期\n- `enclosure_id` - 爬宠箱 ID\n- `individual_id` - 个体 ID（多只混养必填）\n- `species` - 宠物物种\n- `tail_length_mm_estimated` - 当前尾长估算\n- `tail_to_svl_ratio` - 尾长/SVL 比值\n- `tail_shortening_ratio` - 尾长缩短比例\n- `tail_tip_morphology` - 尾尖形态\n- `wound_visible` - 断端伤口\n- `redness_swelling_score_0_5` - 红肿评分\n- `is_regenerated_tail` - 是否再生尾\n- `composite_scene` - 综合判定\n- `alert_level` - 提醒等级\n- `recommended_actions` - 建议动作（隔离 / 宠物专用生理盐水冲洗 / 保持环境清洁 / 观察食欲精神 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）\n- `disclaimer` - 免责声明\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>\nDetects possible tail-loss events in gecko or lizard images or videos by comparing tail length against historical or body-length baselines and flagging wounds, scabs, or abnormal shortening. <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 reptile keepers, breeders, and smart-vivarium operators use this skill to analyze gecko or lizard tail media for possible autotomy events, image-quality issues, and history reports. The skill is intended to support monitoring workflows and does not replace professional veterinary review. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The security review says the skill uploads reptile enclosure images or videos and related account metadata to configured LifeEmergence services. <br>\nMitigation: Use only with media the user is comfortable sending to those services, and avoid sensitive household footage unless the publisher provides clear consent, retention, and deletion controls. <br>\nRisk: The security review says the skill automatically creates or reuses identity and stores tokens in a local workspace database. <br>\nMitigation: Review the local workspace data location and remove stored identity or token data when the skill is no longer needed. <br>\nRisk: The security review says the skill relies on cloud history retrieval for report lists. <br>\nMitigation: Treat history output as dependent on the configured cloud service and verify important records before making operational decisions. <br>\n\n\n## Reference(s): <br>\n- [API documentation](references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [analysis, markdown, json, shell commands] <br>\n**Output Format:** [Markdown or JSON structured analysis report with optional report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include tail-length estimates, shortening ratio, wound or scab indicators, alert level, recommended actions, disclaimers, and cloud history results.] <br>\n\n## Skill Version(s): <br>\n1.0.7 (source: ClawHub release metadata; artifact frontmatter reports 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 45420 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2941b), SKILL.md (18778b), 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 (160b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力可主动断尾再生**；鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾**（断尾即永久缺失，意外原因可能性更高）；绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / **tail_loss_event_fresh** / **tail_loss_event_with_infection_risk** / tail_loss_event_scabbed / tail_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医，**严防败血症致死**）。**核心物种特异性硬约束**：**已有再生尾基线**的个体（注册时录入或历史已识别）→ 再生尾形态、颜色、鳞片纹路与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾**。生理性上下文必须考虑（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable`。不提供任何医疗建议，仅输出基于视觉的判断结果；**严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌**；**严禁输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量**；**严禁输出\"自行缝合\"\"自行剪除坏死组织\"等任何外科操作建议**；严禁伪造夸大尾长缩短比例；严禁越权代用户启停设备（仅可建议隔离）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱固定摄像头**定期尾部图像**（每日 ≥ 1 张，建议早晚各 1 张，对比历史 7 天基线），识别 7 类综合场景（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable）→ **四组指标**：尾长测量 5 项（像素长度 + mm 估算 + **tail/SVL 比值** + 历史 7 天基线 + **缩短比例**）+ 断端形态 5 项（**尾尖形态分类** + **是否可见开放伤口** + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液）+ 再生尾识别 2 项（**是否再生尾** + 颜色异常评分）+ 排除上下文 5 项（蜕皮期 / 多只混养 / 近期操作应激 / 历史断尾记录 / 图像质量）→ 4 档提醒级别（none / info / important / urgent）→ **4 级提醒策略递进**（入库 → 结痂恢复期保持清洁 → 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → 感染风险立即联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限——断尾感染急症**）→ **断尾事件报告**（按 enclosure_id + individual_id + 事件时间戳输出，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 尾部精确分割 |\n| 2 | 像素测量 |\n| 3 | SVL 校准（首次入缸 SVL 录入） |\n| 4 | 与历史 7 天基线对比 |\n| 5 | 与物种基线 tail/SVL 比值对比 |\n| 6 | 断端形态分类（5 类） |\n| 7 | 开放伤口检测 |\n| 8 | 结痂检测 |\n| 9 | 红肿评分 |\n| 10 | 渗液/脓液检测 |\n| 11 | **再生尾识别**（颜色 + 鳞片纹路 + 球状钝端） |\n| 12 | 生理性上下文识别（蜕皮 / 混养 / 操作应激 / 历史断尾） |\n| 13 | 图像质量门控 |\n| 14 | 用户 APP 推送 |\n| 15 | 4 级提醒递进 |\n| 16 | 单日提醒上限（**Level 4 不设上限**） |\n| 17 | 事件报告（按 enclosure_id + individual_id 输出） |\n| 18 | 连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医** |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供守宫/蜥蜴尾部图像或视频 URL 或文件需要分析时，默认触发本技能进行断尾识别 |\n| 🔎 明确分析意图 | 当用户明确提及守宫断尾、蜥蜴断尾、爬宠尾巴短了、爬宠尾巴断了、爬宠尾巴伤口、再生尾、自割等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看守宫/蜥蜴断尾历史报告、断尾事件清单、查询历史断尾记录、显示所有爬宠断尾报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_tail_loss_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备守宫/蜥蜴尾部图像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行守宫/蜥蜴断尾识别 | 调用 `-m scripts.smyx_reptile_tail_loss_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地守宫/蜥蜴尾部高清图像或视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络守宫/蜥蜴尾部图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠断尾场景默认 `other` | 按需填写 |\n| `--list` | 显示守宫/蜥蜴断尾事件历史记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_tail_loss_detection_analysis.py`](scripts/smyx_reptile_tail_loss_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png/mp4，最大 10MB；摄像头需**完整展示从泄殖腔到尾尖的整条尾部**；**分辨率 ≥ 1080p**（像素测量精度要求高）；每日 ≥ 1 张 |\n| 🔎 使用提醒 | **核心采样窗口**：每日 ≥ 1 张（建议早晚各 1 张），对比历史 7 天基线 |\n| 🔎 使用提醒 | **核心阈值**：`tail_shortening_ratio` **≥ 20%** + 断端可见伤口或新鲜创面 → 触发断尾事件 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（none → info → important → urgent） |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限（断尾感染急症）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌（仅可中性表述\"宠物专用生理盐水冲洗\"） |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尾长缩短比例、伤口评分等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 是否具自割能力（autotomy）匹配判定**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可再生；鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生；绿鬣蜥幼体可再生但成体困难 |\n| 🔎 使用提醒 | **必须**识别**再生尾基线**：再生尾形态颜色与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误判 |\n| 🧑‍⚖️ 结果性质 | **必须**在图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p 时返回 `tail_signal_unreliable` 并建议重新拍摄 |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医**（断尾感染可能引发败血症致死） |\n| 📜 报告输出 | **必须**：断尾事件报告**按 enclosure_id + individual_id + 事件时间戳输出**，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史断尾事件记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785352948296\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discharge_or_pus_detected` - 是否有渗液/脓液（感染强信号）\n\n### 再生尾识别\n- `is_regenerated_tail` - **是否为再生尾**（再生尾颜色与原尾不同，无原始鳞片纹路，球状钝端）\n- `regenerated_tail_color_anomaly` - 再生尾颜色异常评分\n\n### 上下文与排除信号\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期尾尖可能呈白色脱皮态，易误判）\n- `multi_individual_cohabitation` - 是否多只混养（争斗断尾高发场景）\n- `recent_handling_stress` - 近期是否有人为操作（应激断尾）\n- `previous_autotomy_recorded` - 历史断尾记录已存在\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 完整露出 / 无遮挡）\n\n## 综合判定\n\n- `tail_intact_normal` - 尾部完整正常\n- `tail_shedding_artifact` - 蜕皮造成的尾尖白皮假象，非断尾\n- `tail_regenerated_baseline` - 再生尾已存在基线，无新增断尾事件\n- `tail_loss_event_fresh` - **新发断尾事件**（缩短 ≥ 20% + 断端可见伤口或新鲜创面）\n- `tail_loss_event_with_infection_risk` - **断尾 + 感染风险**（伤口红肿 ≥ 3 / 有渗液脓液）\n- `tail_loss_event_scabbed` - 断尾已结痂（事件已发生数日，进入恢复期）\n- `tail_signal_unreliable` - 信号不可靠（图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考）\n\n## 4 级提醒策略递进\n\n- Level 1（tail_intact_normal / tail_regenerated_baseline / tail_shedding_artifact）：仅入库，不主动提示\n- Level 2（tail_loss_event_scabbed）：温和提示，记录断尾已结痂进入恢复期，建议**继续保持环境清洁 + 评估是否需隔离**\n- Level 3（tail_loss_event_fresh）：重要提示，建议**立即隔离受伤个体到单独养殖箱 + 用洁净水或宠物专用生理盐水冲洗伤口 + 保持环境湿度与温度稳定 + 减少应激源 + 观察食欲与精神状态**\n- Level 4（tail_loss_event_with_infection_risk）：紧急提示，建议**立即隔离 + 保持伤口清洁 + 立即联系爬宠兽医（断尾感染可能引发败血症致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 2 / Level 3 × 3 / Level 4 不设上限（断尾感染急症）\n\n## 红线约束\n\n- **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、给药方案、**消毒液品牌、抗生素品牌、外用药膏品牌**（仅可提\"宠物专用生理盐水冲洗\"等中性表述）\n- **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量\n- **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离）\n- 尾长测量、缩短比例、伤口评分等指标必须基于真实图像分析；**禁止伪造或夸大指标**\n- 物种特异性：**豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力（autotomy），可主动断尾后再生；**鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾；**绿鬣蜥幼体**可再生但成体困难 → **必须按物种识别再生能力**；**严禁通用阈值盲判已断尾物种的再生尾基线为新发断尾**\n- 必须考虑生理性上下文：**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线** → 不可直接告警\n- 图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable` 并建议重新拍摄\n- 必须告知用户：AI 视觉识别仅供参考，**伤口处理与感染判断需用户结合现场观察并由专业爬宠兽医确认**\n\n## 输出报告字段\n\n- `report_date` - 报告日期\n- `enclosure_id` - 爬宠箱 ID\n- `individual_id` - 个体 ID（多只混养必填）\n- `species` - 宠物物种\n- `tail_length_mm_estimated` - 当前尾长估算\n- `tail_to_svl_ratio` - 尾长/SVL 比值\n- `tail_shortening_ratio` - 尾长缩短比例\n- `tail_tip_morphology` - 尾尖形态\n- `wound_visible` - 断端伤口\n- `redness_swelling_score_0_5` - 红肿评分\n- `is_regenerated_tail` - 是否再生尾\n- `composite_scene` - 综合判定\n- `alert_level` - 提醒等级\n- `recommended_actions` - 建议动作（隔离 / 宠物专用生理盐水冲洗 / 保持环境清洁 / 观察食欲精神 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）\n- `disclaimer` - 免责声明\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>\nDetects possible tail-loss events in gecko and lizard images or videos by sending media to a cloud analysis service that compares tail length, visible wounds, scabbing, regeneration signs, and image quality, then returns a structured report. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to analyze uploaded local or URL-based reptile tail media, detect possible autotomy or injury events, query prior cloud reports, and receive structured monitoring outputs. It is intended for reptile enclosure monitoring workflows where visual alerts and report links help guide follow-up review. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill sends local media or supplied URLs to lifeemergence.com cloud services for processing. <br>\nMitigation: Use only media suitable for remote processing and avoid unrelated private media. <br>\nRisk: The skill may create or reuse local identity state and store remote access tokens in the workspace database. <br>\nMitigation: Install only in trusted workspaces, avoid shared workspaces, and review or remove stored workspace data when access should end. <br>\nRisk: Cloud history queries can expose account-linked prior report data. <br>\nMitigation: Use separate workspaces or accounts when report history should remain separated across users or projects. <br>\nRisk: Visual tail-loss outputs could be mistaken for veterinary diagnosis or treatment direction. <br>\nMitigation: Treat results as visual screening guidance and route wound care or infection concerns to a qualified reptile veterinarian. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-reptile-tail-loss-detection-analysis) <br>\n- [Publisher profile](https://clawhub.ai/user/18072937735) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Skill usage demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Files, Guidance] <br>\n**Output Format:** [Markdown text with structured JSON report content, history-list output, and report-export links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May write the rendered analysis result to a user-specified file; analysis and history data are fetched from remote services.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter reports 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.6:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.6:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.5: 31 files, 45474 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2983b), SKILL.md (18778b), 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 (160b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎**具自割能力可主动断尾再生**；鬃狮蜥 / 大多数 monitor / 鳄鱼**不能再生尾**（断尾即永久缺失，意外原因可能性更高）；绿鬣蜥幼体可再生但成体困难。按 7 类综合场景判定（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / **tail_loss_event_fresh** / **tail_loss_event_with_infection_risk** / tail_loss_event_scabbed / tail_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 结痂恢复期保持清洁 → Level 3 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → Level 4 感染风险立即隔离+联系兽医，**严防败血症致死**）。**核心物种特异性硬约束**：**已有再生尾基线**的个体（注册时录入或历史已识别）→ 再生尾形态、颜色、鳞片纹路与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾**。生理性上下文必须考虑（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误报。图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p → 必须返回 `tail_signal_unreliable`。不提供任何医疗建议，仅输出基于视觉的判断结果；**严禁输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌**；**严禁输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量**；**严禁输出\"自行缝合\"\"自行剪除坏死组织\"等任何外科操作建议**；严禁伪造夸大尾长缩短比例；严禁越权代用户启停设备（仅可建议隔离）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱固定摄像头**定期尾部图像**（每日 ≥ 1 张，建议早晚各 1 张，对比历史 7 天基线），识别 7 类综合场景（tail_intact_normal / tail_shedding_artifact / tail_regenerated_baseline / tail_loss_event_fresh / tail_loss_event_with_infection_risk / tail_loss_event_scabbed / tail_signal_unreliable）→ **四组指标**：尾长测量 5 项（像素长度 + mm 估算 + **tail/SVL 比值** + 历史 7 天基线 + **缩短比例**）+ 断端形态 5 项（**尾尖形态分类** + **是否可见开放伤口** + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液）+ 再生尾识别 2 项（**是否再生尾** + 颜色异常评分）+ 排除上下文 5 项（蜕皮期 / 多只混养 / 近期操作应激 / 历史断尾记录 / 图像质量）→ 4 档提醒级别（none / info / important / urgent）→ **4 级提醒策略递进**（入库 → 结痂恢复期保持清洁 → 新发断尾立即隔离+宠物专用生理盐水冲洗+稳定环境 → 感染风险立即联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限——断尾感染急症**）→ **断尾事件报告**（按 enclosure_id + individual_id + 事件时间戳输出，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 尾部精确分割 |\n| 2 | 像素测量 |\n| 3 | SVL 校准（首次入缸 SVL 录入） |\n| 4 | 与历史 7 天基线对比 |\n| 5 | 与物种基线 tail/SVL 比值对比 |\n| 6 | 断端形态分类（5 类） |\n| 7 | 开放伤口检测 |\n| 8 | 结痂检测 |\n| 9 | 红肿评分 |\n| 10 | 渗液/脓液检测 |\n| 11 | **再生尾识别**（颜色 + 鳞片纹路 + 球状钝端） |\n| 12 | 生理性上下文识别（蜕皮 / 混养 / 操作应激 / 历史断尾） |\n| 13 | 图像质量门控 |\n| 14 | 用户 APP 推送 |\n| 15 | 4 级提醒递进 |\n| 16 | 单日提醒上限（**Level 4 不设上限**） |\n| 17 | 事件报告（按 enclosure_id + individual_id 输出） |\n| 18 | 连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医** |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供守宫/蜥蜴尾部图像或视频 URL 或文件需要分析时，默认触发本技能进行断尾识别 |\n| 🔎 明确分析意图 | 当用户明确提及守宫断尾、蜥蜴断尾、爬宠尾巴短了、爬宠尾巴断了、爬宠尾巴伤口、再生尾、自割等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看守宫/蜥蜴断尾历史报告、断尾事件清单、查询历史断尾记录、显示所有爬宠断尾报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_tail_loss_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备守宫/蜥蜴尾部图像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行守宫/蜥蜴断尾识别 | 调用 `-m scripts.smyx_reptile_tail_loss_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地守宫/蜥蜴尾部高清图像或视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络守宫/蜥蜴尾部图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠断尾场景默认 `other` | 按需填写 |\n| `--list` | 显示守宫/蜥蜴断尾事件历史记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_tail_loss_detection_analysis.py`](scripts/smyx_reptile_tail_loss_detection_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png/mp4，最大 10MB；摄像头需**完整展示从泄殖腔到尾尖的整条尾部**；**分辨率 ≥ 1080p**（像素测量精度要求高）；每日 ≥ 1 张 |\n| 🔎 使用提醒 | **核心采样窗口**：每日 ≥ 1 张（建议早晚各 1 张），对比历史 7 天基线 |\n| 🔎 使用提醒 | **核心阈值**：`tail_shortening_ratio` **≥ 20%** + 断端可见伤口或新鲜创面 → 触发断尾事件 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（none → info → important → urgent） |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 2 / Level 3 × 3 / **Level 4 不设上限（断尾感染急症）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、消毒液品牌、抗生素品牌、外用药膏品牌（仅可中性表述\"宠物专用生理盐水冲洗\"） |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整爬宠箱视频/图像（≤ 30 天，留尾长时间序列 + 断尾事件关键图像；繁殖场按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 灯光参数；任何设备控制变更必须由用户确认（仅可建议隔离） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尾长缩短比例、伤口评分等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 是否具自割能力（autotomy）匹配判定**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 / 部分石龙子 / 部分壁虎具自割能力可再生；鬃狮蜥 / 大多数 monitor / 鳄鱼不能再生；绿鬣蜥幼体可再生但成体困难 |\n| 🔎 使用提醒 | **必须**识别**再生尾基线**：再生尾形态颜色与原尾不同（球状钝端、无原始鳞片、颜色稍异），**严禁误判再生尾为新发断尾** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期尾尖白皮假象 / 多只混养争斗高发 / 近期人为操作应激 / 已有历史断尾再生基线**），避免误判 |\n| 🧑‍⚖️ 结果性质 | **必须**在图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考 / 分辨率 < 1080p 时返回 `tail_signal_unreliable` 并建议重新拍摄 |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 4 → 强烈建议联系**专业爬宠兽医**（断尾感染可能引发败血症致死） |\n| 📜 报告输出 | **必须**：断尾事件报告**按 enclosure_id + individual_id + 事件时间戳输出**，含尾长 + 缩短比例 + 断端形态 + 伤口评分 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史断尾事件记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784165686742\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discha\n\nArchive v1.0.4: 31 files, 45362 bytes\n\nFiles: references/api_doc.md (7440b), scripts/__init__.py (57b), scripts/config.py (687b), scripts/config.yaml (3b), scripts/skill.py (580b), scripts/smyx_reptile_tail_loss_detection_analysis.py (3715b), skill-card.md (2682b), SKILL.md (18778b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_ana...","readmeExcerpt":"Skill: Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别 Owner: 18072937735 Summary: Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_reptile_tail_loss_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_reptile_tail_loss_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地守宫/蜥蜴尾部高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input /path/to/tail.jpg\n\n# 分析网络守宫/蜥蜴尾部图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --url https://example.com/tail.jpg\n\n# 显示历史断尾事件记录清单（自动触发关键词：查看守宫/蜥蜴断尾历史报告等）\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_tail_loss_detection_analysis --input tail.jpg --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-reptile-tail-loss-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。\"\nversion: \"1.0.17\"\nlicense: \"MIT-0\"\n---\n\n# 🦎 Reptile Tail Loss (Autotomy) Detection | 守宫/蜥蜴尾巴断尾识别\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **守宫/蜥蜴尾巴断尾识别** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system periodically captures tail images of geckos and lizards and uses AI visual analysis to detect tail length (compared with historical images or body-length reference values), tail-tip wounds, scabs, or abnormal shortening. When the tail is found to have shortened significantly (e.g. > 20%) and the amputation end shows a wound or scab, the system outputs a 'tail-loss event' alert with the time of occurrence. This skill helps keepers detect tail autotomy caused by fighting, stress, or accidents in a timely manner and take isolation or wound-care measures. Application scenarios: vivariums, multi-specimen cohabitation tanks, breeding farms. The system analyzes tail images daily and pushes alerts when tail loss is detected, advising isolation and wound hygiene. Skill features: tail loss is a common accidental injury in geckos and lizards; untreated, it may lead to sepsis. AI-based automatic detection of abnormal tail shortening and wounds helps keepers discover issues early, take measures, and reduce mortality. This skill can be integrated into smart vivarium cameras.\n\n通过爬宠箱固定摄像头，定期拍摄守宫、蜥蜴等爬行动物的尾部图像，利用 AI 视觉分析技术检测尾巴长度（与历史图像或同体长参考值对比）、尾部尖端伤口、结痂或异常短缩。当检测到尾巴长度突然明显缩短（例如缩短超过 20%）、尾部断端可见伤口或结痂时，输出'断尾事件'提示，记录发生时间。该技能有助于饲养者及时发现因争斗、应激或意外导致的尾巴折断，采取隔离或伤口处理措施。应用场景：爬宠箱、多只混养缸、繁殖场。系统每日自动分析尾部图像，当发生断尾时推送提醒，建议隔离受伤个体并消毒伤口。技能特点：断尾是守宫、蜥蜴常见的意外伤害，若未及时处理可能引发败血症。通过 AI 自动识别尾部异常缩短和伤口，可帮助饲养者及早发现，采取措施，降低死亡率。该技能可集成到智能爬宠箱摄像头中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物健康监测 AI。你的任务是分析守宫或蜥蜴的尾部高清图像（侧位平拍或俯拍，分辨率 ≥ 1080p，完整展示从泄殖腔到尾尖的整条尾部），三步走：① **尾长测量**——分割尾部 → 像素长度 → 通过 SVL（吻肛长）或缸内已知尺寸物校准为 mm → 计算 tail/SVL 比值；② **历史对比 + 体长比例对比**——与该个体过去 7 天基线、与同物种 tail/SVL 标准基线（豹纹守宫 ≈ 0.9-1.1 / 鬃狮蜥 ≈ 1.2-1.5 / 绿鬣蜥 ≈ 2.0-2.5）双重对比，计算 `tail_shortening_ratio`，**≥ 20% 触发断尾事件门槛**；③ **断端形态分类**——尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）+ 是否可见开放伤口 + 是否结痂 + 红肿评分 0-5 + 是否有渗液/脓液。按 **species 是否具自割能力（autotomy）匹配判定逻辑**：豹纹守宫 / 肥尾守宫 / 蓝舌石龙子 /"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-tail-loss-detection-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790699126814\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放守宫/蜥蜴尾巴断尾识别 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动守宫/蜥蜴断尾识别任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尾长 / 缩短比例 / 断端伤口 / 结痂状态）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史断尾事件记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出断尾事件报告\n\n## 场景代码\n\n- `SMYX_REPTILE_TAIL_LOSS_DETECTION_ANALYSIS` - 守宫/蜥蜴尾巴断尾识别\n\n## 输入约束\n\n- 摄像头：爬宠箱固定摄像头 / 智能爬宠箱内置摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**像素测量精度要求高于其他爬宠技能**）；帧率 ≥ 5 FPS（静态测量为主，高帧率非必需）\n- 拍摄角度：**侧位平拍**或**俯拍**，必须**完整展示从泄殖腔孔到尾尖的整条尾部**\n- 光照：充足且均匀（避免阴影遮挡尾尖判断）\n- **核心采样窗口**：每日 ≥ 1 张参考图像（建议早晚各 1 张），对比历史 7 天基线\n- 多箱/多只场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：宠物物种、个体 ID（多只混养时唯一标识）、首次入缸基线照片、首次入缸 SVL（吻肛长，单位 mm）、是否已有历史断尾记录（已断尾个体新长尾巴 = 再生尾，形态颜色不同）\n\n## 关键观测信号\n\n### 尾长测量\n- `tail_length_pixels` - 当前尾部像素长度（从泄殖腔到尾尖）\n- `tail_length_mm_estimated` - 估算尾部实际长度（mm，需 SVL 参考或缸内已知尺寸物校准）\n- `tail_to_svl_ratio` - **尾长/SVL 比值**（核心指标，物种基线差异大：豹纹守宫 ≈ 0.9-1.1，鬃狮蜥 ≈ 1.2-1.5，绿鬣蜥 ≈ 2.0-2.5）\n- `tail_length_history_baseline` - 历史 7 天尾长基线\n- `tail_shortening_ratio` - **尾长缩短比例**（核心指标，阈值 ≥ 20% 触发断尾事件）\n\n### 断端形态\n- `tail_tip_morphology` - 尾尖形态（intact_tapered_normal / blunt_amputated / scabbed / open_wound / regenerated_bulb）\n- `wound_visible` - **断端是否可见开放伤口**（核心指标）\n- `scab_present` - 是否结痂（结痂为后期，伤口为新鲜断尾）\n- `redness_swelling_score_0_5` - 断端红肿评分（0-5，≥ 3 提示感染风险）\n- `discharge_or_pus_detected` - 是否有渗液/脓液（感染强信号）\n\n### 再生尾识别\n- `is_regenerated_tail` - **是否为再生尾**（再生尾颜色与原尾不同，无原始鳞片纹路，球状钝端）\n- `regenerated_tail_color_anomaly` - 再生尾颜色异常评分\n\n### 上下文与排除信号\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期尾尖可能呈白色脱皮态，易误判）\n- `multi_individual_cohabitation` - 是否多只混养（争斗断尾高发场景）\n- `recent_handling_stress` - 近期是否有人为操作（应激断尾）\n- `previous_autotomy_recorded` - 历史断尾记录已存在\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 完整露出 / 无遮挡）\n\n## 综合判定\n\n- `tail_intact_normal` - 尾部完整正常\n- `tail_shedding_artifact` - 蜕皮造成的尾尖白皮假象，非断尾\n- `tail_regenerated_baseline` - 再生尾已存在基线，无新增断尾事件\n- `tail_loss_event_fresh` - **新发断尾事件**（缩短 ≥ 20% + 断端可见伤口或新鲜创面）\n- `tail_loss_event_with_infection_risk` - **断尾 + 感染风险**（伤口红肿 ≥ 3 / 有渗液脓液）\n- `tail_loss_event_scabbed` - 断尾已结痂（事件已发生数日，进入恢复期）\n- `tail_signal_unreliable` - 信号不可靠（图像模糊 / 尾尖未完整露出 / 光照不足 / 无 SVL 参考）\n\n## 4 级提醒策略递进\n\n- Level 1（tail_intact_normal / tail_regenerated_baseline / tail_shedding_artifact）：仅入库，不主动提示\n- Level 2（tail_loss_event_scabbed）：温和提示，记录断尾已结痂进入恢复期，建议**继续保持环境清洁 + 评估是否需隔离**\n- Level 3（tail_loss_event_fresh）：重要提示，建议**立即隔离受伤个体到单独养殖箱 + 用洁净水或宠物专用生理盐水冲洗伤口 + 保持环境湿度与温度稳定 + 减少应激源 + 观察食欲与精神状态**\n- Level 4（tail_loss_event_with_infection_risk）：紧急提示，建议**立即隔离 + 保持伤口清洁 + 立即联系爬宠兽医（断尾感染可能引发败血症致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 2 / Level 3 × 3 / Level 4 不设上限（断尾感染急症）\n\n## 红线约束\n\n- **🚨 禁止**做\"败血症 / 骨髓炎 / 蜂窝织炎 / 坏死性皮炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、给药方案、**消毒液品牌、抗生素品牌、外用药膏品牌**（仅可提\"宠物专用生理盐水冲洗\"等中性表述）\n- **🚨 绝对禁止**输出\"撒云南白药\"\"涂红霉素软膏\"\"用碘伏\"\"口服阿莫西林\"等具体处方剂量\n- **🚨 绝对禁止**输出\"自行缝合伤口\"\"自行剪除坏死组织\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整爬宠箱视频/图像（≤ 3"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1144,"uniquenessScore":43,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T23:19:24.036Z","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-09T23:19:24.036Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T07:29:23.319Z","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"}]}}}