{"id":"d7f0cde4-cff0-4e78-a98c-07da568c69de","entityType":"agent","slug":"clawhub-18072937735-smyx-reptile-excrement-analysis-analysis","name":"Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）","canonicalUrl":"https://www.xpersona.co/agent/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis","canonicalPath":"/agent/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis","generatedAt":"2026-10-10T09:00:36.254Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-10T04:04:29.387Z","emptyReason":null},"description":"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 Skill: Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便） Owner: 18072937735 Summary: Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morpho","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-reptile-excrement-analysis-analysis","sourceUrl":"https://clawhub.ai/18072937735/smyx-reptile-excrement-analysis-analysis","homepage":"https://clawhub.ai/18072937735/skills/smyx-reptile-excrement-analysis-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/18072937735/smyx-reptile-excrement-analysis-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/18072937735/skills/smyx-reptile-excrement-analysis-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":65,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visu"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:04:29.387Z","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-10T04:04:29.387Z","emptyReason":null},"stars":null,"forks":null,"downloads":1704,"packageName":null,"latestVersion":"1.0.11","tractionLabel":"1.7K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:04:29.375Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T04:04:29.387Z","lastCrawledAt":"2026-10-10T04:04:29.375Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T04:04:29.375Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.11","createdAt":"2026-09-30T01:10:27.636Z","changelog":"- Updated skill version from 1.0.12 to 1.0.16 in SKILL.md. - Removed the file `skill-card.md`. - Updated configuration and documentation (SKILL.md, config.yaml) to stay consistent with new versioning and file structure. - No functional logic or interface changes are indicated.","fileCount":31,"zipByteSize":46283},{"version":"1.0.10","createdAt":"2026-08-28T08:43:29.229Z","changelog":"- Updated SKILL.md: version bumped from 1.0.11 to 1.0.12. - Removed file: skill-card.md. - No changes to core features, usage, or interface—documentation and packaging only. - The skill’s detailed description, constraints, and workflow remain unchanged.","fileCount":31,"zipByteSize":46522},{"version":"1.0.9","createdAt":"2026-08-21T22:23:29.176Z","changelog":"- Updated skill version to 1.0.11. - Made changes to documentation files (SKILL.md) and configuration (config.yaml). - Removed deprecated skill-card.md file. - No changes to core functionality; this release mainly updates documentation and configuration.","fileCount":31,"zipByteSize":46606},{"version":"1.0.8","createdAt":"2026-08-10T05:20:34.945Z","changelog":"- Version incremented to 1.0.9. - Updated SKILL.md with minor revisions and formatting improvements. - Removed the file skill-card.md. - No changes to the core logic or functionality documented; content and requirements remain consistent.","fileCount":31,"zipByteSize":46774},{"version":"1.0.7","createdAt":"2026-08-02T22:17:33.293Z","changelog":"- Updated to version 1.0.8. - Removed sample file: skill-card.md. - SKILL.md refreshed with updated version and minor formatting changes. - No changes to features or capabilities.","fileCount":31,"zipByteSize":46377},{"version":"1.0.6","createdAt":"2026-07-27T23:04:28.375Z","changelog":"- Version updated to 1.0.7. - SKILL.md revised and expanded; more details and clarifications added throughout documentation. - skill-card.md file removed. - No changes to core functionality or technical requirements. - Documentation update only; no API or user-facing output changes.","fileCount":31,"zipByteSize":46306},{"version":"1.0.5","createdAt":"2026-07-15T01:54:29.285Z","changelog":"- Minor version update to 1.0.6. - Documentation changes in SKILL.md; content refined and version updated. - Removed redundant skill-card.md file for simplification.","fileCount":31,"zipByteSize":46416},{"version":"1.0.4","createdAt":"2026-07-11T20:58:27.547Z","changelog":"- Updated version to 1.0.5. - Documentation changes in SKILL.md, including minor adjustments and version updates. - Removed the obsolete file skill-card.md. - Made updates to configuration and utility scripts: config.py, dao.py, and util.py. - General code maintenance and cleanup.","fileCount":31,"zipByteSize":46360}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f8q65zg3y98t86jdg1177g583whq8:smyx-reptile-excrement-analysis-analysis","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-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-10T09:00:36.248Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-18072937735-smyx-reptile-excrement-analysis-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":"high","updatedAt":"2026-10-10T04:04:29.387Z","emptyReason":null},"readme":"Skill: Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n\nOwner: 18072937735\n\nSummary: Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\n\nTags: latest:1.0.11\n\nVersion history:\n\nv1.0.11 | 2026-09-30T01:10:27.636Z | auto\n\n- Updated skill version from 1.0.12 to 1.0.16 in SKILL.md.\n- Removed the file `skill-card.md`.\n- Updated configuration and documentation (SKILL.md, config.yaml) to stay consistent with new versioning and file structure.\n- No functional logic or interface changes are indicated.\n\nv1.0.10 | 2026-08-28T08:43:29.229Z | auto\n\n- Updated SKILL.md: version bumped from 1.0.11 to 1.0.12.\n- Removed file: skill-card.md.\n- No changes to core features, usage, or interface—documentation and packaging only.\n- The skill’s detailed description, constraints, and workflow remain unchanged.\n\nv1.0.9 | 2026-08-21T22:23:29.176Z | auto\n\n- Updated skill version to 1.0.11.\n- Made changes to documentation files (SKILL.md) and configuration (config.yaml).\n- Removed deprecated skill-card.md file.\n- No changes to core functionality; this release mainly updates documentation and configuration.\n\nv1.0.8 | 2026-08-10T05:20:34.945Z | auto\n\n- Version incremented to 1.0.9.\n- Updated SKILL.md with minor revisions and formatting improvements.\n- Removed the file skill-card.md.\n- No changes to the core logic or functionality documented; content and requirements remain consistent.\n\nv1.0.7 | 2026-08-02T22:17:33.293Z | auto\n\n- Updated to version 1.0.8.\n- Removed sample file: skill-card.md.\n- SKILL.md refreshed with updated version and minor formatting changes.\n- No changes to features or capabilities.\n\nv1.0.6 | 2026-07-27T23:04:28.375Z | auto\n\n- Version updated to 1.0.7.\n- SKILL.md revised and expanded; more details and clarifications added throughout documentation.\n- skill-card.md file removed.\n- No changes to core functionality or technical requirements.\n- Documentation update only; no API or user-facing output changes.\n\nv1.0.5 | 2026-07-15T01:54:29.285Z | auto\n\n- Minor version update to 1.0.6.\n- Documentation changes in SKILL.md; content refined and version updated.\n- Removed redundant skill-card.md file for simplification.\n\nv1.0.4 | 2026-07-11T20:58:27.547Z | auto\n\n- Updated version to 1.0.5.\n- Documentation changes in SKILL.md, including minor adjustments and version updates.\n- Removed the obsolete file skill-card.md.\n- Made updates to configuration and utility scripts: config.py, dao.py, and util.py.\n- General code maintenance and cleanup.\n\nv1.0.3 | 2026-06-29T02:49:23.238Z | auto\n\n- Removed the file `skill-card.md`.\n- No functional or behavioral changes to the skill itself.\n- Documentation cleanup: one markdown documentation file removed.\n\nv1.0.2 | 2026-06-28T07:35:28.561Z | auto\n\n- Improved user privacy: open-id (identity) handling is now fully automatic and internal—users are no longer prompted to input, see, or manage any identity parameters.\n- Overhauled documentation in SKILL.md for clarity—added summary tables, scenario overviews, step-by-step charts, and modern formatting.\n- Simplified standard workflow and strongly emphasized identity privacy and automation throughout the process.\n- Removed requirement for user to manually provide or confirm an open-id; system now handles identity behind the scenes.\n- Deprecated and removed obsolete files (e.g., scripts/api_service.py, skill-card.md) no longer relevant to the updated workflow.\n\nv1.0.1 | 2026-06-21T08:27:25.426Z | auto\n\n- Removed the file: skill-card.md.\n- No changes to core functionality; this update is a documentation/structure cleanup.\n- All main features and workflow remain unchanged.\n\nv1.0.0 | 2026-06-18T01:59:34.494Z | auto\n\nInitial release of the smyx-reptile-excrement-analysis-analysis skill:\n\n- Enables AI-powered visual analysis of reptile excrement (urate and feces) from high-definition enclosure camera images or video frames.\n- Identifies urate (white/milky deposits) and quantifies its pixel area, normalizes by body length, and compares against historical baselines.\n- Classifies feces morphology (formed, pasty, watery, bloody, etc.) and provides health prompts based on consistency.\n- Integrates strict context exclusion (diet, brumation, breeding, substrate, and image quality) for accurate evaluation.\n- Outputs detailed, actionable reports for early detection of kidney and gut issues, and supports querying of historical analysis data.\n- Enforces robust workflow for user authentication (open-id acquisition and validation) before running analysis or accessing history.\n\nArchive index:\n\nArchive v1.0.11: 31 files, 46283 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (2257b), SKILL.md (20130b), 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-reptile-excrement-analysis-analysis\"\ndescription: \"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 💩 Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **爬宠排泄物形态识别（尿酸/粪便）** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` |\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). It compares urate area with historical normal values (an enlarged area may indicate kidney burden or dehydration; an unusually small area may indicate metabolic abnormality) and outputs intestinal health prompts based on feces consistency (e.g. 'feces well formed, healthy', 'feces soft, possible enteritis or parasites'). This skill helps keepers detect kidney and intestinal problems early. Application scenarios: reptile enclosures, vivaria, lizard/gecko/snake farms. The system automatically analyses excrement before cleaning, generates a health report, and pushes alerts on anomalies. Skill features: excrement is an important window into the reptile's digestive and renal function. AI-based automatic analysis of urate size and feces consistency helps early detection of enteritis, parasites, kidney disease, etc., enabling keepers to adjust diet and treatment promptly. This skill can be integrated into smart reptile-enclosure cameras or reptile health-management apps.\n\n通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。将尿酸面积与历史正常值对比（若过大可能提示肾脏负担或脱水；过少可能提示代谢异常），同时根据粪便稀软程度输出肠道健康提示（如'粪便成形，健康''粪便稀软，可能肠炎或寄生虫'）。该技能有助于饲养者及早发现爬宠的肾脏、肠道问题。应用场景：爬宠箱、饲养缸、蜥蜴/守宫/蛇类养殖场。系统在清理前自动分析排泄物，生成健康报告，异常时推送提醒。技能特点：排泄物是反映爬宠消化、肾脏功能的重要窗口。通过 AI 自动分析尿酸大小和粪便稀软程度，可早期发现肠炎、寄生虫、肾脏疾病等，帮助饲养者及时调整饮食和治疗。该技能可集成到智能爬宠箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物排泄物健康分析 AI。你的任务是分析爬宠箱内排泄物的高清图像（俯拍，含已知尺寸参考物用于像素-实际尺寸换算，分辨率 ≥ 1080p——尿酸结晶纹理与粪便形态需高清，均匀白色光源——避免色温偏移影响粪便颜色判定），围绕\"尿酸 + 粪便双通道\"展开三组检测：① **尿酸检测**：是否检测到尿酸（白色/乳白色区域）+ 颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）+ 像素面积 + **以个体体长为参考归一化面积**（核心指标，跨个体可比）+ 与历史正常值对比（**增大 > 50% 提示肾脏负担或脱水**）+ 质地（smooth_paste_normal / gritty_granular / hard_chunky）+ 团块数量；② **粪便形态**：是否检测到粪便 + **颜色分类**（brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）+ **形态分类**（formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）+ 像素面积 + 长宽比（成形 > 2 / 稀软 ≈ 1）+ 是否可见未消化内容 + 团块数量；③ **上下文与排除信号**：喂食后 72h 内食物种类影响（蟋蟀绿便 / 粉鼠深色便） / 蜕皮期 / 抱蛋雌性排泄间隔延长 / 休眠/冬眠期排泄频率下降+尿酸浓缩 / 垫材类型影响识别难度 / 近期换食 < 7 天。按 7 类综合场景判定（**excrement_healthy** / **urate_mildly_abnormal** / **urate_significantly_abnormal** / **feces_mildly_abnormal** / **feces_significantly_abnormal** / excrement_context_diet_or_brumation / excrement_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 观察下次排泄+检查温度+确认喂食 → Level 3 检查脱水+提供饮水+收集粪便送检寄生虫+联系爬宠兽医 → Level 4 🚨 尿酸显著异常+粪便显著异常同时出现→立即联系爬宠兽医，可能为系统性感染/败血症前兆）。**核心生理性上下文必须排除 4 项**：**食物种类影响粪便颜色/形态**（蟋蟀→绿便 / 粉鼠→深色便 / 杜比亚→棕色便，必须录入上次喂食内容）/ **休眠/冬眠期排泄频率大幅下降+尿酸浓缩增大**属正常 / **抱蛋期雌性排泄间隔延长**属正常 / **近期换食 < 7 天**粪便短期异常属临时。物种排泄习性硬约束：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 严禁通用排泄频率/尿酸面积盲判。排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化 → 必须返回 `excrement_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的排泄物评估；**🚨 严禁输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌**；**🚨 严禁输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方**；**🚨 严禁输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作**；严禁伪造夸大尿酸面积/粪便稀软程度；严禁越权代用户调整喂食内容/频率（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱 / 饲养缸 / 养殖场固定摄像头在发现排泄物后、清理前拍摄的高清图像（俯拍，含尺寸参考物），识别 7 类综合场景（excrement_healthy / urate_mildly_abnormal / urate_significantly_abnormal / feces_mildly_abnormal / feces_significantly_abnormal / excrement_context_diet_or_brumation / excrement_signal_unreliable）→ **三组指标**：尿酸检测 7 项（**urate_detected** + **urate_color_classification** + urate_pixel_area + **urate_area_normalized_by_body_length** + **urate_area_vs_historical_baseline** + urate_texture + urate_count）+ 粪便形态 7 项（**feces_detected** + **feces_color_classification** + **feces_consistency** + feces_pixel_area + feces_length_to_width_ratio + undigested_content_visible + feces_count）+ 排除上下文 7 项（喂食 72h 内容 / 蜕皮期 / 抱蛋期 / 休眠期 / 垫材类型 / 近期换食 / 图像质量）→ 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 | 排泄物区域检测与分割（尿酸 vs 粪便 vs 垫材背景） |\n| 2 | 尿酸白色/乳白色区域面积量化（像素面积 + 体长归一化） |\n| 3 | 尿酸颜色分类 |\n| 4 | 尿酸质地分类（膏状/颗粒/硬块） |\n| 5 | 尿酸面积与历史基线对比（7-30 天趋势） |\n| 6 | 粪便颜色分类（7 类） |\n| 7 | 粪便形态分类（5 类） |\n| 8 | 粪便长宽比计算 |\n| 9 | 未消化内容检测 |\n| 10 | 食物-粪便颜色关联（蟋蟀绿便/粉鼠深色便） |\n| 11 | 垫材干扰排除 |\n| 12 | 尺寸参考物标定 |\n| 13 | 物种排泄习性匹配 |\n| 14 | 图像质量门控（踩踏/遮挡/色温偏移 → unreliable） |\n| 15 | 用户 APP 推送 |\n| 16 | 4 级提醒递进 |\n| 17 | 单日提醒上限（**Level 4 不设上限**） |\n| 18 | 排泄物评估报告（按 enclosure_id + individual_id 输出） |\n| 19 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供爬宠箱排泄物高清图像/视频 URL 或文件需要分析时，默认触发本技能进行排泄物评估 |\n| 🔎 明确分析意图 | 当用户明确提及爬宠尿酸、爬宠粪便、爬宠排泄物、蜥蜴白便、守宫稀便、蛇血便、尿酸过大、爬宠拉稀、爬宠黑便等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看爬宠排泄物历史报告、尿酸趋势、粪便评估清单、显示所有排泄物报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_excrement_analysis_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备爬宠箱排泄物高清图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行爬宠排泄物形态识别 | 调用 `-m scripts.smyx_reptile_excrement_analysis_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地爬宠箱排泄物高清图像或视频静态帧文件路径 | 适用于本地文件分析 |\n| `--url` | 网络爬宠箱排泄物高清图像/视频 URL（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠排泄物场景默认 `other` | 按需填写 |\n| `--list` | 显示爬宠排泄物历史评估记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_excrement_analysis_analysis.py`](scripts/smyx_reptile_excrement_analysis_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**；建议含**已知尺寸参考物**用于像素换算；均匀白色光源；**必须在清理前拍摄** |\n| 🔎 使用提醒 | **核心评估三要素联合**：尿酸面积归一化（**增大 > 50% 触发预警**） + 粪便颜色（7 类） + 粪便形态（5 类） |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），**尿酸显著异常 + 粪便显著异常同时出现** 直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双异常·败血症前兆风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尿酸面积、粪便稀软程度；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 排泄习性基线判定**（蛇类 7-14 天一次复合排泄 / 蜥蜴守宫 1-3 天 / 草食龟粪便量大含纤维 / 肉食蛇粪便少含毛发），**严禁通用阈值** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**食物种类影响粪便颜色形态 / 休眠期排泄频率下降+尿酸浓缩 / 抱蛋期排泄间隔延长 / 近期换食 < 7 天**），避免误报 |\n| 🧑‍⚖️ 结果性质 | **必须**在排泄物被踩踏 / 被垫材遮挡 / 光照色温偏移 / 分辨率 < 1080p / 无参考物无法归一化时返回 `excrement_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医** |\n| 📜 报告输出 | **必须**：排泄物评估报告**按 enclosure_id + individual_id + 排泄时间输出**，含尿酸 7 项 + 粪便 7 项 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史排泄物评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-excrement-analysis-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790730627636\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放爬宠排泄物形态识别（尿酸/粪便）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动爬宠排泄物分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尿酸 / 粪便 / 肾脏肠道健康提示）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史排泄物评估记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出排泄物健康评估报告\n\n## 场景代码\n\n- `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` - 爬宠排泄物形态识别（尿酸/粪便）\n\n## 输入约束\n\n- 摄像头：爬宠箱 / 饲养缸 / 蜥蜴/守宫/蛇类养殖场固定摄像头\n- 分辨率 ≥ 1080p（尿酸结晶纹理与粪便形态需高清）；建议含已知尺寸参考物（硬币/标尺）用于像素-实际尺寸换算\n- 拍摄角度：**俯拍**排泄物（需完整露出尿酸+粪便区域，避免遮挡）\n- 光照：均匀白色光源（避免色温偏移影响粪便颜色判定）\n- **核心采样窗口**：在发现排泄物后、清理前拍摄（**清理后无法回溯**）\n- **必须排除背景干扰**：垫材颜色/纹理可能与尿酸/粪便混淆（深色垫材上白色尿酸较易识别，浅色/花纹垫材上可能误判）\n- 多缸场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（豹纹守宫/睫角守宫/鬃狮蜥/蓝舌石龙子/玉米蛇/球蟒/苏卡达/草龟等）、个体体长（用于尿酸面积归一化）、上次喂食时间/内容、上次排泄时间、当前温度、湿度\n\n## 关键观测信号\n\n### 尿酸检测\n- `urate_detected` - **是否检测到尿酸**（核心指标，白色/乳白色区域）\n- `urate_color_classification` - 尿酸颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）\n- `urate_pixel_area` - 尿酸像素面积\n- `urate_area_normalized_by_body_length` - **尿酸面积归一化值**（核心指标，以个体体长为参考归一化，跨个体可比）\n- `urate_area_vs_historical_baseline` - 与历史正常值对比（百分比变化，**增大 > 50% 提示肾脏负担或脱水**）\n- `urate_texture` - 尿酸质地（smooth_paste_normal / gritty_granular / hard_chunky）\n- `urate_count` - 尿酸团块数量（正常 1 团，多团可能多次排泄或异常）\n\n### 粪便形态\n- `feces_detected` - **是否检测到粪便**（核心指标）\n- `feces_color_classification` - **粪便颜色分类**（核心指标：brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）\n- `feces_consistency` - **粪便形态分类**（核心指标：formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）\n- `feces_pixel_area` - 粪便像素面积\n- `feces_length_to_width_ratio` - 粪便长宽比（成形条状 > 2 / 稀软 ≈ 1）\n- `undigested_content_visible` - 是否可见未消化内容（整只昆虫外骨骼 / 毛发 / 植物纤维）\n- `feces_count` - 粪便团块数量\n\n### 上下文与排除信号\n- `is_post_feeding_within_72h` - 是否喂食后 72h 内（食物种类影响粪便颜色/形态：蟋蟀绿色便 / 粉鼠深色便 / 植物纤维便）\n- `is_during_shedding_period` - 是否处于蜕皮期（蜕皮期食欲下降可能影响排泄）\n- `is_gravid_female` - 是否抱蛋雌性（抱蛋期排泄间隔延长/尿酸增大属正常）\n- `is_brumation_period` - 是否休眠/冬眠期（休眠期排泄频率大幅下降，尿酸可能浓缩增大）\n- `substrate_type` - 垫材类型（reptile_carpet / paper_towel / coco_husk / bark / sand / tile）→ 影响排泄物识别难度\n- `recent_diet_change` - 近期是否更换食物 < 7 天（食物变更可导致短期粪便异常）\n- `image_quality_acceptable` - 图像质量是否合格\n\n## 综合判定\n\n- `excrement_healthy` - 排泄物健康（尿酸白色正常质地 + 粪便棕色成形条状）\n- `urate_mildly_abnormal` - **尿酸轻度异常**（尿酸面积较基线增大 20-50% OR 质地粗糙颗粒 OR 颜色偏黄/橙）\n- `urate_significantly_abnormal` - **尿酸显著异常**（尿酸面积较基线增大 > 50% OR 质地硬块 OR 颜色橙/红提示 → 脱水/肾脏负担风险）\n- `feces_mildly_abnormal` - **粪便轻度异常**（粪便稀软糊状 OR 颜色偏绿/黄 OR 可见少量未消化内容）\n- `feces_significantly_abnormal` - **粪便显著异常**（粪便水样 / 黑色柏油便 / 红色血便 / 大量黏液 / 大量未消化内容 → 肠炎/寄生虫/消化道出血风险）\n- `excrement_context_diet_or_brumation` - 饮食变更/休眠期上下文，排泄物异常属临时\n- `excrement_signal_unreliable` - 信号不可靠（排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化）\n\n## 4 级提醒策略递进\n\n- Level 1（excrement_healthy）：仅入库\n- Level 2（urate_mildly_abnormal / feces_mildly_abnormal / context_diet_or_brumation）：温和提示，建议**观察下次排泄是否恢复正常 + 检查温度是否在物种适宜范围 + 确认喂食内容/频率是否合适**\n- Level 3（urate_significantly_abnormal OR feces_significantly_abnormal）：紧急提示，建议**检查脱水迹象（皮肤皱褶/眼窝凹陷） + 提供充足饮水 + 检查温度梯度 + 收集新鲜粪便送检寄生虫 + 观察食欲精神 + 联系爬宠兽医（尿酸持续增大提示肾脏负担，血便/水样便提示肠炎或寄生虫感染）**\n- Level 4（尿酸显著异常 + 粪便显著异常 同时出现）：最高紧急提示，建议**立即联系爬宠兽医（肾脏负担+肠道问题同时出现，可能为系统性感染/败血症前兆） + 保持环境稳定 + 保留排泄物样本供兽医检查**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双重异常·败血症前兆风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量\n- **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方\n- **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断）\n- **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大尿酸面积、粪便稀软程度**\n- 物种特异性：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 必须按物种排泄习性判定\n- 必须考虑生理性上下文：**食物种类影响粪便颜色/形态**（蟋蟀绿便/粉鼠深色便） / **休眠/冬眠期排泄频率下降+尿酸浓缩** / **抱蛋期排泄间隔延长** / **近期换食 < 7 天** → 必须排除\n- 排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物 → 必须返回 `excrement_signal_unreliable`\n- 必须告知用户：AI 排泄物评估仅供参考，**异常排泄物确诊需粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查，联系专业爬宠兽医**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`urate_color_classification`、`urate_area_normalized_by_body_length`、`urate_area_vs_historical_baseline`、`urate_texture`、`feces_color_classification`、`feces_consistency`、`feces_length_to_width_ratio`、`undigested_content_visible`、`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 reptile enclosure images for urate size and feces appearance, then provides an assessment and alerts based on the observed waste.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nReptile keepers and developers of enclosure-monitoring tools use this skill to review images of reptile waste, track urate and feces changes, and retrieve assessment reports. Its health prompts are observational, not veterinary diagnoses.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Enclosure images or URLs are sent to an external analysis service.\n\nMitigation: Use only with appropriate consent and after checking the service's data-handling terms; avoid submitting sensitive or unnecessary imagery.\n\nRisk: The skill silently creates or reuses an account-linked identity and persists identifiers or tokens locally.\n\nMitigation: Review or clear the workspace data directory and smyx-api-key.txt when persistent identity or credential reuse is unwanted.\n\nRisk: Image-based health prompts may be mistaken for a veterinary diagnosis.\n\nMitigation: Treat assessments as screening guidance, and consult a reptile veterinarian for concerning or persistent findings.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/18072937735/skills/smyx-reptile-excrement-analysis-analysis)\n- [Reptile excrement analysis API reference](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Structured assessment or Markdown report list; optional JSON and saved report file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Includes urate and feces observations, alerts, suggested follow-up, and report links when available.]\n\n## Skill Version(s):\n\n1.0.11 (source: server-resolved ClawHub release metadata; bundled skill frontmatter says 1.0.16)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 46522 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (2760b), SKILL.md (20130b), 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-reptile-excrement-analysis-analysis\"\ndescription: \"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 💩 Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **爬宠排泄物形态识别（尿酸/粪便）** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` |\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). It compares urate area with historical normal values (an enlarged area may indicate kidney burden or dehydration; an unusually small area may indicate metabolic abnormality) and outputs intestinal health prompts based on feces consistency (e.g. 'feces well formed, healthy', 'feces soft, possible enteritis or parasites'). This skill helps keepers detect kidney and intestinal problems early. Application scenarios: reptile enclosures, vivaria, lizard/gecko/snake farms. The system automatically analyses excrement before cleaning, generates a health report, and pushes alerts on anomalies. Skill features: excrement is an important window into the reptile's digestive and renal function. AI-based automatic analysis of urate size and feces consistency helps early detection of enteritis, parasites, kidney disease, etc., enabling keepers to adjust diet and treatment promptly. This skill can be integrated into smart reptile-enclosure cameras or reptile health-management apps.\n\n通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。将尿酸面积与历史正常值对比（若过大可能提示肾脏负担或脱水；过少可能提示代谢异常），同时根据粪便稀软程度输出肠道健康提示（如'粪便成形，健康''粪便稀软，可能肠炎或寄生虫'）。该技能有助于饲养者及早发现爬宠的肾脏、肠道问题。应用场景：爬宠箱、饲养缸、蜥蜴/守宫/蛇类养殖场。系统在清理前自动分析排泄物，生成健康报告，异常时推送提醒。技能特点：排泄物是反映爬宠消化、肾脏功能的重要窗口。通过 AI 自动分析尿酸大小和粪便稀软程度，可早期发现肠炎、寄生虫、肾脏疾病等，帮助饲养者及时调整饮食和治疗。该技能可集成到智能爬宠箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物排泄物健康分析 AI。你的任务是分析爬宠箱内排泄物的高清图像（俯拍，含已知尺寸参考物用于像素-实际尺寸换算，分辨率 ≥ 1080p——尿酸结晶纹理与粪便形态需高清，均匀白色光源——避免色温偏移影响粪便颜色判定），围绕\"尿酸 + 粪便双通道\"展开三组检测：① **尿酸检测**：是否检测到尿酸（白色/乳白色区域）+ 颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）+ 像素面积 + **以个体体长为参考归一化面积**（核心指标，跨个体可比）+ 与历史正常值对比（**增大 > 50% 提示肾脏负担或脱水**）+ 质地（smooth_paste_normal / gritty_granular / hard_chunky）+ 团块数量；② **粪便形态**：是否检测到粪便 + **颜色分类**（brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）+ **形态分类**（formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）+ 像素面积 + 长宽比（成形 > 2 / 稀软 ≈ 1）+ 是否可见未消化内容 + 团块数量；③ **上下文与排除信号**：喂食后 72h 内食物种类影响（蟋蟀绿便 / 粉鼠深色便） / 蜕皮期 / 抱蛋雌性排泄间隔延长 / 休眠/冬眠期排泄频率下降+尿酸浓缩 / 垫材类型影响识别难度 / 近期换食 < 7 天。按 7 类综合场景判定（**excrement_healthy** / **urate_mildly_abnormal** / **urate_significantly_abnormal** / **feces_mildly_abnormal** / **feces_significantly_abnormal** / excrement_context_diet_or_brumation / excrement_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 观察下次排泄+检查温度+确认喂食 → Level 3 检查脱水+提供饮水+收集粪便送检寄生虫+联系爬宠兽医 → Level 4 🚨 尿酸显著异常+粪便显著异常同时出现→立即联系爬宠兽医，可能为系统性感染/败血症前兆）。**核心生理性上下文必须排除 4 项**：**食物种类影响粪便颜色/形态**（蟋蟀→绿便 / 粉鼠→深色便 / 杜比亚→棕色便，必须录入上次喂食内容）/ **休眠/冬眠期排泄频率大幅下降+尿酸浓缩增大**属正常 / **抱蛋期雌性排泄间隔延长**属正常 / **近期换食 < 7 天**粪便短期异常属临时。物种排泄习性硬约束：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 严禁通用排泄频率/尿酸面积盲判。排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化 → 必须返回 `excrement_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的排泄物评估；**🚨 严禁输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌**；**🚨 严禁输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方**；**🚨 严禁输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作**；严禁伪造夸大尿酸面积/粪便稀软程度；严禁越权代用户调整喂食内容/频率（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱 / 饲养缸 / 养殖场固定摄像头在发现排泄物后、清理前拍摄的高清图像（俯拍，含尺寸参考物），识别 7 类综合场景（excrement_healthy / urate_mildly_abnormal / urate_significantly_abnormal / feces_mildly_abnormal / feces_significantly_abnormal / excrement_context_diet_or_brumation / excrement_signal_unreliable）→ **三组指标**：尿酸检测 7 项（**urate_detected** + **urate_color_classification** + urate_pixel_area + **urate_area_normalized_by_body_length** + **urate_area_vs_historical_baseline** + urate_texture + urate_count）+ 粪便形态 7 项（**feces_detected** + **feces_color_classification** + **feces_consistency** + feces_pixel_area + feces_length_to_width_ratio + undigested_content_visible + feces_count）+ 排除上下文 7 项（喂食 72h 内容 / 蜕皮期 / 抱蛋期 / 休眠期 / 垫材类型 / 近期换食 / 图像质量）→ 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 | 排泄物区域检测与分割（尿酸 vs 粪便 vs 垫材背景） |\n| 2 | 尿酸白色/乳白色区域面积量化（像素面积 + 体长归一化） |\n| 3 | 尿酸颜色分类 |\n| 4 | 尿酸质地分类（膏状/颗粒/硬块） |\n| 5 | 尿酸面积与历史基线对比（7-30 天趋势） |\n| 6 | 粪便颜色分类（7 类） |\n| 7 | 粪便形态分类（5 类） |\n| 8 | 粪便长宽比计算 |\n| 9 | 未消化内容检测 |\n| 10 | 食物-粪便颜色关联（蟋蟀绿便/粉鼠深色便） |\n| 11 | 垫材干扰排除 |\n| 12 | 尺寸参考物标定 |\n| 13 | 物种排泄习性匹配 |\n| 14 | 图像质量门控（踩踏/遮挡/色温偏移 → unreliable） |\n| 15 | 用户 APP 推送 |\n| 16 | 4 级提醒递进 |\n| 17 | 单日提醒上限（**Level 4 不设上限**） |\n| 18 | 排泄物评估报告（按 enclosure_id + individual_id 输出） |\n| 19 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供爬宠箱排泄物高清图像/视频 URL 或文件需要分析时，默认触发本技能进行排泄物评估 |\n| 🔎 明确分析意图 | 当用户明确提及爬宠尿酸、爬宠粪便、爬宠排泄物、蜥蜴白便、守宫稀便、蛇血便、尿酸过大、爬宠拉稀、爬宠黑便等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看爬宠排泄物历史报告、尿酸趋势、粪便评估清单、显示所有排泄物报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_excrement_analysis_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备爬宠箱排泄物高清图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行爬宠排泄物形态识别 | 调用 `-m scripts.smyx_reptile_excrement_analysis_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地爬宠箱排泄物高清图像或视频静态帧文件路径 | 适用于本地文件分析 |\n| `--url` | 网络爬宠箱排泄物高清图像/视频 URL（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠排泄物场景默认 `other` | 按需填写 |\n| `--list` | 显示爬宠排泄物历史评估记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_excrement_analysis_analysis.py`](scripts/smyx_reptile_excrement_analysis_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**；建议含**已知尺寸参考物**用于像素换算；均匀白色光源；**必须在清理前拍摄** |\n| 🔎 使用提醒 | **核心评估三要素联合**：尿酸面积归一化（**增大 > 50% 触发预警**） + 粪便颜色（7 类） + 粪便形态（5 类） |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），**尿酸显著异常 + 粪便显著异常同时出现** 直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双异常·败血症前兆风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尿酸面积、粪便稀软程度；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 排泄习性基线判定**（蛇类 7-14 天一次复合排泄 / 蜥蜴守宫 1-3 天 / 草食龟粪便量大含纤维 / 肉食蛇粪便少含毛发），**严禁通用阈值** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**食物种类影响粪便颜色形态 / 休眠期排泄频率下降+尿酸浓缩 / 抱蛋期排泄间隔延长 / 近期换食 < 7 天**），避免误报 |\n| 🧑‍⚖️ 结果性质 | **必须**在排泄物被踩踏 / 被垫材遮挡 / 光照色温偏移 / 分辨率 < 1080p / 无参考物无法归一化时返回 `excrement_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医** |\n| 📜 报告输出 | **必须**：排泄物评估报告**按 enclosure_id + individual_id + 排泄时间输出**，含尿酸 7 项 + 粪便 7 项 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史排泄物评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-excrement-analysis-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787906609229\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放爬宠排泄物形态识别（尿酸/粪便）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动爬宠排泄物分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尿酸 / 粪便 / 肾脏肠道健康提示）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史排泄物评估记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出排泄物健康评估报告\n\n## 场景代码\n\n- `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` - 爬宠排泄物形态识别（尿酸/粪便）\n\n## 输入约束\n\n- 摄像头：爬宠箱 / 饲养缸 / 蜥蜴/守宫/蛇类养殖场固定摄像头\n- 分辨率 ≥ 1080p（尿酸结晶纹理与粪便形态需高清）；建议含已知尺寸参考物（硬币/标尺）用于像素-实际尺寸换算\n- 拍摄角度：**俯拍**排泄物（需完整露出尿酸+粪便区域，避免遮挡）\n- 光照：均匀白色光源（避免色温偏移影响粪便颜色判定）\n- **核心采样窗口**：在发现排泄物后、清理前拍摄（**清理后无法回溯**）\n- **必须排除背景干扰**：垫材颜色/纹理可能与尿酸/粪便混淆（深色垫材上白色尿酸较易识别，浅色/花纹垫材上可能误判）\n- 多缸场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（豹纹守宫/睫角守宫/鬃狮蜥/蓝舌石龙子/玉米蛇/球蟒/苏卡达/草龟等）、个体体长（用于尿酸面积归一化）、上次喂食时间/内容、上次排泄时间、当前温度、湿度\n\n## 关键观测信号\n\n### 尿酸检测\n- `urate_detected` - **是否检测到尿酸**（核心指标，白色/乳白色区域）\n- `urate_color_classification` - 尿酸颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）\n- `urate_pixel_area` - 尿酸像素面积\n- `urate_area_normalized_by_body_length` - **尿酸面积归一化值**（核心指标，以个体体长为参考归一化，跨个体可比）\n- `urate_area_vs_historical_baseline` - 与历史正常值对比（百分比变化，**增大 > 50% 提示肾脏负担或脱水**）\n- `urate_texture` - 尿酸质地（smooth_paste_normal / gritty_granular / hard_chunky）\n- `urate_count` - 尿酸团块数量（正常 1 团，多团可能多次排泄或异常）\n\n### 粪便形态\n- `feces_detected` - **是否检测到粪便**（核心指标）\n- `feces_color_classification` - **粪便颜色分类**（核心指标：brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）\n- `feces_consistency` - **粪便形态分类**（核心指标：formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）\n- `feces_pixel_area` - 粪便像素面积\n- `feces_length_to_width_ratio` - 粪便长宽比（成形条状 > 2 / 稀软 ≈ 1）\n- `undigested_content_visible` - 是否可见未消化内容（整只昆虫外骨骼 / 毛发 / 植物纤维）\n- `feces_count` - 粪便团块数量\n\n### 上下文与排除信号\n- `is_post_feeding_within_72h` - 是否喂食后 72h 内（食物种类影响粪便颜色/形态：蟋蟀绿色便 / 粉鼠深色便 / 植物纤维便）\n- `is_during_shedding_period` - 是否处于蜕皮期（蜕皮期食欲下降可能影响排泄）\n- `is_gravid_female` - 是否抱蛋雌性（抱蛋期排泄间隔延长/尿酸增大属正常）\n- `is_brumation_period` - 是否休眠/冬眠期（休眠期排泄频率大幅下降，尿酸可能浓缩增大）\n- `substrate_type` - 垫材类型（reptile_carpet / paper_towel / coco_husk / bark / sand / tile）→ 影响排泄物识别难度\n- `recent_diet_change` - 近期是否更换食物 < 7 天（食物变更可导致短期粪便异常）\n- `image_quality_acceptable` - 图像质量是否合格\n\n## 综合判定\n\n- `excrement_healthy` - 排泄物健康（尿酸白色正常质地 + 粪便棕色成形条状）\n- `urate_mildly_abnormal` - **尿酸轻度异常**（尿酸面积较基线增大 20-50% OR 质地粗糙颗粒 OR 颜色偏黄/橙）\n- `urate_significantly_abnormal` - **尿酸显著异常**（尿酸面积较基线增大 > 50% OR 质地硬块 OR 颜色橙/红提示 → 脱水/肾脏负担风险）\n- `feces_mildly_abnormal` - **粪便轻度异常**（粪便稀软糊状 OR 颜色偏绿/黄 OR 可见少量未消化内容）\n- `feces_significantly_abnormal` - **粪便显著异常**（粪便水样 / 黑色柏油便 / 红色血便 / 大量黏液 / 大量未消化内容 → 肠炎/寄生虫/消化道出血风险）\n- `excrement_context_diet_or_brumation` - 饮食变更/休眠期上下文，排泄物异常属临时\n- `excrement_signal_unreliable` - 信号不可靠（排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化）\n\n## 4 级提醒策略递进\n\n- Level 1（excrement_healthy）：仅入库\n- Level 2（urate_mildly_abnormal / feces_mildly_abnormal / context_diet_or_brumation）：温和提示，建议**观察下次排泄是否恢复正常 + 检查温度是否在物种适宜范围 + 确认喂食内容/频率是否合适**\n- Level 3（urate_significantly_abnormal OR feces_significantly_abnormal）：紧急提示，建议**检查脱水迹象（皮肤皱褶/眼窝凹陷） + 提供充足饮水 + 检查温度梯度 + 收集新鲜粪便送检寄生虫 + 观察食欲精神 + 联系爬宠兽医（尿酸持续增大提示肾脏负担，血便/水样便提示肠炎或寄生虫感染）**\n- Level 4（尿酸显著异常 + 粪便显著异常 同时出现）：最高紧急提示，建议**立即联系爬宠兽医（肾脏负担+肠道问题同时出现，可能为系统性感染/败血症前兆） + 保持环境稳定 + 保留排泄物样本供兽医检查**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双重异常·败血症前兆风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量\n- **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方\n- **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断）\n- **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大尿酸面积、粪便稀软程度**\n- 物种特异性：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 必须按物种排泄习性判定\n- 必须考虑生理性上下文：**食物种类影响粪便颜色/形态**（蟋蟀绿便/粉鼠深色便） / **休眠/冬眠期排泄频率下降+尿酸浓缩** / **抱蛋期排泄间隔延长** / **近期换食 < 7 天** → 必须排除\n- 排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物 → 必须返回 `excrement_signal_unreliable`\n- 必须告知用户：AI 排泄物评估仅供参考，**异常排泄物确诊需粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查，联系专业爬宠兽医**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`urate_color_classification`、`urate_area_normalized_by_body_length`、`urate_area_vs_historical_baseline`、`urate_texture`、`feces_color_classification`、`feces_consistency`、`feces_length_to_width_ratio`、`undigested_content_visible`、`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\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image or static video frame after excrement is found, then uses AI visual analysis to identify urate size and feces morphology.\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, farms, and developers use this skill to analyze enclosure images or video frames before cleaning, producing visual urate and feces assessments, anomaly prompts, report links, and history queries. It is intended to support monitoring workflows and should not be treated as a veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill silently creates or reuses an identity and sends media plus credentials to configured services.\n\nMitigation: Document what media and identity data are sent, require user-visible data handling review before deployment, and restrict service endpoints to trusted HTTPS hosts.\n\nRisk: The security verdict is suspicious because dev HTTP defaults and local shared token storage are present in the release evidence.\n\nMitigation: Remove dev HTTP defaults, store required tokens in a proper secret store, and install only after the publisher addresses the security guidance.\n\nRisk: Visual excrement assessment can be misleading when image quality, species context, feeding history, brumation, gravid status, or substrate interference are missing.\n\nMitigation: Gate analysis on adequate image quality and required reptile context, return an unreliable-signal result when constraints are not met, and avoid veterinary diagnosis or medication guidance.\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-reptile-excrement-analysis-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown and JSON analysis reports with report links and optional command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs may include urate metrics, feces morphology, alert level, recommended non-prescriptive actions, disclaimers, and historical report tables.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact frontmatter states 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 46606 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (3018b), SKILL.md (20130b), 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-reptile-excrement-analysis-analysis\"\ndescription: \"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 💩 Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **爬宠排泄物形态识别（尿酸/粪便）** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` |\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). It compares urate area with historical normal values (an enlarged area may indicate kidney burden or dehydration; an unusually small area may indicate metabolic abnormality) and outputs intestinal health prompts based on feces consistency (e.g. 'feces well formed, healthy', 'feces soft, possible enteritis or parasites'). This skill helps keepers detect kidney and intestinal problems early. Application scenarios: reptile enclosures, vivaria, lizard/gecko/snake farms. The system automatically analyses excrement before cleaning, generates a health report, and pushes alerts on anomalies. Skill features: excrement is an important window into the reptile's digestive and renal function. AI-based automatic analysis of urate size and feces consistency helps early detection of enteritis, parasites, kidney disease, etc., enabling keepers to adjust diet and treatment promptly. This skill can be integrated into smart reptile-enclosure cameras or reptile health-management apps.\n\n通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。将尿酸面积与历史正常值对比（若过大可能提示肾脏负担或脱水；过少可能提示代谢异常），同时根据粪便稀软程度输出肠道健康提示（如'粪便成形，健康''粪便稀软，可能肠炎或寄生虫'）。该技能有助于饲养者及早发现爬宠的肾脏、肠道问题。应用场景：爬宠箱、饲养缸、蜥蜴/守宫/蛇类养殖场。系统在清理前自动分析排泄物，生成健康报告，异常时推送提醒。技能特点：排泄物是反映爬宠消化、肾脏功能的重要窗口。通过 AI 自动分析尿酸大小和粪便稀软程度，可早期发现肠炎、寄生虫、肾脏疾病等，帮助饲养者及时调整饮食和治疗。该技能可集成到智能爬宠箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物排泄物健康分析 AI。你的任务是分析爬宠箱内排泄物的高清图像（俯拍，含已知尺寸参考物用于像素-实际尺寸换算，分辨率 ≥ 1080p——尿酸结晶纹理与粪便形态需高清，均匀白色光源——避免色温偏移影响粪便颜色判定），围绕\"尿酸 + 粪便双通道\"展开三组检测：① **尿酸检测**：是否检测到尿酸（白色/乳白色区域）+ 颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）+ 像素面积 + **以个体体长为参考归一化面积**（核心指标，跨个体可比）+ 与历史正常值对比（**增大 > 50% 提示肾脏负担或脱水**）+ 质地（smooth_paste_normal / gritty_granular / hard_chunky）+ 团块数量；② **粪便形态**：是否检测到粪便 + **颜色分类**（brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）+ **形态分类**（formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）+ 像素面积 + 长宽比（成形 > 2 / 稀软 ≈ 1）+ 是否可见未消化内容 + 团块数量；③ **上下文与排除信号**：喂食后 72h 内食物种类影响（蟋蟀绿便 / 粉鼠深色便） / 蜕皮期 / 抱蛋雌性排泄间隔延长 / 休眠/冬眠期排泄频率下降+尿酸浓缩 / 垫材类型影响识别难度 / 近期换食 < 7 天。按 7 类综合场景判定（**excrement_healthy** / **urate_mildly_abnormal** / **urate_significantly_abnormal** / **feces_mildly_abnormal** / **feces_significantly_abnormal** / excrement_context_diet_or_brumation / excrement_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 观察下次排泄+检查温度+确认喂食 → Level 3 检查脱水+提供饮水+收集粪便送检寄生虫+联系爬宠兽医 → Level 4 🚨 尿酸显著异常+粪便显著异常同时出现→立即联系爬宠兽医，可能为系统性感染/败血症前兆）。**核心生理性上下文必须排除 4 项**：**食物种类影响粪便颜色/形态**（蟋蟀→绿便 / 粉鼠→深色便 / 杜比亚→棕色便，必须录入上次喂食内容）/ **休眠/冬眠期排泄频率大幅下降+尿酸浓缩增大**属正常 / **抱蛋期雌性排泄间隔延长**属正常 / **近期换食 < 7 天**粪便短期异常属临时。物种排泄习性硬约束：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 严禁通用排泄频率/尿酸面积盲判。排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化 → 必须返回 `excrement_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的排泄物评估；**🚨 严禁输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌**；**🚨 严禁输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方**；**🚨 严禁输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作**；严禁伪造夸大尿酸面积/粪便稀软程度；严禁越权代用户调整喂食内容/频率（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱 / 饲养缸 / 养殖场固定摄像头在发现排泄物后、清理前拍摄的高清图像（俯拍，含尺寸参考物），识别 7 类综合场景（excrement_healthy / urate_mildly_abnormal / urate_significantly_abnormal / feces_mildly_abnormal / feces_significantly_abnormal / excrement_context_diet_or_brumation / excrement_signal_unreliable）→ **三组指标**：尿酸检测 7 项（**urate_detected** + **urate_color_classification** + urate_pixel_area + **urate_area_normalized_by_body_length** + **urate_area_vs_historical_baseline** + urate_texture + urate_count）+ 粪便形态 7 项（**feces_detected** + **feces_color_classification** + **feces_consistency** + feces_pixel_area + feces_length_to_width_ratio + undigested_content_visible + feces_count）+ 排除上下文 7 项（喂食 72h 内容 / 蜕皮期 / 抱蛋期 / 休眠期 / 垫材类型 / 近期换食 / 图像质量）→ 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 | 排泄物区域检测与分割（尿酸 vs 粪便 vs 垫材背景） |\n| 2 | 尿酸白色/乳白色区域面积量化（像素面积 + 体长归一化） |\n| 3 | 尿酸颜色分类 |\n| 4 | 尿酸质地分类（膏状/颗粒/硬块） |\n| 5 | 尿酸面积与历史基线对比（7-30 天趋势） |\n| 6 | 粪便颜色分类（7 类） |\n| 7 | 粪便形态分类（5 类） |\n| 8 | 粪便长宽比计算 |\n| 9 | 未消化内容检测 |\n| 10 | 食物-粪便颜色关联（蟋蟀绿便/粉鼠深色便） |\n| 11 | 垫材干扰排除 |\n| 12 | 尺寸参考物标定 |\n| 13 | 物种排泄习性匹配 |\n| 14 | 图像质量门控（踩踏/遮挡/色温偏移 → unreliable） |\n| 15 | 用户 APP 推送 |\n| 16 | 4 级提醒递进 |\n| 17 | 单日提醒上限（**Level 4 不设上限**） |\n| 18 | 排泄物评估报告（按 enclosure_id + individual_id 输出） |\n| 19 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供爬宠箱排泄物高清图像/视频 URL 或文件需要分析时，默认触发本技能进行排泄物评估 |\n| 🔎 明确分析意图 | 当用户明确提及爬宠尿酸、爬宠粪便、爬宠排泄物、蜥蜴白便、守宫稀便、蛇血便、尿酸过大、爬宠拉稀、爬宠黑便等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看爬宠排泄物历史报告、尿酸趋势、粪便评估清单、显示所有排泄物报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_excrement_analysis_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备爬宠箱排泄物高清图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行爬宠排泄物形态识别 | 调用 `-m scripts.smyx_reptile_excrement_analysis_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地爬宠箱排泄物高清图像或视频静态帧文件路径 | 适用于本地文件分析 |\n| `--url` | 网络爬宠箱排泄物高清图像/视频 URL（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠排泄物场景默认 `other` | 按需填写 |\n| `--list` | 显示爬宠排泄物历史评估记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_excrement_analysis_analysis.py`](scripts/smyx_reptile_excrement_analysis_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**；建议含**已知尺寸参考物**用于像素换算；均匀白色光源；**必须在清理前拍摄** |\n| 🔎 使用提醒 | **核心评估三要素联合**：尿酸面积归一化（**增大 > 50% 触发预警**） + 粪便颜色（7 类） + 粪便形态（5 类） |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），**尿酸显著异常 + 粪便显著异常同时出现** 直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双异常·败血症前兆风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尿酸面积、粪便稀软程度；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 排泄习性基线判定**（蛇类 7-14 天一次复合排泄 / 蜥蜴守宫 1-3 天 / 草食龟粪便量大含纤维 / 肉食蛇粪便少含毛发），**严禁通用阈值** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**食物种类影响粪便颜色形态 / 休眠期排泄频率下降+尿酸浓缩 / 抱蛋期排泄间隔延长 / 近期换食 < 7 天**），避免误报 |\n| 🧑‍⚖️ 结果性质 | **必须**在排泄物被踩踏 / 被垫材遮挡 / 光照色温偏移 / 分辨率 < 1080p / 无参考物无法归一化时返回 `excrement_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医** |\n| 📜 报告输出 | **必须**：排泄物评估报告**按 enclosure_id + individual_id + 排泄时间输出**，含尿酸 7 项 + 粪便 7 项 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史排泄物评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-excrement-analysis-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787351009176\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放爬宠排泄物形态识别（尿酸/粪便）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动爬宠排泄物分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尿酸 / 粪便 / 肾脏肠道健康提示）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史排泄物评估记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出排泄物健康评估报告\n\n## 场景代码\n\n- `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` - 爬宠排泄物形态识别（尿酸/粪便）\n\n## 输入约束\n\n- 摄像头：爬宠箱 / 饲养缸 / 蜥蜴/守宫/蛇类养殖场固定摄像头\n- 分辨率 ≥ 1080p（尿酸结晶纹理与粪便形态需高清）；建议含已知尺寸参考物（硬币/标尺）用于像素-实际尺寸换算\n- 拍摄角度：**俯拍**排泄物（需完整露出尿酸+粪便区域，避免遮挡）\n- 光照：均匀白色光源（避免色温偏移影响粪便颜色判定）\n- **核心采样窗口**：在发现排泄物后、清理前拍摄（**清理后无法回溯**）\n- **必须排除背景干扰**：垫材颜色/纹理可能与尿酸/粪便混淆（深色垫材上白色尿酸较易识别，浅色/花纹垫材上可能误判）\n- 多缸场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（豹纹守宫/睫角守宫/鬃狮蜥/蓝舌石龙子/玉米蛇/球蟒/苏卡达/草龟等）、个体体长（用于尿酸面积归一化）、上次喂食时间/内容、上次排泄时间、当前温度、湿度\n\n## 关键观测信号\n\n### 尿酸检测\n- `urate_detected` - **是否检测到尿酸**（核心指标，白色/乳白色区域）\n- `urate_color_classification` - 尿酸颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）\n- `urate_pixel_area` - 尿酸像素面积\n- `urate_area_normalized_by_body_length` - **尿酸面积归一化值**（核心指标，以个体体长为参考归一化，跨个体可比）\n- `urate_area_vs_historical_baseline` - 与历史正常值对比（百分比变化，**增大 > 50% 提示肾脏负担或脱水**）\n- `urate_texture` - 尿酸质地（smooth_paste_normal / gritty_granular / hard_chunky）\n- `urate_count` - 尿酸团块数量（正常 1 团，多团可能多次排泄或异常）\n\n### 粪便形态\n- `feces_detected` - **是否检测到粪便**（核心指标）\n- `feces_color_classification` - **粪便颜色分类**（核心指标：brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）\n- `feces_consistency` - **粪便形态分类**（核心指标：formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）\n- `feces_pixel_area` - 粪便像素面积\n- `feces_length_to_width_ratio` - 粪便长宽比（成形条状 > 2 / 稀软 ≈ 1）\n- `undigested_content_visible` - 是否可见未消化内容（整只昆虫外骨骼 / 毛发 / 植物纤维）\n- `feces_count` - 粪便团块数量\n\n### 上下文与排除信号\n- `is_post_feeding_within_72h` - 是否喂食后 72h 内（食物种类影响粪便颜色/形态：蟋蟀绿色便 / 粉鼠深色便 / 植物纤维便）\n- `is_during_shedding_period` - 是否处于蜕皮期（蜕皮期食欲下降可能影响排泄）\n- `is_gravid_female` - 是否抱蛋雌性（抱蛋期排泄间隔延长/尿酸增大属正常）\n- `is_brumation_period` - 是否休眠/冬眠期（休眠期排泄频率大幅下降，尿酸可能浓缩增大）\n- `substrate_type` - 垫材类型（reptile_carpet / paper_towel / coco_husk / bark / sand / tile）→ 影响排泄物识别难度\n- `recent_diet_change` - 近期是否更换食物 < 7 天（食物变更可导致短期粪便异常）\n- `image_quality_acceptable` - 图像质量是否合格\n\n## 综合判定\n\n- `excrement_healthy` - 排泄物健康（尿酸白色正常质地 + 粪便棕色成形条状）\n- `urate_mildly_abnormal` - **尿酸轻度异常**（尿酸面积较基线增大 20-50% OR 质地粗糙颗粒 OR 颜色偏黄/橙）\n- `urate_significantly_abnormal` - **尿酸显著异常**（尿酸面积较基线增大 > 50% OR 质地硬块 OR 颜色橙/红提示 → 脱水/肾脏负担风险）\n- `feces_mildly_abnormal` - **粪便轻度异常**（粪便稀软糊状 OR 颜色偏绿/黄 OR 可见少量未消化内容）\n- `feces_significantly_abnormal` - **粪便显著异常**（粪便水样 / 黑色柏油便 / 红色血便 / 大量黏液 / 大量未消化内容 → 肠炎/寄生虫/消化道出血风险）\n- `excrement_context_diet_or_brumation` - 饮食变更/休眠期上下文，排泄物异常属临时\n- `excrement_signal_unreliable` - 信号不可靠（排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化）\n\n## 4 级提醒策略递进\n\n- Level 1（excrement_healthy）：仅入库\n- Level 2（urate_mildly_abnormal / feces_mildly_abnormal / context_diet_or_brumation）：温和提示，建议**观察下次排泄是否恢复正常 + 检查温度是否在物种适宜范围 + 确认喂食内容/频率是否合适**\n- Level 3（urate_significantly_abnormal OR feces_significantly_abnormal）：紧急提示，建议**检查脱水迹象（皮肤皱褶/眼窝凹陷） + 提供充足饮水 + 检查温度梯度 + 收集新鲜粪便送检寄生虫 + 观察食欲精神 + 联系爬宠兽医（尿酸持续增大提示肾脏负担，血便/水样便提示肠炎或寄生虫感染）**\n- Level 4（尿酸显著异常 + 粪便显著异常 同时出现）：最高紧急提示，建议**立即联系爬宠兽医（肾脏负担+肠道问题同时出现，可能为系统性感染/败血症前兆） + 保持环境稳定 + 保留排泄物样本供兽医检查**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双重异常·败血症前兆风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量\n- **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方\n- **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断）\n- **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大尿酸面积、粪便稀软程度**\n- 物种特异性：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 必须按物种排泄习性判定\n- 必须考虑生理性上下文：**食物种类影响粪便颜色/形态**（蟋蟀绿便/粉鼠深色便） / **休眠/冬眠期排泄频率下降+尿酸浓缩** / **抱蛋期排泄间隔延长** / **近期换食 < 7 天** → 必须排除\n- 排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物 → 必须返回 `excrement_signal_unreliable`\n- 必须告知用户：AI 排泄物评估仅供参考，**异常排泄物确诊需粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查，联系专业爬宠兽医**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`urate_color_classification`、`urate_area_normalized_by_body_length`、`urate_area_vs_historical_baseline`、`urate_texture`、`feces_color_classification`、`feces_consistency`、`feces_length_to_width_ratio`、`undigested_content_visible`、`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 reptile enclosure images or video frames to identify urate size, color, and texture alongside feces color and morphology, then returns structured health-oriented observations and suggested next actions.\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, farm operators, and app or enclosure developers use this skill to submit reptile waste images or URLs, receive structured urate and feces observations, and review historical reports when available. The output is a visual assessment aid, not a veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Security evidence reports that uploaded reptile images, videos, URLs, report metadata, and an automatically selected identity may be sent to LifeEmergence cloud endpoints.\n\nMitigation: Review before installing, use only if cloud processing is acceptable, and prefer an isolated workspace with a disposable account or identity for testing.\n\nRisk: Security evidence reports that tokens and profile data may be retained in a shared local SQLite database.\n\nMitigation: Use a dedicated workspace, avoid sharing the workspace between unrelated tasks or users, and clear local data when the skill is no longer needed.\n\nRisk: Visual waste analysis can be mistaken for veterinary diagnosis or treatment advice.\n\nMitigation: Treat outputs as non-diagnostic screening guidance, avoid medication or procedure recommendations, and direct significant or repeated abnormalities to a qualified reptile veterinarian.\n\nRisk: Poor image quality, missing scale references, substrate obstruction, or missing species and feeding context can make visual assessment unreliable.\n\nMitigation: Require clear top-down pre-cleaning images or frames, adequate lighting, a size reference where possible, and species, feeding, shedding, brumation, and recent diet-change context before relying on results.\n\n## Reference(s):\n\n- [API interface documentation](references/api_doc.md)\n- [Analysis API error and request format reference](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Guidance]\n\n**Output Format:** [Markdown text containing structured JSON-like analysis results and optional report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save the returned analysis text to a requested output file; historical report queries return structured report lists.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release evidence; artifact frontmatter reports 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, 46774 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (3364b), SKILL.md (20129b), 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.8:SKILL.md\n\n---\nname: \"smyx-reptile-excrement-analysis-analysis\"\ndescription: \"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 💩 Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **爬宠排泄物形态识别（尿酸/粪便）** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` |\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). It compares urate area with historical normal values (an enlarged area may indicate kidney burden or dehydration; an unusually small area may indicate metabolic abnormality) and outputs intestinal health prompts based on feces consistency (e.g. 'feces well formed, healthy', 'feces soft, possible enteritis or parasites'). This skill helps keepers detect kidney and intestinal problems early. Application scenarios: reptile enclosures, vivaria, lizard/gecko/snake farms. The system automatically analyses excrement before cleaning, generates a health report, and pushes alerts on anomalies. Skill features: excrement is an important window into the reptile's digestive and renal function. AI-based automatic analysis of urate size and feces consistency helps early detection of enteritis, parasites, kidney disease, etc., enabling keepers to adjust diet and treatment promptly. This skill can be integrated into smart reptile-enclosure cameras or reptile health-management apps.\n\n通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。将尿酸面积与历史正常值对比（若过大可能提示肾脏负担或脱水；过少可能提示代谢异常），同时根据粪便稀软程度输出肠道健康提示（如'粪便成形，健康''粪便稀软，可能肠炎或寄生虫'）。该技能有助于饲养者及早发现爬宠的肾脏、肠道问题。应用场景：爬宠箱、饲养缸、蜥蜴/守宫/蛇类养殖场。系统在清理前自动分析排泄物，生成健康报告，异常时推送提醒。技能特点：排泄物是反映爬宠消化、肾脏功能的重要窗口。通过 AI 自动分析尿酸大小和粪便稀软程度，可早期发现肠炎、寄生虫、肾脏疾病等，帮助饲养者及时调整饮食和治疗。该技能可集成到智能爬宠箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物排泄物健康分析 AI。你的任务是分析爬宠箱内排泄物的高清图像（俯拍，含已知尺寸参考物用于像素-实际尺寸换算，分辨率 ≥ 1080p——尿酸结晶纹理与粪便形态需高清，均匀白色光源——避免色温偏移影响粪便颜色判定），围绕\"尿酸 + 粪便双通道\"展开三组检测：① **尿酸检测**：是否检测到尿酸（白色/乳白色区域）+ 颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）+ 像素面积 + **以个体体长为参考归一化面积**（核心指标，跨个体可比）+ 与历史正常值对比（**增大 > 50% 提示肾脏负担或脱水**）+ 质地（smooth_paste_normal / gritty_granular / hard_chunky）+ 团块数量；② **粪便形态**：是否检测到粪便 + **颜色分类**（brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）+ **形态分类**（formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）+ 像素面积 + 长宽比（成形 > 2 / 稀软 ≈ 1）+ 是否可见未消化内容 + 团块数量；③ **上下文与排除信号**：喂食后 72h 内食物种类影响（蟋蟀绿便 / 粉鼠深色便） / 蜕皮期 / 抱蛋雌性排泄间隔延长 / 休眠/冬眠期排泄频率下降+尿酸浓缩 / 垫材类型影响识别难度 / 近期换食 < 7 天。按 7 类综合场景判定（**excrement_healthy** / **urate_mildly_abnormal** / **urate_significantly_abnormal** / **feces_mildly_abnormal** / **feces_significantly_abnormal** / excrement_context_diet_or_brumation / excrement_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 观察下次排泄+检查温度+确认喂食 → Level 3 检查脱水+提供饮水+收集粪便送检寄生虫+联系爬宠兽医 → Level 4 🚨 尿酸显著异常+粪便显著异常同时出现→立即联系爬宠兽医，可能为系统性感染/败血症前兆）。**核心生理性上下文必须排除 4 项**：**食物种类影响粪便颜色/形态**（蟋蟀→绿便 / 粉鼠→深色便 / 杜比亚→棕色便，必须录入上次喂食内容）/ **休眠/冬眠期排泄频率大幅下降+尿酸浓缩增大**属正常 / **抱蛋期雌性排泄间隔延长**属正常 / **近期换食 < 7 天**粪便短期异常属临时。物种排泄习性硬约束：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 严禁通用排泄频率/尿酸面积盲判。排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化 → 必须返回 `excrement_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的排泄物评估；**🚨 严禁输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌**；**🚨 严禁输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方**；**🚨 严禁输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作**；严禁伪造夸大尿酸面积/粪便稀软程度；严禁越权代用户调整喂食内容/频率（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱 / 饲养缸 / 养殖场固定摄像头在发现排泄物后、清理前拍摄的高清图像（俯拍，含尺寸参考物），识别 7 类综合场景（excrement_healthy / urate_mildly_abnormal / urate_significantly_abnormal / feces_mildly_abnormal / feces_significantly_abnormal / excrement_context_diet_or_brumation / excrement_signal_unreliable）→ **三组指标**：尿酸检测 7 项（**urate_detected** + **urate_color_classification** + urate_pixel_area + **urate_area_normalized_by_body_length** + **urate_area_vs_historical_baseline** + urate_texture + urate_count）+ 粪便形态 7 项（**feces_detected** + **feces_color_classification** + **feces_consistency** + feces_pixel_area + feces_length_to_width_ratio + undigested_content_visible + feces_count）+ 排除上下文 7 项（喂食 72h 内容 / 蜕皮期 / 抱蛋期 / 休眠期 / 垫材类型 / 近期换食 / 图像质量）→ 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 | 排泄物区域检测与分割（尿酸 vs 粪便 vs 垫材背景） |\n| 2 | 尿酸白色/乳白色区域面积量化（像素面积 + 体长归一化） |\n| 3 | 尿酸颜色分类 |\n| 4 | 尿酸质地分类（膏状/颗粒/硬块） |\n| 5 | 尿酸面积与历史基线对比（7-30 天趋势） |\n| 6 | 粪便颜色分类（7 类） |\n| 7 | 粪便形态分类（5 类） |\n| 8 | 粪便长宽比计算 |\n| 9 | 未消化内容检测 |\n| 10 | 食物-粪便颜色关联（蟋蟀绿便/粉鼠深色便） |\n| 11 | 垫材干扰排除 |\n| 12 | 尺寸参考物标定 |\n| 13 | 物种排泄习性匹配 |\n| 14 | 图像质量门控（踩踏/遮挡/色温偏移 → unreliable） |\n| 15 | 用户 APP 推送 |\n| 16 | 4 级提醒递进 |\n| 17 | 单日提醒上限（**Level 4 不设上限**） |\n| 18 | 排泄物评估报告（按 enclosure_id + individual_id 输出） |\n| 19 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供爬宠箱排泄物高清图像/视频 URL 或文件需要分析时，默认触发本技能进行排泄物评估 |\n| 🔎 明确分析意图 | 当用户明确提及爬宠尿酸、爬宠粪便、爬宠排泄物、蜥蜴白便、守宫稀便、蛇血便、尿酸过大、爬宠拉稀、爬宠黑便等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看爬宠排泄物历史报告、尿酸趋势、粪便评估清单、显示所有排泄物报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_excrement_analysis_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备爬宠箱排泄物高清图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行爬宠排泄物形态识别 | 调用 `-m scripts.smyx_reptile_excrement_analysis_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地爬宠箱排泄物高清图像或视频静态帧文件路径 | 适用于本地文件分析 |\n| `--url` | 网络爬宠箱排泄物高清图像/视频 URL（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠排泄物场景默认 `other` | 按需填写 |\n| `--list` | 显示爬宠排泄物历史评估记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_excrement_analysis_analysis.py`](scripts/smyx_reptile_excrement_analysis_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**；建议含**已知尺寸参考物**用于像素换算；均匀白色光源；**必须在清理前拍摄** |\n| 🔎 使用提醒 | **核心评估三要素联合**：尿酸面积归一化（**增大 > 50% 触发预警**） + 粪便颜色（7 类） + 粪便形态（5 类） |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），**尿酸显著异常 + 粪便显著异常同时出现** 直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双异常·败血症前兆风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尿酸面积、粪便稀软程度；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 排泄习性基线判定**（蛇类 7-14 天一次复合排泄 / 蜥蜴守宫 1-3 天 / 草食龟粪便量大含纤维 / 肉食蛇粪便少含毛发），**严禁通用阈值** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**食物种类影响粪便颜色形态 / 休眠期排泄频率下降+尿酸浓缩 / 抱蛋期排泄间隔延长 / 近期换食 < 7 天**），避免误报 |\n| 🧑‍⚖️ 结果性质 | **必须**在排泄物被踩踏 / 被垫材遮挡 / 光照色温偏移 / 分辨率 < 1080p / 无参考物无法归一化时返回 `excrement_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医** |\n| 📜 报告输出 | **必须**：排泄物评估报告**按 enclosure_id + individual_id + 排泄时间输出**，含尿酸 7 项 + 粪便 7 项 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史排泄物评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-excrement-analysis-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786339234945\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放爬宠排泄物形态识别（尿酸/粪便）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动爬宠排泄物分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尿酸 / 粪便 / 肾脏肠道健康提示）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史排泄物评估记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出排泄物健康评估报告\n\n## 场景代码\n\n- `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` - 爬宠排泄物形态识别（尿酸/粪便）\n\n## 输入约束\n\n- 摄像头：爬宠箱 / 饲养缸 / 蜥蜴/守宫/蛇类养殖场固定摄像头\n- 分辨率 ≥ 1080p（尿酸结晶纹理与粪便形态需高清）；建议含已知尺寸参考物（硬币/标尺）用于像素-实际尺寸换算\n- 拍摄角度：**俯拍**排泄物（需完整露出尿酸+粪便区域，避免遮挡）\n- 光照：均匀白色光源（避免色温偏移影响粪便颜色判定）\n- **核心采样窗口**：在发现排泄物后、清理前拍摄（**清理后无法回溯**）\n- **必须排除背景干扰**：垫材颜色/纹理可能与尿酸/粪便混淆（深色垫材上白色尿酸较易识别，浅色/花纹垫材上可能误判）\n- 多缸场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（豹纹守宫/睫角守宫/鬃狮蜥/蓝舌石龙子/玉米蛇/球蟒/苏卡达/草龟等）、个体体长（用于尿酸面积归一化）、上次喂食时间/内容、上次排泄时间、当前温度、湿度\n\n## 关键观测信号\n\n### 尿酸检测\n- `urate_detected` - **是否检测到尿酸**（核心指标，白色/乳白色区域）\n- `urate_color_classification` - 尿酸颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）\n- `urate_pixel_area` - 尿酸像素面积\n- `urate_area_normalized_by_body_length` - **尿酸面积归一化值**（核心指标，以个体体长为参考归一化，跨个体可比）\n- `urate_area_vs_historical_baseline` - 与历史正常值对比（百分比变化，**增大 > 50% 提示肾脏负担或脱水**）\n- `urate_texture` - 尿酸质地（smooth_paste_normal / gritty_granular / hard_chunky）\n- `urate_count` - 尿酸团块数量（正常 1 团，多团可能多次排泄或异常）\n\n### 粪便形态\n- `feces_detected` - **是否检测到粪便**（核心指标）\n- `feces_color_classification` - **粪便颜色分类**（核心指标：brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）\n- `feces_consistency` - **粪便形态分类**（核心指标：formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）\n- `feces_pixel_area` - 粪便像素面积\n- `feces_length_to_width_ratio` - 粪便长宽比（成形条状 > 2 / 稀软 ≈ 1）\n- `undigested_content_visible` - 是否可见未消化内容（整只昆虫外骨骼 / 毛发 / 植物纤维）\n- `feces_count` - 粪便团块数量\n\n### 上下文与排除信号\n- `is_post_feeding_within_72h` - 是否喂食后 72h 内（食物种类影响粪便颜色/形态：蟋蟀绿色便 / 粉鼠深色便 / 植物纤维便）\n- `is_during_shedding_period` - 是否处于蜕皮期（蜕皮期食欲下降可能影响排泄）\n- `is_gravid_female` - 是否抱蛋雌性（抱蛋期排泄间隔延长/尿酸增大属正常）\n- `is_brumation_period` - 是否休眠/冬眠期（休眠期排泄频率大幅下降，尿酸可能浓缩增大）\n- `substrate_type` - 垫材类型（reptile_carpet / paper_towel / coco_husk / bark / sand / tile）→ 影响排泄物识别难度\n- `recent_diet_change` - 近期是否更换食物 < 7 天（食物变更可导致短期粪便异常）\n- `image_quality_acceptable` - 图像质量是否合格\n\n## 综合判定\n\n- `excrement_healthy` - 排泄物健康（尿酸白色正常质地 + 粪便棕色成形条状）\n- `urate_mildly_abnormal` - **尿酸轻度异常**（尿酸面积较基线增大 20-50% OR 质地粗糙颗粒 OR 颜色偏黄/橙）\n- `urate_significantly_abnormal` - **尿酸显著异常**（尿酸面积较基线增大 > 50% OR 质地硬块 OR 颜色橙/红提示 → 脱水/肾脏负担风险）\n- `feces_mildly_abnormal` - **粪便轻度异常**（粪便稀软糊状 OR 颜色偏绿/黄 OR 可见少量未消化内容）\n- `feces_significantly_abnormal` - **粪便显著异常**（粪便水样 / 黑色柏油便 / 红色血便 / 大量黏液 / 大量未消化内容 → 肠炎/寄生虫/消化道出血风险）\n- `excrement_context_diet_or_brumation` - 饮食变更/休眠期上下文，排泄物异常属临时\n- `excrement_signal_unreliable` - 信号不可靠（排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化）\n\n## 4 级提醒策略递进\n\n- Level 1（excrement_healthy）：仅入库\n- Level 2（urate_mildly_abnormal / feces_mildly_abnormal / context_diet_or_brumation）：温和提示，建议**观察下次排泄是否恢复正常 + 检查温度是否在物种适宜范围 + 确认喂食内容/频率是否合适**\n- Level 3（urate_significantly_abnormal OR feces_significantly_abnormal）：紧急提示，建议**检查脱水迹象（皮肤皱褶/眼窝凹陷） + 提供充足饮水 + 检查温度梯度 + 收集新鲜粪便送检寄生虫 + 观察食欲精神 + 联系爬宠兽医（尿酸持续增大提示肾脏负担，血便/水样便提示肠炎或寄生虫感染）**\n- Level 4（尿酸显著异常 + 粪便显著异常 同时出现）：最高紧急提示，建议**立即联系爬宠兽医（肾脏负担+肠道问题同时出现，可能为系统性感染/败血症前兆） + 保持环境稳定 + 保留排泄物样本供兽医检查**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双重异常·败血症前兆风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量\n- **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方\n- **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断）\n- **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大尿酸面积、粪便稀软程度**\n- 物种特异性：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 必须按物种排泄习性判定\n- 必须考虑生理性上下文：**食物种类影响粪便颜色/形态**（蟋蟀绿便/粉鼠深色便） / **休眠/冬眠期排泄频率下降+尿酸浓缩** / **抱蛋期排泄间隔延长** / **近期换食 < 7 天** → 必须排除\n- 排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物 → 必须返回 `excrement_signal_unreliable`\n- 必须告知用户：AI 排泄物评估仅供参考，**异常排泄物确诊需粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查，联系专业爬宠兽医**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`urate_color_classification`、`urate_area_normalized_by_body_length`、`urate_area_vs_historical_baseline`、`urate_texture`、`feces_color_classification`、`feces_consistency`、`feces_length_to_width_ratio`、`undigested_content_visible`、`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: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) - including its size (pixel area) - and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody).\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[18072937735](https://clawhub.ai/user/18072937735)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal reptile keepers, vivarium operators, farms, and app developers use this skill to analyze enclosure images or video frames of reptile excrement before cleaning. It produces visual assessment reports for urate size/color and feces morphology, flags unreliable imagery, and suggests observation or veterinary follow-up without providing diagnoses or prescriptions.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Submitted media and history queries are handled through cloud analysis services and may be associated with an automatically created or reused identity.\n\nMitigation: Use only when cloud analysis and account-linked history are approved for the media; avoid sensitive facility images unless those data flows are acceptable.\n\nRisk: The security evidence reports local token storage, silent identity creation or reuse, and possible workspace API-key file access.\n\nMitigation: Review identity, token, and credential handling before deployment, and restrict use to environments where those controls are acceptable.\n\nRisk: Visual assessment can be unreliable when images are obstructed, color-shifted, below 1080p, or missing a size reference.\n\nMitigation: Treat such cases as unreliable and request a clear overhead image with complete urate and feces regions, white lighting, and a known-size reference.\n\nRisk: The skill provides visual health prompts that could be mistaken for veterinary diagnosis or treatment advice.\n\nMitigation: Keep outputs limited to visual assessment, avoid drug names, dosages, and procedures, and direct significant abnormalities to a qualified reptile veterinarian.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-reptile-excrement-analysis-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Reptile excrement analysis API documentation](artifact/references/api_doc.md)\n- [Shared analysis API documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown-style report text with structured JSON analysis content and optional report export link]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Supports local image/video-frame files, media URLs, and account-linked historical report listing through the skill's command-line workflow.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact SKILL.md frontmatter reports 1.0.9)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.8:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.8:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.7: 31 files, 46377 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (2554b), SKILL.md (20129b), 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-reptile-excrement-analysis-analysis\"\ndescription: \"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 💩 Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **爬宠排泄物形态识别（尿酸/粪便）** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` |\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). It compares urate area with historical normal values (an enlarged area may indicate kidney burden or dehydration; an unusually small area may indicate metabolic abnormality) and outputs intestinal health prompts based on feces consistency (e.g. 'feces well formed, healthy', 'feces soft, possible enteritis or parasites'). This skill helps keepers detect kidney and intestinal problems early. Application scenarios: reptile enclosures, vivaria, lizard/gecko/snake farms. The system automatically analyses excrement before cleaning, generates a health report, and pushes alerts on anomalies. Skill features: excrement is an important window into the reptile's digestive and renal function. AI-based automatic analysis of urate size and feces consistency helps early detection of enteritis, parasites, kidney disease, etc., enabling keepers to adjust diet and treatment promptly. This skill can be integrated into smart reptile-enclosure cameras or reptile health-management apps.\n\n通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。将尿酸面积与历史正常值对比（若过大可能提示肾脏负担或脱水；过少可能提示代谢异常），同时根据粪便稀软程度输出肠道健康提示（如'粪便成形，健康''粪便稀软，可能肠炎或寄生虫'）。该技能有助于饲养者及早发现爬宠的肾脏、肠道问题。应用场景：爬宠箱、饲养缸、蜥蜴/守宫/蛇类养殖场。系统在清理前自动分析排泄物，生成健康报告，异常时推送提醒。技能特点：排泄物是反映爬宠消化、肾脏功能的重要窗口。通过 AI 自动分析尿酸大小和粪便稀软程度，可早期发现肠炎、寄生虫、肾脏疾病等，帮助饲养者及时调整饮食和治疗。该技能可集成到智能爬宠箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物排泄物健康分析 AI。你的任务是分析爬宠箱内排泄物的高清图像（俯拍，含已知尺寸参考物用于像素-实际尺寸换算，分辨率 ≥ 1080p——尿酸结晶纹理与粪便形态需高清，均匀白色光源——避免色温偏移影响粪便颜色判定），围绕\"尿酸 + 粪便双通道\"展开三组检测：① **尿酸检测**：是否检测到尿酸（白色/乳白色区域）+ 颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）+ 像素面积 + **以个体体长为参考归一化面积**（核心指标，跨个体可比）+ 与历史正常值对比（**增大 > 50% 提示肾脏负担或脱水**）+ 质地（smooth_paste_normal / gritty_granular / hard_chunky）+ 团块数量；② **粪便形态**：是否检测到粪便 + **颜色分类**（brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）+ **形态分类**（formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）+ 像素面积 + 长宽比（成形 > 2 / 稀软 ≈ 1）+ 是否可见未消化内容 + 团块数量；③ **上下文与排除信号**：喂食后 72h 内食物种类影响（蟋蟀绿便 / 粉鼠深色便） / 蜕皮期 / 抱蛋雌性排泄间隔延长 / 休眠/冬眠期排泄频率下降+尿酸浓缩 / 垫材类型影响识别难度 / 近期换食 < 7 天。按 7 类综合场景判定（**excrement_healthy** / **urate_mildly_abnormal** / **urate_significantly_abnormal** / **feces_mildly_abnormal** / **feces_significantly_abnormal** / excrement_context_diet_or_brumation / excrement_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 观察下次排泄+检查温度+确认喂食 → Level 3 检查脱水+提供饮水+收集粪便送检寄生虫+联系爬宠兽医 → Level 4 🚨 尿酸显著异常+粪便显著异常同时出现→立即联系爬宠兽医，可能为系统性感染/败血症前兆）。**核心生理性上下文必须排除 4 项**：**食物种类影响粪便颜色/形态**（蟋蟀→绿便 / 粉鼠→深色便 / 杜比亚→棕色便，必须录入上次喂食内容）/ **休眠/冬眠期排泄频率大幅下降+尿酸浓缩增大**属正常 / **抱蛋期雌性排泄间隔延长**属正常 / **近期换食 < 7 天**粪便短期异常属临时。物种排泄习性硬约束：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 严禁通用排泄频率/尿酸面积盲判。排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化 → 必须返回 `excrement_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的排泄物评估；**🚨 严禁输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌**；**🚨 严禁输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方**；**🚨 严禁输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作**；严禁伪造夸大尿酸面积/粪便稀软程度；严禁越权代用户调整喂食内容/频率（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱 / 饲养缸 / 养殖场固定摄像头在发现排泄物后、清理前拍摄的高清图像（俯拍，含尺寸参考物），识别 7 类综合场景（excrement_healthy / urate_mildly_abnormal / urate_significantly_abnormal / feces_mildly_abnormal / feces_significantly_abnormal / excrement_context_diet_or_brumation / excrement_signal_unreliable）→ **三组指标**：尿酸检测 7 项（**urate_detected** + **urate_color_classification** + urate_pixel_area + **urate_area_normalized_by_body_length** + **urate_area_vs_historical_baseline** + urate_texture + urate_count）+ 粪便形态 7 项（**feces_detected** + **feces_color_classification** + **feces_consistency** + feces_pixel_area + feces_length_to_width_ratio + undigested_content_visible + feces_count）+ 排除上下文 7 项（喂食 72h 内容 / 蜕皮期 / 抱蛋期 / 休眠期 / 垫材类型 / 近期换食 / 图像质量）→ 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 | 排泄物区域检测与分割（尿酸 vs 粪便 vs 垫材背景） |\n| 2 | 尿酸白色/乳白色区域面积量化（像素面积 + 体长归一化） |\n| 3 | 尿酸颜色分类 |\n| 4 | 尿酸质地分类（膏状/颗粒/硬块） |\n| 5 | 尿酸面积与历史基线对比（7-30 天趋势） |\n| 6 | 粪便颜色分类（7 类） |\n| 7 | 粪便形态分类（5 类） |\n| 8 | 粪便长宽比计算 |\n| 9 | 未消化内容检测 |\n| 10 | 食物-粪便颜色关联（蟋蟀绿便/粉鼠深色便） |\n| 11 | 垫材干扰排除 |\n| 12 | 尺寸参考物标定 |\n| 13 | 物种排泄习性匹配 |\n| 14 | 图像质量门控（踩踏/遮挡/色温偏移 → unreliable） |\n| 15 | 用户 APP 推送 |\n| 16 | 4 级提醒递进 |\n| 17 | 单日提醒上限（**Level 4 不设上限**） |\n| 18 | 排泄物评估报告（按 enclosure_id + individual_id 输出） |\n| 19 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供爬宠箱排泄物高清图像/视频 URL 或文件需要分析时，默认触发本技能进行排泄物评估 |\n| 🔎 明确分析意图 | 当用户明确提及爬宠尿酸、爬宠粪便、爬宠排泄物、蜥蜴白便、守宫稀便、蛇血便、尿酸过大、爬宠拉稀、爬宠黑便等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看爬宠排泄物历史报告、尿酸趋势、粪便评估清单、显示所有排泄物报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_excrement_analysis_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备爬宠箱排泄物高清图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行爬宠排泄物形态识别 | 调用 `-m scripts.smyx_reptile_excrement_analysis_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地爬宠箱排泄物高清图像或视频静态帧文件路径 | 适用于本地文件分析 |\n| `--url` | 网络爬宠箱排泄物高清图像/视频 URL（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠排泄物场景默认 `other` | 按需填写 |\n| `--list` | 显示爬宠排泄物历史评估记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_excrement_analysis_analysis.py`](scripts/smyx_reptile_excrement_analysis_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**；建议含**已知尺寸参考物**用于像素换算；均匀白色光源；**必须在清理前拍摄** |\n| 🔎 使用提醒 | **核心评估三要素联合**：尿酸面积归一化（**增大 > 50% 触发预警**） + 粪便颜色（7 类） + 粪便形态（5 类） |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），**尿酸显著异常 + 粪便显著异常同时出现** 直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双异常·败血症前兆风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尿酸面积、粪便稀软程度；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 排泄习性基线判定**（蛇类 7-14 天一次复合排泄 / 蜥蜴守宫 1-3 天 / 草食龟粪便量大含纤维 / 肉食蛇粪便少含毛发），**严禁通用阈值** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**食物种类影响粪便颜色形态 / 休眠期排泄频率下降+尿酸浓缩 / 抱蛋期排泄间隔延长 / 近期换食 < 7 天**），避免误报 |\n| 🧑‍⚖️ 结果性质 | **必须**在排泄物被踩踏 / 被垫材遮挡 / 光照色温偏移 / 分辨率 < 1080p / 无参考物无法归一化时返回 `excrement_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医** |\n| 📜 报告输出 | **必须**：排泄物评估报告**按 enclosure_id + individual_id + 排泄时间输出**，含尿酸 7 项 + 粪便 7 项 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史排泄物评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-excrement-analysis-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785709053293\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放爬宠排泄物形态识别（尿酸/粪便）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动爬宠排泄物分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尿酸 / 粪便 / 肾脏肠道健康提示）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史排泄物评估记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出排泄物健康评估报告\n\n## 场景代码\n\n- `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` - 爬宠排泄物形态识别（尿酸/粪便）\n\n## 输入约束\n\n- 摄像头：爬宠箱 / 饲养缸 / 蜥蜴/守宫/蛇类养殖场固定摄像头\n- 分辨率 ≥ 1080p（尿酸结晶纹理与粪便形态需高清）；建议含已知尺寸参考物（硬币/标尺）用于像素-实际尺寸换算\n- 拍摄角度：**俯拍**排泄物（需完整露出尿酸+粪便区域，避免遮挡）\n- 光照：均匀白色光源（避免色温偏移影响粪便颜色判定）\n- **核心采样窗口**：在发现排泄物后、清理前拍摄（**清理后无法回溯**）\n- **必须排除背景干扰**：垫材颜色/纹理可能与尿酸/粪便混淆（深色垫材上白色尿酸较易识别，浅色/花纹垫材上可能误判）\n- 多缸场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（豹纹守宫/睫角守宫/鬃狮蜥/蓝舌石龙子/玉米蛇/球蟒/苏卡达/草龟等）、个体体长（用于尿酸面积归一化）、上次喂食时间/内容、上次排泄时间、当前温度、湿度\n\n## 关键观测信号\n\n### 尿酸检测\n- `urate_detected` - **是否检测到尿酸**（核心指标，白色/乳白色区域）\n- `urate_color_classification` - 尿酸颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）\n- `urate_pixel_area` - 尿酸像素面积\n- `urate_area_normalized_by_body_length` - **尿酸面积归一化值**（核心指标，以个体体长为参考归一化，跨个体可比）\n- `urate_area_vs_historical_baseline` - 与历史正常值对比（百分比变化，**增大 > 50% 提示肾脏负担或脱水**）\n- `urate_texture` - 尿酸质地（smooth_paste_normal / gritty_granular / hard_chunky）\n- `urate_count` - 尿酸团块数量（正常 1 团，多团可能多次排泄或异常）\n\n### 粪便形态\n- `feces_detected` - **是否检测到粪便**（核心指标）\n- `feces_color_classification` - **粪便颜色分类**（核心指标：brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）\n- `feces_consistency` - **粪便形态分类**（核心指标：formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）\n- `feces_pixel_area` - 粪便像素面积\n- `feces_length_to_width_ratio` - 粪便长宽比（成形条状 > 2 / 稀软 ≈ 1）\n- `undigested_content_visible` - 是否可见未消化内容（整只昆虫外骨骼 / 毛发 / 植物纤维）\n- `feces_count` - 粪便团块数量\n\n### 上下文与排除信号\n- `is_post_feeding_within_72h` - 是否喂食后 72h 内（食物种类影响粪便颜色/形态：蟋蟀绿色便 / 粉鼠深色便 / 植物纤维便）\n- `is_during_shedding_period` - 是否处于蜕皮期（蜕皮期食欲下降可能影响排泄）\n- `is_gravid_female` - 是否抱蛋雌性（抱蛋期排泄间隔延长/尿酸增大属正常）\n- `is_brumation_period` - 是否休眠/冬眠期（休眠期排泄频率大幅下降，尿酸可能浓缩增大）\n- `substrate_type` - 垫材类型（reptile_carpet / paper_towel / coco_husk / bark / sand / tile）→ 影响排泄物识别难度\n- `recent_diet_change` - 近期是否更换食物 < 7 天（食物变更可导致短期粪便异常）\n- `image_quality_acceptable` - 图像质量是否合格\n\n## 综合判定\n\n- `excrement_healthy` - 排泄物健康（尿酸白色正常质地 + 粪便棕色成形条状）\n- `urate_mildly_abnormal` - **尿酸轻度异常**（尿酸面积较基线增大 20-50% OR 质地粗糙颗粒 OR 颜色偏黄/橙）\n- `urate_significantly_abnormal` - **尿酸显著异常**（尿酸面积较基线增大 > 50% OR 质地硬块 OR 颜色橙/红提示 → 脱水/肾脏负担风险）\n- `feces_mildly_abnormal` - **粪便轻度异常**（粪便稀软糊状 OR 颜色偏绿/黄 OR 可见少量未消化内容）\n- `feces_significantly_abnormal` - **粪便显著异常**（粪便水样 / 黑色柏油便 / 红色血便 / 大量黏液 / 大量未消化内容 → 肠炎/寄生虫/消化道出血风险）\n- `excrement_context_diet_or_brumation` - 饮食变更/休眠期上下文，排泄物异常属临时\n- `excrement_signal_unreliable` - 信号不可靠（排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化）\n\n## 4 级提醒策略递进\n\n- Level 1（excrement_healthy）：仅入库\n- Level 2（urate_mildly_abnormal / feces_mildly_abnormal / context_diet_or_brumation）：温和提示，建议**观察下次排泄是否恢复正常 + 检查温度是否在物种适宜范围 + 确认喂食内容/频率是否合适**\n- Level 3（urate_significantly_abnormal OR feces_significantly_abnormal）：紧急提示，建议**检查脱水迹象（皮肤皱褶/眼窝凹陷） + 提供充足饮水 + 检查温度梯度 + 收集新鲜粪便送检寄生虫 + 观察食欲精神 + 联系爬宠兽医（尿酸持续增大提示肾脏负担，血便/水样便提示肠炎或寄生虫感染）**\n- Level 4（尿酸显著异常 + 粪便显著异常 同时出现）：最高紧急提示，建议**立即联系爬宠兽医（肾脏负担+肠道问题同时出现，可能为系统性感染/败血症前兆） + 保持环境稳定 + 保留排泄物样本供兽医检查**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双重异常·败血症前兆风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量\n- **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方\n- **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断）\n- **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大尿酸面积、粪便稀软程度**\n- 物种特异性：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 必须按物种排泄习性判定\n- 必须考虑生理性上下文：**食物种类影响粪便颜色/形态**（蟋蟀绿便/粉鼠深色便） / **休眠/冬眠期排泄频率下降+尿酸浓缩** / **抱蛋期排泄间隔延长** / **近期换食 < 7 天** → 必须排除\n- 排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物 → 必须返回 `excrement_signal_unreliable`\n- 必须告知用户：AI 排泄物评估仅供参考，**异常排泄物确诊需粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查，联系专业爬宠兽医**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`urate_color_classification`、`urate_area_normalized_by_body_length`、`urate_area_vs_historical_baseline`、`urate_texture`、`feces_color_classification`、`feces_consistency`、`feces_length_to_width_ratio`、`undigested_content_visible`、`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 reptile enclosure images or video frames to identify urate area, color, and texture plus feces morphology, then returns a structured visual assessment with recommended next actions. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal reptile keepers, farm operators, and developers use this skill to process enclosure camera images, video frames, or URLs and receive a structured urate and feces assessment before cleaning. It can also query cloud-hosted historical reports for trend review. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill sends reptile media, URLs, report queries, and derived identity values to LifeEmergence cloud services. <br>\nMitigation: Use it only with data approved for cloud processing, and review the LifeEmergence service relationship before installation. <br>\nRisk: The skill can silently create or reuse a local account identity and store service tokens in workspace data. <br>\nMitigation: Review or clear data/smyx-api-key.txt and the local smyx common database when identity reuse is not desired. <br>\nRisk: Visual excrement assessments can be mistaken for medical diagnosis if used without review. <br>\nMitigation: Treat outputs as visual screening guidance only and confirm abnormal findings with a qualified reptile veterinarian. <br>\n\n\n## Reference(s): <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [LifeEmergence skill demo](https://lifeemergence.com/sample.html) <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-reptile-excrement-analysis-analysis) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, json, files, guidance] <br>\n**Output Format:** [Structured JSON or Markdown text, with optional saved result files.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Reports can include urate metrics, feces morphology, alert level, recommended actions, report links, and a disclaimer.] <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, 46306 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (2498b), SKILL.md (20129b), 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-reptile-excrement-analysis-analysis\"\ndescription: \"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 💩 Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **爬宠排泄物形态识别（尿酸/粪便）** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` |\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). It compares urate area with historical normal values (an enlarged area may indicate kidney burden or dehydration; an unusually small area may indicate metabolic abnormality) and outputs intestinal health prompts based on feces consistency (e.g. 'feces well formed, healthy', 'feces soft, possible enteritis or parasites'). This skill helps keepers detect kidney and intestinal problems early. Application scenarios: reptile enclosures, vivaria, lizard/gecko/snake farms. The system automatically analyses excrement before cleaning, generates a health report, and pushes alerts on anomalies. Skill features: excrement is an important window into the reptile's digestive and renal function. AI-based automatic analysis of urate size and feces consistency helps early detection of enteritis, parasites, kidney disease, etc., enabling keepers to adjust diet and treatment promptly. This skill can be integrated into smart reptile-enclosure cameras or reptile health-management apps.\n\n通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。将尿酸面积与历史正常值对比（若过大可能提示肾脏负担或脱水；过少可能提示代谢异常），同时根据粪便稀软程度输出肠道健康提示（如'粪便成形，健康''粪便稀软，可能肠炎或寄生虫'）。该技能有助于饲养者及早发现爬宠的肾脏、肠道问题。应用场景：爬宠箱、饲养缸、蜥蜴/守宫/蛇类养殖场。系统在清理前自动分析排泄物，生成健康报告，异常时推送提醒。技能特点：排泄物是反映爬宠消化、肾脏功能的重要窗口。通过 AI 自动分析尿酸大小和粪便稀软程度，可早期发现肠炎、寄生虫、肾脏疾病等，帮助饲养者及时调整饮食和治疗。该技能可集成到智能爬宠箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物排泄物健康分析 AI。你的任务是分析爬宠箱内排泄物的高清图像（俯拍，含已知尺寸参考物用于像素-实际尺寸换算，分辨率 ≥ 1080p——尿酸结晶纹理与粪便形态需高清，均匀白色光源——避免色温偏移影响粪便颜色判定），围绕\"尿酸 + 粪便双通道\"展开三组检测：① **尿酸检测**：是否检测到尿酸（白色/乳白色区域）+ 颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）+ 像素面积 + **以个体体长为参考归一化面积**（核心指标，跨个体可比）+ 与历史正常值对比（**增大 > 50% 提示肾脏负担或脱水**）+ 质地（smooth_paste_normal / gritty_granular / hard_chunky）+ 团块数量；② **粪便形态**：是否检测到粪便 + **颜色分类**（brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）+ **形态分类**（formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）+ 像素面积 + 长宽比（成形 > 2 / 稀软 ≈ 1）+ 是否可见未消化内容 + 团块数量；③ **上下文与排除信号**：喂食后 72h 内食物种类影响（蟋蟀绿便 / 粉鼠深色便） / 蜕皮期 / 抱蛋雌性排泄间隔延长 / 休眠/冬眠期排泄频率下降+尿酸浓缩 / 垫材类型影响识别难度 / 近期换食 < 7 天。按 7 类综合场景判定（**excrement_healthy** / **urate_mildly_abnormal** / **urate_significantly_abnormal** / **feces_mildly_abnormal** / **feces_significantly_abnormal** / excrement_context_diet_or_brumation / excrement_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 观察下次排泄+检查温度+确认喂食 → Level 3 检查脱水+提供饮水+收集粪便送检寄生虫+联系爬宠兽医 → Level 4 🚨 尿酸显著异常+粪便显著异常同时出现→立即联系爬宠兽医，可能为系统性感染/败血症前兆）。**核心生理性上下文必须排除 4 项**：**食物种类影响粪便颜色/形态**（蟋蟀→绿便 / 粉鼠→深色便 / 杜比亚→棕色便，必须录入上次喂食内容）/ **休眠/冬眠期排泄频率大幅下降+尿酸浓缩增大**属正常 / **抱蛋期雌性排泄间隔延长**属正常 / **近期换食 < 7 天**粪便短期异常属临时。物种排泄习性硬约束：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 严禁通用排泄频率/尿酸面积盲判。排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化 → 必须返回 `excrement_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的排泄物评估；**🚨 严禁输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌**；**🚨 严禁输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方**；**🚨 严禁输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作**；严禁伪造夸大尿酸面积/粪便稀软程度；严禁越权代用户调整喂食内容/频率（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱 / 饲养缸 / 养殖场固定摄像头在发现排泄物后、清理前拍摄的高清图像（俯拍，含尺寸参考物），识别 7 类综合场景（excrement_healthy / urate_mildly_abnormal / urate_significantly_abnormal / feces_mildly_abnormal / feces_significantly_abnormal / excrement_context_diet_or_brumation / excrement_signal_unreliable）→ **三组指标**：尿酸检测 7 项（**urate_detected** + **urate_color_classification** + urate_pixel_area + **urate_area_normalized_by_body_length** + **urate_area_vs_historical_baseline** + urate_texture + urate_count）+ 粪便形态 7 项（**feces_detected** + **feces_color_classification** + **feces_consistency** + feces_pixel_area + feces_length_to_width_ratio + undigested_content_visible + feces_count）+ 排除上下文 7 项（喂食 72h 内容 / 蜕皮期 / 抱蛋期 / 休眠期 / 垫材类型 / 近期换食 / 图像质量）→ 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 | 排泄物区域检测与分割（尿酸 vs 粪便 vs 垫材背景） |\n| 2 | 尿酸白色/乳白色区域面积量化（像素面积 + 体长归一化） |\n| 3 | 尿酸颜色分类 |\n| 4 | 尿酸质地分类（膏状/颗粒/硬块） |\n| 5 | 尿酸面积与历史基线对比（7-30 天趋势） |\n| 6 | 粪便颜色分类（7 类） |\n| 7 | 粪便形态分类（5 类） |\n| 8 | 粪便长宽比计算 |\n| 9 | 未消化内容检测 |\n| 10 | 食物-粪便颜色关联（蟋蟀绿便/粉鼠深色便） |\n| 11 | 垫材干扰排除 |\n| 12 | 尺寸参考物标定 |\n| 13 | 物种排泄习性匹配 |\n| 14 | 图像质量门控（踩踏/遮挡/色温偏移 → unreliable） |\n| 15 | 用户 APP 推送 |\n| 16 | 4 级提醒递进 |\n| 17 | 单日提醒上限（**Level 4 不设上限**） |\n| 18 | 排泄物评估报告（按 enclosure_id + individual_id 输出） |\n| 19 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供爬宠箱排泄物高清图像/视频 URL 或文件需要分析时，默认触发本技能进行排泄物评估 |\n| 🔎 明确分析意图 | 当用户明确提及爬宠尿酸、爬宠粪便、爬宠排泄物、蜥蜴白便、守宫稀便、蛇血便、尿酸过大、爬宠拉稀、爬宠黑便等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看爬宠排泄物历史报告、尿酸趋势、粪便评估清单、显示所有排泄物报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_excrement_analysis_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备爬宠箱排泄物高清图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行爬宠排泄物形态识别 | 调用 `-m scripts.smyx_reptile_excrement_analysis_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地爬宠箱排泄物高清图像或视频静态帧文件路径 | 适用于本地文件分析 |\n| `--url` | 网络爬宠箱排泄物高清图像/视频 URL（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠排泄物场景默认 `other` | 按需填写 |\n| `--list` | 显示爬宠排泄物历史评估记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_excrement_analysis_analysis.py`](scripts/smyx_reptile_excrement_analysis_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**；建议含**已知尺寸参考物**用于像素换算；均匀白色光源；**必须在清理前拍摄** |\n| 🔎 使用提醒 | **核心评估三要素联合**：尿酸面积归一化（**增大 > 50% 触发预警**） + 粪便颜色（7 类） + 粪便形态（5 类） |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），**尿酸显著异常 + 粪便显著异常同时出现** 直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双异常·败血症前兆风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尿酸面积、粪便稀软程度；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 排泄习性基线判定**（蛇类 7-14 天一次复合排泄 / 蜥蜴守宫 1-3 天 / 草食龟粪便量大含纤维 / 肉食蛇粪便少含毛发），**严禁通用阈值** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**食物种类影响粪便颜色形态 / 休眠期排泄频率下降+尿酸浓缩 / 抱蛋期排泄间隔延长 / 近期换食 < 7 天**），避免误报 |\n| 🧑‍⚖️ 结果性质 | **必须**在排泄物被踩踏 / 被垫材遮挡 / 光照色温偏移 / 分辨率 < 1080p / 无参考物无法归一化时返回 `excrement_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医** |\n| 📜 报告输出 | **必须**：排泄物评估报告**按 enclosure_id + individual_id + 排泄时间输出**，含尿酸 7 项 + 粪便 7 项 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史排泄物评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-excrement-analysis-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785193468375\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放爬宠排泄物形态识别（尿酸/粪便）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动爬宠排泄物分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尿酸 / 粪便 / 肾脏肠道健康提示）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史排泄物评估记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出排泄物健康评估报告\n\n## 场景代码\n\n- `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` - 爬宠排泄物形态识别（尿酸/粪便）\n\n## 输入约束\n\n- 摄像头：爬宠箱 / 饲养缸 / 蜥蜴/守宫/蛇类养殖场固定摄像头\n- 分辨率 ≥ 1080p（尿酸结晶纹理与粪便形态需高清）；建议含已知尺寸参考物（硬币/标尺）用于像素-实际尺寸换算\n- 拍摄角度：**俯拍**排泄物（需完整露出尿酸+粪便区域，避免遮挡）\n- 光照：均匀白色光源（避免色温偏移影响粪便颜色判定）\n- **核心采样窗口**：在发现排泄物后、清理前拍摄（**清理后无法回溯**）\n- **必须排除背景干扰**：垫材颜色/纹理可能与尿酸/粪便混淆（深色垫材上白色尿酸较易识别，浅色/花纹垫材上可能误判）\n- 多缸场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（豹纹守宫/睫角守宫/鬃狮蜥/蓝舌石龙子/玉米蛇/球蟒/苏卡达/草龟等）、个体体长（用于尿酸面积归一化）、上次喂食时间/内容、上次排泄时间、当前温度、湿度\n\n## 关键观测信号\n\n### 尿酸检测\n- `urate_detected` - **是否检测到尿酸**（核心指标，白色/乳白色区域）\n- `urate_color_classification` - 尿酸颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）\n- `urate_pixel_area` - 尿酸像素面积\n- `urate_area_normalized_by_body_length` - **尿酸面积归一化值**（核心指标，以个体体长为参考归一化，跨个体可比）\n- `urate_area_vs_historical_baseline` - 与历史正常值对比（百分比变化，**增大 > 50% 提示肾脏负担或脱水**）\n- `urate_texture` - 尿酸质地（smooth_paste_normal / gritty_granular / hard_chunky）\n- `urate_count` - 尿酸团块数量（正常 1 团，多团可能多次排泄或异常）\n\n### 粪便形态\n- `feces_detected` - **是否检测到粪便**（核心指标）\n- `feces_color_classification` - **粪便颜色分类**（核心指标：brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）\n- `feces_consistency` - **粪便形态分类**（核心指标：formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）\n- `feces_pixel_area` - 粪便像素面积\n- `feces_length_to_width_ratio` - 粪便长宽比（成形条状 > 2 / 稀软 ≈ 1）\n- `undigested_content_visible` - 是否可见未消化内容（整只昆虫外骨骼 / 毛发 / 植物纤维）\n- `feces_count` - 粪便团块数量\n\n### 上下文与排除信号\n- `is_post_feeding_within_72h` - 是否喂食后 72h 内（食物种类影响粪便颜色/形态：蟋蟀绿色便 / 粉鼠深色便 / 植物纤维便）\n- `is_during_shedding_period` - 是否处于蜕皮期（蜕皮期食欲下降可能影响排泄）\n- `is_gravid_female` - 是否抱蛋雌性（抱蛋期排泄间隔延长/尿酸增大属正常）\n- `is_brumation_period` - 是否休眠/冬眠期（休眠期排泄频率大幅下降，尿酸可能浓缩增大）\n- `substrate_type` - 垫材类型（reptile_carpet / paper_towel / coco_husk / bark / sand / tile）→ 影响排泄物识别难度\n- `recent_diet_change` - 近期是否更换食物 < 7 天（食物变更可导致短期粪便异常）\n- `image_quality_acceptable` - 图像质量是否合格\n\n## 综合判定\n\n- `excrement_healthy` - 排泄物健康（尿酸白色正常质地 + 粪便棕色成形条状）\n- `urate_mildly_abnormal` - **尿酸轻度异常**（尿酸面积较基线增大 20-50% OR 质地粗糙颗粒 OR 颜色偏黄/橙）\n- `urate_significantly_abnormal` - **尿酸显著异常**（尿酸面积较基线增大 > 50% OR 质地硬块 OR 颜色橙/红提示 → 脱水/肾脏负担风险）\n- `feces_mildly_abnormal` - **粪便轻度异常**（粪便稀软糊状 OR 颜色偏绿/黄 OR 可见少量未消化内容）\n- `feces_significantly_abnormal` - **粪便显著异常**（粪便水样 / 黑色柏油便 / 红色血便 / 大量黏液 / 大量未消化内容 → 肠炎/寄生虫/消化道出血风险）\n- `excrement_context_diet_or_brumation` - 饮食变更/休眠期上下文，排泄物异常属临时\n- `excrement_signal_unreliable` - 信号不可靠（排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化）\n\n## 4 级提醒策略递进\n\n- Level 1（excrement_healthy）：仅入库\n- Level 2（urate_mildly_abnormal / feces_mildly_abnormal / context_diet_or_brumation）：温和提示，建议**观察下次排泄是否恢复正常 + 检查温度是否在物种适宜范围 + 确认喂食内容/频率是否合适**\n- Level 3（urate_significantly_abnormal OR feces_significantly_abnormal）：紧急提示，建议**检查脱水迹象（皮肤皱褶/眼窝凹陷） + 提供充足饮水 + 检查温度梯度 + 收集新鲜粪便送检寄生虫 + 观察食欲精神 + 联系爬宠兽医（尿酸持续增大提示肾脏负担，血便/水样便提示肠炎或寄生虫感染）**\n- Level 4（尿酸显著异常 + 粪便显著异常 同时出现）：最高紧急提示，建议**立即联系爬宠兽医（肾脏负担+肠道问题同时出现，可能为系统性感染/败血症前兆） + 保持环境稳定 + 保留排泄物样本供兽医检查**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双重异常·败血症前兆风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量\n- **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方\n- **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断）\n- **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大尿酸面积、粪便稀软程度**\n- 物种特异性：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 必须按物种排泄习性判定\n- 必须考虑生理性上下文：**食物种类影响粪便颜色/形态**（蟋蟀绿便/粉鼠深色便） / **休眠/冬眠期排泄频率下降+尿酸浓缩** / **抱蛋期排泄间隔延长** / **近期换食 < 7 天** → 必须排除\n- 排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物 → 必须返回 `excrement_signal_unreliable`\n- 必须告知用户：AI 排泄物评估仅供参考，**异常排泄物确诊需粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查，联系专业爬宠兽医**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`urate_color_classification`、`urate_area_normalized_by_body_length`、`urate_area_vs_historical_baseline`、`urate_texture`、`feces_color_classification`、`feces_consistency`、`feces_length_to_width_ratio`、`undigested_content_visible`、`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>\nThis skill analyzes reptile enclosure images or video frames to identify urate size and feces morphology, then returns structured health prompts and report links. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal reptile keepers, farms, and developers can use this skill to evaluate camera images or video frames of reptile excrement, track urate and feces signals, and retrieve historical reports. It is intended to support visual health monitoring workflows, not veterinary diagnosis. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Media and identity-bearing requests may be sent to lifeemergence.com services. <br>\nMitigation: Use only with media and report data appropriate for those external services, and avoid sensitive environments unless that data flow has been reviewed. <br>\nRisk: The skill may automatically create or reuse a local/cloud identity and store tokens locally. <br>\nMitigation: Run in an isolated workspace where practical, and review or remove stored workspace data and tokens before and after use. <br>\nRisk: Visual health prompts could be mistaken for veterinary diagnosis. <br>\nMitigation: Treat outputs as visual monitoring support and have abnormal findings reviewed by a qualified reptile veterinarian. <br>\n\n\n## Reference(s): <br>\n- [API documentation](references/api_doc.md) <br>\n- [ClawHub skill page](https://clawhub.ai/18072937735/skills/smyx-reptile-excrement-analysis-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Guidance] <br>\n**Output Format:** [Markdown text with structured JSON report content and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May send media and identity-bearing requests to external lifeemergence.com services; historical report listings are returned from cloud APIs.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter lists 1.0.7) <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, 46416 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (2701b), SKILL.md (20129b), 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-reptile-excrement-analysis-analysis\"\ndescription: \"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 💩 Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **爬宠排泄物形态识别（尿酸/粪便）** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` |\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). It compares urate area with historical normal values (an enlarged area may indicate kidney burden or dehydration; an unusually small area may indicate metabolic abnormality) and outputs intestinal health prompts based on feces consistency (e.g. 'feces well formed, healthy', 'feces soft, possible enteritis or parasites'). This skill helps keepers detect kidney and intestinal problems early. Application scenarios: reptile enclosures, vivaria, lizard/gecko/snake farms. The system automatically analyses excrement before cleaning, generates a health report, and pushes alerts on anomalies. Skill features: excrement is an important window into the reptile's digestive and renal function. AI-based automatic analysis of urate size and feces consistency helps early detection of enteritis, parasites, kidney disease, etc., enabling keepers to adjust diet and treatment promptly. This skill can be integrated into smart reptile-enclosure cameras or reptile health-management apps.\n\n通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。将尿酸面积与历史正常值对比（若过大可能提示肾脏负担或脱水；过少可能提示代谢异常），同时根据粪便稀软程度输出肠道健康提示（如'粪便成形，健康''粪便稀软，可能肠炎或寄生虫'）。该技能有助于饲养者及早发现爬宠的肾脏、肠道问题。应用场景：爬宠箱、饲养缸、蜥蜴/守宫/蛇类养殖场。系统在清理前自动分析排泄物，生成健康报告，异常时推送提醒。技能特点：排泄物是反映爬宠消化、肾脏功能的重要窗口。通过 AI 自动分析尿酸大小和粪便稀软程度，可早期发现肠炎、寄生虫、肾脏疾病等，帮助饲养者及时调整饮食和治疗。该技能可集成到智能爬宠箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物排泄物健康分析 AI。你的任务是分析爬宠箱内排泄物的高清图像（俯拍，含已知尺寸参考物用于像素-实际尺寸换算，分辨率 ≥ 1080p——尿酸结晶纹理与粪便形态需高清，均匀白色光源——避免色温偏移影响粪便颜色判定），围绕\"尿酸 + 粪便双通道\"展开三组检测：① **尿酸检测**：是否检测到尿酸（白色/乳白色区域）+ 颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）+ 像素面积 + **以个体体长为参考归一化面积**（核心指标，跨个体可比）+ 与历史正常值对比（**增大 > 50% 提示肾脏负担或脱水**）+ 质地（smooth_paste_normal / gritty_granular / hard_chunky）+ 团块数量；② **粪便形态**：是否检测到粪便 + **颜色分类**（brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）+ **形态分类**（formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）+ 像素面积 + 长宽比（成形 > 2 / 稀软 ≈ 1）+ 是否可见未消化内容 + 团块数量；③ **上下文与排除信号**：喂食后 72h 内食物种类影响（蟋蟀绿便 / 粉鼠深色便） / 蜕皮期 / 抱蛋雌性排泄间隔延长 / 休眠/冬眠期排泄频率下降+尿酸浓缩 / 垫材类型影响识别难度 / 近期换食 < 7 天。按 7 类综合场景判定（**excrement_healthy** / **urate_mildly_abnormal** / **urate_significantly_abnormal** / **feces_mildly_abnormal** / **feces_significantly_abnormal** / excrement_context_diet_or_brumation / excrement_signal_unreliable），按 4 级提醒策略递进（Level 1 入库 → Level 2 观察下次排泄+检查温度+确认喂食 → Level 3 检查脱水+提供饮水+收集粪便送检寄生虫+联系爬宠兽医 → Level 4 🚨 尿酸显著异常+粪便显著异常同时出现→立即联系爬宠兽医，可能为系统性感染/败血症前兆）。**核心生理性上下文必须排除 4 项**：**食物种类影响粪便颜色/形态**（蟋蟀→绿便 / 粉鼠→深色便 / 杜比亚→棕色便，必须录入上次喂食内容）/ **休眠/冬眠期排泄频率大幅下降+尿酸浓缩增大**属正常 / **抱蛋期雌性排泄间隔延长**属正常 / **近期换食 < 7 天**粪便短期异常属临时。物种排泄习性硬约束：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 严禁通用排泄频率/尿酸面积盲判。排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化 → 必须返回 `excrement_signal_unreliable`。不提供任何疾病诊断，仅输出基于视觉的排泄物评估；**🚨 严禁输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌**；**🚨 严禁输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方**；**🚨 严禁输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作**；严禁伪造夸大尿酸面积/粪便稀软程度；严禁越权代用户调整喂食内容/频率（仅可建议）。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于爬宠箱 / 饲养缸 / 养殖场固定摄像头在发现排泄物后、清理前拍摄的高清图像（俯拍，含尺寸参考物），识别 7 类综合场景（excrement_healthy / urate_mildly_abnormal / urate_significantly_abnormal / feces_mildly_abnormal / feces_significantly_abnormal / excrement_context_diet_or_brumation / excrement_signal_unreliable）→ **三组指标**：尿酸检测 7 项（**urate_detected** + **urate_color_classification** + urate_pixel_area + **urate_area_normalized_by_body_length** + **urate_area_vs_historical_baseline** + urate_texture + urate_count）+ 粪便形态 7 项（**feces_detected** + **feces_color_classification** + **feces_consistency** + feces_pixel_area + feces_length_to_width_ratio + undigested_content_visible + feces_count）+ 排除上下文 7 项（喂食 72h 内容 / 蜕皮期 / 抱蛋期 / 休眠期 / 垫材类型 / 近期换食 / 图像质量）→ 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 | 排泄物区域检测与分割（尿酸 vs 粪便 vs 垫材背景） |\n| 2 | 尿酸白色/乳白色区域面积量化（像素面积 + 体长归一化） |\n| 3 | 尿酸颜色分类 |\n| 4 | 尿酸质地分类（膏状/颗粒/硬块） |\n| 5 | 尿酸面积与历史基线对比（7-30 天趋势） |\n| 6 | 粪便颜色分类（7 类） |\n| 7 | 粪便形态分类（5 类） |\n| 8 | 粪便长宽比计算 |\n| 9 | 未消化内容检测 |\n| 10 | 食物-粪便颜色关联（蟋蟀绿便/粉鼠深色便） |\n| 11 | 垫材干扰排除 |\n| 12 | 尺寸参考物标定 |\n| 13 | 物种排泄习性匹配 |\n| 14 | 图像质量门控（踩踏/遮挡/色温偏移 → unreliable） |\n| 15 | 用户 APP 推送 |\n| 16 | 4 级提醒递进 |\n| 17 | 单日提醒上限（**Level 4 不设上限**） |\n| 18 | 排泄物评估报告（按 enclosure_id + individual_id 输出） |\n| 19 | 连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医**（粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查） |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供爬宠箱排泄物高清图像/视频 URL 或文件需要分析时，默认触发本技能进行排泄物评估 |\n| 🔎 明确分析意图 | 当用户明确提及爬宠尿酸、爬宠粪便、爬宠排泄物、蜥蜴白便、守宫稀便、蛇血便、尿酸过大、爬宠拉稀、爬宠黑便等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能**：查看爬宠排泄物历史报告、尿酸趋势、粪便评估清单、显示所有排泄物报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_reptile_excrement_analysis_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备爬宠箱排泄物高清图像/视频输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 获取 open-id（强制执行） | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行爬宠排泄物形态识别 | 调用 `-m scripts.smyx_reptile_excrement_analysis_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地爬宠箱排泄物高清图像或视频静态帧文件路径 | 适用于本地文件分析 |\n| `--url` | 网络爬宠箱排泄物高清图像/视频 URL（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，爬宠排泄物场景默认 `other` | 按需填写 |\n| `--list` | 显示爬宠排泄物历史评估记录清单 | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_reptile_excrement_analysis_analysis.py`](scripts/smyx_reptile_excrement_analysis_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**；建议含**已知尺寸参考物**用于像素换算；均匀白色光源；**必须在清理前拍摄** |\n| 🔎 使用提醒 | **核心评估三要素联合**：尿酸面积归一化（**增大 > 50% 触发预警**） + 粪便颜色（7 类） + 粪便形态（5 类） |\n| 🔎 使用提醒 | **4 级提醒策略递进**（info → important → urgent → critical），**尿酸显著异常 + 粪便显著异常同时出现** 直接 Level 4 |\n| 🔎 使用提醒 | 单日提醒上限：Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双异常·败血症前兆风险）** |\n| 🔎 使用提醒 | 红线约束 |\n| 🧑‍⚖️ 结果性质 | **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等具体疾病诊断 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方 |\n| 🔎 使用提醒 | **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断） |\n| 🔎 使用提醒 | **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定） |\n| 🔎 使用提醒 | **禁止**用于商业广告 / AI 训练；禁第三方共享 |\n| 🔎 使用提醒 | **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议） |\n| 🔎 使用提醒 | **绝对禁止**伪造或夸大尿酸面积、粪便稀软程度；所有数据必须基于真实图像分析 |\n| 🔎 使用提醒 | **必须**按 **species 排泄习性基线判定**（蛇类 7-14 天一次复合排泄 / 蜥蜴守宫 1-3 天 / 草食龟粪便量大含纤维 / 肉食蛇粪便少含毛发），**严禁通用阈值** |\n| 📚 文档读取 | **必须**考虑生理性上下文（**食物种类影响粪便颜色形态 / 休眠期排泄频率下降+尿酸浓缩 / 抱蛋期排泄间隔延长 / 近期换食 < 7 天**），避免误报 |\n| 🧑‍⚖️ 结果性质 | **必须**在排泄物被踩踏 / 被垫材遮挡 / 光照色温偏移 / 分辨率 < 1080p / 无参考物无法归一化时返回 `excrement_signal_unreliable` |\n| 🔎 使用提醒 | **必须**：连续 ≥ 2 次 Level 3+ → 强烈建议联系**专业爬宠兽医** |\n| 📜 报告输出 | **必须**：排泄物评估报告**按 enclosure_id + individual_id + 排泄时间输出**，含尿酸 7 项 + 粪便 7 项 + 建议动作 + 免责声明 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史排泄物评估记录清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-excrement-analysis-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784080469285\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放爬宠排泄物形态识别（尿酸/粪便）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动爬宠排泄物分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尿酸 / 粪便 / 肾脏肠道健康提示）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史排泄物评估记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出排泄物健康评估报告\n\n## 场景代码\n\n- `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` - 爬宠排泄物形态识别（尿酸/粪便）\n\n## 输入约束\n\n- 摄像头：爬宠箱 / 饲养缸 / 蜥蜴/守宫/蛇类养殖场固定摄像头\n- 分辨率 ≥ 1080p（尿酸结晶纹理与粪便形态需高清）；建议含已知尺寸参考物（硬币/标尺）用于像素-实际尺寸换算\n- 拍摄角度：**俯拍**排泄物（需完整露出尿酸+粪便区域，避免遮挡）\n- 光照：均匀白色光源（避免色温偏移影响粪便颜色判定）\n- **核心采样窗口**：在发现排泄物后、清理前拍摄（**清理后无法回溯**）\n- **必须排除背景干扰**：垫材颜色/纹理可能与尿酸/粪便混淆（深色垫材上白色尿酸较易识别，浅色/花纹垫材上可能误判）\n- 多缸场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（豹纹守宫/睫角守宫/鬃狮蜥/蓝舌石龙子/玉米蛇/球蟒/苏卡达/草龟等）、个体体长（用于尿酸面积归一化）、上次喂食时间/内容、上次排泄时间、当前温度、湿度\n\n## 关键观测信号\n\n### 尿酸检测\n- `urate_detected` - **是否检测到尿酸**（核心指标，白色/乳白色区域）\n- `urate_color_classification` - 尿酸颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）\n- `urate_pixel_area` - 尿酸像素面积\n- `urate_area_normalized_by_body_length` - **尿酸面积归一化值**（核心指标，以个体体长为参考归一化，跨个体可比）\n- `urate_area_vs_historical_baseline` - 与历史正常值对比（百分比变化，**增大 > 50% 提示肾脏负担或脱水**）\n- `urate_texture` - 尿酸质地（smooth_paste_normal / gritty_granular / hard_chunky）\n- `urate_count` - 尿酸团块数量（正常 1 团，多团可能多次排泄或异常）\n\n### 粪便形态\n- `feces_detected` - **是否检测到粪便**（核心指标）\n- `feces_color_classification` - **粪便颜色分类**（核心指标：brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）\n- `feces_consistency` - **粪便形态分类**（核心指标：formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）\n- `feces_pixel_area` - 粪便像素面积\n- `feces_length_to_width_ratio` - 粪便长宽比（成形条状 > 2 / 稀软 ≈ 1）\n- `undigested_content_visible` - 是否可见未消化内容（整只昆虫外骨骼 / 毛发 / 植物纤维）\n- `feces_count` - 粪便团块数量\n\n### 上下文与排除信号\n- `is_post_feeding_within_72h` - 是否喂食后 72h 内（食物种类影响粪便颜色/形态：蟋蟀绿色便 / 粉鼠深色便 / 植物纤维便）\n- `is_during_shedding_period` - 是否处于蜕皮期（蜕皮期食欲下降可能影响排泄）\n- `is_gravid_female` - 是否抱蛋雌性（抱蛋期排泄间隔延长/尿酸增大属正常）\n- `is_brumation_period` - 是否休眠/冬眠期（休眠期排泄频率大幅下降，尿酸可能浓缩增大）\n- `substrate_type` - 垫材类型（reptile_carpet / paper_towel / coco_husk / bark / sand / tile）→ 影响排泄物识别难度\n- `recent_diet_change` - 近期是否更换食物 < 7 天（食物变更可导致短期粪便异常）\n- `image_quality_acceptable` - 图像质量是否合格\n\n## 综合判定\n\n- `excrement_healthy` - 排泄物健康（尿酸白色正常质地 + 粪便棕色成形条状）\n- `urate_mildly_abnormal` - **尿酸轻度异常**（尿酸面积较基线增大 20-50% OR 质地粗糙颗粒 OR 颜色偏黄/橙）\n- `urate_significantly_abnormal` - **尿酸显著异常**（尿酸面积较基线增大 > 50% OR 质地硬块 OR 颜色橙/红提示 → 脱水/肾脏负担风险）\n- `feces_mildly_abnormal` - **粪便轻度异常**（粪便稀软糊状 OR 颜色偏绿/黄 OR 可见少量未消化内容）\n- `feces_significantly_abnormal` - **粪便显著异常**（粪便水样 / 黑色柏油便 / 红色血便 / 大量黏液 / 大量未消化内容 → 肠炎/寄生虫/消化道出血风险）\n- `excrement_context_diet_or_brumation` - 饮食变更/休眠期上下文，排泄物异常属临时\n- `excrement_signal_unreliable` - 信号不可靠（排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化）\n\n## 4 级提醒策略递进\n\n- Level 1（excrement_healthy）：仅入库\n- Level 2（urate_mildly_abnormal / feces_mildly_abnormal / context_diet_or_brumation）：温和提示，建议**观察下次排泄是否恢复正常 + 检查温度是否在物种适宜范围 + 确认喂食内容/频率是否合适**\n- Level 3（urate_significantly_abnormal OR feces_significantly_abnormal）：紧急提示，建议**检查脱水迹象（皮肤皱褶/眼窝凹陷） + 提供充足饮水 + 检查温度梯度 + 收集新鲜粪便送检寄生虫 + 观察食欲精神 + 联系爬宠兽医（尿酸持续增大提示肾脏负担，血便/水样便提示肠炎或寄生虫感染）**\n- Level 4（尿酸显著异常 + 粪便显著异常 同时出现）：最高紧急提示，建议**立即联系爬宠兽医（肾脏负担+肠道问题同时出现，可能为系统性感染/败血症前兆） + 保持环境稳定 + 保留排泄物样本供兽医检查**\n\n## 单日提醒上限\n\n- Level 1 不限 / Level 2 × 3 / Level 3 × 5 / **Level 4 不设上限（肾脏+肠道双重异常·败血症前兆风险）**\n\n## 红线约束\n\n- **🚨 禁止**做\"肾衰竭 / 痛风 / 肠炎 / 寄生虫感染 / 沙门氏菌 / 阿米巴 / 消化道出血 / 败血症\"等**具体疾病诊断**\n- **🚨 绝对禁止**输出具体药物名称、剂量、驱虫药品牌、抗生素品牌、止泻药品牌、口服/注射剂量\n- **🚨 绝对禁止**输出\"用芬苯达唑 50mg/kg 驱虫\"\"口服甲硝唑 25mg/kg\"\"灌服益生菌 X 克\"\"注射拜有利 5mg/kg\"等具体处方\n- **🚨 绝对禁止**输出\"自行灌肠\"\"自行催吐\"\"自行挤压排泄口\"等任何外科或医疗操作（必须由爬宠兽医现场判断）\n- **禁止**长期存储排泄物图像（≤ 14 天，留关键帧 + 尿酸/粪便趋势；养殖场/医院按管理规定）\n- **禁止**用于商业广告 / AI 训练；禁第三方共享\n- **禁止**越权代用户调整喂食内容/频率；任何饮食变更必须由用户确认（仅可建议）\n- 所有指标必须基于真实图像分析；**禁止伪造或夸大尿酸面积、粪便稀软程度**\n- 物种特异性：**蛇类**排泄频率低（7-14 天一次）、尿酸与粪便同时排出为\"复合排泄\" / **蜥蜴/守宫**排泄更频繁（1-3 天）、尿酸与粪便可能分开 / **草食性龟类**粪便量大含植物纤维 / **肉食性蛇类**粪便少含毛发 → 必须按物种排泄习性判定\n- 必须考虑生理性上下文：**食物种类影响粪便颜色/形态**（蟋蟀绿便/粉鼠深色便） / **休眠/冬眠期排泄频率下降+尿酸浓缩** / **抱蛋期排泄间隔延长** / **近期换食 < 7 天** → 必须排除\n- 排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物 → 必须返回 `excrement_signal_unreliable`\n- 必须告知用户：AI 排泄物评估仅供参考，**异常排泄物确诊需粪便镜检 + 寄生虫浮聚法 + 尿酸结晶分析 + 血液检查，联系专业爬宠兽医**\n\n## 输出报告字段\n\n- `report_date`、`enclosure_id`、`individual_id`、`species`、`urate_color_classification`、`urate_area_normalized_by_body_length`、`urate_area_vs_historical_baseline`、`urate_texture`、`feces_color_classification`、`feces_consistency`、`feces_length_to_width_ratio`、`undigested_content_visible`、`composite_scene`、`alert_level`、`recommended_actions`（观察下次排泄 / 检查温度 / 确认喂食内容 / 提供饮水 / 收集粪便送检 / 联系爬宠兽医，**不含具体药物/驱虫药品牌/剂量/外科操作**），`disclaimer`\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nAnalyzes reptile enclosure images or video frames to identify urate size, color, and texture plus feces morphology, then returns a structured visual assessment with alert guidance. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[18072937735](https://clawhub.ai/user/18072937735) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal reptile keepers, breeders, and enclosure app developers use this skill to analyze reptile excrement images or video frames, retrieve cloud report history, and generate structured visual-health observations with recommended next actions. The skill is framed as visual assessment support, not disease diagnosis or prescription guidance. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Reptile media and report history are processed by LifeEmergence cloud services. <br>\nMitigation: Use only media appropriate for cloud processing, avoid sensitive backgrounds or identifying information, and confirm data retention expectations before deployment. <br>\nRisk: The skill can create or reuse a local identity and store service tokens in the workspace. <br>\nMitigation: Run it in a private, controlled workspace and remove the skill data directory or credentials when access is no longer needed. <br>\nRisk: History queries can return identity-linked report records. <br>\nMitigation: Restrict use in shared environments and verify that the active workspace identity is the intended one before qu\n\nArchive v1.0.4: 31 files, 46360 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (2632b), SKILL.md (20129b), 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\nArchive v1.0.3: 31 files, 43357 bytes\n\nFiles: references/api_doc.md (8544b), scripts/__init__.py (59b), scripts/config.py (701b), scripts/config.yaml (3b), scripts/skill.py (595b), scripts/smyx_reptile_excrement_analysis_analysis.py (3721b), skill-card.md (3011b), SKILL.md (20129b), 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), ski...","readmeExcerpt":"Skill: Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便） Owner: 18072937735 Summary: Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morpho","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_reptile_excrement_analysis_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_reptile_excrement_analysis_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input /path/to/reptile_excrement.jpg\n\n# 分析网络爬宠排泄物高清图像（以下只是示例，禁止直接使用 作为 open-id）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --url https://example.com/reptile_excrement.jpg\n\n# 显示历史排泄物评估记录清单（自动触发关键词：查看爬宠排泄物历史报告等）\npython -m scripts.smyx_reptile_excrement_analysis_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_reptile_excrement_analysis_analysis --input reptile_excrement.jpg --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-reptile-excrement-analysis-analysis\"\ndescription: \"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 💩 Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **爬宠排泄物形态识别（尿酸/粪便）** |\n| 🎯 核心目标 | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` |\n\nThrough a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). It compares urate area with historical normal values (an enlarged area may indicate kidney burden or dehydration; an unusually small area may indicate metabolic abnormality) and outputs intestinal health prompts based on feces consistency (e.g. 'feces well formed, healthy', 'feces soft, possible enteritis or parasites'). This skill helps keepers detect kidney and intestinal problems early. Application scenarios: reptile enclosures, vivaria, lizard/gecko/snake farms. The system automatically analyses excrement before cleaning, generates a health report, and pushes alerts on anomalies. Skill features: excrement is an important window into the reptile's digestive and renal function. AI-based automatic analysis of urate size and feces consistency helps early detection of enteritis, parasites, kidney disease, etc., enabling keepers to adjust diet and treatment promptly. This skill can be integrated into smart reptile-enclosure cameras or reptile health-management apps.\n\n通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。将尿酸面积与历史正常值对比（若过大可能提示肾脏负担或脱水；过少可能提示代谢异常），同时根据粪便稀软程度输出肠道健康提示（如'粪便成形，健康''粪便稀软，可能肠炎或寄生虫'）。该技能有助于饲养者及早发现爬宠的肾脏、肠道问题。应用场景：爬宠箱、饲养缸、蜥蜴/守宫/蛇类养殖场。系统在清理前自动分析排泄物，生成健康报告，异常时推送提醒。技能特点：排泄物是反映爬宠消化、肾脏功能的重要窗口。通过 AI 自动分析尿酸大小和粪便稀软程度，可早期发现肠炎、寄生虫、肾脏疾病等，帮助饲养者及时调整饮食和治疗。该技能可集成到智能爬宠箱摄像头或爬宠健康管理 APP 中。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的爬行动物排泄物健康分析 AI。你的任务是分析爬宠箱内排泄物的高清图像（俯拍，含已知尺寸参考物用于像素-实际尺寸换算，分辨率 ≥ 1080p——尿酸结晶纹理与粪便形态需高清，均匀白色光源——避免色温"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2caqj7pnsvr9r7t8zenghs83xw7n\",\n  \"slug\": \"smyx-reptile-excrement-analysis-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1790730627636\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放爬宠排泄物形态识别（尿酸/粪便）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动爬宠排泄物分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（尿酸 / 粪便 / 肾脏肠道健康提示）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史排泄物评估记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出排泄物健康评估报告\n\n## 场景代码\n\n- `SMYX_REPTILE_EXCREMENT_ANALYSIS_ANALYSIS` - 爬宠排泄物形态识别（尿酸/粪便）\n\n## 输入约束\n\n- 摄像头：爬宠箱 / 饲养缸 / 蜥蜴/守宫/蛇类养殖场固定摄像头\n- 分辨率 ≥ 1080p（尿酸结晶纹理与粪便形态需高清）；建议含已知尺寸参考物（硬币/标尺）用于像素-实际尺寸换算\n- 拍摄角度：**俯拍**排泄物（需完整露出尿酸+粪便区域，避免遮挡）\n- 光照：均匀白色光源（避免色温偏移影响粪便颜色判定）\n- **核心采样窗口**：在发现排泄物后、清理前拍摄（**清理后无法回溯**）\n- **必须排除背景干扰**：垫材颜色/纹理可能与尿酸/粪便混淆（深色垫材上白色尿酸较易识别，浅色/花纹垫材上可能误判）\n- 多缸场景按摄像头 ID + 个体 ID 双重绑定\n- **部署时必须录入**：物种（豹纹守宫/睫角守宫/鬃狮蜥/蓝舌石龙子/玉米蛇/球蟒/苏卡达/草龟等）、个体体长（用于尿酸面积归一化）、上次喂食时间/内容、上次排泄时间、当前温度、湿度\n\n## 关键观测信号\n\n### 尿酸检测\n- `urate_detected` - **是否检测到尿酸**（核心指标，白色/乳白色区域）\n- `urate_color_classification` - 尿酸颜色分类（**white_normal** / cream_yellow / orange_tinged / gritty_granular）\n- `urate_pixel_area` - 尿酸像素面积\n- `urate_area_normalized_by_body_length` - **尿酸面积归一化值**（核心指标，以个体体长为参考归一化，跨个体可比）\n- `urate_area_vs_historical_baseline` - 与历史正常值对比（百分比变化，**增大 > 50% 提示肾脏负担或脱水**）\n- `urate_texture` - 尿酸质地（smooth_paste_normal / gritty_granular / hard_chunky）\n- `urate_count` - 尿酸团块数量（正常 1 团，多团可能多次排泄或异常）\n\n### 粪便形态\n- `feces_detected` - **是否检测到粪便**（核心指标）\n- `feces_color_classification` - **粪便颜色分类**（核心指标：brown_normal / green / black_tarry / red_bloody / yellow / white_grey / undigested_insects_visible）\n- `feces_consistency` - **粪便形态分类**（核心指标：formed_log_normal / soft_pasty / loose_watery / mucus_coated / bloody_streaked）\n- `feces_pixel_area` - 粪便像素面积\n- `feces_length_to_width_ratio` - 粪便长宽比（成形条状 > 2 / 稀软 ≈ 1）\n- `undigested_content_visible` - 是否可见未消化内容（整只昆虫外骨骼 / 毛发 / 植物纤维）\n- `feces_count` - 粪便团块数量\n\n### 上下文与排除信号\n- `is_post_feeding_within_72h` - 是否喂食后 72h 内（食物种类影响粪便颜色/形态：蟋蟀绿色便 / 粉鼠深色便 / 植物纤维便）\n- `is_during_shedding_period` - 是否处于蜕皮期（蜕皮期食欲下降可能影响排泄）\n- `is_gravid_female` - 是否抱蛋雌性（抱蛋期排泄间隔延长/尿酸增大属正常）\n- `is_brumation_period` - 是否休眠/冬眠期（休眠期排泄频率大幅下降，尿酸可能浓缩增大）\n- `substrate_type` - 垫材类型（reptile_carpet / paper_towel / coco_husk / bark / sand / tile）→ 影响排泄物识别难度\n- `recent_diet_change` - 近期是否更换食物 < 7 天（食物变更可导致短期粪便异常）\n- `image_quality_acceptable` - 图像质量是否合格\n\n## 综合判定\n\n- `excrement_healthy` - 排泄物健康（尿酸白色正常质地 + 粪便棕色成形条状）\n- `urate_mildly_abnormal` - **尿酸轻度异常**（尿酸面积较基线增大 20-50% OR 质地粗糙颗粒 OR 颜色偏黄/橙）\n- `urate_significantly_abnormal` - **尿酸显著异常**（尿酸面积较基线增大 > 50% OR 质地硬块 OR 颜色橙/红提示 → 脱水/肾脏负担风险）\n- `feces_mildly_abnormal` - **粪便轻度异常**（粪便稀软糊状 OR 颜色偏绿/黄 OR 可见少量未消化内容）\n- `feces_significantly_abnormal` - **粪便显著异常**（粪便水样 / 黑色柏油便 / 红色血便 / 大量黏液 / 大量未消化内容 → 肠炎/寄生虫/消化道出血风险）\n- `excrement_context_diet_or_brumation` - 饮食变更/休眠期上下文，排泄物异常属临时\n- `excrement_signal_unreliable` - 信号不可靠（排泄物被踩踏/被垫材遮挡/光照色温偏移/分辨率 < 1080p/无参考物无法归一化）\n\n## 4 级提醒策略递进\n\n- Level 1（excrement_healthy）：仅入库\n- Level 2（urate_mildly_abnormal / feces_mildly_abnormal / context_diet_or_brumation）：温和"},{"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":"Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morphology of feces (normally formed log, soft pasty, watery, or bloody). | 通过爬宠箱固定摄像头，在发现排泄物后拍摄高清图像（或分析视频中的静态帧），利用 AI 视觉分析技术识别尿酸（白色/乳白色结晶或膏状物，常见于蜥蜴、守宫等爬宠）的大小（面积像素）以及粪便的形态（正常成形条状、稀软糊状、水样或带血）。 Skill: Reptile Excrement Analysis (Urate / Feces) | 爬宠排泄物形态识别（尿酸/粪便） Owner: 18072937735 Summary: Through a fixed camera in the reptile enclosure, the system captures a high-definition image (or a static video frame) once excrement is found, and uses AI visual analysis to identify urate (white/milky-white crystals or paste, common in lizards, geckos, etc.) — including its size (pixel area) — and to identify the morpho","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1251,"uniquenessScore":45,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T04:04:29.387Z","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-10T04:04:29.387Z","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-10T09:00:36.254Z","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"}]}}}