{"id":"15177665-dc2f-40e4-8e28-8ba2a9187e2d","entityType":"agent","slug":"clawhub-18072937735-smyx-snake-stomatitis-detection-analysis","name":"Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-snake-stomatitis-detection-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-snake-stomatitis-detection-analysis","generatedAt":"2026-10-10T15:53:47.575Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T12:54:29.317Z","emptyReason":null},"description":"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-snake-stomatitis-detection-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-snake-stomatitis-detection-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-snake-stomatitis-detection-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":63,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Snake Stomatitis (Mouth Rot) 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-10T12:54:29.317Z","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-10T12:54:29.317Z","emptyReason":null},"stars":null,"forks":null,"downloads":1424,"packageName":null,"latestVersion":"1.0.12","tractionLabel":"1.4K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T12:54:29.317Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T12:54:29.317Z","lastCrawledAt":"2026-10-10T12:54:29.317Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T12:54:29.317Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.12","createdAt":"2026-09-27T18:47:36.602Z","changelog":"- Updated SKILL.md with a new version number and minor content changes. - Removed the deprecated skill-card.md file. - No changes to core functionality or usage.","fileCount":31,"zipByteSize":46029},{"version":"1.0.11","createdAt":"2026-09-22T14:38:35.242Z","changelog":"- Version bumped from 1.0.11 to 1.0.15. - Documentation in SKILL.md updated and extended. - File skill-card.md removed. - No changes to code logic or detection methods. - Minor updates to configuration files.","fileCount":31,"zipByteSize":46187},{"version":"1.0.10","createdAt":"2026-08-23T23:42:29.450Z","changelog":"- Removed the skill documentation file skill-card.md from the project. - No changes to features or behavior; this update is limited to documentation cleanup.","fileCount":31,"zipByteSize":46273},{"version":"1.0.9","createdAt":"2026-08-23T05:57:27.814Z","changelog":"- Updated SKILL.md version from 1.0.10 to 1.0.11. - Minor documentation or metadata adjustments in SKILL.md. - Removed skill-card.md file. - No changes to logic, features, or core capability.","fileCount":31,"zipByteSize":46195},{"version":"1.0.8","createdAt":"2026-08-15T14:04:33.202Z","changelog":"- Updated version to 1.0.10 and revised documentation in SKILL.md. - Minor clarifications and text updates for skill usage, requirements, and API constraints. - skill-card.md file removed to streamline documentation.","fileCount":31,"zipByteSize":46331},{"version":"1.0.7","createdAt":"2026-08-03T18:43:42.371Z","changelog":"- Removed the file: skill-card.md. - No functional or feature changes—documentation file only deleted.","fileCount":31,"zipByteSize":46124},{"version":"1.0.6","createdAt":"2026-08-02T03:32:30.868Z","changelog":"- Updated version to 1.0.8 in SKILL.md. - Made minor content revisions in SKILL.md; no feature or behavior changes. - Removed the file skill-card.md.","fileCount":31,"zipByteSize":46190},{"version":"1.0.5","createdAt":"2026-07-18T11:03:27.110Z","changelog":"smyx-snake-stomatitis-detection-analysis 1.0.5 changelog - Updated SKILL.md with revised descriptions and possibly improved documentation. - Code changes made in skills/smyx_common/scripts/util.py. - Removed obsolete skill-card.md file for cleanup.","fileCount":31,"zipByteSize":46398}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-snake-stomatitis-detection-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-snake-stomatitis-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-snake-stomatitis-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-snake-stomatitis-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-snake-stomatitis-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-snake-stomatitis-detection-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-snake-stomatitis-detection-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-snake-stomatitis-detection-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-snake-stomatitis-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-10T15:53:47.571Z"}},"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-snake-stomatitis-detection-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-snake-stomatitis-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-snake-stomatitis-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-snake-stomatitis-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-10T12:54:29.317Z","emptyReason":null},"readme":"Skill: Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n\nOwner: 18072937735\n\nSummary: Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\n\nTags: latest:1.0.12\n\nVersion history:\n\nv1.0.12 | 2026-09-27T18:47:36.602Z | auto\n\n- Updated SKILL.md with a new version number and minor content changes.\n- Removed the deprecated skill-card.md file.\n- No changes to core functionality or usage.\n\nv1.0.11 | 2026-09-22T14:38:35.242Z | auto\n\n- Version bumped from 1.0.11 to 1.0.15.\n- Documentation in SKILL.md updated and extended.\n- File skill-card.md removed.\n- No changes to code logic or detection methods.\n- Minor updates to configuration files.\n\nv1.0.10 | 2026-08-23T23:42:29.450Z | auto\n\n- Removed the skill documentation file skill-card.md from the project.\n- No changes to features or behavior; this update is limited to documentation cleanup.\n\nv1.0.9 | 2026-08-23T05:57:27.814Z | auto\n\n- Updated SKILL.md version from 1.0.10 to 1.0.11.\n- Minor documentation or metadata adjustments in SKILL.md.\n- Removed skill-card.md file.\n- No changes to logic, features, or core capability.\n\nv1.0.8 | 2026-08-15T14:04:33.202Z | auto\n\n- Updated version to 1.0.10 and revised documentation in SKILL.md.\n- Minor clarifications and text updates for skill usage, requirements, and API constraints.\n- skill-card.md file removed to streamline documentation.\n\nv1.0.7 | 2026-08-03T18:43:42.371Z | auto\n\n- Removed the file: skill-card.md.\n- No functional or feature changes—documentation file only deleted.\n\nv1.0.6 | 2026-08-02T03:32:30.868Z | auto\n\n- Updated version to 1.0.8 in SKILL.md.\n- Made minor content revisions in SKILL.md; no feature or behavior changes.\n- Removed the file skill-card.md.\n\nv1.0.5 | 2026-07-18T11:03:27.110Z | auto\n\nsmyx-snake-stomatitis-detection-analysis 1.0.5 changelog\n\n- Updated SKILL.md with revised descriptions and possibly improved documentation.\n- Code changes made in skills/smyx_common/scripts/util.py.\n- Removed obsolete skill-card.md file for cleanup.\n\nv1.0.4 | 2026-07-06T10:33:26.473Z | auto\n\nNo changes detected in this release.\n\n- Version number updated to 1.0.4.\n- No modifications to files or documentation content.\n\nv1.0.3 | 2026-07-05T02:44:44.193Z | auto\n\n- Internal code maintenance and refactoring in utility and DAO configuration scripts.\n- Removed deprecated documentation file (skill-card.md) to streamline resources.\n- Updated SKILL.md to version 1.0.4, reflecting latest improvements and documentation corrections.\n- General improvements for maintainability and clarity; no changes to user-facing features or workflow.\n\nv1.0.2 | 2026-06-27T23:47:23.938Z | auto\n\n- Major update: user identity handling is now fully automated and managed internally; users are no longer prompted to provide or view open-id or any personal identifier.\n- Updated SKILL.md for improved clarity, brevity, and visual structure, including clearer module/role/trigger/capability tables and multilingual presentation.\n- Enforced cloud-based history report queries: local or manual aggregation is strictly forbidden; all history retrieval accesses the cloud API only.\n- Updated script and configuration references, aligning usage instructions and parameter guidance to reflect internal identity management and safer user experience.\n- Removed redundant files and documentation; unified report-access workflow for consistency.\n\nv1.0.1 | 2026-06-18T07:32:29.097Z | auto\n\n- Removed redundant file skill-card.md for a leaner repository.\n- Updated shared configuration access rules: now prioritizes reading api-key (for open-id) from skills/smyx_common/scripts/config.yaml if not found in the current skill directory.\n- No changes to core detection features or user workflow.\n- Documentation reflects clarified open-id acquisition flow.\n\nv1.0.0 | 2026-06-17T08:02:48.979Z | auto\n\nInitial public release of smyx-snake-stomatitis-detection-analysis.\n\n- Introduces high-definition, AI-powered visual detection of snake mouth rot (stomatitis) via enclosure camera images.\n- Analyzes oral mucosa color, identifies pus points, ulcers, and necrotic tissue, and outputs comprehensive risk levels.\n- Includes context-aware diagnostic exclusion (e.g., shedding, post-feeding, breeding injuries, temperature/humidity).\n- Supports structured reporting, multi-level alert strategies, and strict user/open-id validation.\n- Designed for use in reptile enclosures, vet clinics, and breeding farms; compatible with automated camera workflows.\n\nArchive index:\n\nArchive v1.0.12: 31 files, 46029 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (2184b), SKILL.md (19761b), 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.12:SKILL.md\n\n---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物**：白色/黄色点状隆起 + 数量 + 位置（前/后牙龈/上腭/内唇/咽部入口） + **干酪样斑块**（灰白/黄色膜状物，口炎典型征兆） + 异常黏液/泡沫 + 分泌物颜色（清/白脓/黄脓/血染）；③ **溃疡与腐肉**：黏膜表面不规则凹陷 + 数量 + 深度（浅表/中度/深及深层组织） + **腐肉/坏死组织**（暗色/黑褐色不规则组织，口炎晚期征兆） + 坏死面积估算 + 牙龈退缩或出血；④ **物种特异性 + 上下文排除**：毒蛇（毒牙/毒腺开口） vs 无毒蛇 vs 蟒蚺口腔结构差异；蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激（口炎主因之一）→ 必须排除非感染性混淆。按 7 类综合场景判定（oral_cavity_healthy / **stomatitis_risk_low** / **stomatitis_risk_moderate** / **stomatitis_risk_high** / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ **🚨 警告口炎中期可快速恶化为败血症** → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段，败血症风险极高可短期致死）。**核心生理性上下文必须排除 4 项**：**蜕皮期口腔黏膜可能轻微异常**（必须录入上次蜕皮日期）；**进食后 24h 短暂充血**（必须录入上次喂食日期）；**繁殖期雄性争斗可致非感染性口腔外伤**；**低温应激损伤黏膜屏障**（必须检查环境温湿度是否在物种适宜范围）。物种解剖硬约束：**毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝**等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的病变识别结果；**🚨 严禁输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量**；**🚨 严禁输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方**；**🚨 严禁输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作建议**；严禁伪造夸大红肿评分/脓点数量/溃疡深度；严禁越权代用户启停加热灯/UVB/湿度控制（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机在蛇**张口瞬间抓拍单帧或多帧**（≥ 3 帧取最佳帧，必须排除进食中帧），识别 7 类综合场景（oral_cavity_healthy / stomatitis_risk_low / stomatitis_risk_moderate / stomatitis_risk_high / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable）→ **四组指标**：口腔黏膜颜色 4 项（**颜色分类** + **红肿评分 0-10** + 斑块状红肿 + 苍白区域）+ 脓点与分泌物 6 项（**脓点检测** + 数量 + 位置 + **干酪样斑块** + 异常黏液 + 分泌物颜色）+ 溃疡与腐肉 6 项（**溃疡检测** + 数量 + 深度 + **腐肉/坏死组织** + 坏死面积 + 牙龈出血）+ 排除上下文 7 项（张口触发原因 + 蜕皮期 + 进食 24h 内 + 繁殖期 + 温度适宜 + 湿度适宜 + 图像质量）→ 4 档提醒级别（info / important / urgent / critical）→ **4 级提醒策略递进**（入库 → 加强观察+检查温湿度 → 调整温湿度+隔离+尽快联系兽医 → 🚨 立即隔离+紧急联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限——口炎急症·败血症风险**）→ **口炎评估报告**（按 enclosure_id + individual_id + 抓拍时间戳输出，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 蛇头精准定位 |\n| 2 | 张口瞬间自动抓拍（口角开合 + 上下颌分离阈值） |\n| 3 | 口腔分割（黏膜 vs 牙齿 vs 舌头） |\n| 4 | 黏膜颜色 HSV 量化 |\n| 5 | 脓点形态学检测（白色/黄色点状隆起） |\n| 6 | 干酪样斑块识别 |\n| 7 | 溃疡轮廓提取与深度估计 |\n| 8 | 腐肉/坏死组织识别 |\n| 9 | 牙龈出血检测 |\n| 10 | 物种识别（毒蛇/无毒蛇/蟒蚺） |\n| 11 | 生理性上下文识别（蜕皮 / 进食 / 繁殖 / 低温应激） |\n| 12 | 图像质量门控（完整露出 / 光照 / 反光 / 进食中帧 → unreliable） |\n| 13 | 用户 APP 紧急推送 |\n| 14 | 4 级提醒递进 |\n| 15 | 单日提醒上限（**Level 4 不设上限**） |\n| 16 | 口炎评估报告（按 enclosure_id + individual_id 输出） |\n| 17 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供蛇张口瞬间口腔内部高清图像/视频 URL 或文件需要分析时，默认触发本技能进行口炎识别 |\n| 🔎 明确分析意图 | 当用户明确提及蛇口炎、蛇嘴溃烂、蛇打哈欠口腔异常、蛇口腔脓点、蛇腐肉、蛇黑下巴、蛇 mouth rot、传染性口炎等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看蛇类口炎历史报告、口炎评估清单、查询历史口腔病变记录、显示所有蛇口炎报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_snake_stomatitis_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_snake_stomatitis_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_snake_stomatitis_detection_analysis.py`](scripts/smyx_snake_stomatitis_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**（黏膜颜色渐变与微小脓点需高清）；帧率 ≥ 25 FPS；**必须在张口瞬间抓拍**；**必须排除进食中帧** |\n| 🔎 使用提醒 | **核心采样**：≥ 3 帧清晰口腔图像取最佳帧 |\n| 🔎 使用提醒 | **核心评估三要素联合**：黏膜颜色（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度） + 脓点/干酪样斑块 + 溃疡/腐肉 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），腐肉/坏死组织 + 深溃疡 + 多量脓点直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 口腔解剖基线**判定（毒蛇毒牙/毒腺开口 / 王蛇平颌结构 / 蟒蚺热感应窝），**严禁通用阈值盲判** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期口腔黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激**），避免误报 |\n| 🔎 使用提醒 | **必须**在口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p 时返回 `oral_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口炎中期可快速恶化为败血症） |\n| 📜 报告输出 | **必须**：口炎评估报告**按 enclosure_id + individual_id + 抓拍时间戳输出**，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史口炎评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-snake-stomatitis-detection-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790534856602\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_SNAKE_STOMATITIS_DETECTION_ANALYSIS` - 蛇类口腔腐肉识别（口炎）\n\n## 输入约束\n\n- 摄像头：蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**口腔黏膜颜色渐变、脓点、微小溃疡均需高清**）；帧率 ≥ 25 FPS（张口瞬间短暂，需高帧率抓拍）\n- 拍摄角度：**正对蛇头部口腔**（侧面或斜角无法完整观察口腔内壁），必须在蛇**张口瞬间**抓拍（打哈欠 / 进食后 / 口腔检查时）\n- 光照：充足且均匀（**口腔内部较暗，需补光或环形灯**；避免反光过强误判为脓点）\n- **核心采样窗口**：蛇张口时自动抓拍单帧或多帧（需 ≥ 3 帧清晰口腔图像取最佳帧）\n- **必须排除进食中帧**（吞食猎物时口腔被猎物遮挡，非口腔检查窗口）\n- 多箱场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（球蟒 / 玉米蛇 / 王蛇 / 红尾蚺 / 缅蟒 / 眼镜蛇 / 响尾蛇等）、上次脱皮日期、上次喂食日期、环境温度、湿度\n\n## 关键观测信号\n\n### 口腔黏膜颜色\n- `mucosa_color_classification` - **黏膜颜色分类**（核心指标：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish）\n- `mucosa_redness_score_0_10` - **黏膜红肿评分 0-10**（核心指标，≤ 2 正常 / 3-5 轻度 / 6-8 中度 / ≥ 9 重度）\n- `mucosa_color_patchy` - 是否斑块状红肿（非均匀，局部炎症特征）\n- `mucosa_pale_areas` - 是否有苍白区域（贫血或坏死前兆）\n\n### 脓点与分泌物\n- `pus_points_detected` - **是否检测到脓点**（核心指标，白色或黄色点状隆起）\n- `pus_point_count` - 脓点数量\n- `pus_point_location` - 脓点位置（anterior_gum / posterior_gum / palate / inner_lip / throat_entrance）\n- `caseous_plaques_detected` - **是否检测到干酪样斑块**（核心指标，灰白/黄色膜状物，口炎典型征兆）\n- `mucus_or_foam_detected` - 口腔是否有异常黏液或泡沫（非进食时）\n- `discharge_color` - 分泌物颜色（clear / white_purulent / yellow_purulent / blood_tinged）\n\n### 溃疡与腐肉\n- `ulcer_detected` - **是否检测到溃疡**（核心指标，黏膜表面不规则凹陷）\n- `ulcer_count` - 溃疡数量\n- `ulcer_depth_assessment` - 溃疡深度评估（superficial / moderate / deep_to_underlying_tissue）\n- `necrotic_tissue_detected` - **是否检测到腐肉/坏死组织**（核心指标，暗色/黑褐色不规则组织，口炎晚期征兆）\n- `necrotic_tissue_area_estimated` - 坏死组织面积估算（占口腔可视面积百分比）\n- `gum_recession_or_hemorrhage` - 牙龈退缩或出血\n\n### 上下文与排除信号\n- `mouth_opening_trigger` - 张口触发原因（yawn_normal / post_feeding / threat_display / examination / unknown）\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期口腔黏膜可能轻微异常）\n- `is_post_feeding_within_24h` - 是否进食后 24h 内（进食后可能短暂口腔充血）\n- `is_during_breeding_season` - 是否繁殖期（雄性争斗可致口腔外伤）\n- `ambient_temperature_appropriate` - 温度是否适宜（低温应激是口炎主因之一）\n- `humidity_appropriate` - 湿度是否适宜（过低湿度损伤黏膜）\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 口腔完整露出 / 光照充足 / 无唾液反光干扰）\n\n## 综合判定\n\n- `oral_cavity_healthy` - 口腔健康（黏膜粉红正常，无脓点/溃疡/腐肉）\n- `stomatitis_risk_low` - **口炎风险低**（黏膜轻度红肿 ≤ 5 分，无脓点/溃疡/腐肉，可能为蜕皮或进食后短暂充血）\n- `stomatitis_risk_moderate` - **口炎风险中**（黏膜红肿 6-8 分 OR 少量脓点 1-3 个 OR 浅表溃疡 OR 干酪样斑块初现）\n- `stomatitis_risk_high` - **口炎风险高**（黏膜暗红/苍白/发绀 + 多量脓点 ≥ 4 个 + 深溃疡 + 腐肉/坏死组织 + 牙龈出血）\n- `oral_injury_non_infectious` - 非感染性口腔外伤（繁殖期争斗/猎物刮伤，局部创伤而非弥漫性炎症）\n- `oral_context_shedding_artifact` - 蜕皮期口腔黏膜轻微假象\n- `oral_signal_unreliable` - 信号不可靠（口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 分辨率 < 1080p / 进食中帧未排除）\n\n## 4 级提醒策略递进\n\n- Level 1（oral_cavity_healthy / oral_context_shedding_artifact）：仅入库\n- Level 2（stomatitis_risk_low / oral_injury_non_infectious）：温和提示，建议**加强观察 3-5 天 + 检查环境温湿度是否在物种适宜范围 + 确认饲养箱清洁度**\n- Level 3（stomatitis_risk_moderate）：紧急提示，建议**检查并调整温湿度至物种适宜范围 + 保持饲养箱清洁干燥 + 隔离至单独观察箱 + 观察食欲精神 + 尽快联系爬宠兽医（口炎中期可快速恶化为败血症）**\n- Level 4（stomatitis_risk_high）：最高紧急提示，建议**立即隔离 + 保持环境温湿度稳定 + 立即联系爬宠兽医（腐肉/坏死组织 + 深溃疡提示口炎已进入急症阶段，败血症风险极高，可短期致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量\n- **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方\n- **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等**\n- 物种特异性：**毒蛇**口腔结构与无毒蛇不同（毒牙/毒腺开口），**蟒蚺**口腔较大易于观察 → 必须按物种口腔解剖基线判定\n- 必须考虑生理性上下文：**蜕皮期口腔黏膜可能轻微异常 / 进食后短暂充血 / 繁殖期争斗外伤 / 低温应激** → 不可直接告警\n- 口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`\n- 必须告知用户：AI 视觉识别仅供参考，**口炎确诊与治疗需立即联系专业爬宠兽医（建议口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延）**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`mucosa_color_classification`、`mucosa_redness_score_0_10`、`pus_points_detected`、`pus_point_count`、`caseous_plaques_detected`、`ulcer_detected`、`ulcer_depth_assessment`、`necrotic_tissue_detected`、`necrotic_tissue_area_estimated`、`gum_recession_or_hemorrhage`、`composite_scene`、`alert_level`、`recommended_actions`（检查温湿度 / 隔离观察 / 保持清洁 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）、`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 images or video of a snake's open mouth for visible signs of stomatitis and provides a risk assessment and report.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nSnake keepers, breeders, and reptile-care teams use the skill to review mouth images or videos for possible oral lesions, receive a risk-level report, and retrieve prior reports. Results support monitoring and veterinary follow-up, not a definitive diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Snake images, videos, URLs, and report history are processed by a configured cloud service.\n\nMitigation: Install only if this data transfer is acceptable; use a dedicated workspace or account where possible.\n\nRisk: The skill may automatically create or reuse an identity and store authentication tokens locally.\n\nMitigation: Avoid environments with sensitive unrelated identity files, and review or remove the workspace SQLite database after use.\n\nRisk: Image-based assessments may be unreliable when the mouth is obscured or image quality is poor.\n\nMitigation: Treat results as screening guidance, not a diagnosis; seek a reptile veterinarian for concerning findings.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis)\n- [API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured assessment or Markdown report; optional JSON output and Markdown report-history table]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include observed oral signs, a risk level, suggested next steps, and a report link.]\n\n## Skill Version(s):\n\n1.0.12 (source: server-resolved ClawHub release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 46187 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (2629b), SKILL.md (19761b), 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.11:SKILL.md\n\n---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.15\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物**：白色/黄色点状隆起 + 数量 + 位置（前/后牙龈/上腭/内唇/咽部入口） + **干酪样斑块**（灰白/黄色膜状物，口炎典型征兆） + 异常黏液/泡沫 + 分泌物颜色（清/白脓/黄脓/血染）；③ **溃疡与腐肉**：黏膜表面不规则凹陷 + 数量 + 深度（浅表/中度/深及深层组织） + **腐肉/坏死组织**（暗色/黑褐色不规则组织，口炎晚期征兆） + 坏死面积估算 + 牙龈退缩或出血；④ **物种特异性 + 上下文排除**：毒蛇（毒牙/毒腺开口） vs 无毒蛇 vs 蟒蚺口腔结构差异；蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激（口炎主因之一）→ 必须排除非感染性混淆。按 7 类综合场景判定（oral_cavity_healthy / **stomatitis_risk_low** / **stomatitis_risk_moderate** / **stomatitis_risk_high** / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ **🚨 警告口炎中期可快速恶化为败血症** → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段，败血症风险极高可短期致死）。**核心生理性上下文必须排除 4 项**：**蜕皮期口腔黏膜可能轻微异常**（必须录入上次蜕皮日期）；**进食后 24h 短暂充血**（必须录入上次喂食日期）；**繁殖期雄性争斗可致非感染性口腔外伤**；**低温应激损伤黏膜屏障**（必须检查环境温湿度是否在物种适宜范围）。物种解剖硬约束：**毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝**等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的病变识别结果；**🚨 严禁输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量**；**🚨 严禁输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方**；**🚨 严禁输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作建议**；严禁伪造夸大红肿评分/脓点数量/溃疡深度；严禁越权代用户启停加热灯/UVB/湿度控制（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机在蛇**张口瞬间抓拍单帧或多帧**（≥ 3 帧取最佳帧，必须排除进食中帧），识别 7 类综合场景（oral_cavity_healthy / stomatitis_risk_low / stomatitis_risk_moderate / stomatitis_risk_high / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable）→ **四组指标**：口腔黏膜颜色 4 项（**颜色分类** + **红肿评分 0-10** + 斑块状红肿 + 苍白区域）+ 脓点与分泌物 6 项（**脓点检测** + 数量 + 位置 + **干酪样斑块** + 异常黏液 + 分泌物颜色）+ 溃疡与腐肉 6 项（**溃疡检测** + 数量 + 深度 + **腐肉/坏死组织** + 坏死面积 + 牙龈出血）+ 排除上下文 7 项（张口触发原因 + 蜕皮期 + 进食 24h 内 + 繁殖期 + 温度适宜 + 湿度适宜 + 图像质量）→ 4 档提醒级别（info / important / urgent / critical）→ **4 级提醒策略递进**（入库 → 加强观察+检查温湿度 → 调整温湿度+隔离+尽快联系兽医 → 🚨 立即隔离+紧急联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限——口炎急症·败血症风险**）→ **口炎评估报告**（按 enclosure_id + individual_id + 抓拍时间戳输出，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 蛇头精准定位 |\n| 2 | 张口瞬间自动抓拍（口角开合 + 上下颌分离阈值） |\n| 3 | 口腔分割（黏膜 vs 牙齿 vs 舌头） |\n| 4 | 黏膜颜色 HSV 量化 |\n| 5 | 脓点形态学检测（白色/黄色点状隆起） |\n| 6 | 干酪样斑块识别 |\n| 7 | 溃疡轮廓提取与深度估计 |\n| 8 | 腐肉/坏死组织识别 |\n| 9 | 牙龈出血检测 |\n| 10 | 物种识别（毒蛇/无毒蛇/蟒蚺） |\n| 11 | 生理性上下文识别（蜕皮 / 进食 / 繁殖 / 低温应激） |\n| 12 | 图像质量门控（完整露出 / 光照 / 反光 / 进食中帧 → unreliable） |\n| 13 | 用户 APP 紧急推送 |\n| 14 | 4 级提醒递进 |\n| 15 | 单日提醒上限（**Level 4 不设上限**） |\n| 16 | 口炎评估报告（按 enclosure_id + individual_id 输出） |\n| 17 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供蛇张口瞬间口腔内部高清图像/视频 URL 或文件需要分析时，默认触发本技能进行口炎识别 |\n| 🔎 明确分析意图 | 当用户明确提及蛇口炎、蛇嘴溃烂、蛇打哈欠口腔异常、蛇口腔脓点、蛇腐肉、蛇黑下巴、蛇 mouth rot、传染性口炎等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看蛇类口炎历史报告、口炎评估清单、查询历史口腔病变记录、显示所有蛇口炎报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_snake_stomatitis_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_snake_stomatitis_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_snake_stomatitis_detection_analysis.py`](scripts/smyx_snake_stomatitis_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**（黏膜颜色渐变与微小脓点需高清）；帧率 ≥ 25 FPS；**必须在张口瞬间抓拍**；**必须排除进食中帧** |\n| 🔎 使用提醒 | **核心采样**：≥ 3 帧清晰口腔图像取最佳帧 |\n| 🔎 使用提醒 | **核心评估三要素联合**：黏膜颜色（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度） + 脓点/干酪样斑块 + 溃疡/腐肉 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），腐肉/坏死组织 + 深溃疡 + 多量脓点直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 口腔解剖基线**判定（毒蛇毒牙/毒腺开口 / 王蛇平颌结构 / 蟒蚺热感应窝），**严禁通用阈值盲判** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期口腔黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激**），避免误报 |\n| 🔎 使用提醒 | **必须**在口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p 时返回 `oral_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口炎中期可快速恶化为败血症） |\n| 📜 报告输出 | **必须**：口炎评估报告**按 enclosure_id + individual_id + 抓拍时间戳输出**，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史口炎评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-snake-stomatitis-detection-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790087915242\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_SNAKE_STOMATITIS_DETECTION_ANALYSIS` - 蛇类口腔腐肉识别（口炎）\n\n## 输入约束\n\n- 摄像头：蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**口腔黏膜颜色渐变、脓点、微小溃疡均需高清**）；帧率 ≥ 25 FPS（张口瞬间短暂，需高帧率抓拍）\n- 拍摄角度：**正对蛇头部口腔**（侧面或斜角无法完整观察口腔内壁），必须在蛇**张口瞬间**抓拍（打哈欠 / 进食后 / 口腔检查时）\n- 光照：充足且均匀（**口腔内部较暗，需补光或环形灯**；避免反光过强误判为脓点）\n- **核心采样窗口**：蛇张口时自动抓拍单帧或多帧（需 ≥ 3 帧清晰口腔图像取最佳帧）\n- **必须排除进食中帧**（吞食猎物时口腔被猎物遮挡，非口腔检查窗口）\n- 多箱场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（球蟒 / 玉米蛇 / 王蛇 / 红尾蚺 / 缅蟒 / 眼镜蛇 / 响尾蛇等）、上次脱皮日期、上次喂食日期、环境温度、湿度\n\n## 关键观测信号\n\n### 口腔黏膜颜色\n- `mucosa_color_classification` - **黏膜颜色分类**（核心指标：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish）\n- `mucosa_redness_score_0_10` - **黏膜红肿评分 0-10**（核心指标，≤ 2 正常 / 3-5 轻度 / 6-8 中度 / ≥ 9 重度）\n- `mucosa_color_patchy` - 是否斑块状红肿（非均匀，局部炎症特征）\n- `mucosa_pale_areas` - 是否有苍白区域（贫血或坏死前兆）\n\n### 脓点与分泌物\n- `pus_points_detected` - **是否检测到脓点**（核心指标，白色或黄色点状隆起）\n- `pus_point_count` - 脓点数量\n- `pus_point_location` - 脓点位置（anterior_gum / posterior_gum / palate / inner_lip / throat_entrance）\n- `caseous_plaques_detected` - **是否检测到干酪样斑块**（核心指标，灰白/黄色膜状物，口炎典型征兆）\n- `mucus_or_foam_detected` - 口腔是否有异常黏液或泡沫（非进食时）\n- `discharge_color` - 分泌物颜色（clear / white_purulent / yellow_purulent / blood_tinged）\n\n### 溃疡与腐肉\n- `ulcer_detected` - **是否检测到溃疡**（核心指标，黏膜表面不规则凹陷）\n- `ulcer_count` - 溃疡数量\n- `ulcer_depth_assessment` - 溃疡深度评估（superficial / moderate / deep_to_underlying_tissue）\n- `necrotic_tissue_detected` - **是否检测到腐肉/坏死组织**（核心指标，暗色/黑褐色不规则组织，口炎晚期征兆）\n- `necrotic_tissue_area_estimated` - 坏死组织面积估算（占口腔可视面积百分比）\n- `gum_recession_or_hemorrhage` - 牙龈退缩或出血\n\n### 上下文与排除信号\n- `mouth_opening_trigger` - 张口触发原因（yawn_normal / post_feeding / threat_display / examination / unknown）\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期口腔黏膜可能轻微异常）\n- `is_post_feeding_within_24h` - 是否进食后 24h 内（进食后可能短暂口腔充血）\n- `is_during_breeding_season` - 是否繁殖期（雄性争斗可致口腔外伤）\n- `ambient_temperature_appropriate` - 温度是否适宜（低温应激是口炎主因之一）\n- `humidity_appropriate` - 湿度是否适宜（过低湿度损伤黏膜）\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 口腔完整露出 / 光照充足 / 无唾液反光干扰）\n\n## 综合判定\n\n- `oral_cavity_healthy` - 口腔健康（黏膜粉红正常，无脓点/溃疡/腐肉）\n- `stomatitis_risk_low` - **口炎风险低**（黏膜轻度红肿 ≤ 5 分，无脓点/溃疡/腐肉，可能为蜕皮或进食后短暂充血）\n- `stomatitis_risk_moderate` - **口炎风险中**（黏膜红肿 6-8 分 OR 少量脓点 1-3 个 OR 浅表溃疡 OR 干酪样斑块初现）\n- `stomatitis_risk_high` - **口炎风险高**（黏膜暗红/苍白/发绀 + 多量脓点 ≥ 4 个 + 深溃疡 + 腐肉/坏死组织 + 牙龈出血）\n- `oral_injury_non_infectious` - 非感染性口腔外伤（繁殖期争斗/猎物刮伤，局部创伤而非弥漫性炎症）\n- `oral_context_shedding_artifact` - 蜕皮期口腔黏膜轻微假象\n- `oral_signal_unreliable` - 信号不可靠（口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 分辨率 < 1080p / 进食中帧未排除）\n\n## 4 级提醒策略递进\n\n- Level 1（oral_cavity_healthy / oral_context_shedding_artifact）：仅入库\n- Level 2（stomatitis_risk_low / oral_injury_non_infectious）：温和提示，建议**加强观察 3-5 天 + 检查环境温湿度是否在物种适宜范围 + 确认饲养箱清洁度**\n- Level 3（stomatitis_risk_moderate）：紧急提示，建议**检查并调整温湿度至物种适宜范围 + 保持饲养箱清洁干燥 + 隔离至单独观察箱 + 观察食欲精神 + 尽快联系爬宠兽医（口炎中期可快速恶化为败血症）**\n- Level 4（stomatitis_risk_high）：最高紧急提示，建议**立即隔离 + 保持环境温湿度稳定 + 立即联系爬宠兽医（腐肉/坏死组织 + 深溃疡提示口炎已进入急症阶段，败血症风险极高，可短期致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量\n- **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方\n- **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等**\n- 物种特异性：**毒蛇**口腔结构与无毒蛇不同（毒牙/毒腺开口），**蟒蚺**口腔较大易于观察 → 必须按物种口腔解剖基线判定\n- 必须考虑生理性上下文：**蜕皮期口腔黏膜可能轻微异常 / 进食后短暂充血 / 繁殖期争斗外伤 / 低温应激** → 不可直接告警\n- 口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`\n- 必须告知用户：AI 视觉识别仅供参考，**口炎确诊与治疗需立即联系专业爬宠兽医（建议口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延）**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`mucosa_color_classification`、`mucosa_redness_score_0_10`、`pus_points_detected`、`pus_point_count`、`caseous_plaques_detected`、`ulcer_detected`、`ulcer_depth_assessment`、`necrotic_tissue_detected`、`necrotic_tissue_area_estimated`、`gum_recession_or_hemorrhage`、`composite_scene`、`alert_level`、`recommended_actions`（检查温湿度 / 隔离观察 / 保持清洁 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）、`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\nAnalyzes clear snake mouth images or videos to identify visual signs such as mucosa color changes, pus points, ulcers, necrotic tissue, and a low, moderate, or high stomatitis risk level.\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, veterinary staff, and developers can use this skill to analyze snake mouth media, produce structured oral-health risk reports, and retrieve prior cloud-hosted reports. The output is visual risk assessment guidance, not a veterinary diagnosis or treatment plan.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Snake mouth images, videos, and report history may be processed by the configured lifeemergence.com cloud service.\n\nMitigation: Use only media appropriate for that cloud service, avoid sensitive files unless the provider is trusted, and confirm retention and deletion practices before production use.\n\nRisk: The skill can create or reuse a local account identity and store remote authentication tokens in the workspace.\n\nMitigation: Test in a separate workspace or account, review token storage before installation, and request explicit controls from the publisher for production deployments.\n\nRisk: The skill provides visual health-risk assessment for a veterinary condition and could be misused as diagnosis or treatment advice.\n\nMitigation: Keep outputs limited to visual findings and non-prescriptive guidance, and direct users to a qualified reptile veterinarian for diagnosis, treatment, medication, or procedures.\n\n## Reference(s):\n\n- [API documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown or JSON report text with optional file output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include visual findings, risk level, non-prescriptive recommended actions, disclaimers, and report links.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; artifact frontmatter reports 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, 46273 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (2854b), SKILL.md (19761b), 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.10:SKILL.md\n\n---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物**：白色/黄色点状隆起 + 数量 + 位置（前/后牙龈/上腭/内唇/咽部入口） + **干酪样斑块**（灰白/黄色膜状物，口炎典型征兆） + 异常黏液/泡沫 + 分泌物颜色（清/白脓/黄脓/血染）；③ **溃疡与腐肉**：黏膜表面不规则凹陷 + 数量 + 深度（浅表/中度/深及深层组织） + **腐肉/坏死组织**（暗色/黑褐色不规则组织，口炎晚期征兆） + 坏死面积估算 + 牙龈退缩或出血；④ **物种特异性 + 上下文排除**：毒蛇（毒牙/毒腺开口） vs 无毒蛇 vs 蟒蚺口腔结构差异；蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激（口炎主因之一）→ 必须排除非感染性混淆。按 7 类综合场景判定（oral_cavity_healthy / **stomatitis_risk_low** / **stomatitis_risk_moderate** / **stomatitis_risk_high** / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ **🚨 警告口炎中期可快速恶化为败血症** → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段，败血症风险极高可短期致死）。**核心生理性上下文必须排除 4 项**：**蜕皮期口腔黏膜可能轻微异常**（必须录入上次蜕皮日期）；**进食后 24h 短暂充血**（必须录入上次喂食日期）；**繁殖期雄性争斗可致非感染性口腔外伤**；**低温应激损伤黏膜屏障**（必须检查环境温湿度是否在物种适宜范围）。物种解剖硬约束：**毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝**等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的病变识别结果；**🚨 严禁输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量**；**🚨 严禁输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方**；**🚨 严禁输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作建议**；严禁伪造夸大红肿评分/脓点数量/溃疡深度；严禁越权代用户启停加热灯/UVB/湿度控制（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机在蛇**张口瞬间抓拍单帧或多帧**（≥ 3 帧取最佳帧，必须排除进食中帧），识别 7 类综合场景（oral_cavity_healthy / stomatitis_risk_low / stomatitis_risk_moderate / stomatitis_risk_high / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable）→ **四组指标**：口腔黏膜颜色 4 项（**颜色分类** + **红肿评分 0-10** + 斑块状红肿 + 苍白区域）+ 脓点与分泌物 6 项（**脓点检测** + 数量 + 位置 + **干酪样斑块** + 异常黏液 + 分泌物颜色）+ 溃疡与腐肉 6 项（**溃疡检测** + 数量 + 深度 + **腐肉/坏死组织** + 坏死面积 + 牙龈出血）+ 排除上下文 7 项（张口触发原因 + 蜕皮期 + 进食 24h 内 + 繁殖期 + 温度适宜 + 湿度适宜 + 图像质量）→ 4 档提醒级别（info / important / urgent / critical）→ **4 级提醒策略递进**（入库 → 加强观察+检查温湿度 → 调整温湿度+隔离+尽快联系兽医 → 🚨 立即隔离+紧急联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限——口炎急症·败血症风险**）→ **口炎评估报告**（按 enclosure_id + individual_id + 抓拍时间戳输出，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 蛇头精准定位 |\n| 2 | 张口瞬间自动抓拍（口角开合 + 上下颌分离阈值） |\n| 3 | 口腔分割（黏膜 vs 牙齿 vs 舌头） |\n| 4 | 黏膜颜色 HSV 量化 |\n| 5 | 脓点形态学检测（白色/黄色点状隆起） |\n| 6 | 干酪样斑块识别 |\n| 7 | 溃疡轮廓提取与深度估计 |\n| 8 | 腐肉/坏死组织识别 |\n| 9 | 牙龈出血检测 |\n| 10 | 物种识别（毒蛇/无毒蛇/蟒蚺） |\n| 11 | 生理性上下文识别（蜕皮 / 进食 / 繁殖 / 低温应激） |\n| 12 | 图像质量门控（完整露出 / 光照 / 反光 / 进食中帧 → unreliable） |\n| 13 | 用户 APP 紧急推送 |\n| 14 | 4 级提醒递进 |\n| 15 | 单日提醒上限（**Level 4 不设上限**） |\n| 16 | 口炎评估报告（按 enclosure_id + individual_id 输出） |\n| 17 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供蛇张口瞬间口腔内部高清图像/视频 URL 或文件需要分析时，默认触发本技能进行口炎识别 |\n| 🔎 明确分析意图 | 当用户明确提及蛇口炎、蛇嘴溃烂、蛇打哈欠口腔异常、蛇口腔脓点、蛇腐肉、蛇黑下巴、蛇 mouth rot、传染性口炎等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看蛇类口炎历史报告、口炎评估清单、查询历史口腔病变记录、显示所有蛇口炎报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_snake_stomatitis_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_snake_stomatitis_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_snake_stomatitis_detection_analysis.py`](scripts/smyx_snake_stomatitis_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**（黏膜颜色渐变与微小脓点需高清）；帧率 ≥ 25 FPS；**必须在张口瞬间抓拍**；**必须排除进食中帧** |\n| 🔎 使用提醒 | **核心采样**：≥ 3 帧清晰口腔图像取最佳帧 |\n| 🔎 使用提醒 | **核心评估三要素联合**：黏膜颜色（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度） + 脓点/干酪样斑块 + 溃疡/腐肉 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），腐肉/坏死组织 + 深溃疡 + 多量脓点直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 口腔解剖基线**判定（毒蛇毒牙/毒腺开口 / 王蛇平颌结构 / 蟒蚺热感应窝），**严禁通用阈值盲判** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期口腔黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激**），避免误报 |\n| 🔎 使用提醒 | **必须**在口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p 时返回 `oral_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口炎中期可快速恶化为败血症） |\n| 📜 报告输出 | **必须**：口炎评估报告**按 enclosure_id + individual_id + 抓拍时间戳输出**，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史口炎评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-snake-stomatitis-detection-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787528549450\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_SNAKE_STOMATITIS_DETECTION_ANALYSIS` - 蛇类口腔腐肉识别（口炎）\n\n## 输入约束\n\n- 摄像头：蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**口腔黏膜颜色渐变、脓点、微小溃疡均需高清**）；帧率 ≥ 25 FPS（张口瞬间短暂，需高帧率抓拍）\n- 拍摄角度：**正对蛇头部口腔**（侧面或斜角无法完整观察口腔内壁），必须在蛇**张口瞬间**抓拍（打哈欠 / 进食后 / 口腔检查时）\n- 光照：充足且均匀（**口腔内部较暗，需补光或环形灯**；避免反光过强误判为脓点）\n- **核心采样窗口**：蛇张口时自动抓拍单帧或多帧（需 ≥ 3 帧清晰口腔图像取最佳帧）\n- **必须排除进食中帧**（吞食猎物时口腔被猎物遮挡，非口腔检查窗口）\n- 多箱场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（球蟒 / 玉米蛇 / 王蛇 / 红尾蚺 / 缅蟒 / 眼镜蛇 / 响尾蛇等）、上次脱皮日期、上次喂食日期、环境温度、湿度\n\n## 关键观测信号\n\n### 口腔黏膜颜色\n- `mucosa_color_classification` - **黏膜颜色分类**（核心指标：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish）\n- `mucosa_redness_score_0_10` - **黏膜红肿评分 0-10**（核心指标，≤ 2 正常 / 3-5 轻度 / 6-8 中度 / ≥ 9 重度）\n- `mucosa_color_patchy` - 是否斑块状红肿（非均匀，局部炎症特征）\n- `mucosa_pale_areas` - 是否有苍白区域（贫血或坏死前兆）\n\n### 脓点与分泌物\n- `pus_points_detected` - **是否检测到脓点**（核心指标，白色或黄色点状隆起）\n- `pus_point_count` - 脓点数量\n- `pus_point_location` - 脓点位置（anterior_gum / posterior_gum / palate / inner_lip / throat_entrance）\n- `caseous_plaques_detected` - **是否检测到干酪样斑块**（核心指标，灰白/黄色膜状物，口炎典型征兆）\n- `mucus_or_foam_detected` - 口腔是否有异常黏液或泡沫（非进食时）\n- `discharge_color` - 分泌物颜色（clear / white_purulent / yellow_purulent / blood_tinged）\n\n### 溃疡与腐肉\n- `ulcer_detected` - **是否检测到溃疡**（核心指标，黏膜表面不规则凹陷）\n- `ulcer_count` - 溃疡数量\n- `ulcer_depth_assessment` - 溃疡深度评估（superficial / moderate / deep_to_underlying_tissue）\n- `necrotic_tissue_detected` - **是否检测到腐肉/坏死组织**（核心指标，暗色/黑褐色不规则组织，口炎晚期征兆）\n- `necrotic_tissue_area_estimated` - 坏死组织面积估算（占口腔可视面积百分比）\n- `gum_recession_or_hemorrhage` - 牙龈退缩或出血\n\n### 上下文与排除信号\n- `mouth_opening_trigger` - 张口触发原因（yawn_normal / post_feeding / threat_display / examination / unknown）\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期口腔黏膜可能轻微异常）\n- `is_post_feeding_within_24h` - 是否进食后 24h 内（进食后可能短暂口腔充血）\n- `is_during_breeding_season` - 是否繁殖期（雄性争斗可致口腔外伤）\n- `ambient_temperature_appropriate` - 温度是否适宜（低温应激是口炎主因之一）\n- `humidity_appropriate` - 湿度是否适宜（过低湿度损伤黏膜）\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 口腔完整露出 / 光照充足 / 无唾液反光干扰）\n\n## 综合判定\n\n- `oral_cavity_healthy` - 口腔健康（黏膜粉红正常，无脓点/溃疡/腐肉）\n- `stomatitis_risk_low` - **口炎风险低**（黏膜轻度红肿 ≤ 5 分，无脓点/溃疡/腐肉，可能为蜕皮或进食后短暂充血）\n- `stomatitis_risk_moderate` - **口炎风险中**（黏膜红肿 6-8 分 OR 少量脓点 1-3 个 OR 浅表溃疡 OR 干酪样斑块初现）\n- `stomatitis_risk_high` - **口炎风险高**（黏膜暗红/苍白/发绀 + 多量脓点 ≥ 4 个 + 深溃疡 + 腐肉/坏死组织 + 牙龈出血）\n- `oral_injury_non_infectious` - 非感染性口腔外伤（繁殖期争斗/猎物刮伤，局部创伤而非弥漫性炎症）\n- `oral_context_shedding_artifact` - 蜕皮期口腔黏膜轻微假象\n- `oral_signal_unreliable` - 信号不可靠（口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 分辨率 < 1080p / 进食中帧未排除）\n\n## 4 级提醒策略递进\n\n- Level 1（oral_cavity_healthy / oral_context_shedding_artifact）：仅入库\n- Level 2（stomatitis_risk_low / oral_injury_non_infectious）：温和提示，建议**加强观察 3-5 天 + 检查环境温湿度是否在物种适宜范围 + 确认饲养箱清洁度**\n- Level 3（stomatitis_risk_moderate）：紧急提示，建议**检查并调整温湿度至物种适宜范围 + 保持饲养箱清洁干燥 + 隔离至单独观察箱 + 观察食欲精神 + 尽快联系爬宠兽医（口炎中期可快速恶化为败血症）**\n- Level 4（stomatitis_risk_high）：最高紧急提示，建议**立即隔离 + 保持环境温湿度稳定 + 立即联系爬宠兽医（腐肉/坏死组织 + 深溃疡提示口炎已进入急症阶段，败血症风险极高，可短期致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量\n- **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方\n- **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等**\n- 物种特异性：**毒蛇**口腔结构与无毒蛇不同（毒牙/毒腺开口），**蟒蚺**口腔较大易于观察 → 必须按物种口腔解剖基线判定\n- 必须考虑生理性上下文：**蜕皮期口腔黏膜可能轻微异常 / 进食后短暂充血 / 繁殖期争斗外伤 / 低温应激** → 不可直接告警\n- 口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`\n- 必须告知用户：AI 视觉识别仅供参考，**口炎确诊与治疗需立即联系专业爬宠兽医（建议口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延）**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`mucosa_color_classification`、`mucosa_redness_score_0_10`、`pus_points_detected`、`pus_point_count`、`caseous_plaques_detected`、`ulcer_detected`、`ulcer_depth_assessment`、`necrotic_tissue_detected`、`necrotic_tissue_area_estimated`、`gum_recession_or_hemorrhage`、`composite_scene`、`alert_level`、`recommended_actions`（检查温湿度 / 隔离观察 / 保持清洁 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）、`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 snake mouth images or videos through a remote service to report visual signs associated with stomatitis risk, including mucosa color, pus points, ulcers, necrotic tissue, image quality, and a low, moderate, or high risk level.\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, reptile keepers, breeders, and veterinary staff use this skill to submit clear snake mouth images or videos for visual stomatitis risk screening and report generation. It can also retrieve prior cloud analysis reports associated with the user's identity.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Media is sent to a remote analysis service.\n\nMitigation: Install only when remote processing of animal health media is acceptable, and configure data retention and sharing controls before use.\n\nRisk: Security evidence flags silent identity creation or reuse and shared plaintext token storage.\n\nMitigation: Use trusted, isolated environments, restrict local database access, and rotate or remove stored tokens when access should end.\n\nRisk: Security evidence flags active HTTP development endpoints and non-HTTPS defaults.\n\nMitigation: Configure HTTPS production endpoints and verify outbound destinations before running analysis or history queries.\n\nRisk: Visual screening output may be mistaken for veterinary diagnosis or treatment advice.\n\nMitigation: Treat results as visual risk signals only; a qualified reptile veterinarian should confirm diagnosis and treatment.\n\nRisk: Security evidence notes payment-skill installation prompts.\n\nMitigation: Confirm costs and trust in any payment-related skill before installing or proceeding with paid analysis.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis)\n- [Snake stomatitis API documentation](artifact/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown or JSON analysis reports with status text, recommendations, and optional report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs may include structured oral-health findings, alert level, recommended non-prescriptive actions, disclaimers, and historical report tables.]\n\n## Skill Version(s):\n\n1.0.10 (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.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, 46195 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (2626b), SKILL.md (19761b), 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 (159b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物**：白色/黄色点状隆起 + 数量 + 位置（前/后牙龈/上腭/内唇/咽部入口） + **干酪样斑块**（灰白/黄色膜状物，口炎典型征兆） + 异常黏液/泡沫 + 分泌物颜色（清/白脓/黄脓/血染）；③ **溃疡与腐肉**：黏膜表面不规则凹陷 + 数量 + 深度（浅表/中度/深及深层组织） + **腐肉/坏死组织**（暗色/黑褐色不规则组织，口炎晚期征兆） + 坏死面积估算 + 牙龈退缩或出血；④ **物种特异性 + 上下文排除**：毒蛇（毒牙/毒腺开口） vs 无毒蛇 vs 蟒蚺口腔结构差异；蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激（口炎主因之一）→ 必须排除非感染性混淆。按 7 类综合场景判定（oral_cavity_healthy / **stomatitis_risk_low** / **stomatitis_risk_moderate** / **stomatitis_risk_high** / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ **🚨 警告口炎中期可快速恶化为败血症** → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段，败血症风险极高可短期致死）。**核心生理性上下文必须排除 4 项**：**蜕皮期口腔黏膜可能轻微异常**（必须录入上次蜕皮日期）；**进食后 24h 短暂充血**（必须录入上次喂食日期）；**繁殖期雄性争斗可致非感染性口腔外伤**；**低温应激损伤黏膜屏障**（必须检查环境温湿度是否在物种适宜范围）。物种解剖硬约束：**毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝**等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的病变识别结果；**🚨 严禁输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量**；**🚨 严禁输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方**；**🚨 严禁输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作建议**；严禁伪造夸大红肿评分/脓点数量/溃疡深度；严禁越权代用户启停加热灯/UVB/湿度控制（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机在蛇**张口瞬间抓拍单帧或多帧**（≥ 3 帧取最佳帧，必须排除进食中帧），识别 7 类综合场景（oral_cavity_healthy / stomatitis_risk_low / stomatitis_risk_moderate / stomatitis_risk_high / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable）→ **四组指标**：口腔黏膜颜色 4 项（**颜色分类** + **红肿评分 0-10** + 斑块状红肿 + 苍白区域）+ 脓点与分泌物 6 项（**脓点检测** + 数量 + 位置 + **干酪样斑块** + 异常黏液 + 分泌物颜色）+ 溃疡与腐肉 6 项（**溃疡检测** + 数量 + 深度 + **腐肉/坏死组织** + 坏死面积 + 牙龈出血）+ 排除上下文 7 项（张口触发原因 + 蜕皮期 + 进食 24h 内 + 繁殖期 + 温度适宜 + 湿度适宜 + 图像质量）→ 4 档提醒级别（info / important / urgent / critical）→ **4 级提醒策略递进**（入库 → 加强观察+检查温湿度 → 调整温湿度+隔离+尽快联系兽医 → 🚨 立即隔离+紧急联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限——口炎急症·败血症风险**）→ **口炎评估报告**（按 enclosure_id + individual_id + 抓拍时间戳输出，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 蛇头精准定位 |\n| 2 | 张口瞬间自动抓拍（口角开合 + 上下颌分离阈值） |\n| 3 | 口腔分割（黏膜 vs 牙齿 vs 舌头） |\n| 4 | 黏膜颜色 HSV 量化 |\n| 5 | 脓点形态学检测（白色/黄色点状隆起） |\n| 6 | 干酪样斑块识别 |\n| 7 | 溃疡轮廓提取与深度估计 |\n| 8 | 腐肉/坏死组织识别 |\n| 9 | 牙龈出血检测 |\n| 10 | 物种识别（毒蛇/无毒蛇/蟒蚺） |\n| 11 | 生理性上下文识别（蜕皮 / 进食 / 繁殖 / 低温应激） |\n| 12 | 图像质量门控（完整露出 / 光照 / 反光 / 进食中帧 → unreliable） |\n| 13 | 用户 APP 紧急推送 |\n| 14 | 4 级提醒递进 |\n| 15 | 单日提醒上限（**Level 4 不设上限**） |\n| 16 | 口炎评估报告（按 enclosure_id + individual_id 输出） |\n| 17 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供蛇张口瞬间口腔内部高清图像/视频 URL 或文件需要分析时，默认触发本技能进行口炎识别 |\n| 🔎 明确分析意图 | 当用户明确提及蛇口炎、蛇嘴溃烂、蛇打哈欠口腔异常、蛇口腔脓点、蛇腐肉、蛇黑下巴、蛇 mouth rot、传染性口炎等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看蛇类口炎历史报告、口炎评估清单、查询历史口腔病变记录、显示所有蛇口炎报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_snake_stomatitis_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_snake_stomatitis_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_snake_stomatitis_detection_analysis.py`](scripts/smyx_snake_stomatitis_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**（黏膜颜色渐变与微小脓点需高清）；帧率 ≥ 25 FPS；**必须在张口瞬间抓拍**；**必须排除进食中帧** |\n| 🔎 使用提醒 | **核心采样**：≥ 3 帧清晰口腔图像取最佳帧 |\n| 🔎 使用提醒 | **核心评估三要素联合**：黏膜颜色（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度） + 脓点/干酪样斑块 + 溃疡/腐肉 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），腐肉/坏死组织 + 深溃疡 + 多量脓点直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 口腔解剖基线**判定（毒蛇毒牙/毒腺开口 / 王蛇平颌结构 / 蟒蚺热感应窝），**严禁通用阈值盲判** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期口腔黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激**），避免误报 |\n| 🔎 使用提醒 | **必须**在口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p 时返回 `oral_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口炎中期可快速恶化为败血症） |\n| 📜 报告输出 | **必须**：口炎评估报告**按 enclosure_id + individual_id + 抓拍时间戳输出**，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史口炎评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-snake-stomatitis-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787464647814\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_SNAKE_STOMATITIS_DETECTION_ANALYSIS` - 蛇类口腔腐肉识别（口炎）\n\n## 输入约束\n\n- 摄像头：蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**口腔黏膜颜色渐变、脓点、微小溃疡均需高清**）；帧率 ≥ 25 FPS（张口瞬间短暂，需高帧率抓拍）\n- 拍摄角度：**正对蛇头部口腔**（侧面或斜角无法完整观察口腔内壁），必须在蛇**张口瞬间**抓拍（打哈欠 / 进食后 / 口腔检查时）\n- 光照：充足且均匀（**口腔内部较暗，需补光或环形灯**；避免反光过强误判为脓点）\n- **核心采样窗口**：蛇张口时自动抓拍单帧或多帧（需 ≥ 3 帧清晰口腔图像取最佳帧）\n- **必须排除进食中帧**（吞食猎物时口腔被猎物遮挡，非口腔检查窗口）\n- 多箱场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（球蟒 / 玉米蛇 / 王蛇 / 红尾蚺 / 缅蟒 / 眼镜蛇 / 响尾蛇等）、上次脱皮日期、上次喂食日期、环境温度、湿度\n\n## 关键观测信号\n\n### 口腔黏膜颜色\n- `mucosa_color_classification` - **黏膜颜色分类**（核心指标：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish）\n- `mucosa_redness_score_0_10` - **黏膜红肿评分 0-10**（核心指标，≤ 2 正常 / 3-5 轻度 / 6-8 中度 / ≥ 9 重度）\n- `mucosa_color_patchy` - 是否斑块状红肿（非均匀，局部炎症特征）\n- `mucosa_pale_areas` - 是否有苍白区域（贫血或坏死前兆）\n\n### 脓点与分泌物\n- `pus_points_detected` - **是否检测到脓点**（核心指标，白色或黄色点状隆起）\n- `pus_point_count` - 脓点数量\n- `pus_point_location` - 脓点位置（anterior_gum / posterior_gum / palate / inner_lip / throat_entrance）\n- `caseous_plaques_detected` - **是否检测到干酪样斑块**（核心指标，灰白/黄色膜状物，口炎典型征兆）\n- `mucus_or_foam_detected` - 口腔是否有异常黏液或泡沫（非进食时）\n- `discharge_color` - 分泌物颜色（clear / white_purulent / yellow_purulent / blood_tinged）\n\n### 溃疡与腐肉\n- `ulcer_detected` - **是否检测到溃疡**（核心指标，黏膜表面不规则凹陷）\n- `ulcer_count` - 溃疡数量\n- `ulcer_depth_assessment` - 溃疡深度评估（superficial / moderate / deep_to_underlying_tissue）\n- `necrotic_tissue_detected` - **是否检测到腐肉/坏死组织**（核心指标，暗色/黑褐色不规则组织，口炎晚期征兆）\n- `necrotic_tissue_area_estimated` - 坏死组织面积估算（占口腔可视面积百分比）\n- `gum_recession_or_hemorrhage` - 牙龈退缩或出血\n\n### 上下文与排除信号\n- `mouth_opening_trigger` - 张口触发原因（yawn_normal / post_feeding / threat_display / examination / unknown）\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期口腔黏膜可能轻微异常）\n- `is_post_feeding_within_24h` - 是否进食后 24h 内（进食后可能短暂口腔充血）\n- `is_during_breeding_season` - 是否繁殖期（雄性争斗可致口腔外伤）\n- `ambient_temperature_appropriate` - 温度是否适宜（低温应激是口炎主因之一）\n- `humidity_appropriate` - 湿度是否适宜（过低湿度损伤黏膜）\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 口腔完整露出 / 光照充足 / 无唾液反光干扰）\n\n## 综合判定\n\n- `oral_cavity_healthy` - 口腔健康（黏膜粉红正常，无脓点/溃疡/腐肉）\n- `stomatitis_risk_low` - **口炎风险低**（黏膜轻度红肿 ≤ 5 分，无脓点/溃疡/腐肉，可能为蜕皮或进食后短暂充血）\n- `stomatitis_risk_moderate` - **口炎风险中**（黏膜红肿 6-8 分 OR 少量脓点 1-3 个 OR 浅表溃疡 OR 干酪样斑块初现）\n- `stomatitis_risk_high` - **口炎风险高**（黏膜暗红/苍白/发绀 + 多量脓点 ≥ 4 个 + 深溃疡 + 腐肉/坏死组织 + 牙龈出血）\n- `oral_injury_non_infectious` - 非感染性口腔外伤（繁殖期争斗/猎物刮伤，局部创伤而非弥漫性炎症）\n- `oral_context_shedding_artifact` - 蜕皮期口腔黏膜轻微假象\n- `oral_signal_unreliable` - 信号不可靠（口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 分辨率 < 1080p / 进食中帧未排除）\n\n## 4 级提醒策略递进\n\n- Level 1（oral_cavity_healthy / oral_context_shedding_artifact）：仅入库\n- Level 2（stomatitis_risk_low / oral_injury_non_infectious）：温和提示，建议**加强观察 3-5 天 + 检查环境温湿度是否在物种适宜范围 + 确认饲养箱清洁度**\n- Level 3（stomatitis_risk_moderate）：紧急提示，建议**检查并调整温湿度至物种适宜范围 + 保持饲养箱清洁干燥 + 隔离至单独观察箱 + 观察食欲精神 + 尽快联系爬宠兽医（口炎中期可快速恶化为败血症）**\n- Level 4（stomatitis_risk_high）：最高紧急提示，建议**立即隔离 + 保持环境温湿度稳定 + 立即联系爬宠兽医（腐肉/坏死组织 + 深溃疡提示口炎已进入急症阶段，败血症风险极高，可短期致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量\n- **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方\n- **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等**\n- 物种特异性：**毒蛇**口腔结构与无毒蛇不同（毒牙/毒腺开口），**蟒蚺**口腔较大易于观察 → 必须按物种口腔解剖基线判定\n- 必须考虑生理性上下文：**蜕皮期口腔黏膜可能轻微异常 / 进食后短暂充血 / 繁殖期争斗外伤 / 低温应激** → 不可直接告警\n- 口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`\n- 必须告知用户：AI 视觉识别仅供参考，**口炎确诊与治疗需立即联系专业爬宠兽医（建议口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延）**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`mucosa_color_classification`、`mucosa_redness_score_0_10`、`pus_points_detected`、`pus_point_count`、`caseous_plaques_detected`、`ulcer_detected`、`ulcer_depth_assessment`、`necrotic_tissue_detected`、`necrotic_tissue_area_estimated`、`gum_recession_or_hemorrhage`、`composite_scene`、`alert_level`、`recommended_actions`（检查温湿度 / 隔离观察 / 保持清洁 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）、`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\nAnalyzes snake mouth images or videos for visual signs associated with stomatitis risk, including mucosa color changes, pus points, ulcers, necrotic tissue, image quality, and relevant husbandry context.\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, reptile caretakers, breeding facilities, and reptile veterinary workflows can use this skill to generate structured visual risk reports from snake open-mouth media. The skill is intended to support observation and escalation decisions, not to provide a veterinary diagnosis or treatment prescription.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Snake images, videos, and history queries are sent to the configured LifeEmergence backend.\n\nMitigation: Use only media and report queries appropriate for remote processing, and confirm retention and handling expectations before using sensitive material.\n\nRisk: The skill creates or reuses a local identity and stores backend tokens in a workspace SQLite database.\n\nMitigation: Run the skill only in a trusted workspace, restrict access to the workspace data directory, and remove local data when the identity or tokens should no longer persist.\n\nRisk: Cloud history queries can return reports associated with the local identity.\n\nMitigation: Verify that the active workspace identity is appropriate before listing or sharing historical report links.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [API Interface Documentation](references/api_doc.md)\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, guidance]\n\n**Output Format:** [Markdown or JSON structured analysis report with risk level, observed visual findings, recommendations, and report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save output to a caller-specified file path; history listings are formatted from cloud API results when requested.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter says 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 46331 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (2906b), SKILL.md (19761b), 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 (159b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物**：白色/黄色点状隆起 + 数量 + 位置（前/后牙龈/上腭/内唇/咽部入口） + **干酪样斑块**（灰白/黄色膜状物，口炎典型征兆） + 异常黏液/泡沫 + 分泌物颜色（清/白脓/黄脓/血染）；③ **溃疡与腐肉**：黏膜表面不规则凹陷 + 数量 + 深度（浅表/中度/深及深层组织） + **腐肉/坏死组织**（暗色/黑褐色不规则组织，口炎晚期征兆） + 坏死面积估算 + 牙龈退缩或出血；④ **物种特异性 + 上下文排除**：毒蛇（毒牙/毒腺开口） vs 无毒蛇 vs 蟒蚺口腔结构差异；蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激（口炎主因之一）→ 必须排除非感染性混淆。按 7 类综合场景判定（oral_cavity_healthy / **stomatitis_risk_low** / **stomatitis_risk_moderate** / **stomatitis_risk_high** / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ **🚨 警告口炎中期可快速恶化为败血症** → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段，败血症风险极高可短期致死）。**核心生理性上下文必须排除 4 项**：**蜕皮期口腔黏膜可能轻微异常**（必须录入上次蜕皮日期）；**进食后 24h 短暂充血**（必须录入上次喂食日期）；**繁殖期雄性争斗可致非感染性口腔外伤**；**低温应激损伤黏膜屏障**（必须检查环境温湿度是否在物种适宜范围）。物种解剖硬约束：**毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝**等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的病变识别结果；**🚨 严禁输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量**；**🚨 严禁输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方**；**🚨 严禁输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作建议**；严禁伪造夸大红肿评分/脓点数量/溃疡深度；严禁越权代用户启停加热灯/UVB/湿度控制（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机在蛇**张口瞬间抓拍单帧或多帧**（≥ 3 帧取最佳帧，必须排除进食中帧），识别 7 类综合场景（oral_cavity_healthy / stomatitis_risk_low / stomatitis_risk_moderate / stomatitis_risk_high / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable）→ **四组指标**：口腔黏膜颜色 4 项（**颜色分类** + **红肿评分 0-10** + 斑块状红肿 + 苍白区域）+ 脓点与分泌物 6 项（**脓点检测** + 数量 + 位置 + **干酪样斑块** + 异常黏液 + 分泌物颜色）+ 溃疡与腐肉 6 项（**溃疡检测** + 数量 + 深度 + **腐肉/坏死组织** + 坏死面积 + 牙龈出血）+ 排除上下文 7 项（张口触发原因 + 蜕皮期 + 进食 24h 内 + 繁殖期 + 温度适宜 + 湿度适宜 + 图像质量）→ 4 档提醒级别（info / important / urgent / critical）→ **4 级提醒策略递进**（入库 → 加强观察+检查温湿度 → 调整温湿度+隔离+尽快联系兽医 → 🚨 立即隔离+紧急联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限——口炎急症·败血症风险**）→ **口炎评估报告**（按 enclosure_id + individual_id + 抓拍时间戳输出，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 蛇头精准定位 |\n| 2 | 张口瞬间自动抓拍（口角开合 + 上下颌分离阈值） |\n| 3 | 口腔分割（黏膜 vs 牙齿 vs 舌头） |\n| 4 | 黏膜颜色 HSV 量化 |\n| 5 | 脓点形态学检测（白色/黄色点状隆起） |\n| 6 | 干酪样斑块识别 |\n| 7 | 溃疡轮廓提取与深度估计 |\n| 8 | 腐肉/坏死组织识别 |\n| 9 | 牙龈出血检测 |\n| 10 | 物种识别（毒蛇/无毒蛇/蟒蚺） |\n| 11 | 生理性上下文识别（蜕皮 / 进食 / 繁殖 / 低温应激） |\n| 12 | 图像质量门控（完整露出 / 光照 / 反光 / 进食中帧 → unreliable） |\n| 13 | 用户 APP 紧急推送 |\n| 14 | 4 级提醒递进 |\n| 15 | 单日提醒上限（**Level 4 不设上限**） |\n| 16 | 口炎评估报告（按 enclosure_id + individual_id 输出） |\n| 17 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供蛇张口瞬间口腔内部高清图像/视频 URL 或文件需要分析时，默认触发本技能进行口炎识别 |\n| 🔎 明确分析意图 | 当用户明确提及蛇口炎、蛇嘴溃烂、蛇打哈欠口腔异常、蛇口腔脓点、蛇腐肉、蛇黑下巴、蛇 mouth rot、传染性口炎等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看蛇类口炎历史报告、口炎评估清单、查询历史口腔病变记录、显示所有蛇口炎报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_snake_stomatitis_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_snake_stomatitis_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_snake_stomatitis_detection_analysis.py`](scripts/smyx_snake_stomatitis_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**（黏膜颜色渐变与微小脓点需高清）；帧率 ≥ 25 FPS；**必须在张口瞬间抓拍**；**必须排除进食中帧** |\n| 🔎 使用提醒 | **核心采样**：≥ 3 帧清晰口腔图像取最佳帧 |\n| 🔎 使用提醒 | **核心评估三要素联合**：黏膜颜色（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度） + 脓点/干酪样斑块 + 溃疡/腐肉 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），腐肉/坏死组织 + 深溃疡 + 多量脓点直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 口腔解剖基线**判定（毒蛇毒牙/毒腺开口 / 王蛇平颌结构 / 蟒蚺热感应窝），**严禁通用阈值盲判** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期口腔黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激**），避免误报 |\n| 🔎 使用提醒 | **必须**在口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p 时返回 `oral_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口炎中期可快速恶化为败血症） |\n| 📜 报告输出 | **必须**：口炎评估报告**按 enclosure_id + individual_id + 抓拍时间戳输出**，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史口炎评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-snake-stomatitis-detection-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786802673202\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_SNAKE_STOMATITIS_DETECTION_ANALYSIS` - 蛇类口腔腐肉识别（口炎）\n\n## 输入约束\n\n- 摄像头：蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**口腔黏膜颜色渐变、脓点、微小溃疡均需高清**）；帧率 ≥ 25 FPS（张口瞬间短暂，需高帧率抓拍）\n- 拍摄角度：**正对蛇头部口腔**（侧面或斜角无法完整观察口腔内壁），必须在蛇**张口瞬间**抓拍（打哈欠 / 进食后 / 口腔检查时）\n- 光照：充足且均匀（**口腔内部较暗，需补光或环形灯**；避免反光过强误判为脓点）\n- **核心采样窗口**：蛇张口时自动抓拍单帧或多帧（需 ≥ 3 帧清晰口腔图像取最佳帧）\n- **必须排除进食中帧**（吞食猎物时口腔被猎物遮挡，非口腔检查窗口）\n- 多箱场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（球蟒 / 玉米蛇 / 王蛇 / 红尾蚺 / 缅蟒 / 眼镜蛇 / 响尾蛇等）、上次脱皮日期、上次喂食日期、环境温度、湿度\n\n## 关键观测信号\n\n### 口腔黏膜颜色\n- `mucosa_color_classification` - **黏膜颜色分类**（核心指标：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish）\n- `mucosa_redness_score_0_10` - **黏膜红肿评分 0-10**（核心指标，≤ 2 正常 / 3-5 轻度 / 6-8 中度 / ≥ 9 重度）\n- `mucosa_color_patchy` - 是否斑块状红肿（非均匀，局部炎症特征）\n- `mucosa_pale_areas` - 是否有苍白区域（贫血或坏死前兆）\n\n### 脓点与分泌物\n- `pus_points_detected` - **是否检测到脓点**（核心指标，白色或黄色点状隆起）\n- `pus_point_count` - 脓点数量\n- `pus_point_location` - 脓点位置（anterior_gum / posterior_gum / palate / inner_lip / throat_entrance）\n- `caseous_plaques_detected` - **是否检测到干酪样斑块**（核心指标，灰白/黄色膜状物，口炎典型征兆）\n- `mucus_or_foam_detected` - 口腔是否有异常黏液或泡沫（非进食时）\n- `discharge_color` - 分泌物颜色（clear / white_purulent / yellow_purulent / blood_tinged）\n\n### 溃疡与腐肉\n- `ulcer_detected` - **是否检测到溃疡**（核心指标，黏膜表面不规则凹陷）\n- `ulcer_count` - 溃疡数量\n- `ulcer_depth_assessment` - 溃疡深度评估（superficial / moderate / deep_to_underlying_tissue）\n- `necrotic_tissue_detected` - **是否检测到腐肉/坏死组织**（核心指标，暗色/黑褐色不规则组织，口炎晚期征兆）\n- `necrotic_tissue_area_estimated` - 坏死组织面积估算（占口腔可视面积百分比）\n- `gum_recession_or_hemorrhage` - 牙龈退缩或出血\n\n### 上下文与排除信号\n- `mouth_opening_trigger` - 张口触发原因（yawn_normal / post_feeding / threat_display / examination / unknown）\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期口腔黏膜可能轻微异常）\n- `is_post_feeding_within_24h` - 是否进食后 24h 内（进食后可能短暂口腔充血）\n- `is_during_breeding_season` - 是否繁殖期（雄性争斗可致口腔外伤）\n- `ambient_temperature_appropriate` - 温度是否适宜（低温应激是口炎主因之一）\n- `humidity_appropriate` - 湿度是否适宜（过低湿度损伤黏膜）\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 口腔完整露出 / 光照充足 / 无唾液反光干扰）\n\n## 综合判定\n\n- `oral_cavity_healthy` - 口腔健康（黏膜粉红正常，无脓点/溃疡/腐肉）\n- `stomatitis_risk_low` - **口炎风险低**（黏膜轻度红肿 ≤ 5 分，无脓点/溃疡/腐肉，可能为蜕皮或进食后短暂充血）\n- `stomatitis_risk_moderate` - **口炎风险中**（黏膜红肿 6-8 分 OR 少量脓点 1-3 个 OR 浅表溃疡 OR 干酪样斑块初现）\n- `stomatitis_risk_high` - **口炎风险高**（黏膜暗红/苍白/发绀 + 多量脓点 ≥ 4 个 + 深溃疡 + 腐肉/坏死组织 + 牙龈出血）\n- `oral_injury_non_infectious` - 非感染性口腔外伤（繁殖期争斗/猎物刮伤，局部创伤而非弥漫性炎症）\n- `oral_context_shedding_artifact` - 蜕皮期口腔黏膜轻微假象\n- `oral_signal_unreliable` - 信号不可靠（口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 分辨率 < 1080p / 进食中帧未排除）\n\n## 4 级提醒策略递进\n\n- Level 1（oral_cavity_healthy / oral_context_shedding_artifact）：仅入库\n- Level 2（stomatitis_risk_low / oral_injury_non_infectious）：温和提示，建议**加强观察 3-5 天 + 检查环境温湿度是否在物种适宜范围 + 确认饲养箱清洁度**\n- Level 3（stomatitis_risk_moderate）：紧急提示，建议**检查并调整温湿度至物种适宜范围 + 保持饲养箱清洁干燥 + 隔离至单独观察箱 + 观察食欲精神 + 尽快联系爬宠兽医（口炎中期可快速恶化为败血症）**\n- Level 4（stomatitis_risk_high）：最高紧急提示，建议**立即隔离 + 保持环境温湿度稳定 + 立即联系爬宠兽医（腐肉/坏死组织 + 深溃疡提示口炎已进入急症阶段，败血症风险极高，可短期致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量\n- **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方\n- **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等**\n- 物种特异性：**毒蛇**口腔结构与无毒蛇不同（毒牙/毒腺开口），**蟒蚺**口腔较大易于观察 → 必须按物种口腔解剖基线判定\n- 必须考虑生理性上下文：**蜕皮期口腔黏膜可能轻微异常 / 进食后短暂充血 / 繁殖期争斗外伤 / 低温应激** → 不可直接告警\n- 口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`\n- 必须告知用户：AI 视觉识别仅供参考，**口炎确诊与治疗需立即联系专业爬宠兽医（建议口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延）**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`mucosa_color_classification`、`mucosa_redness_score_0_10`、`pus_points_detected`、`pus_point_count`、`caseous_plaques_detected`、`ulcer_detected`、`ulcer_depth_assessment`、`necrotic_tissue_detected`、`necrotic_tissue_area_estimated`、`gum_recession_or_hemorrhage`、`composite_scene`、`alert_level`、`recommended_actions`（检查温湿度 / 隔离观察 / 保持清洁 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）、`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: dev\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nThis skill analyzes snake mouth images or videos to identify visible oral mucosa color changes, pus points, ulcers, necrotic tissue, image-quality issues, and context signals, then returns a stomatitis risk assessment with non-prescriptive care guidance.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users such as reptile keepers, breeding operations, and reptile veterinary teams use this skill to screen snake mouth imagery for visible signs associated with mouth rot risk and to produce structured reports. The output is a visual risk assessment and observation aid, not a veterinary diagnosis or treatment plan.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends images, videos, and account-linked metadata to a configured remote service and may create or reuse an internal identity.\n\nMitigation: Use the skill only in deployments where cloud processing, local token storage, and account-linked history lookup are acceptable, and review configuration before installation.\n\nRisk: The skill addresses animal health and may be mistaken for diagnosis or treatment advice.\n\nMitigation: Treat outputs as visual screening observations only; confirm suspected mouth rot or urgent findings with a qualified reptile veterinarian and avoid medication, dosage, or procedure recommendations.\n\nRisk: Poor imagery, glare, incomplete mouth visibility, recent feeding, shedding, breeding injury, or unsuitable environmental context can cause unreliable assessment.\n\nMitigation: Require clear mouth-open imagery with adequate resolution and lighting, capture multiple frames where possible, collect species and husbandry context, and return an unreliable result when quality or context is insufficient.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis)\n- [API Interface 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:** [JSON or Markdown report text, with optional saved file output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include risk levels, visual observation fields, recommended non-prescriptive actions, report links, and history tables returned by the configured service.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter reports 1.0.10)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 31 files, 46124 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (2493b), SKILL.md (19760b), 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 (159b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物**：白色/黄色点状隆起 + 数量 + 位置（前/后牙龈/上腭/内唇/咽部入口） + **干酪样斑块**（灰白/黄色膜状物，口炎典型征兆） + 异常黏液/泡沫 + 分泌物颜色（清/白脓/黄脓/血染）；③ **溃疡与腐肉**：黏膜表面不规则凹陷 + 数量 + 深度（浅表/中度/深及深层组织） + **腐肉/坏死组织**（暗色/黑褐色不规则组织，口炎晚期征兆） + 坏死面积估算 + 牙龈退缩或出血；④ **物种特异性 + 上下文排除**：毒蛇（毒牙/毒腺开口） vs 无毒蛇 vs 蟒蚺口腔结构差异；蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激（口炎主因之一）→ 必须排除非感染性混淆。按 7 类综合场景判定（oral_cavity_healthy / **stomatitis_risk_low** / **stomatitis_risk_moderate** / **stomatitis_risk_high** / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ **🚨 警告口炎中期可快速恶化为败血症** → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段，败血症风险极高可短期致死）。**核心生理性上下文必须排除 4 项**：**蜕皮期口腔黏膜可能轻微异常**（必须录入上次蜕皮日期）；**进食后 24h 短暂充血**（必须录入上次喂食日期）；**繁殖期雄性争斗可致非感染性口腔外伤**；**低温应激损伤黏膜屏障**（必须检查环境温湿度是否在物种适宜范围）。物种解剖硬约束：**毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝**等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的病变识别结果；**🚨 严禁输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量**；**🚨 严禁输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方**；**🚨 严禁输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作建议**；严禁伪造夸大红肿评分/脓点数量/溃疡深度；严禁越权代用户启停加热灯/UVB/湿度控制（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机在蛇**张口瞬间抓拍单帧或多帧**（≥ 3 帧取最佳帧，必须排除进食中帧），识别 7 类综合场景（oral_cavity_healthy / stomatitis_risk_low / stomatitis_risk_moderate / stomatitis_risk_high / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable）→ **四组指标**：口腔黏膜颜色 4 项（**颜色分类** + **红肿评分 0-10** + 斑块状红肿 + 苍白区域）+ 脓点与分泌物 6 项（**脓点检测** + 数量 + 位置 + **干酪样斑块** + 异常黏液 + 分泌物颜色）+ 溃疡与腐肉 6 项（**溃疡检测** + 数量 + 深度 + **腐肉/坏死组织** + 坏死面积 + 牙龈出血）+ 排除上下文 7 项（张口触发原因 + 蜕皮期 + 进食 24h 内 + 繁殖期 + 温度适宜 + 湿度适宜 + 图像质量）→ 4 档提醒级别（info / important / urgent / critical）→ **4 级提醒策略递进**（入库 → 加强观察+检查温湿度 → 调整温湿度+隔离+尽快联系兽医 → 🚨 立即隔离+紧急联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限——口炎急症·败血症风险**）→ **口炎评估报告**（按 enclosure_id + individual_id + 抓拍时间戳输出，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 蛇头精准定位 |\n| 2 | 张口瞬间自动抓拍（口角开合 + 上下颌分离阈值） |\n| 3 | 口腔分割（黏膜 vs 牙齿 vs 舌头） |\n| 4 | 黏膜颜色 HSV 量化 |\n| 5 | 脓点形态学检测（白色/黄色点状隆起） |\n| 6 | 干酪样斑块识别 |\n| 7 | 溃疡轮廓提取与深度估计 |\n| 8 | 腐肉/坏死组织识别 |\n| 9 | 牙龈出血检测 |\n| 10 | 物种识别（毒蛇/无毒蛇/蟒蚺） |\n| 11 | 生理性上下文识别（蜕皮 / 进食 / 繁殖 / 低温应激） |\n| 12 | 图像质量门控（完整露出 / 光照 / 反光 / 进食中帧 → unreliable） |\n| 13 | 用户 APP 紧急推送 |\n| 14 | 4 级提醒递进 |\n| 15 | 单日提醒上限（**Level 4 不设上限**） |\n| 16 | 口炎评估报告（按 enclosure_id + individual_id 输出） |\n| 17 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供蛇张口瞬间口腔内部高清图像/视频 URL 或文件需要分析时，默认触发本技能进行口炎识别 |\n| 🔎 明确分析意图 | 当用户明确提及蛇口炎、蛇嘴溃烂、蛇打哈欠口腔异常、蛇口腔脓点、蛇腐肉、蛇黑下巴、蛇 mouth rot、传染性口炎等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看蛇类口炎历史报告、口炎评估清单、查询历史口腔病变记录、显示所有蛇口炎报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_snake_stomatitis_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_snake_stomatitis_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_snake_stomatitis_detection_analysis.py`](scripts/smyx_snake_stomatitis_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**（黏膜颜色渐变与微小脓点需高清）；帧率 ≥ 25 FPS；**必须在张口瞬间抓拍**；**必须排除进食中帧** |\n| 🔎 使用提醒 | **核心采样**：≥ 3 帧清晰口腔图像取最佳帧 |\n| 🔎 使用提醒 | **核心评估三要素联合**：黏膜颜色（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度） + 脓点/干酪样斑块 + 溃疡/腐肉 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），腐肉/坏死组织 + 深溃疡 + 多量脓点直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 口腔解剖基线**判定（毒蛇毒牙/毒腺开口 / 王蛇平颌结构 / 蟒蚺热感应窝），**严禁通用阈值盲判** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期口腔黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激**），避免误报 |\n| 🔎 使用提醒 | **必须**在口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p 时返回 `oral_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口炎中期可快速恶化为败血症） |\n| 📜 报告输出 | **必须**：口炎评估报告**按 enclosure_id + individual_id + 抓拍时间戳输出**，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史口炎评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-snake-stomatitis-detection-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785782622371\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_SNAKE_STOMATITIS_DETECTION_ANALYSIS` - 蛇类口腔腐肉识别（口炎）\n\n## 输入约束\n\n- 摄像头：蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**口腔黏膜颜色渐变、脓点、微小溃疡均需高清**）；帧率 ≥ 25 FPS（张口瞬间短暂，需高帧率抓拍）\n- 拍摄角度：**正对蛇头部口腔**（侧面或斜角无法完整观察口腔内壁），必须在蛇**张口瞬间**抓拍（打哈欠 / 进食后 / 口腔检查时）\n- 光照：充足且均匀（**口腔内部较暗，需补光或环形灯**；避免反光过强误判为脓点）\n- **核心采样窗口**：蛇张口时自动抓拍单帧或多帧（需 ≥ 3 帧清晰口腔图像取最佳帧）\n- **必须排除进食中帧**（吞食猎物时口腔被猎物遮挡，非口腔检查窗口）\n- 多箱场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（球蟒 / 玉米蛇 / 王蛇 / 红尾蚺 / 缅蟒 / 眼镜蛇 / 响尾蛇等）、上次脱皮日期、上次喂食日期、环境温度、湿度\n\n## 关键观测信号\n\n### 口腔黏膜颜色\n- `mucosa_color_classification` - **黏膜颜色分类**（核心指标：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish）\n- `mucosa_redness_score_0_10` - **黏膜红肿评分 0-10**（核心指标，≤ 2 正常 / 3-5 轻度 / 6-8 中度 / ≥ 9 重度）\n- `mucosa_color_patchy` - 是否斑块状红肿（非均匀，局部炎症特征）\n- `mucosa_pale_areas` - 是否有苍白区域（贫血或坏死前兆）\n\n### 脓点与分泌物\n- `pus_points_detected` - **是否检测到脓点**（核心指标，白色或黄色点状隆起）\n- `pus_point_count` - 脓点数量\n- `pus_point_location` - 脓点位置（anterior_gum / posterior_gum / palate / inner_lip / throat_entrance）\n- `caseous_plaques_detected` - **是否检测到干酪样斑块**（核心指标，灰白/黄色膜状物，口炎典型征兆）\n- `mucus_or_foam_detected` - 口腔是否有异常黏液或泡沫（非进食时）\n- `discharge_color` - 分泌物颜色（clear / white_purulent / yellow_purulent / blood_tinged）\n\n### 溃疡与腐肉\n- `ulcer_detected` - **是否检测到溃疡**（核心指标，黏膜表面不规则凹陷）\n- `ulcer_count` - 溃疡数量\n- `ulcer_depth_assessment` - 溃疡深度评估（superficial / moderate / deep_to_underlying_tissue）\n- `necrotic_tissue_detected` - **是否检测到腐肉/坏死组织**（核心指标，暗色/黑褐色不规则组织，口炎晚期征兆）\n- `necrotic_tissue_area_estimated` - 坏死组织面积估算（占口腔可视面积百分比）\n- `gum_recession_or_hemorrhage` - 牙龈退缩或出血\n\n### 上下文与排除信号\n- `mouth_opening_trigger` - 张口触发原因（yawn_normal / post_feeding / threat_display / examination / unknown）\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期口腔黏膜可能轻微异常）\n- `is_post_feeding_within_24h` - 是否进食后 24h 内（进食后可能短暂口腔充血）\n- `is_during_breeding_season` - 是否繁殖期（雄性争斗可致口腔外伤）\n- `ambient_temperature_appropriate` - 温度是否适宜（低温应激是口炎主因之一）\n- `humidity_appropriate` - 湿度是否适宜（过低湿度损伤黏膜）\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 口腔完整露出 / 光照充足 / 无唾液反光干扰）\n\n## 综合判定\n\n- `oral_cavity_healthy` - 口腔健康（黏膜粉红正常，无脓点/溃疡/腐肉）\n- `stomatitis_risk_low` - **口炎风险低**（黏膜轻度红肿 ≤ 5 分，无脓点/溃疡/腐肉，可能为蜕皮或进食后短暂充血）\n- `stomatitis_risk_moderate` - **口炎风险中**（黏膜红肿 6-8 分 OR 少量脓点 1-3 个 OR 浅表溃疡 OR 干酪样斑块初现）\n- `stomatitis_risk_high` - **口炎风险高**（黏膜暗红/苍白/发绀 + 多量脓点 ≥ 4 个 + 深溃疡 + 腐肉/坏死组织 + 牙龈出血）\n- `oral_injury_non_infectious` - 非感染性口腔外伤（繁殖期争斗/猎物刮伤，局部创伤而非弥漫性炎症）\n- `oral_context_shedding_artifact` - 蜕皮期口腔黏膜轻微假象\n- `oral_signal_unreliable` - 信号不可靠（口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 分辨率 < 1080p / 进食中帧未排除）\n\n## 4 级提醒策略递进\n\n- Level 1（oral_cavity_healthy / oral_context_shedding_artifact）：仅入库\n- Level 2（stomatitis_risk_low / oral_injury_non_infectious）：温和提示，建议**加强观察 3-5 天 + 检查环境温湿度是否在物种适宜范围 + 确认饲养箱清洁度**\n- Level 3（stomatitis_risk_moderate）：紧急提示，建议**检查并调整温湿度至物种适宜范围 + 保持饲养箱清洁干燥 + 隔离至单独观察箱 + 观察食欲精神 + 尽快联系爬宠兽医（口炎中期可快速恶化为败血症）**\n- Level 4（stomatitis_risk_high）：最高紧急提示，建议**立即隔离 + 保持环境温湿度稳定 + 立即联系爬宠兽医（腐肉/坏死组织 + 深溃疡提示口炎已进入急症阶段，败血症风险极高，可短期致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量\n- **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方\n- **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等**\n- 物种特异性：**毒蛇**口腔结构与无毒蛇不同（毒牙/毒腺开口），**蟒蚺**口腔较大易于观察 → 必须按物种口腔解剖基线判定\n- 必须考虑生理性上下文：**蜕皮期口腔黏膜可能轻微异常 / 进食后短暂充血 / 繁殖期争斗外伤 / 低温应激** → 不可直接告警\n- 口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`\n- 必须告知用户：AI 视觉识别仅供参考，**口炎确诊与治疗需立即联系专业爬宠兽医（建议口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延）**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`mucosa_color_classification`、`mucosa_redness_score_0_10`、`pus_points_detected`、`pus_point_count`、`caseous_plaques_detected`、`ulcer_detected`、`ulcer_depth_assessment`、`necrotic_tissue_detected`、`necrotic_tissue_area_estimated`、`gum_recession_or_hemorrhage`、`composite_scene`、`alert_level`、`recommended_actions`（检查温湿度 / 隔离观察 / 保持清洁 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）、`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>\nAnalyzes snake mouth images, videos, or URLs to identify visual stomatitis risk signals such as mucosa color changes, pus points, ulcers, necrotic tissue, and image-quality or context conditions that affect reliability. <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, reptile keepers, breeding farms, and reptile veterinary teams use this skill to submit snake mouth media for visual analysis and receive structured stomatitis risk reports, non-treatment guidance, and report links. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Uploaded files or provided URLs are processed by LifeEmergence cloud APIs. <br>\nMitigation: Do not provide private URLs, sensitive enclosure footage, or proprietary media unless cloud processing is acceptable. <br>\nRisk: The skill silently creates or reuses a persistent local identity and stores account tokens locally. <br>\nMitigation: Review or clear the workspace data used by the skill after use or before uninstalling it. <br>\nRisk: Visual risk output could be mistaken for a veterinary diagnosis or treatment plan. <br>\nMitigation: Use the report as screening guidance only and route concerning results to a professional reptile veterinarian; do not add drug, dosage, or surgical instructions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API reference](references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, guidance] <br>\n**Output Format:** [Markdown and JSON analysis reports with optional saved output files and report export links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include cloud report links and history-list results; accepts local image/video files or public media URLs.] <br>\n\n## Skill Version(s): <br>\n1.0.7 (source: server release metadata; artifact frontmatter says 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, 46190 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (2691b), SKILL.md (19760b), 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 (159b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物**：白色/黄色点状隆起 + 数量 + 位置（前/后牙龈/上腭/内唇/咽部入口） + **干酪样斑块**（灰白/黄色膜状物，口炎典型征兆） + 异常黏液/泡沫 + 分泌物颜色（清/白脓/黄脓/血染）；③ **溃疡与腐肉**：黏膜表面不规则凹陷 + 数量 + 深度（浅表/中度/深及深层组织） + **腐肉/坏死组织**（暗色/黑褐色不规则组织，口炎晚期征兆） + 坏死面积估算 + 牙龈退缩或出血；④ **物种特异性 + 上下文排除**：毒蛇（毒牙/毒腺开口） vs 无毒蛇 vs 蟒蚺口腔结构差异；蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激（口炎主因之一）→ 必须排除非感染性混淆。按 7 类综合场景判定（oral_cavity_healthy / **stomatitis_risk_low** / **stomatitis_risk_moderate** / **stomatitis_risk_high** / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ **🚨 警告口炎中期可快速恶化为败血症** → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段，败血症风险极高可短期致死）。**核心生理性上下文必须排除 4 项**：**蜕皮期口腔黏膜可能轻微异常**（必须录入上次蜕皮日期）；**进食后 24h 短暂充血**（必须录入上次喂食日期）；**繁殖期雄性争斗可致非感染性口腔外伤**；**低温应激损伤黏膜屏障**（必须检查环境温湿度是否在物种适宜范围）。物种解剖硬约束：**毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝**等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的病变识别结果；**🚨 严禁输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量**；**🚨 严禁输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方**；**🚨 严禁输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作建议**；严禁伪造夸大红肿评分/脓点数量/溃疡深度；严禁越权代用户启停加热灯/UVB/湿度控制（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机在蛇**张口瞬间抓拍单帧或多帧**（≥ 3 帧取最佳帧，必须排除进食中帧），识别 7 类综合场景（oral_cavity_healthy / stomatitis_risk_low / stomatitis_risk_moderate / stomatitis_risk_high / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable）→ **四组指标**：口腔黏膜颜色 4 项（**颜色分类** + **红肿评分 0-10** + 斑块状红肿 + 苍白区域）+ 脓点与分泌物 6 项（**脓点检测** + 数量 + 位置 + **干酪样斑块** + 异常黏液 + 分泌物颜色）+ 溃疡与腐肉 6 项（**溃疡检测** + 数量 + 深度 + **腐肉/坏死组织** + 坏死面积 + 牙龈出血）+ 排除上下文 7 项（张口触发原因 + 蜕皮期 + 进食 24h 内 + 繁殖期 + 温度适宜 + 湿度适宜 + 图像质量）→ 4 档提醒级别（info / important / urgent / critical）→ **4 级提醒策略递进**（入库 → 加强观察+检查温湿度 → 调整温湿度+隔离+尽快联系兽医 → 🚨 立即隔离+紧急联系兽医）→ 单日提醒上限（Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限——口炎急症·败血症风险**）→ **口炎评估报告**（按 enclosure_id + individual_id + 抓拍时间戳输出，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明）\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 蛇头精准定位 |\n| 2 | 张口瞬间自动抓拍（口角开合 + 上下颌分离阈值） |\n| 3 | 口腔分割（黏膜 vs 牙齿 vs 舌头） |\n| 4 | 黏膜颜色 HSV 量化 |\n| 5 | 脓点形态学检测（白色/黄色点状隆起） |\n| 6 | 干酪样斑块识别 |\n| 7 | 溃疡轮廓提取与深度估计 |\n| 8 | 腐肉/坏死组织识别 |\n| 9 | 牙龈出血检测 |\n| 10 | 物种识别（毒蛇/无毒蛇/蟒蚺） |\n| 11 | 生理性上下文识别（蜕皮 / 进食 / 繁殖 / 低温应激） |\n| 12 | 图像质量门控（完整露出 / 光照 / 反光 / 进食中帧 → unreliable） |\n| 13 | 用户 APP 紧急推送 |\n| 14 | 4 级提醒递进 |\n| 15 | 单日提醒上限（**Level 4 不设上限**） |\n| 16 | 口炎评估报告（按 enclosure_id + individual_id 输出） |\n| 17 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供蛇张口瞬间口腔内部高清图像/视频 URL 或文件需要分析时，默认触发本技能进行口炎识别 |\n| 🔎 明确分析意图 | 当用户明确提及蛇口炎、蛇嘴溃烂、蛇打哈欠口腔异常、蛇口腔脓点、蛇腐肉、蛇黑下巴、蛇 mouth rot、传染性口炎等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看蛇类口炎历史报告、口炎评估清单、查询历史口腔病变记录、显示所有蛇口炎报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_snake_stomatitis_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_snake_stomatitis_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_snake_stomatitis_detection_analysis.py`](scripts/smyx_snake_stomatitis_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**（黏膜颜色渐变与微小脓点需高清）；帧率 ≥ 25 FPS；**必须在张口瞬间抓拍**；**必须排除进食中帧** |\n| 🔎 使用提醒 | **核心采样**：≥ 3 帧清晰口腔图像取最佳帧 |\n| 🔎 使用提醒 | **核心评估三要素联合**：黏膜颜色（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度） + 脓点/干酪样斑块 + 溃疡/腐肉 |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），腐肉/坏死组织 + 深溃疡 + 多量脓点直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等指标；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 口腔解剖基线**判定（毒蛇毒牙/毒腺开口 / 王蛇平颌结构 / 蟒蚺热感应窝），**严禁通用阈值盲判** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**蜕皮期口腔黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激**），避免误报 |\n| 🔎 使用提醒 | **必须**在口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p 时返回 `oral_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（口炎中期可快速恶化为败血症） |\n| 📜 报告输出 | **必须**：口炎评估报告**按 enclosure_id + individual_id + 抓拍时间戳输出**，含黏膜颜色 + 脓点 + 溃疡 + 腐肉 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史口炎评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-snake-stomatitis-detection-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785641550868\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_SNAKE_STOMATITIS_DETECTION_ANALYSIS` - 蛇类口腔腐肉识别（口炎）\n\n## 输入约束\n\n- 摄像头：蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**口腔黏膜颜色渐变、脓点、微小溃疡均需高清**）；帧率 ≥ 25 FPS（张口瞬间短暂，需高帧率抓拍）\n- 拍摄角度：**正对蛇头部口腔**（侧面或斜角无法完整观察口腔内壁），必须在蛇**张口瞬间**抓拍（打哈欠 / 进食后 / 口腔检查时）\n- 光照：充足且均匀（**口腔内部较暗，需补光或环形灯**；避免反光过强误判为脓点）\n- **核心采样窗口**：蛇张口时自动抓拍单帧或多帧（需 ≥ 3 帧清晰口腔图像取最佳帧）\n- **必须排除进食中帧**（吞食猎物时口腔被猎物遮挡，非口腔检查窗口）\n- 多箱场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（球蟒 / 玉米蛇 / 王蛇 / 红尾蚺 / 缅蟒 / 眼镜蛇 / 响尾蛇等）、上次脱皮日期、上次喂食日期、环境温度、湿度\n\n## 关键观测信号\n\n### 口腔黏膜颜色\n- `mucosa_color_classification` - **黏膜颜色分类**（核心指标：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish）\n- `mucosa_redness_score_0_10` - **黏膜红肿评分 0-10**（核心指标，≤ 2 正常 / 3-5 轻度 / 6-8 中度 / ≥ 9 重度）\n- `mucosa_color_patchy` - 是否斑块状红肿（非均匀，局部炎症特征）\n- `mucosa_pale_areas` - 是否有苍白区域（贫血或坏死前兆）\n\n### 脓点与分泌物\n- `pus_points_detected` - **是否检测到脓点**（核心指标，白色或黄色点状隆起）\n- `pus_point_count` - 脓点数量\n- `pus_point_location` - 脓点位置（anterior_gum / posterior_gum / palate / inner_lip / throat_entrance）\n- `caseous_plaques_detected` - **是否检测到干酪样斑块**（核心指标，灰白/黄色膜状物，口炎典型征兆）\n- `mucus_or_foam_detected` - 口腔是否有异常黏液或泡沫（非进食时）\n- `discharge_color` - 分泌物颜色（clear / white_purulent / yellow_purulent / blood_tinged）\n\n### 溃疡与腐肉\n- `ulcer_detected` - **是否检测到溃疡**（核心指标，黏膜表面不规则凹陷）\n- `ulcer_count` - 溃疡数量\n- `ulcer_depth_assessment` - 溃疡深度评估（superficial / moderate / deep_to_underlying_tissue）\n- `necrotic_tissue_detected` - **是否检测到腐肉/坏死组织**（核心指标，暗色/黑褐色不规则组织，口炎晚期征兆）\n- `necrotic_tissue_area_estimated` - 坏死组织面积估算（占口腔可视面积百分比）\n- `gum_recession_or_hemorrhage` - 牙龈退缩或出血\n\n### 上下文与排除信号\n- `mouth_opening_trigger` - 张口触发原因（yawn_normal / post_feeding / threat_display / examination / unknown）\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期口腔黏膜可能轻微异常）\n- `is_post_feeding_within_24h` - 是否进食后 24h 内（进食后可能短暂口腔充血）\n- `is_during_breeding_season` - 是否繁殖期（雄性争斗可致口腔外伤）\n- `ambient_temperature_appropriate` - 温度是否适宜（低温应激是口炎主因之一）\n- `humidity_appropriate` - 湿度是否适宜（过低湿度损伤黏膜）\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 口腔完整露出 / 光照充足 / 无唾液反光干扰）\n\n## 综合判定\n\n- `oral_cavity_healthy` - 口腔健康（黏膜粉红正常，无脓点/溃疡/腐肉）\n- `stomatitis_risk_low` - **口炎风险低**（黏膜轻度红肿 ≤ 5 分，无脓点/溃疡/腐肉，可能为蜕皮或进食后短暂充血）\n- `stomatitis_risk_moderate` - **口炎风险中**（黏膜红肿 6-8 分 OR 少量脓点 1-3 个 OR 浅表溃疡 OR 干酪样斑块初现）\n- `stomatitis_risk_high` - **口炎风险高**（黏膜暗红/苍白/发绀 + 多量脓点 ≥ 4 个 + 深溃疡 + 腐肉/坏死组织 + 牙龈出血）\n- `oral_injury_non_infectious` - 非感染性口腔外伤（繁殖期争斗/猎物刮伤，局部创伤而非弥漫性炎症）\n- `oral_context_shedding_artifact` - 蜕皮期口腔黏膜轻微假象\n- `oral_signal_unreliable` - 信号不可靠（口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 分辨率 < 1080p / 进食中帧未排除）\n\n## 4 级提醒策略递进\n\n- Level 1（oral_cavity_healthy / oral_context_shedding_artifact）：仅入库\n- Level 2（stomatitis_risk_low / oral_injury_non_infectious）：温和提示，建议**加强观察 3-5 天 + 检查环境温湿度是否在物种适宜范围 + 确认饲养箱清洁度**\n- Level 3（stomatitis_risk_moderate）：紧急提示，建议**检查并调整温湿度至物种适宜范围 + 保持饲养箱清洁干燥 + 隔离至单独观察箱 + 观察食欲精神 + 尽快联系爬宠兽医（口炎中期可快速恶化为败血症）**\n- Level 4（stomatitis_risk_high）：最高紧急提示，建议**立即隔离 + 保持环境温湿度稳定 + 立即联系爬宠兽医（腐肉/坏死组织 + 深溃疡提示口炎已进入急症阶段，败血症风险极高，可短期致死）**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（口炎急症·败血症风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"传染性口炎 / 偏肺衣原体感染 / OPMV / 包含体病 IBD / 细菌性败血症 / 真菌性口炎\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、抗生素品牌、抗真菌药品牌、口腔消毒液品牌、肌注/口服剂量\n- **🚨 绝对禁止**输出\"用聚维酮碘稀释液冲洗\"\"涂抹制霉菌素\"\"肌注恩诺沙星 5mg/kg\"\"口服甲硝唑\"\"涂云南白药\"等具体处方\n- **🚨 绝对禁止**输出\"自行刮除腐肉\"\"自行清创\"\"自行拔除松动牙齿\"等任何外科操作（必须由兽医现场判断）\n- **禁止**长期存储完整蛇箱视频/图像（≤ 14 天，留张口抓拍关键帧 + 口炎进展对比图像；繁殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户启停加热灯 / UVB / 湿度控制；任何环境控制变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大黏膜红肿评分、脓点数量、溃疡深度等**\n- 物种特异性：**毒蛇**口腔结构与无毒蛇不同（毒牙/毒腺开口），**蟒蚺**口腔较大易于观察 → 必须按物种口腔解剖基线判定\n- 必须考虑生理性上下文：**蜕皮期口腔黏膜可能轻微异常 / 进食后短暂充血 / 繁殖期争斗外伤 / 低温应激** → 不可直接告警\n- 口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`\n- 必须告知用户：AI 视觉识别仅供参考，**口炎确诊与治疗需立即联系专业爬宠兽医（建议口腔拭子培养 + 血液检查 + X 光排除呼吸道蔓延）**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`mucosa_color_classification`、`mucosa_redness_score_0_10`、`pus_points_detected`、`pus_point_count`、`caseous_plaques_detected`、`ulcer_detected`、`ulcer_depth_assessment`、`necrotic_tissue_detected`、`necrotic_tissue_area_estimated`、`gum_recession_or_hemorrhage`、`composite_scene`、`alert_level`、`recommended_actions`（检查温湿度 / 隔离观察 / 保持清洁 / 联系爬宠兽医，**不含具体药物品牌、剂量、外科操作**）、`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>\nAnalyzes snake mouth images or videos to identify visual signs such as mucosa color changes, pus points, ulcers, necrotic tissue, and a low, moderate, or high stomatitis risk level. <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, reptile keepers, breeders, veterinary teams, and developers use this skill to submit snake mouth images or videos for structured visual risk assessment and report retrieval. It is intended to support early observation and triage, not to provide a veterinary diagnosis or treatment plan. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Uploaded snake mouth images or videos and report history may be processed by the LifeEmergence cloud service. <br>\nMitigation: Avoid sensitive footage during evaluation, use a separate test workspace or account, and verify the publisher's data retention and account policies before production use. <br>\nRisk: The skill can silently create or reuse local identity state and store tokens locally. <br>\nMitigation: Review local identity and token storage behavior before installation, and isolate testing from production accounts. <br>\nRisk: The skill's visual output could be mistaken for veterinary diagnosis or treatment advice. <br>\nMitigation: Treat results as visual triage only and route suspected stomatitis, necrosis, deep ulcers, or repeated high-risk findings to a professional reptile veterinarian. <br>\n\n\n## Reference(s): <br>\n- [API documentation](artifact/references/api_doc.md) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-snake-stomatitis-detection-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Analysis, Markdown, JSON, Shell commands, Guidance] <br>\n**Output Format:** [Markdown or JSON report with visual findings, risk level, recommended next steps, and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May call a cloud analysis service, process uploaded media, and query historical reports tied to an internally managed identity.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter says 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, 46398 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (3141b), SKILL.md (19760b), 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 (159b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物**：白色/黄色点状隆起 + 数量 + 位置（前/后牙龈/上腭/内唇/咽部入口） + **干酪样斑块**（灰白/黄色膜状物，口炎典型征兆） + 异常黏液/泡沫 + 分泌物颜色（清/白脓/黄脓/血染）；③ **溃疡与腐肉**：黏膜表面不规则凹陷 + 数量 + 深度（浅表/中度/深及深层组织） + **腐肉/坏死组织**（暗色/黑褐色不规则组织，口炎晚期征兆） + 坏死面积估算 + 牙龈退缩或出血；④ **物种特异性 + 上下文排除**：毒蛇（毒牙/毒腺开口） vs 无毒蛇 vs 蟒蚺口腔结构差异；蜕皮期黏膜可能轻微异常 / 进食后 24h 短暂充血 / 繁殖期争斗外伤 / 低温应激（口炎主因之一）→ 必须排除非感染性混淆。按 7 类综合场景判定（oral_cavity_healthy / **stomatitis_risk_low** / **stomatitis_risk_moderate** / **stomatitis_risk_high** / oral_injury_non_infectious / oral_context_shedding_artifact / oral_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 加强观察 3-5 天+检查温湿度 → Level 3 调整温湿度+隔离+尽快联系兽医+ **🚨 警告口炎中期可快速恶化为败血症** → Level 4 🚨 立即隔离+保持稳定+紧急联系兽医——腐肉/坏死组织+深溃疡提示已进入急症阶段，败血症风险极高可短期致死）。**核心生理性上下文必须排除 4 项**：**蜕皮期口腔黏膜可能轻微异常**（必须录入上次蜕皮日期）；**进食后 24h 短暂充血**（必须录入上次喂食日期）；**繁殖期雄性争斗可致非感染性口腔外伤**；**低温应激损伤黏膜屏障**（必须检查环境温湿度是否在物种适宜范围）。物种解剖硬约束：**毒蛇毒牙位置/毒腺开口/王蛇平颌结构/蟒蚺热感应窝**等口腔细节差异巨大 → 严禁通用阈值盲判。口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 进食中帧未排除 / 分辨率 < 1080p → 必须返回 `oral_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的病变识别结果；**🚨 严禁输出具体药物名称、剂量、抗生素\n\nArchive v1.0.4: 31 files, 46158 bytes\n\nFiles: references/api_doc.md (8348b), scripts/__init__.py (57b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_snake_stomatitis_detection_analysis.py (3736b), skill-card.md (2801b), SKILL.md (19760b), 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...","readmeExcerpt":"Skill: Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎） Owner: 18072937735 Summary: Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yel","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_snake_stomatitis_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_snake_stomatitis_detection_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input /path/to/snake_mouth.jpg\n\n# 分析网络蛇张口瞬间口腔图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --url https://example.com/snake_mouth.jpg\n\n# 显示历史口炎评估记录清单（自动触发关键词：查看蛇类口炎历史报告等）\npython -m scripts.smyx_snake_stomatitis_detection_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_snake_stomatitis_detection_analysis --input snake_mouth.jpg --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-snake-stomatitis-detection-analysis\"\ndescription: \"Through fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively. | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🐍 Snake Stomatitis (Mouth Rot) Detection | 蛇类口腔腐肉识别（口炎）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **蛇类口腔腐肉识别（口炎）** |\n| 🎯 核心目标 | 通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_SNAKE_STOMATITIS_DETECTION_ANALYSIS` |\n\nThrough fixed enclosure cameras, the system captures high-definition images of the moment a snake opens its mouth (yawning, post-feeding, or oral examination) and uses AI visual analysis to detect oral mucosa color (normal pink, mild inflammation red, severe inflammation dark-red or pale), the presence of pus points (white or yellow dots), ulcers, or necrotic tissue (irregular depressions, necrotic patches), comprehensively outputting a stomatitis risk level (low / moderate / high). This skill helps early detection of oral infections in snakes and prevention of sepsis. Application scenarios: snake enclosures, reptile veterinary hospitals, breeding farms. The system automatically captures images when the snake opens its mouth and analyzes oral health. Skill features: snake stomatitis (infectious stomatitis / mouth rot) is a common disease; early stages only show mild mucosal redness, but delayed treatment can lead to fatal sepsis. AI-based automatic detection of oral lesions helps keepers intervene early and improve cure rate. This skill can be integrated into smart snake-enclosure cameras or reptile health management apps.\n\n通过蛇箱固定摄像头，捕捉蛇张口（打哈欠、进食后或口腔检查）时的瞬间高清图像，利用 AI 视觉分析技术检测口腔黏膜颜色（正常粉红色、轻度炎症红色、重度炎症暗红或苍白）、有无脓点（白色或黄色点状物）、溃疡或腐肉（不规则凹陷、坏死组织），综合输出口炎风险等级（低/中/高）。该技能有助于早期发现蛇类口腔感染，预防败血症。应用场景：蛇类饲养箱、爬宠医院、繁殖场。系统在检测到蛇张口时自动抓拍，并分析口腔健康状况。技能特点：蛇类口炎（传染性口炎）是常见疾病，早期仅表现为口腔黏膜轻度红肿，若延误治疗可导致败血症死亡。通过 AI 自动识别口腔病变，可帮助饲养者及早干预，提高治愈率。该技能可集成到智能蛇箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物口腔健康 AI。你的任务是分析蛇张口瞬间的口腔内部高清图像（正对蛇头部口腔，分辨率 ≥ 1080p——黏膜颜色渐变与微小脓点需高清，帧率 ≥ 25 FPS——张口瞬间短暂需高帧率抓拍），围绕\"口炎四要素\"展开检测：① **口腔黏膜颜色分类**：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish + 红肿评分 0-10（≤2 正常 / 3-5 轻度 / 6-8 中度 / ≥9 重度）+ 斑块状红肿 + 苍白区域；② **脓点与分泌物"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-snake-stomatitis-detection-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790534856602\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_SNAKE_STOMATITIS_DETECTION_ANALYSIS` - 蛇类口腔腐肉识别（口炎）\n\n## 输入约束\n\n- 摄像头：蛇箱固定摄像头 / 智能蛇箱内置摄像头 / 爬宠医院诊查摄像头 / 手持高清相机\n- 分辨率 ≥ 1080p（**口腔黏膜颜色渐变、脓点、微小溃疡均需高清**）；帧率 ≥ 25 FPS（张口瞬间短暂，需高帧率抓拍）\n- 拍摄角度：**正对蛇头部口腔**（侧面或斜角无法完整观察口腔内壁），必须在蛇**张口瞬间**抓拍（打哈欠 / 进食后 / 口腔检查时）\n- 光照：充足且均匀（**口腔内部较暗，需补光或环形灯**；避免反光过强误判为脓点）\n- **核心采样窗口**：蛇张口时自动抓拍单帧或多帧（需 ≥ 3 帧清晰口腔图像取最佳帧）\n- **必须排除进食中帧**（吞食猎物时口腔被猎物遮挡，非口腔检查窗口）\n- 多箱场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（球蟒 / 玉米蛇 / 王蛇 / 红尾蚺 / 缅蟒 / 眼镜蛇 / 响尾蛇等）、上次脱皮日期、上次喂食日期、环境温度、湿度\n\n## 关键观测信号\n\n### 口腔黏膜颜色\n- `mucosa_color_classification` - **黏膜颜色分类**（核心指标：healthy_pink_normal / mild_erythema_red / severe_erythema_dark_red / pale_anemic / cyanotic_bluish）\n- `mucosa_redness_score_0_10` - **黏膜红肿评分 0-10**（核心指标，≤ 2 正常 / 3-5 轻度 / 6-8 中度 / ≥ 9 重度）\n- `mucosa_color_patchy` - 是否斑块状红肿（非均匀，局部炎症特征）\n- `mucosa_pale_areas` - 是否有苍白区域（贫血或坏死前兆）\n\n### 脓点与分泌物\n- `pus_points_detected` - **是否检测到脓点**（核心指标，白色或黄色点状隆起）\n- `pus_point_count` - 脓点数量\n- `pus_point_location` - 脓点位置（anterior_gum / posterior_gum / palate / inner_lip / throat_entrance）\n- `caseous_plaques_detected` - **是否检测到干酪样斑块**（核心指标，灰白/黄色膜状物，口炎典型征兆）\n- `mucus_or_foam_detected` - 口腔是否有异常黏液或泡沫（非进食时）\n- `discharge_color` - 分泌物颜色（clear / white_purulent / yellow_purulent / blood_tinged）\n\n### 溃疡与腐肉\n- `ulcer_detected` - **是否检测到溃疡**（核心指标，黏膜表面不规则凹陷）\n- `ulcer_count` - 溃疡数量\n- `ulcer_depth_assessment` - 溃疡深度评估（superficial / moderate / deep_to_underlying_tissue）\n- `necrotic_tissue_detected` - **是否检测到腐肉/坏死组织**（核心指标，暗色/黑褐色不规则组织，口炎晚期征兆）\n- `necrotic_tissue_area_estimated` - 坏死组织面积估算（占口腔可视面积百分比）\n- `gum_recession_or_hemorrhage` - 牙龈退缩或出血\n\n### 上下文与排除信号\n- `mouth_opening_trigger` - 张口触发原因（yawn_normal / post_feeding / threat_display / examination / unknown）\n- `is_during_shedding_cycle` - 是否处于蜕皮期（蜕皮期口腔黏膜可能轻微异常）\n- `is_post_feeding_within_24h` - 是否进食后 24h 内（进食后可能短暂口腔充血）\n- `is_during_breeding_season` - 是否繁殖期（雄性争斗可致口腔外伤）\n- `ambient_temperature_appropriate` - 温度是否适宜（低温应激是口炎主因之一）\n- `humidity_appropriate` - 湿度是否适宜（过低湿度损伤黏膜）\n- `image_quality_acceptable` - 图像质量是否合格（清晰度 / 口腔完整露出 / 光照充足 / 无唾液反光干扰）\n\n## 综合判定\n\n- `oral_cavity_healthy` - 口腔健康（黏膜粉红正常，无脓点/溃疡/腐肉）\n- `stomatitis_risk_low` - **口炎风险低**（黏膜轻度红肿 ≤ 5 分，无脓点/溃疡/腐肉，可能为蜕皮或进食后短暂充血）\n- `stomatitis_risk_moderate` - **口炎风险中**（黏膜红肿 6-8 分 OR 少量脓点 1-3 个 OR 浅表溃疡 OR 干酪样斑块初现）\n- `stomatitis_risk_high` - **口炎风险高**（黏膜暗红/苍白/发绀 + 多量脓点 ≥ 4 个 + 深溃疡 + 腐肉/坏死组织 + 牙龈出血）\n- `oral_injury_non_infectious` - 非感染性口腔外伤（繁殖期争斗/猎物刮伤，局部创伤而非弥漫性炎症）\n- `oral_context_shedding_artifact` - 蜕皮期口腔黏膜轻微假象\n- `oral_signal_unreliable` - 信号不可靠（口腔未完整露出 / 图像模糊 / 光照不足 / 唾液反光干扰 / 分辨率 < 1080p / 进食中帧未排除）\n\n## 4 级提醒策略递进\n\n- Level 1（oral_cavity_healt"},{"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":1179,"uniquenessScore":44,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T12:54:29.317Z","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-10T12:54:29.317Z","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-10T15:53:47.575Z","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"}]}}}