{"id":"f5a37db3-976e-4f85-a5f1-7ed0f7bb4fb5","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis","name":"Livestock Fever Detection | 畜禽体温异常检测","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis","generatedAt":"2026-10-10T11:01:13.664Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-10T06:35:22.961Z","emptyReason":null},"description":"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。 Skill: Livestock Fever Detection | 畜禽体温异常检测 Owner: smyx-sunjinhui Summary: Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。 Tags: latest:1.0.13 Version history: v1.0.13 | 2026-09-30T22:22:32.260Z | auto - Updated version to 1.0.14. - Documentation refi","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-livestock-fever-detection-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-livestock-fever-detection-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-livestock-fever-detection-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":64,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings base"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T06:35:22.961Z","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-10T06:35:22.961Z","emptyReason":null},"stars":null,"forks":null,"downloads":1615,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"1.6K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T06:35:22.960Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T06:35:22.961Z","lastCrawledAt":"2026-10-10T06:35:22.960Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T06:35:22.960Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-09-30T22:22:32.260Z","changelog":"- Updated version to 1.0.14. - Documentation refinements in SKILL.md; improved descriptions and instructions. - Removed the skill-card.md file for cleanup and consistency. - No functional or code-level changes; update is documentation-only.","fileCount":31,"zipByteSize":39450},{"version":"1.0.12","createdAt":"2026-09-26T02:00:32.491Z","changelog":"- Version bumped from 1.0.11 to 1.0.13 in SKILL.md. - Documentation updates in SKILL.md; version number and related metadata updated. - Obsolete file skill-card.md removed to reduce redundancy. - Minor housekeeping in configuration (skills/smyx_common/scripts/config.yaml).","fileCount":31,"zipByteSize":39544},{"version":"1.0.11","createdAt":"2026-09-15T06:13:35.019Z","changelog":"- Version updated to 1.0.11. - SKILL.md updated with no significant content changes. - Removed redundant file: skill-card.md.","fileCount":31,"zipByteSize":39735},{"version":"1.0.10","createdAt":"2026-08-27T23:04:34.151Z","changelog":"- Updated SKILL.md version from 1.0.8 to 1.0.9. - Removed the file skill-card.md. - No functional or logic changes; this update only affects documentation and metadata.","fileCount":31,"zipByteSize":39834},{"version":"1.0.9","createdAt":"2026-08-18T22:09:30.414Z","changelog":"- Updated version number in SKILL.md from 1.0.6 to 1.0.8 - Made configuration changes in skills/smyx_common/scripts/config.yaml - Removed the skill-card.md file","fileCount":31,"zipByteSize":39720},{"version":"1.0.8","createdAt":"2026-08-11T13:58:38.981Z","changelog":"- Updated SKILL.md metadata: version changed from 1.0.5 to 1.0.6. - No user-facing content changes in documentation. - Removed skill-card.md file.","fileCount":31,"zipByteSize":39782},{"version":"1.0.7","createdAt":"2026-08-05T09:35:28.470Z","changelog":"- Updated SKILL.md content, reflecting documentation or informational changes. - Changed skill version from 1.0.4 to 1.0.5. - Removed the skill-card.md file. - No code or functional changes to the skill logic.","fileCount":31,"zipByteSize":39756},{"version":"1.0.6","createdAt":"2026-07-27T17:44:28.891Z","changelog":"- Updated documentation in SKILL.md with minor version change from 1.0.3 to 1.0.4. - Removed skill-card.md file. - No changes to functionality or code. Documentation only.","fileCount":31,"zipByteSize":39978}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-livestock-fever-detection-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-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T11:01:13.660Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-livestock-fever-detection-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-10T06:35:22.961Z","emptyReason":null},"readme":"Skill: Livestock Fever Detection | 畜禽体温异常检测\n\nOwner: smyx-sunjinhui\n\nSummary: Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-09-30T22:22:32.260Z | auto\n\n- Updated version to 1.0.14.\n- Documentation refinements in SKILL.md; improved descriptions and instructions.\n- Removed the skill-card.md file for cleanup and consistency.\n- No functional or code-level changes; update is documentation-only.\n\nv1.0.12 | 2026-09-26T02:00:32.491Z | auto\n\n- Version bumped from 1.0.11 to 1.0.13 in SKILL.md.\n- Documentation updates in SKILL.md; version number and related metadata updated.\n- Obsolete file skill-card.md removed to reduce redundancy.\n- Minor housekeeping in configuration (skills/smyx_common/scripts/config.yaml).\n\nv1.0.11 | 2026-09-15T06:13:35.019Z | auto\n\n- Version updated to 1.0.11.\n- SKILL.md updated with no significant content changes.\n- Removed redundant file: skill-card.md.\n\nv1.0.10 | 2026-08-27T23:04:34.151Z | auto\n\n- Updated SKILL.md version from 1.0.8 to 1.0.9.\n- Removed the file skill-card.md.\n- No functional or logic changes; this update only affects documentation and metadata.\n\nv1.0.9 | 2026-08-18T22:09:30.414Z | auto\n\n- Updated version number in SKILL.md from 1.0.6 to 1.0.8\n- Made configuration changes in skills/smyx_common/scripts/config.yaml\n- Removed the skill-card.md file\n\nv1.0.8 | 2026-08-11T13:58:38.981Z | auto\n\n- Updated SKILL.md metadata: version changed from 1.0.5 to 1.0.6.\n- No user-facing content changes in documentation.\n- Removed skill-card.md file.\n\nv1.0.7 | 2026-08-05T09:35:28.470Z | auto\n\n- Updated SKILL.md content, reflecting documentation or informational changes.\n- Changed skill version from 1.0.4 to 1.0.5.\n- Removed the skill-card.md file.\n- No code or functional changes to the skill logic.\n\nv1.0.6 | 2026-07-27T17:44:28.891Z | auto\n\n- Updated documentation in SKILL.md with minor version change from 1.0.3 to 1.0.4.\n- Removed skill-card.md file.\n- No changes to functionality or code. Documentation only.\n\nv1.0.5 | 2026-07-17T10:02:28.319Z | auto\n\n- Updated SKILL.md to increment the version from 1.0.2 to 1.0.3.\n- Removed the file skill-card.md from the repository.\n- No functional or logic changes; documentation version alignment and cleanup only.\n\nv1.0.4 | 2026-07-11T07:54:28.448Z | auto\n\n- Updated SKILL.md version from 1.0.0 to 1.0.2.\n- Made changes to internal scripts (util.py).\n- Removed the unnecessary file skill-card.md.\n- General documentation and metadata maintenance.\n\nv1.0.3 | 2026-07-05T03:40:28.014Z | auto\n\nsmyx-livestock-fever-detection-analysis 1.0.3\n\n- Added comprehensive SKILL.md documentation detailing capabilities, input types, output formats, workflows, privacy, and usage instructions.\n- Clarified requirements for thermal/visible-light imagery, supported formats, and capture guidelines.\n- Specified strict API/cloud interface for historical report retrieval; local or manual data gathering prohibited.\n- Outlined privacy protection standards and role limitations (no diagnosis or treatment advice).\n- Provided usage examples and clear report output formats for user guidance.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 39450 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2083b), SKILL.md (12148b), 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.13:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790806952260\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAnalyzes livestock and poultry thermal or visible-light images and videos for possible fever or hypothermia warnings and provides access to analysis reports.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nLivestock keepers and animal-health teams use the skill to screen herd or flock imagery for possible temperature abnormalities and review associated reports. Results are screening aids, not veterinary diagnoses.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Local livestock images or videos are uploaded to lifeemergence.com services for analysis.\n\nMitigation: Use only media approved for transfer to that service and review the skill before installation.\n\nRisk: The skill creates or reuses an account identity and may automatically query account-linked cloud report history.\n\nMitigation: Use it only where cloud account linkage and retrieval of report history are acceptable.\n\nRisk: Account tokens are retained in a local workspace database.\n\nMitigation: Restrict access to the workspace and review local token storage before use.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis)\n- [API reference](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis results or Markdown report-history tables]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include abnormality warnings, report links, and an optional saved result file.]\n\n## Skill Version(s):\n\n1.0.13 (source: ClawHub release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 39544 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2296b), SKILL.md (12148b), 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.12:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790388032491\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nScreens livestock and poultry thermal or visible-light images and videos for possible fever or low-temperature anomalies and reports early warnings.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nLivestock and poultry caretakers use the skill to screen thermal or visible-light media for individual and group temperature anomalies and review historical reports. Results are screening alerts, not veterinary diagnoses.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Livestock images, video, URLs, and report history are sent to a third-party cloud service.\n\nMitigation: Use only with authorized media and URLs; confirm the provider's retention and access controls before sharing private farm imagery or sensitive internal URLs.\n\nRisk: The skill silently creates or reuses persistent identities and stores service tokens for cloud history access.\n\nMitigation: Treat the local workspace database as sensitive, restrict access to it, and review identity controls before enabling report history.\n\nRisk: Visual temperature screening may be mistaken for a confirmed disease diagnosis.\n\nMitigation: Use alerts only for screening and seek veterinary assessment and laboratory testing for diagnosis and treatment decisions.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis)\n- [API interface reference](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis text or JSON; Markdown table for report history]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include anomaly levels, estimated temperatures, report links, and an optional saved result file.]\n\n## Skill Version(s):\n\n1.0.12 (source: ClawHub release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 39735 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2715b), SKILL.md (12148b), 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.11:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1789452815019\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nDetects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nFarm operators, veterinarians, and developers use this skill to analyze thermal or visible-light livestock and poultry images or videos for early fever/hypothermia screening and historical report review. It supports screening workflows only and does not provide disease diagnosis or treatment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The release security verdict is suspicious because the skill silently manages identities and tokens and defaults to insecure plaintext service endpoints.\n\nMitigation: Review carefully before installing, run in a contained environment, require HTTPS endpoints, and confirm identity creation, token storage, and retention behavior before use.\n\nRisk: The skill sends farm media to cloud analysis services and can query historical reports.\n\nMitigation: Avoid submitting sensitive farm media until data handling is approved, and limit report access to the intended authenticated identity.\n\nRisk: The skill produces screening warnings that could be mistaken for veterinary diagnosis.\n\nMitigation: Use results only as body-temperature screening support and require professional veterinary and laboratory confirmation for disease diagnosis or treatment decisions.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis)\n- [API interface documentation](references/api_doc.md)\n- [SMYX analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, guidance]\n\n**Output Format:** [Markdown status text and tables, with JSON-oriented analysis details and optional saved output files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include abnormality level, individual locations, estimated temperature ranges, affected-individual list, analysis time, and report links.]\n\n## Skill Version(s):\n\n1.0.11 (source: release evidence and SKILL.md frontmatter)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39834 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2827b), SKILL.md (12147b), 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.10:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.9\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787871874151\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nDetects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nFarm operators, veterinarians, and developers use this skill to screen livestock and poultry thermal or visible-light images and videos for body-temperature abnormalities and to retrieve historical fever or hypothermia warning reports. It supports early health screening but does not provide disease diagnosis or treatment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Livestock media may be uploaded to the configured service for analysis.\n\nMitigation: Use only media that is approved for the service, and confirm data handling expectations before installation.\n\nRisk: Report history is tied to an automatically managed identity and tokens may be stored in the workspace data directory.\n\nMitigation: Run the skill in an isolated workspace and review identity and token storage before using it with sensitive data.\n\nRisk: The release includes development HTTP endpoint configuration.\n\nMitigation: Review and replace endpoint configuration with the intended production or approved service endpoints before use.\n\nRisk: The output is a screening result, not a veterinary diagnosis or treatment recommendation.\n\nMitigation: Use results as an early-warning signal and escalate suspected disease cases to qualified veterinary or laboratory review.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [Livestock Fever Detection API Documentation](artifact/references/api_doc.md)\n- [Common Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, files]\n\n**Output Format:** [Markdown or JSON-style structured analysis, with optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include abnormality levels, estimated temperature ranges, individual locations, report links, and historical report tables.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact frontmatter says 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.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, 39720 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2708b), SKILL.md (12147b), 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 (158b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787090970414\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nDetects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nFarm operators, animal-health staff, and agents use this skill to screen livestock and poultry imagery or video for visual signs of abnormal body temperature. It supports early warning workflows by returning structured fever or hypothermia findings, individual locations, estimated temperature ranges, and report links.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Farm imagery, video, and URLs are sent to remote LifeEmergence services for analysis.\n\nMitigation: Use only inputs approved for external processing and confirm retention, deletion, and access controls before deployment.\n\nRisk: The skill can create or reuse an internal account identity and store tokens locally without a user-facing setup step.\n\nMitigation: Run the skill in an isolated workspace, review local token and identity storage, and prefer a version that asks before account setup.\n\nRisk: History lookup can retrieve cloud reports associated with the current identity.\n\nMitigation: Limit use of history commands to authorized operators and verify the active identity before querying cloud report history.\n\nRisk: Temperature abnormality results are screening signals, not veterinary diagnoses.\n\nMitigation: Require veterinary or laboratory confirmation before disease diagnosis, treatment, quarantine, or culling decisions.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis)\n- [API documentation](references/api_doc.md)\n- [Skill demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, configuration]\n\n**Output Format:** [Markdown text with JSON-formatted structured analysis, history listings, and report links.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Outputs are generated through remote LifeEmergence services; local uploads and URL inputs are supported, with documented file-size and media-format limits.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.9:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.9:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.8: 31 files, 39782 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2841b), SKILL.md (12147b), 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 (158b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786456718981\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nDetects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and farm operations teams use this skill to screen livestock and poultry images or videos for body-temperature anomalies, including fever, hypothermia, borderline cases, affected individual locations, and report links. Results are intended for early screening and monitoring, not for veterinary diagnosis or treatment decisions.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Livestock images, videos, or supplied URLs are processed by the publisher's cloud service.\n\nMitigation: Use only inputs that are acceptable to send to the publisher-operated service, and avoid submitting unrelated sensitive content.\n\nRisk: The skill silently creates or reuses an internal identity and stores returned session tokens or profile fields locally.\n\nMitigation: Review local data and token storage before and after use, and remove stored local data if the skill is no longer needed.\n\nRisk: Historical cloud reports may be listed using the locally associated identity.\n\nMitigation: Confirm the local identity context before querying history and avoid shared execution environments when report separation matters.\n\nRisk: Temperature-anomaly outputs can be mistaken for disease diagnosis.\n\nMitigation: Use results only for screening and monitoring, and rely on qualified veterinary and laboratory assessment for diagnosis or treatment decisions.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis)\n- [Publisher Profile](https://clawhub.ai/user/smyx-sunjinhui)\n- [API Interface Documentation](references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-like structured analysis text with optional saved output files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include abnormal-temperature levels, individual locations, estimated temperature ranges, historical report listings, and report links.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; SKILL.md frontmatter says 1.0.6)\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, 39756 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2827b), SKILL.md (12147b), 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 (158b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785922528470\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nDetects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and farm operations teams use this skill to screen livestock and poultry thermal or visible-light images and videos for abnormal body-temperature patterns. It provides structured fever or hypothermia early-warning reports, abnormal individual lists, estimated temperature ranges, and report links for herd health screening, not veterinary diagnosis.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Supplied images, videos, or URLs are sent to external Life Emergence APIs for analysis.\n\nMitigation: Use the skill only with media that is approved for external processing and disclose that external API processing is part of the workflow.\n\nRisk: The skill can silently create or reuse an account identity and query cloud report history.\n\nMitigation: Review account-linking behavior before installation and restrict use to workspaces where this identity association is acceptable.\n\nRisk: Account tokens may be stored in a workspace SQLite database.\n\nMitigation: Apply local credential handling controls, limit workspace access, and remove persisted credentials when the skill is no longer needed.\n\nRisk: Body-temperature analysis is an early-warning screening aid and may be mistaken for veterinary diagnosis.\n\nMitigation: Present outputs as screening results only and require professional veterinary or laboratory confirmation before disease diagnosis or treatment decisions.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis)\n- [API Interface Documentation](references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and JSON-oriented structured analysis text, with optional file output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Includes abnormality level, estimated temperature range, individual locations, abnormal individual lists, historical report tables, and report links when returned by the service.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release evidence)\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.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, 39978 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (3287b), SKILL.md (12147b), 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 (158b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.4\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785174268891\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nDetects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。 <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nDevelopers, farm operators, and animal-health teams use this skill to analyze livestock or poultry thermal and visible-light images or videos for early fever and hypothermia screening. It produces structured abnormal-temperature reports and can query cloud report history for the current internal identity. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Livestock images, videos, URLs, and analysis requests are sent to the configured Lifeemergence backend. <br>\nMitigation: Use the skill only for data you are permitted to submit to that backend, and avoid uploading unrelated sensitive material. <br>\nRisk: The skill can silently create or reuse an internal identity and query cloud report history for that identity. <br>\nMitigation: Review workspace identity state before use in shared environments, and confirm that report history access matches the intended user or farm context. <br>\nRisk: Authentication tokens may be stored in a local workspace SQLite database. <br>\nMitigation: Clear the workspace data database when retention is no longer needed, and keep the workspace access-controlled. <br>\nRisk: The scanner guidance warns against placing unrelated secrets in data/smyx-api-key.txt. <br>\nMitigation: Keep data/smyx-api-key.txt limited to the expected internal identity value and do not reuse it as a general secret store. <br>\nRisk: The skill provides screening output and does not provide veterinary diagnosis or treatment advice. <br>\nMitigation: Use outputs as early-warning support and confirm health decisions with professional veterinary and laboratory assessment. <br>\n\n\n## Reference(s): <br>\n- [Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis) <br>\n- [Publisher Profile](https://clawhub.ai/user/smyx-sunjinhui) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [Livestock Fever Detection API Documentation](artifact/references/api_doc.md) <br>\n- [Common Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown text with structured JSON analysis content and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May save the analysis result to a user-selected output file.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; artifact frontmatter is 1.0.4) <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, 39655 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2674b), SKILL.md (12147b), 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 (158b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.3\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784282548319\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.5:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.5:scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.5:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.5:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.5:skill-card.md\n\n## Description: <br>\nDetects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery and returns fever or hypothermia early warnings. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal operators and developers use this skill to submit livestock or poultry thermal and visible-light images or videos for body-temperature anomaly screening, including fever, hypothermia, and historical report lookup. It supports early health screening workflows but does not provide disease diagnosis or treatment advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Livestock images, videos, and report queries are sent to the Life Emergence cloud service. <br>\nMitigation: Review data handling, retention, and account ownership requirements before installation, and submit only media approved for cloud processing. <br>\nRisk: The skill can create or reuse a local identity and persist authentication tokens in the workspace database. <br>\nMitigation: Restrict access to the workspace data directory, review local storage before sharing the workspace, and rotate or revoke tokens when needed. <br>\nRisk: Outputs are screening results rather than veterinary diagnosis or treatment advice. <br>\nMitigation: Use results as early-warning support and require veterinary or laboratory confirmation before disease response decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis) <br>\n- [Life Emergence skill demo](https://lifeemergence.com/sample.html) <br>\n- [API documentation](references/api_doc.md) <br>\n- [Common analysis API documentation](skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Files] <br>\n**Output Format:** [Markdown or JSON text with optional saved output file] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include structured analysis results, historical report records, and report export links returned by the cloud service.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release evidence; artifact frontmatter says 1.0.3) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.5:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.5:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.4: 31 files, 39669 bytes\n\nFiles: references/api_doc.md (657b), scripts/__init__.py (53b), scripts/config.py (678b), scripts/config.yaml (3b), scripts/skill.py (576b), scripts/smyx_livestock_fever_detection_analysis.py (3575b), skill-card.md (2655b), SKILL.md (12147b), 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 (158b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.2\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达\"查看历史报告/报告清单\"等意图 |\n\n---\n\n## 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像/可见光输入 | 提供本地文件路径或网络 URL；确保画面覆盖目标个体、符合采集要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行畜禽体温异常检测 | 调用 `-m scripts.smyx_livestock_fever_detection_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看异常个体清单、估计体温、异常等级与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像/可见光图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像/可见光图像/视频 URL 地址 | API 服务自动下载 |\n| `--pet-type` | 类别标识（畜禽场景保持 other） | 默认 `other`，按需填写 |\n| `--list` | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |\n| `--api-url` | API 服务地址 | 可选，使用默认值 |\n| `--detail` | 输出详细程度 | `basic` / `standard` / `json`，默认 `json` |\n| `--output` | 结果输出文件路径 | 可选 |\n\n---\n\n## 🗂️ 资源索引 | Resource Index\n\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_livestock_fever_detection_analysis.py`](scripts/smyx_livestock_fever_detection_analysis.py) | 调用 API 进行畜禽体温异常检测或查询历史报告 | 执行分析或查询时使用 |\n| ⚙️ 配置文件 | [`scripts/config.py`](scripts/config.py) | 场景码 `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS`、默认参数配置 | 需要确认默认配置时读取 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n---\n\n## ⚠️ 注意事项 | Notes\n\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 图片支持 `jpg` / `png` / `jpeg`；视频支持 `mp4` / `avi` / `mov`；单文件最大 `10MB` |\n| 🧑‍⚖️ 结果性质 | 检测结果仅供体温异常筛查参考，本技能不提供疾病诊断或治疗建议 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能使用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数无需本地下载，默认为公网地址，API 服务会自动下载 |\n| 📜 报告输出 | 显示历史分析报告清单时，从接口返回 JSON 数据中提取字段作为超链接地址，并自动转化为 Markdown 表格输出 |\n\n---\n\n## 🔒 隐私与数据安全声明 | Privacy & Data Security\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 仅采集与畜禽体温异常检测直接相关的热成像/可见光图像/视频数据，不采集与体温筛查无关的敏感信息 |\n| 2 | 内部身份参数由系统自动处理，不在任何输出、日志或报告中暴露 |\n| 3 | 分析请求通过服务端 API 完成，网络传输遵循平台既有安全策略 |\n| 4 | 历史报告仅当前身份可读，不做跨养殖场/跨用户汇总或共享 |\n| 5 | 检测结果仅供参考，正式疫病诊断与处置请结合专业兽医与实验室检测 |\n\n---\n\n## 📜 历史报告清单输出规范 | Report List Format\n\n当显示历史分析报告清单的时候，从接口返回 JSON 数据中提取字段作为超链接地址，且自动转化为如下 Markdown 表格格式输出。\n\n### 📌 固定输出列\n\n| 列名 | 生成规则 |\n|---|---|\n| 报告名称 | 使用 `畜禽体温异常检测报告-{记录id}` 形式拼接 |\n| 异常等级 | 从接口返回数据中提取（正常 / 边界 / 发热 / 低温） |\n| 分析时间 | 从接口返回数据中提取 |\n| 点击查看 | 使用 `[🔗 查看报告]()` 格式的超链接 |\n\n### 🧾 表格输出示例\n\n| 报告名称 | 异常等级 | 分析时间 | 点击查看 |\n|----------|----------|----------|----------|\n| 畜禽体温异常检测报告-20260703160500001 | 发热 | 2026-07-03 16:05:00 | [🔗 查看报告](https://example.com/report?id=xxx) |\n\n---\n\n## 🧰 使用示例 | Examples\n\n### 🐷 分析本地生猪热成像图像\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg\n```\n\n### 🐔 分析本地鸡群热成像视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4\n```\n\n### 🌐 分析网络畜禽热成像/可见光图像/视频\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4\n```\n\n### 📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史体温预警报告\n\n> 自动触发关键词：查看历史体温异常报告、历史报告、体温预警清单等。\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --list\n```\n\n### 🪶 输出精简报告\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input pig_thermal.jpg --detail basic\n```\n\n### 💾 保存结果到文件\n\n```bash\npython -m scripts.smyx_livestock_fever_detection_analysis --input chicken_thermal.mp4 --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783756468448\n}\n\nFile v1.0.4:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测\n\nFile v1.0.4:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.4:scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.4:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.4:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nDetects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill to analyze livestock and poultry thermal or visible-light images or videos for body-temperature abnormality screening, estimated temperature ranges, warning levels, and report links. It supports early health screening workflows but does not provide disease diagnosis or treatment advice. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Livestock images or videos may be processed by the vendor cloud service. <br>\nMitigation: Use only media appropriate for cloud processing and review retention and data-handling expectations before using sensitive farm or operational media. <br>\nRisk: The skill silently creates or reuses an internal identity and can retrieve account-linked analysis history. <br>\nMitigation: Review account ownership and access expectations, and avoid sharing workspaces across users who should not see each other's report history. <br>\nRisk: Authentication tokens may be persisted in a local workspace database. <br>\nMitigation: Review token cleanup procedures and remove local credentials when rotating users or decommissioning the workspace. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-livestock-fever-detection-analysis) <br>\n- [API Documentation](references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown summaries and JSON-style structured analysis results with report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can output abnormality levels, estimated temperature ranges, individual locations, abnormal individual lists, history tables, and saved result files.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; artifact frontmatter is 1.0.2) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.4:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.4:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Livestock Fever Detection | 畜禽体温异常检测 Owner: smyx-sunjinhui Summary: Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。 Tags: latest:1.0.13 Version history: v1.0.13 | 2026-09-30T22:22:32.260Z | auto - Updated version to 1.0.14. - Documentation refi","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_livestock_fever_detection_analysis --list"},{"language":"txt","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"python -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/pig_thermal.jpg"},{"language":"bash","snippet":"python -m scripts.smyx_livestock_fever_detection_analysis --input /path/to/chicken_thermal.mp4"},{"language":"bash","snippet":"python -m scripts.smyx_livestock_fever_detection_analysis --url https://example.com/cattle_thermal.mp4"},{"language":"bash","snippet":"python -m scripts.smyx_livestock_fever_detection_analysis --list"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-livestock-fever-detection-analysis\"\ndescription: \"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测\n\n> 通过热成像或视觉特征识别畜禽体温异常，预警发热。\n>\n> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **畜禽体温异常检测** |\n| 🎯 核心目标 | 基于畜禽热成像图像或可见光图像，检测个体体温是否出现异常升高或降低，输出发热/低温异常预警，辅助猪、牛、羊、家禽等畜种的群体健康早期筛查 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL（热成像图/热成像视频优先，兼容可见光） |\n| 📝 输出能力 | 结构化分析报告、个体位置、估计体温区间、体温异常等级、异常个体清单、报告链接 |\n| 🏢 适用场景 | 猪瘟、禽流感等重大疫病的早期筛查、畜禽群体体温监测、进场入舍前的健康预检 |\n| 🧩 场景码 | `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n## 🤖 AI 角色 | AI Role\n\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **你是一个专业的畜禽体温监测 AI。你的任务是分析畜禽热成像图像（或可见光图像），检测个体体温是否出现异常升高或降低，输出体温异常预警。不要提供疾病诊断或治疗建议，仅基于视觉温度特征输出异常识别结果。** |\n\n---\n\n## 🎯 任务目标 | Goals\n\n### 1. 🧩 技能用途\n\n通过畜禽热成像或可见光图像，识别个体体表温度分布并判定是否出现异常升高或降低，输出结构化的体温异常预警结果，为群体健康筛查与重大疫病早期识别提供客观依据。\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 畜禽个体检测与定位（头部/耳根/眼周等关键测温区域） |\n| 2 | 热成像图像温度色带解析 |\n| 3 | 个体体表温度区间估算 |\n| 4 | 可见光辅助判读（面部潮红、呼吸急促等视觉温度线索） |\n| 5 | 与畜种正常体温参考范围对比 |\n| 6 | 体温异常识别（发热 / 低温 / 边界） |\n| 7 | 异常个体清单与位置标注 |\n| 8 | 群体体温异常比例统计与预警等级输出 |\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_livestock_fever_detection_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_livestock_fever_detection_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n---\n\n## 📦 前置准备 | Requirements\n\n### 依赖说明\n\n`scripts` 脚本所需的依赖包及版本：\n\n```txt\nrequests>=2.28.0\n```\n\n---\n\n## 📷 采集要求 | Capture Requirements\n\n| 序号 | 说明 |\n|---:|---|\n| 1 | 优先使用热成像相机拍摄，保留温度色带和刻度信息，便于温度估算 |\n| 2 | 拍摄距离建议 0.5m～3m，能清晰看到目标个体的头部、耳根、眼周等关键测温区域 |\n| 3 | 避免强逆光、镜头结露和大面积热源干扰（如暖灯、加热器直射画面） |\n| 4 | 采集前尽量让目标个体处于相对静止状态，减少高强度运动带来的表面温度波动 |\n| 5 | 支持单张图或短视频（≤10MB），视频建议 5~15 秒平稳巡舍拍摄 |\n| 6 | 支持格式：jpg/png/jpeg 图片，及 mp4/avi/mov 视频；单文件不超过 10MB |\n| 7 | 若仅提供可见光图像，建议包含面部/耳部特写，便于辅助判读体温相关视觉线索 |\n\n---\n\n## 🚀 操作步骤 | Workflow\n\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 "},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-livestock-fever-detection-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1790806952260\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放畜禽体温异常检测 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/ai-analysis/v2/start-common-ai-analysis` - 启动畜禽体温异常检测分析任务\n2. `/web/ai-analysis/get-common-ai-analysis-result` - 获取分析结果\n3. `/web/ai-analysis/page-common-ai-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_LIVESTOCK_FEVER_DETECTION_ANALYSIS` - 畜禽体温异常检测"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。 Skill: Livestock Fever Detection | 畜禽体温异常检测 Owner: smyx-sunjinhui Summary: Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常，预警发热。 Tags: latest:1.0.13 Version history: v1.0.13 | 2026-09-30T22:22:32.260Z | auto - Updated version to 1.0.14. - Documentation refi","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":775,"uniquenessScore":49,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T06:35:22.961Z","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-10T06:35:22.961Z","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-10T11:01:13.664Z","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"}]}}}