name: "plant-nutrition-diagnosis-analysis" description: "Diagnoses plant nutrient deficiency or excess based on computer vision and plant physiology, outputs targeted fertilization suggestions for precision nutrient management. | 植物营养诊断技能,基于计算机视觉与植物生理学,通过叶片特征诊断氮磷钾及微量元素缺乏或过剩,输出精准施肥建议" version: "1.0.1"
Based on computer vision technology combined with professional plant physiology knowledge, this skill accurately diagnoses nutrient imbalance disorders such as nitrogen, phosphorus, potassium deficiency or excess, as well as trace element abnormalities by analyzing the color, texture and morphological characteristics of plant leaves. The system quickly locates the type of nutrient imbalance based on "symptom location" (such as the difference between old leaves and new leaves) and "visual pattern" (such as interveinal chlorosis, leaf margin scorch), and outputs a structured diagnostic report including nutrient deficiency judgment, physiological cause analysis, and targeted fertilization suggestions. It provides scientific basis for precision fertilization and crop health management, helping growers quickly correct nutrient disorders and maintain healthy plant growth.
本技能结合计算机视觉技术与专业植物生理学知识,通过分析植物叶片的颜色、纹理和形态特征,能够精准诊断氮、磷、钾大量元素缺乏或过剩以及微量元素异常等营养失衡病症。系统依据" 症状发生部位"(如老叶与新叶的差异)及"视觉表现模式" (如叶脉间失绿、叶缘焦枯),快速定位营养失衡类型,输出包含缺乏元素判断、生理成因分析及针对性施肥建议的结构化诊断报告,为精准施肥与作物健康管理提供科学依据,帮助种植者快速矫正营养失调,维持植物健康生长。
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件python -m scripts.plant_nutrition_diagnosis_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0为了获得准确的营养诊断,请确保:
在执行植物营养诊断分析前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
小葱技能7w4.net持续更新中。
-m scripts.plant_nutrition_diagnosis_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地视频/图片文件路径--url: 网络视频/图片 URL 地址(API 服务自动下载)--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示历史植物营养诊断分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)必要脚本:见 scripts/plant_nutrition_diagnosis_analysis.py (用途:调用 API 进行植物营养诊断分析,本地文件上传,网络 URL 由 API 服务自动下载)
配置文件:见 scripts/config.py(用途:配置 API 地址、默认参数和格式限制)
植物营养诊断报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。# 诊断本地视频/图片中植物的营养状况(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.plant_nutrition_diagnosis_analysis --input /path/to/leaf.mp4 --open-id openclaw-control-ui
# 诊断网络视频/图片(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.plant_nutrition_diagnosis_analysis --url https://example.com/yellow-leaf.mp4 --open-id openclaw-control-ui
# 显示历史诊断报告/显示诊断报告清单列表/显示历史植物营养诊断(自动触发关键词:查看历史诊断报告、历史报告、诊断报告清单等)
python -m scripts.plant_nutrition_diagnosis_analysis --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.plant_nutrition_diagnosis_analysis --input leaf.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.plant_nutrition_diagnosis_analysis --input leaf.jpg --open-id your-open-id --output result.json
这个植物营养诊断 Skill 质量中等偏上,使用体验较好。它能通过叶片图片或视频诊断营养问题,支持多种报告格式,还能查看历史诊断记录,功能比较实用。不过存在一些小问题:文档示例偶尔不够准确,历史报告展示的格式偶尔会有细微偏差。对于普通用户来说,基本能满足植物营养诊断的需求,值得一试。