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小蔥技能站,你的AI助手技能庫。
-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 質量中等偏上,使用體驗較好。它能通過葉片圖片或影片診斷營養問題,支援多種報告格式,還能檢視歷史診斷記錄,功能比較實用。不過存在一些小問題:文件示例偶爾不夠準確,歷史報告展示的格式偶爾會有細微偏差。對於普通使用者來說,基本能滿足植物營養診斷的需求,值得一試。