{"id":"e95455b7-2673-44e4-a973-58c8775da5b1","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys","name":"Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys","generatedAt":"2026-10-10T10:08:18.345Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T01:16:48.250Z","emptyReason":null},"description":"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-plant-night-respiration-rate-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-plant-night-respiration-rate-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-plant-night-respiration-rate-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":65,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T01:16:48.250Z","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-10T01:16:48.250Z","emptyReason":null},"stars":null,"forks":null,"downloads":1811,"packageName":null,"latestVersion":"1.0.10","tractionLabel":"1.8K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T01:16:48.250Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T01:16:48.250Z","lastCrawledAt":"2026-10-10T01:16:48.250Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T01:16:48.250Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.10","createdAt":"2026-09-30T07:22:25.626Z","changelog":"- Updated version to 1.0.16 in SKILL.md. - Improved and expanded documentation in SKILL.md, reflecting the latest features and requirements. - Removed the obsolete skill-card.md file. - Made minor adjustments to configuration files.","fileCount":31,"zipByteSize":39357},{"version":"1.0.9","createdAt":"2026-09-14T01:05:29.241Z","changelog":"- Version updated to 1.0.13. - Documentation (SKILL.md) revised and version bumped. - skill-card.md file removed.","fileCount":31,"zipByteSize":39546},{"version":"1.0.8","createdAt":"2026-08-29T23:09:28.197Z","changelog":"* Version updated to 1.0.12 * Documentation updated in SKILL.md with no functional changes to the skill logic * Removed redundant skill-card.md file for simplified documentation management * No changes to API, parameters, or outputs—usage remains the same","fileCount":31,"zipByteSize":39602},{"version":"1.0.7","createdAt":"2026-08-21T17:05:30.570Z","changelog":"- Version incremented to 1.0.11. - Updated SKILL.md content; minor clarifications or edits. - Removed skill-card.md file.","fileCount":31,"zipByteSize":39641},{"version":"1.0.6","createdAt":"2026-08-16T09:27:28.754Z","changelog":"- Updated version to 1.0.10. - Minor documentation updates in SKILL.md. - Updated configuration in skills/smyx_common/scripts/config.yaml. - Removed redundant file skill-card.md.","fileCount":31,"zipByteSize":39471},{"version":"1.0.5","createdAt":"2026-07-31T13:22:36.298Z","changelog":"- Version bumped from 1.0.5 to 1.0.7. - Updated documentation in SKILL.md, including small clarifications and information. - Removed the file skill-card.md from the project.","fileCount":31,"zipByteSize":39566},{"version":"1.0.4","createdAt":"2026-07-14T20:43:30.128Z","changelog":"- Removed the file: skill-card.md. - No changes were made to features or core logic. - Documentation and skill functionality remain unchanged.","fileCount":31,"zipByteSize":39600},{"version":"1.0.3","createdAt":"2026-07-12T02:04:26.275Z","changelog":"- Updated to version 1.0.5. - Internal code and documentation updates in config.py and util.py scripts. - Removed redundant documentation file skill-card.md. - No changes to workflow, interface, or user-facing features.","fileCount":31,"zipByteSize":39601}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-plant-night-respiration-rate-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-plant-night-respiration-rate-analysis` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/smyx-sunjinhui/smyx-plant-night-respiration-rate-analysis before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/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-10T10:08:18.340Z"}},"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-plant-night-respiration-rate-analys/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-night-respiration-rate-analys/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T01:16:48.250Z","emptyReason":null},"readme":"Skill: Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n\nOwner: smyx-sunjinhui\n\nSummary: In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\n\nTags: latest:1.0.10\n\nVersion history:\n\nv1.0.10 | 2026-09-30T07:22:25.626Z | auto\n\n- Updated version to 1.0.16 in SKILL.md.\n- Improved and expanded documentation in SKILL.md, reflecting the latest features and requirements.\n- Removed the obsolete skill-card.md file.\n- Made minor adjustments to configuration files.\n\nv1.0.9 | 2026-09-14T01:05:29.241Z | auto\n\n- Version updated to 1.0.13.\n- Documentation (SKILL.md) revised and version bumped.\n- skill-card.md file removed.\n\nv1.0.8 | 2026-08-29T23:09:28.197Z | auto\n\n* Version updated to 1.0.12\n* Documentation updated in SKILL.md with no functional changes to the skill logic\n* Removed redundant skill-card.md file for simplified documentation management\n* No changes to API, parameters, or outputs—usage remains the same\n\nv1.0.7 | 2026-08-21T17:05:30.570Z | auto\n\n- Version incremented to 1.0.11.\n- Updated SKILL.md content; minor clarifications or edits.\n- Removed skill-card.md file.\n\nv1.0.6 | 2026-08-16T09:27:28.754Z | auto\n\n- Updated version to 1.0.10.\n- Minor documentation updates in SKILL.md.\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n- Removed redundant file skill-card.md.\n\nv1.0.5 | 2026-07-31T13:22:36.298Z | auto\n\n- Version bumped from 1.0.5 to 1.0.7.\n- Updated documentation in SKILL.md, including small clarifications and information.\n- Removed the file skill-card.md from the project.\n\nv1.0.4 | 2026-07-14T20:43:30.128Z | auto\n\n- Removed the file: skill-card.md.\n- No changes were made to features or core logic.\n- Documentation and skill functionality remain unchanged.\n\nv1.0.3 | 2026-07-12T02:04:26.275Z | auto\n\n- Updated to version 1.0.5.\n- Internal code and documentation updates in config.py and util.py scripts.\n- Removed redundant documentation file skill-card.md.\n- No changes to workflow, interface, or user-facing features.\n\nv1.0.2 | 2026-06-29T13:59:25.891Z | auto\n\n- Refactored and updated code in `skills/smyx_common/scripts/dao.py` and `skills/smyx_common/scripts/util.py`\n- Removed redundant documentation file `skill-card.md`\n- No changes to user-facing features or workflows\n\nv1.0.1 | 2026-06-27T15:20:28.969Z | auto\n\n- Major update: User identity and authentication is now handled completely internally and automatically, with no user interaction or exposure of internal IDs required.\n- Documentation fully rewritten for clarity, brevity, and bilingual support; all end-user prompts related to identity removed.\n- Simplified API usage—commands no longer require open-id as a visible parameter.\n- Stricter enforcement that all historical report queries must use the official cloud API—local report memory reading is strictly disabled.\n- Improved parameter instructions, workflow guidance, and resource index; updated example commands accordingly.\n\nv1.0.0 | 2026-05-24T14:00:12.337Z | auto\n\nInitial release of Plant Night Respiration Rate Analysis.\n\n- Monitors plant nighttime respiration intensity (0–100%) using thermal imaging and optional CO₂ sensor data.\n- AI analyzes leaf-air temperature differences and CO₂ data to estimate metabolic activity.\n- Provides alerts on abnormal respiration intensity and environment control suggestions.\n- Supports automatic report generation and historical report lookup, with results shown in clear Markdown tables.\n- Includes strict open-id acquisition rules for user identification and data retrieval.\n\nArchive index:\n\nArchive v1.0.10: 31 files, 39357 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2056b), SKILL.md (12096b), 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 (162b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1790752945626\n}\n\nFile v1.0.10:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\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: prod\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nEstimates relative nighttime plant respiration from canopy thermal imagery, with optional environmental CO₂ data, and provides activity assessments and recommendations.\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\nGreenhouse and plant-factory operators use this skill to assess relative nighttime respiration from canopy thermal images or video, review activity alerts and environmental recommendations, and retrieve past reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant media or submitted URLs are sent to an external analysis service.\n\nMitigation: Submit only appropriate plant imagery and non-sensitive URLs after reviewing the service's data-handling practices.\n\nRisk: The skill silently creates or reuses a local service identity and stores authentication tokens in the workspace data directory.\n\nMitigation: Use a workspace whose users and retention practices you trust, and review stored credentials before sharing or reusing it.\n\n## Reference(s):\n\n- [Skill listing on ClawHub](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis)\n- [Plant respiration API documentation](references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Text or Markdown analysis reports and report links; JSON when requested]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Relative respiration index (0–100%), activity assessment, alerts and recommendations; historical reports as a Markdown table.]\n\n## Skill Version(s):\n\n1.0.10 (source: server-resolved release; artifact frontmatter lists 1.0.16)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39546 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2464b), SKILL.md (12096b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1789347929241\n}\n\nFile v1.0.9:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\n\nFile v1.0.9:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.9:scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.9:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.9:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.9:skill-card.md\n\n## Description:\n\nAnalyzes nighttime plant canopy thermal imagery, optionally with ambient CO2 data, to estimate a relative plant respiration intensity index and provide structured monitoring guidance.\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\nDevelopers, growers, and precision-agriculture operators use this skill to submit plant-factory or greenhouse nighttime thermal images or videos, estimate relative respiration intensity, review health and environment-control guidance, and query prior cloud reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The release is flagged suspicious because it wraps cloud media analysis with silent identity creation, persistent tokens, and active plaintext development endpoints.\n\nMitigation: Install only after the publisher fixes the release configuration to use HTTPS production endpoints, documents identity and account creation, avoids storing bearer tokens in plain SQLite, and corrects the dependency name.\n\nRisk: Uploaded images, videos, and report history may be cloud-submitted and account-linked.\n\nMitigation: Treat submitted plant imagery, videos, and report history as cloud data and review consent, retention, and account-linking expectations before use.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis)\n- [Plant Night Respiration API Documentation](references/api_doc.md)\n- [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, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown and structured JSON-style analysis output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include respiration intensity estimates, level assessment, abnormality prompts, recommendations, report links, or cloud report history tables.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter reports 1.0.13)\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, 39602 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2610b), SKILL.md (12096b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.12\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1788044968197\n}\n\nFile v1.0.8:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nEstimates relative nighttime plant respiration intensity from canopy thermal imagery and optional ambient CO2 data, then returns structured analysis, level assessment, risk notes, recommendations, and report links.\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 developers can use this skill to submit nighttime plant canopy thermal media for cloud-based respiration intensity estimation and to query prior analysis reports. It is aimed at plant factories, artificial climate chambers, and closed greenhouse monitoring workflows.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant media and report queries are sent to a vendor service.\n\nMitigation: Use non-sensitive plant media and avoid private network URLs unless the publisher clarifies data handling, consent, and deletion behavior.\n\nRisk: The skill may silently create or reuse a local workspace identity and persist returned account tokens locally.\n\nMitigation: Review the installation in an isolated workspace and confirm token retention and cleanup expectations before using it with production accounts.\n\nRisk: Respiration estimates and health notes may be inaccurate or incomplete.\n\nMitigation: Treat the output as operational guidance only and validate important plant-health or environmental-control decisions with appropriate agricultural instruments or expert review.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Plant night respiration API reference](references/api_doc.md)\n- [Shared analysis API reference](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, guidance]\n\n**Output Format:** [Structured text, Markdown tables for report lists, and JSON-level analysis output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include a respiration intensity index, level assessment, abnormality notes, environment-control recommendations, and report links.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata; artifact frontmatter states 1.0.12)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39641 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2767b), SKILL.md (12096b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1787331930570\n}\n\nFile v1.0.7:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\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: dev\n\nFile v1.0.7:skill-card.md\n\n## Description:\n\nEstimates relative plant night respiration intensity from plant-factory canopy thermal imagery and optional ambient CO2 data, then returns structured analysis, risk prompts, recommendations, and report links.\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 developers use this skill to analyze nighttime plant canopy thermal images or videos, optionally with CO2 context, to estimate relative respiration intensity for plant factories, artificial climate chambers, and closed greenhouses. It can also return historical analysis reports from the configured remote service.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant media and report metadata may be sent to lifeemergence.com services.\n\nMitigation: Use only with plant imagery and metadata that are approved for that remote service, and review data-handling expectations before installation.\n\nRisk: The skill can automatically associate an internal identity and create or reuse remote/local account records.\n\nMitigation: Confirm the identity flow is acceptable in the deployment environment and avoid using the skill where silent account association is not permitted.\n\nRisk: Service tokens may be stored in a local SQLite database under the workspace data directory.\n\nMitigation: Restrict access to the workspace data directory, inspect stored credentials during review, and rotate or remove tokens when retiring the skill.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Plant night respiration API documentation](artifact/references/api_doc.md)\n- [Analysis API error-code reference](artifact/skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, shell commands, configuration, guidance]\n\n**Output Format:** [Markdown or JSON text containing structured analysis results, risk prompts, recommendations, report links, or historical report lists.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Accepts local file paths or URLs for plant thermal imagery/video; supports basic, standard, and JSON detail modes plus optional file output.]\n\n## Skill Version(s):\n\n1.0.7 (source: server release metadata; artifact frontmatter states 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39471 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2265b), SKILL.md (12096b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (472b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1786872448754\n}\n\nFile v1.0.6:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\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: dev\n\nFile v1.0.6:skill-card.md\n\n## Description:\n\nEstimates relative plant night respiration intensity from thermal canopy imagery and optional ambient CO2 signals for plant factories, climate chambers, and closed greenhouses.\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, developers, and agricultural operators use this skill to analyze nighttime thermal plant imagery or video, estimate a relative respiration index, review metabolic activity levels, and retrieve prior analysis reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant media and submitted URLs may be sent to a remote analysis service.\n\nMitigation: Use only approved plant media and URLs, and review or change the default endpoints before production use.\n\nRisk: The skill may silently create or reuse a local identity and store tokens for future report history queries.\n\nMitigation: Provide an explicit cleanup or reset path for local identity and token data before production use.\n\nRisk: History queries are account-linked and offer limited user control.\n\nMitigation: Confirm the expected account scope and user consent before enabling report history retrieval.\n\n## Reference(s):\n\n- [API Documentation](references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [Analysis, Markdown, JSON, Shell commands, Guidance]\n\n**Output Format:** [Markdown or JSON report text, with optional saved output file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May include respiration intensity, activity level, risk prompts, recommendations, report links, and Markdown tables for report history.]\n\n## Skill Version(s):\n\n1.0.6 (source: server release metadata; artifact frontmatter reports 1.0.10)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39566 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2639b), SKILL.md (12095b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1785504156298\n}\n\nFile v1.0.5:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\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>\nEstimates relative nighttime plant respiration intensity from thermal canopy imagery or video, with optional CO2 context, and returns structured results, recommendations, and report links. <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 nighttime thermal plant imagery or video for plant factories, artificial climate chambers, and closed greenhouses. It helps estimate a relative respiration index, classify metabolic activity, surface abnormal conditions, and provide nighttime environment-control guidance. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant images, videos, or supplied URLs may be sent to lifeemergence.com services for analysis. <br>\nMitigation: Review the skill before installation and only submit media or URLs that the user is authorized to process with the external service. <br>\nRisk: The skill may create or reuse a local identity and retrieve identity-linked history. <br>\nMitigation: Run it in an appropriate workspace or account context, and review historical-report queries before using the list function. <br>\nRisk: Service tokens may be stored in a workspace SQLite database. <br>\nMitigation: Restrict workspace access and clear or rotate stored credentials according to local security policy after use. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API interface documentation](references/api_doc.md) <br>\n- [Analysis API documentation](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 and JSON text with command examples, structured analysis results, recommendations, and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May write an optional output file when the --output parameter is used.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release evidence; artifact frontmatter says 1.0.7) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.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, 39600 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2626b), SKILL.md (12095b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1784061810128\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/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\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>\nEstimates relative plant night respiration from thermal canopy images or videos, with optional CO2 context, and returns a structured analysis report with respiration intensity, risk prompts, recommendations, and report links. <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, developers, and agricultural operators use this skill to analyze night-period plant factory, climate chamber, or greenhouse thermal media and estimate a relative respiration intensity index. It supports monitoring metabolic activity and producing structured guidance for nighttime environmental control. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant media or URLs may be processed by the vendor's cloud service with weak user-facing scoping. <br>\nMitigation: Avoid submitting sensitive facility footage or internal URLs unless the publisher documents retention, deletion, and URL-source restrictions. <br>\nRisk: The skill may silently create or reuse an identity and store account tokens locally. <br>\nMitigation: Run it only in a controlled workspace, review credential handling before deployment, and clear local account state between users or tenants. <br>\nRisk: History queries may use the stored identity to retrieve cloud report records. <br>\nMitigation: Confirm identity isolation and report-access expectations before using history features in shared environments. <br>\n\n\n## Reference(s): <br>\n- [API Documentation](references/api_doc.md) <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <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 report content and report links] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include respiration intensity, level assessment, risk prompts, recommendations, and cloud report export URLs.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata; artifact frontmatter lists 1.0.5) <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\n\nArchive v1.0.3: 31 files, 39601 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2711b), SKILL.md (12095b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (24363b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28776b), _meta.json (161b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783821866275\n}\n\nFile v1.0.3:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\n\nFile v1.0.3: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.3:scripts/config.yaml\n\n{}\n\nFile v1.0.3:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.3: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.3: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.3: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.3:skill-card.md\n\n## Description: <br>\nEstimates relative night respiration intensity for plant canopies from thermal image or video inputs, optionally using CO2 context, and returns structured analysis, alerts, recommendations, and report links. <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, agronomy teams, and plant-factory operators use this skill to submit night thermal canopy images or videos, estimate relative respiration intensity, review metabolic activity levels and environment-control suggestions, and retrieve prior cloud-hosted reports. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant-factory images, videos, or supplied URLs may be sent to the LifeEmergence cloud service for analysis. <br>\nMitigation: Use non-sensitive media or confirm that the cloud processing and retention model is acceptable before installation or execution. <br>\nRisk: The skill can create or reuse a cloud-linked local identity and store tokens or user records in workspace data. <br>\nMitigation: Review local data storage and credential handling before use, and remove workspace-stored tokens or user records when they are no longer needed. <br>\nRisk: Historical report queries can retrieve cloud records linked to the resolved local identity without a separate user confirmation step. <br>\nMitigation: Run report-listing behavior only where automatic identity association and cloud report retrieval are intended. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [API reference](artifact/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Configuration] <br>\n**Output Format:** [Markdown or JSON text with structured analysis details, report links, and optional saved output files.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May call external LifeEmergence cloud APIs, upload local thermal media, or query historical reports tied to the resolved local identity.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata; artifact frontmatter says 1.0.5) <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.3:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.3:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.2: 31 files, 39198 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2832b), SKILL.md (12095b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (22801b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (18266b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (28169b), _meta.json (161b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.3\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1782741565891\n}\n\nFile v1.0.2:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\n\nFile v1.0.2: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.2:scripts/config.yaml\n\n{}\n\nFile v1.0.2:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.2: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.2: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.2: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.2:skill-card.md\n\n## Description: <br>\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night, analyzes leaf temperature trends, and combines optional ambient CO2 data to estimate relative plant respiration intensity. <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, developers, and plant factory operators use this skill to analyze nighttime thermal plant canopy images or video URLs, optionally with CO2 context, and receive respiration intensity estimates, activity levels, risk prompts, environment-control suggestions, and historical cloud report listings. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant imagery, video URLs, and report queries are sent to the Life Emergence cloud service for analysis and history retrieval. <br>\nMitigation: Use only media that is approved for that service, and avoid sensitive facility imagery unless privacy, retention, and access terms are acceptable. <br>\nRisk: The skill may create or reuse an account-linked identity and store authentication material in local workspace data such as smyx-common-claw.db or smyx-api-key.txt. <br>\nMitigation: Review workspace data handling before installation, protect or remove local token files when appropriate, and run the skill in a workspace with suitable access controls. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-analysis) <br>\n- [Plant Night Respiration API Documentation](artifact/references/api_doc.md) <br>\n- [SMYX Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown-style text with JSON-derived structured analysis, report links, shell command examples, and optional saved output files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Outputs may include cloud report export links and historical report listings; local file inputs are constrained by the artifact documentation to supported image/video formats and a 10 MB limit.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release metadata; artifact frontmatter lists 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.2:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.2:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.1: 31 files, 36282 bytes\n\nFiles: references/api_doc.md (984b), scripts/__init__.py (56b), scripts/config.py (693b), scripts/config.yaml (3b), scripts/skill.py (585b), scripts/smyx_plant_night_respiration_rate_analysis.py (3605b), skill-card.md (2364b), SKILL.md (12095b), skills/smyx_analysis/__init__.py (0b), skills/smyx_analysis/references/api_doc.md (427b), skills/smyx_analysis/requirements.txt (45b), skills/smyx_analysis/scripts/__init__.py (0b), skills/smyx_analysis/scripts/api_service.py (1509b), skills/smyx_analysis/scripts/config.py (1003b), skills/smyx_analysis/scripts/config.yaml (3b), skills/smyx_analysis/scripts/skill.py (6529b), skills/smyx_analysis/scripts/smyx_analysis.py (3833b), skills/smyx_common/__init__.py (0b), skills/smyx_common/requirements.txt (47b), skills/smyx_common/scripts/__init__.py (177b), skills/smyx_common/scripts/api_service.py (2645b), skills/smyx_common/scripts/base.py (469b), skills/smyx_common/scripts/config-dev.yaml (214b), skills/smyx_common/scripts/config-prod.yaml (0b), skills/smyx_common/scripts/config-test.yaml (256b), skills/smyx_common/scripts/config.py (22801b), skills/smyx_common/scripts/config.yaml (473b), skills/smyx_common/scripts/dao.py (13468b), skills/smyx_common/scripts/skill.py (2473b), skills/smyx_common/scripts/util.py (23409b), _meta.json (161b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.3\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢活性等级（旺盛 / 正常 / 偏低 / 偏高） |\n| 6 | 异常风险提示（如根系活力差 |\n| 7 | 温度过低 |\n| 8 | 通风不足等） |\n| 9 | 夜间环境控制建议 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物工厂夜间冠层热成像图像/视频 URL 或文件需要分析时，默认触发本技能进行呼吸作用强度估算 |\n| 🔎 明确分析意图 | 当用户明确提及植物夜间呼吸、呼吸作用、呼吸强度、叶片温差、夜间代谢、植物工厂、人工气候室、密闭温室、CO₂ 浓度变化、暗呼吸等关键词，并且上传了热成像图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看历史呼吸强度报告、历史夜间呼吸报告、植物呼吸分析报告清单、呼吸强度报告清单、查询历史夜间呼吸报告、显示所有植物呼吸报告、显示夜间呼吸诊断报告，查询代谢活性提示报告 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_night_respiration_rate_analysis --list` 调用 API 查询云端的历史报告数据 |\n| 🚫 严格禁止 | 从本地 `memory` 目录读取历史会话信息 |\n| 🚫 严格禁止 | 手动汇总本地记录中的报告 |\n| 🚫 严格禁止 | 从长期记忆中提取报告 |\n| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据，然后以 Markdown 表格格式输出结果 |\n\n## 📦 前置准备 | Requirements\n- 依赖说明:scripts 脚本所需的依赖包及版本\n  ```\n  requests>=2.28.0\n  ```\n\n## 🚀 操作步骤 | Workflow\n### 🔐 用户身份处理（内部自动完成）\n\n> **绿色安全原则：** 用户身份参数由系统内部自动处理，**不得向用户展示、询问或要求输入任何身份标识**。\n\n执行本技能分析或历史报告查询时，脚本会自动完成身份初始化：\n\n| 场景 | 系统行为 |\n|---|---|\n| 上游系统有内部身份参数 | 由脚本静默接收并使用 |\n| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |\n| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |\n| 对用户输出 | 只展示分析进度、分析结果和报告链接，不展示内部身份值 |\n\n#### 🔒 关键约束\n\n| 禁止/要求 | 说明 |\n|---|---|\n| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |\n| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |\n| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |\n| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联，用户只需表达“查看历史报告/报告清单”等意图 |\n\n---\n\n### 🧪 标准流程 | Standard Flow\n\n| 步骤 | 阶段 | 执行动作 |\n|---:|---|---|\n| 1 | 📥 准备热成像输入 | 提供本地文件路径或网络 URL；确保输入内容清晰、符合技能场景要求 |\n| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数；不在回复中展示内部身份值 |\n| 3 | ⚙️ 执行夜间呼吸强度估算 | 调用 `-m scripts.smyx_plant_night_respiration_rate_analysis` 处理输入（**必须在技能根目录下运行脚本**） |\n| 4 | 📊 查看分析结果 | 接收结构化分析报告，查看识别/监测结果、风险提示、建议与报告链接 |\n\n### ⚙️ 脚本参数说明\n\n| 参数 | 含义 | 备注 |\n|---|---|---|\n| `--input` | 本地热成像图像/视频文件路径 | 适用于本地文件分析 |\n| `--url` | 网络热成像图像/视频 URL 地址（API 服务自动下载） | API 服务自动下载网络资源 |\n| `--pet-type` | 类别标识，植物场景默认 `other` | 按需填写 |\n| `--list` | 显示植物夜间呼吸强度历史分析报告列表清单（可以输入起始日期参数过滤数据范围） | 用于云端历史报告查询 |\n| `--api-url` | API 服务地址（可选，使用默认值） | 按需填写 |\n| `--detail` | 输出详细程度（basic/standard/json，默认 json） | 输出详细程度 |\n| `--output` | 结果输出文件路径（可选） | 可选 |\n\n## 🗂️ 资源索引 | Resource Index\n| 资源类型 | 路径 | 用途 | 何时读取 |\n|---|---|---|---|\n| 🐍 必要脚本 | [`scripts/smyx_plant_night_respiration_rate_analysis.py`](scripts/smyx_plant_night_respiration_rate_analysis.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 🐍 必要脚本 | [`scripts/config.py`](scripts/config.py) | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |\n| 📘 领域参考 | [`references/api_doc.md`](references/api_doc.md) | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |\n\n## ⚠️ 注意事项 | Notes\n| 分类 | 注意事项 |\n|---|---|\n| 📚 文档读取 | 仅在需要时读取参考文档，保持上下文简洁 |\n| 📁 格式支持 | 输入要求：支持 jpg/png 热成像图像或 mp4/avi/mov 视频，最大 10MB；建议在夜间无光照时段采集 |\n| 🧑‍⚖️ 结果性质 | 分析结果仅供科研/养护参考，不替代专业农业仪器测量 |\n| 🚫 脚本限制 | 禁止临时生成脚本，只能用技能本身的脚本 |\n| 🌐 网络地址 | 传入的网络地址参数，不需要下载本地，默认地址都是公网地址，api 服务会自动下载 |\n| 📜 报告输出 | 当显示历史分析报告清单的时候，从接口返回 json 数据中提取字段  作为超链接地址，且自动转化为如下 Markdown |\n| 📜 报告输出 | 表格输出示例 |\n\n## 🧰 使用示例 | Examples\n```bash\n# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json\n```\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1782573628969\n}\n\nFile v1.0.1:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt\n\nFile v1.0.1: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.1:scripts/config.yaml\n\n{}\n\nFile v1.0.1:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.1: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.1: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.1: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.1:skill-card.md\n\n## Description: <br>\nAnalyzes nighttime plant canopy thermal imagery and optional CO2 readings to estimate relative respiration intensity, metabolic activity level, risks, and environmental-control suggestions for plant factories, climate chambers, and closed greenhouses. <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 plant-factory operators can use this skill to send thermal image or video inputs to a provider cloud service for a structured nighttime respiration analysis report and historical report lookup. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant media or URLs may be sent to the provider's cloud service for analysis. <br>\nMitigation: Use the skill only with media approved for provider cloud processing and review provider retention expectations before deployment. <br>\nRisk: The skill can create or reuse a local account identity and store authentication tokens for later report-history queries. <br>\nMitigation: Review local token storage and identity lifecycle controls, and clear or rotate stored credentials when access should end. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-night-respiration-rate-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 or JSON-like structured analysis text, with optional saved file output] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include respiration intensity, metabolic activity level, risk prompts, recommendations, report links, and cloud-sourced history tables.] <br>\n\n## Skill Version(s): <br>\n1.0.1 (source: server release metadata; artifact frontmatter reports 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.1:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.1:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3","readmeExcerpt":"Skill: Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算 Owner: smyx-sunjinhui Summary: In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (res","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_plant_night_respiration_rate_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_plant_night_respiration_rate_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地植物冠层夜间热成像\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input /path/to/canopy_thermal_night.mp4\n\n# 分析网络热成像视频\npython -m scripts.smyx_plant_night_respiration_rate_analysis --url https://example.com/canopy_thermal_night.mp4\n\n# 显示历史分析报告/显示分析报告清单列表/显示历史呼吸强度报告（自动触发关键词：查看历史夜间呼吸报告、历史报告、植物呼吸报告清单等）\npython -m scripts.smyx_plant_night_respiration_rate_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_night_respiration_rate_analysis --input video.mp4 --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-plant-night-respiration-rate-analysis\"\ndescription: \"In a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration. | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🌙 Plant Night Respiration Rate Analysis | 植物夜间呼吸作用强度估算\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物夜间呼吸作用强度估算** |\n| 🎯 核心目标 | 通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` |\n\nIn a plant factory, a fixed thermal imaging camera continuously captures thermal images of the plant canopy leaves at night (no-light period), analyzes leaf temperature trends (respiration releases heat, causing leaf temperature to be slightly higher than air temperature), and combined with optional ambient CO₂ sensor data (respiration releases CO₂ raising concentration), an AI model estimates the relative respiration intensity (0-100%) of a single plant or population. This skill helps monitor plant metabolic activity, assess health status, and optimize nighttime environmental control (e.g., temperature, ventilation). Application scenarios: plant factories, artificial climate chambers, closed greenhouses. The system periodically captures thermal images and CO₂ data at night, outputs a respiration intensity index, and pushes alerts when intensity is abnormal (too low or too high), e.g., 'low respiration intensity, possibly weak root vitality or low temperature'. Skill features: research / precision agriculture.\n\n通过植物工厂内的固定热成像摄像头，在夜间（无光照时段）连续采集植物冠层叶片的热图像，分析叶片温度变化趋势（呼吸作用释放热量导致叶片温度略高于气温），结合可选的环境CO₂传感器数据（呼吸作用释放CO₂浓度升高），利用AI模型估算整株或群体的呼吸强度相对值（0-100%）。该技能有助于监测植物代谢活性、评估健康状态及优化夜间环境控制（如温度、通风）。应用场景：植物工厂、人工气候室、密闭温室。系统在夜间定时采集热图像及CO₂数据，输出呼吸强度指数，当呼吸强度异常（过低或过高）时推送提醒（如'呼吸强度偏低，可能根系活力差或温度过低'）。技能特点：科研/精准农业。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物生理 AI。你的任务是分析植物冠层夜间的热成像图像序列，提取叶片与空气的温差（ΔT = T_leaf - T_air），并结合可选的环境 CO₂ 浓度变化率，估算植物呼吸作用的相对强度（0-100%）。不要提供具体的代谢分析或疾病诊断，仅输出基于热成像（及可选 CO₂）的呼吸强度指标与等级评估。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n通过夜间植物冠层热成像图像序列（可选叠加环境 CO₂ 浓度变化率），估算整株或群体的呼吸强度相对值（0-100%），并对代谢活性进行等级判定\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片温度 T_leaf 提取 |\n| 2 | 叶-气温差 ΔT 计算 |\n| 3 | CO₂ 浓度变化率分析（可选） |\n| 4 | 呼吸强度指数（0-100%） |\n| 5 | 代谢"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-night-respiration-rate-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1790752945626\n}"},{"path":"references/api_doc.md","content":"# API 接口文档\n\n此处用于存放植物夜间呼吸作用强度估算 API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动夜间呼吸强度分析任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史报告\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_NIGHT_RESPIRATION_RATE_ANALYSIS` - 植物夜间呼吸作用强度估算\n\n## 输入约束\n\n- 推荐使用夜间（无光照时段）采集的植物冠层热成像图像序列\n- 可选配套环境数据：气温 T_air、相对湿度 RH、CO₂ 浓度（ppm）\n- 关键观测特征：叶片温度 T_leaf、叶-气温差 ΔT = T_leaf - T_air、CO₂ 浓度变化率 dCO₂/dt"},{"path":"skills/smyx_analysis/references/api_doc.md","content":"# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |"},{"path":"scripts/config.yaml","content":"{}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":992,"uniquenessScore":43,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T01:16:48.250Z","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-10T01:16:48.250Z","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-10T10:08:18.345Z","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"}]}}}