{"id":"c851f9c3-15bc-4e44-823a-dcf1f4b07dd9","entityType":"agent","slug":"clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis","name":"Plant Vitality Index | 植物整体活力指数（综合评分）","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis","canonicalPath":"/agent/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis","generatedAt":"2026-10-10T08:29:07.055Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:36:28.941Z","emptyReason":null},"description":"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-plant-vitality-index-analysis","sourceUrl":"https://clawhub.ai/smyx-sunjinhui/smyx-plant-vitality-index-analysis","homepage":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smyx-sunjinhui/smyx-plant-vitality-index-analysis","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":65,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Plant Vitality Index | 植物整体活力指数（综合评分） 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-09T23:36:28.941Z","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-09T23:36:28.941Z","emptyReason":null},"stars":null,"forks":null,"downloads":1881,"packageName":null,"latestVersion":"1.0.13","tractionLabel":"1.9K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:36:28.940Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T23:36:28.941Z","lastCrawledAt":"2026-10-09T23:36:28.940Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T23:36:28.940Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.13","createdAt":"2026-10-03T05:12:26.407Z","changelog":"- Updated SKILL.md to reflect latest usage, features, and requirements. - Bumped version from 1.0.14 to 1.0.16. - Removed skill-card.md from the project. - No changes to core script files or analysis workflow.","fileCount":31,"zipByteSize":39808},{"version":"1.0.12","createdAt":"2026-09-26T23:18:25.335Z","changelog":"- Updated version to 1.0.14. - Refined configuration in scripts/config.yaml. - Removed old skill-card.md file. - Minor documentation updates in SKILL.md for clarity and consistency.","fileCount":31,"zipByteSize":39801},{"version":"1.0.11","createdAt":"2026-09-15T01:45:48.427Z","changelog":"- Version bumped from 1.0.11 to 1.0.13 in SKILL.md - Updated and revised SKILL.md documentation - Removed the skill-card.md file","fileCount":31,"zipByteSize":39953},{"version":"1.0.10","createdAt":"2026-08-25T17:58:30.172Z","changelog":"- Removed the file: skill-card.md. - No changes to the feature set or functionality. - Documentation and usage remain unchanged.","fileCount":31,"zipByteSize":39897},{"version":"1.0.9","createdAt":"2026-08-22T01:59:30.994Z","changelog":"smyx-plant-vitality-index-analysis 1.0.9 changelog: - Updated documentation in SKILL.md (incremented version and minor edits). - Updated configuration in skills/smyx_common/scripts/config.yaml. - Removed outdated skill-card.md file.","fileCount":31,"zipByteSize":40067},{"version":"1.0.8","createdAt":"2026-08-10T20:47:49.795Z","changelog":"- Updated version to 1.0.10 and revised documentation in SKILL.md. - Removed the file skill-card.md. - No changes to core functionality; this update is purely related to documentation and file cleanup.","fileCount":31,"zipByteSize":39894},{"version":"1.0.7","createdAt":"2026-08-02T18:35:39.722Z","changelog":"smyx-plant-vitality-index-analysis 1.0.7 changelog: - SKILL.md updated with latest documentation, reflecting current features, usage, and requirements. - Deprecated and removed skill-card.md to reduce duplication and maintain documentation in a single location.","fileCount":31,"zipByteSize":39934},{"version":"1.0.6","createdAt":"2026-07-29T05:27:32.049Z","changelog":"- Bumped skill version to 1.0.7. - SKILL.md updated; documentation and metadata improved, likely for clarity and maintenance. - skill-card.md file removed. - No functional or feature changes to core analysis logic.","fileCount":31,"zipByteSize":40083}]},"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-vitality-index-analysis","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17cfv2h26b7hq5w47tgfy23xx83z9x6:smyx-plant-vitality-index-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-vitality-index-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-vitality-index-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T08:29:07.052Z"}},"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-vitality-index-analysis/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smyx-sunjinhui-smyx-plant-vitality-index-analysis/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:36:28.941Z","emptyReason":null},"readme":"Skill: Plant Vitality Index | 植物整体活力指数（综合评分）\n\nOwner: smyx-sunjinhui\n\nSummary: Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\n\nTags: latest:1.0.13\n\nVersion history:\n\nv1.0.13 | 2026-10-03T05:12:26.407Z | auto\n\n- Updated SKILL.md to reflect latest usage, features, and requirements.\n- Bumped version from 1.0.14 to 1.0.16.\n- Removed skill-card.md from the project.\n- No changes to core script files or analysis workflow.\n\nv1.0.12 | 2026-09-26T23:18:25.335Z | auto\n\n- Updated version to 1.0.14.\n- Refined configuration in scripts/config.yaml.\n- Removed old skill-card.md file.\n- Minor documentation updates in SKILL.md for clarity and consistency.\n\nv1.0.11 | 2026-09-15T01:45:48.427Z | auto\n\n- Version bumped from 1.0.11 to 1.0.13 in SKILL.md\n- Updated and revised SKILL.md documentation\n- Removed the skill-card.md file\n\nv1.0.10 | 2026-08-25T17:58:30.172Z | auto\n\n- Removed the file: skill-card.md.\n- No changes to the feature set or functionality.\n- Documentation and usage remain unchanged.\n\nv1.0.9 | 2026-08-22T01:59:30.994Z | auto\n\nsmyx-plant-vitality-index-analysis 1.0.9 changelog:\n\n- Updated documentation in SKILL.md (incremented version and minor edits).\n- Updated configuration in skills/smyx_common/scripts/config.yaml.\n- Removed outdated skill-card.md file.\n\nv1.0.8 | 2026-08-10T20:47:49.795Z | auto\n\n- Updated version to 1.0.10 and revised documentation in SKILL.md.\n- Removed the file skill-card.md.\n- No changes to core functionality; this update is purely related to documentation and file cleanup.\n\nv1.0.7 | 2026-08-02T18:35:39.722Z | auto\n\nsmyx-plant-vitality-index-analysis 1.0.7 changelog:\n\n- SKILL.md updated with latest documentation, reflecting current features, usage, and requirements.\n- Deprecated and removed skill-card.md to reduce duplication and maintain documentation in a single location.\n\nv1.0.6 | 2026-07-29T05:27:32.049Z | auto\n\n- Bumped skill version to 1.0.7.\n- SKILL.md updated; documentation and metadata improved, likely for clarity and maintenance.\n- skill-card.md file removed.\n- No functional or feature changes to core analysis logic.\n\nv1.0.5 | 2026-07-18T15:13:27.956Z | auto\n\nVersion 1.0.5 Changelog\n\n- Simplified documentation by removing the separate skill-card.md file.\n- Updated and consolidated content in SKILL.md; all reference, usage, and capability details are now in a single location.\n- No changes to features or interfaces; maintenance focused on documentation organization.\n\nv1.0.4 | 2026-07-12T06:28:27.750Z | auto\n\n- Version update to 1.0.5.\n- Documentation in SKILL.md updated: version info, feature descriptions, and example usage revised.\n- File cleanup: skill-card.md removed.\n- Minor code/configuration updates applied in common script files (config.py, dao.py, util.py).\n\nv1.0.3 | 2026-06-29T09:53:29.268Z | auto\n\n**Major update: User identity handling and configuration are now fully automated for a more seamless and privacy-protecting experience.**\n\n- Internalizes all user identity (open-id) handling—users are no longer prompted to input or view identity parameters; the system manages it automatically.\n- Updates documentation to clearly reflect the removal of identity prompts and the new workflow (identity is never shown or required from user input).\n- Enforces that all historical report queries must be fetched from the cloud API; local/manual report assembly is strictly prohibited.\n- Simplifies usage examples and workflow instructions to align with the new fully-automated, user-friendly process.\n- Removes outdated files and legacy user interaction flows.\n\nv1.0.2 | 2026-06-26T03:51:41.344Z | auto\n\nVersion 1.0.2 of \"smyx-plant-vitality-index-analysis\" introduces stricter user identification and data access workflows.\n\n- Enforces a clear, prioritized flow for obtaining `open-id` (user identity), requiring config file lookup before prompting the user.\n- Strictly prohibits use of default/fake open-id values and forbids historical report queries from local memory or generated values.\n- Updates API script and parameter usage to require `--open-id` for all analysis or report queries.\n- Clarifies interface behavior and output (especially for history reports) in both documentation and code.\n- Adds and updates scripts and documentation to reflect identity/authentication changes and standardized outputs.\n\nv1.0.1 | 2026-06-26T03:38:30.303Z | auto\n\n**Summary:**\nThis version simplifies user identity handling, updates documentation, and makes skill use more user-friendly.\n\n- Removed all user-facing requirements to provide or manage open-id/internal identity; identity is now managed automatically by the system/scripts.\n- Updated documentation to reflect new workflow and constraints: scripts auto-handle identity, and users are not prompted for any identity parameters.\n- Clarified forbidden actions (such as exposing or requesting identity), making the usage process more streamlined.\n- Refined and restructured documentation for clearer steps, examples, and notices.\n- Removed obsolete files and updated scripts to match the new workflow.\n\nv1.0.0 | 2026-05-24T16:26:11.800Z | auto\n\n- Initial release of the Plant Vitality Index analysis skill.\n- Provides AI-based overall plant vitality scoring (0-100) and trend analysis using plant images and growth/environmental data.\n- Generates daily vitality reports, with automatic alerts if scores drop significantly.\n- Supports history queries and structured report output in Markdown table format.\n- Enforces open-id/user identification for analysis and history retrieval, following strict acquisition rules.\n\nArchive index:\n\nArchive v1.0.13: 31 files, 39808 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2036b), SKILL.md (11637b), 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 (154b)\n\nFile v1.0.13:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.13:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1791004346407\n}\n\nFile v1.0.13:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物整体活力指数（综合评分）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\n\nFile v1.0.13:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.13:scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.13:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.13:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.13:skill-card.md\n\n## Description:\n\nAnalyzes plant images or videos through a remote service to report a 0–100 vitality score, recent trends, and links to analysis reports.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smyx-sunjinhui](https://clawhub.ai/user/smyx-sunjinhui)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nGardeners and plant-monitoring teams use the skill to assess plant vitality from images or videos, compare trends, and access prior reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant media or URLs are sent to an external analysis service.\n\nMitigation: Use only media you are authorized to share, and review the destination service before submitting sensitive content.\n\nRisk: The skill can silently create or reuse an identity and store tokens in a local workspace database.\n\nMitigation: Install only if you trust the publisher and accept persistent account linkage; protect workspace data and restrict access to stored credentials.\n\nRisk: Cloud report history may be accessible with limited user control.\n\nMitigation: Review who can access the linked account and its reports before enabling history queries.\n\n## Reference(s):\n\n- [ClawHub skill listing](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis)\n- [API documentation](references/api_doc.md)\n- [Skill demonstration](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON]\n\n**Output Format:** [Structured analysis report or Markdown report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Vitality score on a 0–100 scale; trends and report history when available.]\n\n## Skill Version(s):\n\n1.0.13 (source: ClawHub release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.13:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.13:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.12: 31 files, 39801 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (1997b), SKILL.md (11637b), 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 (154b)\n\nFile v1.0.12:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.14\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.12:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.12\",\n  \"publishedAt\": 1790464705335\n}\n\nFile v1.0.12:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物整体活力指数（综合评分）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\n\nFile v1.0.12:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.12:scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.12:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.12:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.12:skill-card.md\n\n## Description:\n\nAnalyzes plant images or videos to report a 0–100 vitality score and, when sufficient observations are available, a trend in plant health.\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\nGardeners and plant-monitoring teams use this skill to assess plant vitality from images or video, review changes over time, and retrieve prior reports.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant images or videos, report history, and an internal account identifier may be sent to the Life Emergence cloud service.\n\nMitigation: Use only when this data transfer is acceptable and review the service's handling of uploaded data and reports.\n\nRisk: Automatically managed identity, locally stored tokens, and account-linked history may expose reports in shared environments.\n\nMitigation: Review account authentication and the local token database location before enabling history lookup or shared use.\n\n## Reference(s):\n\n- [Plant Vitality Index API reference](references/api_doc.md)\n- [Skill usage demonstration](https://lifeemergence.com/sample.html)\n- [ClawHub skill release](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [Analysis, Markdown, JSON]\n\n**Output Format:** [Structured report or Markdown history table with report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Can save a report to a file; a single image may not support a trend.]\n\n## Skill Version(s):\n\n1.0.12 (source: server-resolved ClawHub release; artifact frontmatter lists 1.0.14)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.12:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.12:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.11: 31 files, 39953 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2506b), SKILL.md (11637b), 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 (154b)\n\nFile v1.0.11:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.13\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.11:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.11\",\n  \"publishedAt\": 1789436748427\n}\n\nFile v1.0.11:references/api_doc.md\n\n# API 接口文档\n\n此处用于存放植物整体活力指数（综合评分）API 的接口文档，待后续补充。\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 响应格式：JSON\n\n## 主要接口\n\n1. `/web/health-analysis/v2/start-health-analysis` - 启动植物活力指数评估任务\n2. `/web/health-analysis/v2/get-health-analysis-result` - 获取分析结果（活力评分 + 趋势）\n3. `/web/health-analysis/page-health-analysis-result` - 分页查询历史活力评分记录\n4. `/health/order/api/getReportDetailExport?id={id}` - 导出完整报告\n\n## 场景代码\n\n- `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\n\nFile v1.0.11:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.11:scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.11:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.11:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.11:skill-card.md\n\n## Description:\n\nAnalyzes plant images or video with optional growth and environment data to return a 0-100 vitality score, grade, trend, sub-scores, alerts, 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 plant media for smart planters, plant factories, home gardening, and plant-monitoring platforms. It can also retrieve cloud-hosted historical vitality reports for trend review.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant images or videos, report history, and a generated user identifier may be sent to the publisher's cloud service.\n\nMitigation: Review the publisher, data-sharing expectations, and consent requirements before installation or use.\n\nRisk: The security evidence flags development/plain-HTTP service settings and recommends HTTPS production endpoints.\n\nMitigation: Correct defaults to approved HTTPS production hosts and restrict authenticated requests to those hosts before normal use.\n\nRisk: The security evidence flags local token storage.\n\nMitigation: Avoid plaintext token storage and review local credential handling before deployment.\n\nRisk: The security evidence flags a YAML dependency issue.\n\nMitigation: Fix the package dependency before normal users rely on the skill.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis)\n- [Skill demo](https://lifeemergence.com/sample.html)\n- [Plant Vitality API documentation](references/api_doc.md)\n- [Shared analysis API documentation](skills/smyx_analysis/references/api_doc.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, JSON, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown and JSON analysis reports with command examples and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Returns vitality score, grade, trend, sub-scores, alert hints, and export/report URLs when available.]\n\n## Skill Version(s):\n\n1.0.11 (source: server release metadata; SKILL.md 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.11:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.11:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.10: 31 files, 39897 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2226b), SKILL.md (11637b), 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 (154b)\n\nFile v1.0.10:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.10:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.10\",\n  \"publishedAt\": 1787680710172\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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\n\nFile v1.0.10:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.10:scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.10:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.10:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: dev\n\nFile v1.0.10:skill-card.md\n\n## Description:\n\nEvaluates plant images, optional environmental data, and growth metrics to produce a 0-100 plant vitality score, sub-scores, a trend, and alert hints.\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 in smart planter, plant factory, home gardening, or plant-monitoring workflows to analyze plant media and optional measurements for a vitality score and trend. It is intended for reference-level plant health assessment rather than prescriptive care instructions.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant media or URLs are processed by the Life Emergence remote service.\n\nMitigation: Avoid sensitive images or private URLs unless the publisher documents retention, account binding, endpoint configuration, and token storage controls.\n\nRisk: The skill silently creates or reuses an internal identity, queries cloud history, and persists tokens locally.\n\nMitigation: Review account binding, cloud history, and token storage controls before deployment; restrict use to environments where those behaviors are acceptable.\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-vitality-index-analysis)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, guidance]\n\n**Output Format:** [Markdown or JSON structured analysis report with score, grade, trend, sub-scores, alert hints, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May write an output file when requested; history lookup returns a Markdown table based on cloud report data.]\n\n## Skill Version(s):\n\n1.0.10 (source: server release metadata; artifact frontmatter lists 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.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, 40067 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2727b), SKILL.md (11637b), 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 (153b)\n\nFile v1.0.9:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.11\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.9:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.9\",\n  \"publishedAt\": 1787363970994\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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\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 plant images, videos, optional environmental data, and growth metrics to produce a 0-100 plant vitality score, vitality grade, trend, change percentage, and alert hint.\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 evaluate plant vitality from plant media, optional environmental readings, and growth indicators. It supports smart planters, home gardening, plant factories, and plant-monitoring platforms that need structured vitality reports and history lookups.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant media and account-linked metadata may be sent to configured remote services for analysis.\n\nMitigation: Review the configured service endpoints and obtain user consent before installing or running the skill with plant images, videos, URLs, or environment data.\n\nRisk: History requests automatically fetch cloud report records associated with the resolved identity.\n\nMitigation: Use history lookup only when the user requests it, and disclose that results come from the remote service account context.\n\nRisk: The skill creates or reuses a local identity and can persist authentication tokens locally.\n\nMitigation: Make authentication and persistence opt-in or clearly consented, and clear local credentials when the skill is no longer needed.\n\nRisk: Default configuration includes remote service endpoints and automatic network calls.\n\nMitigation: Review endpoint configuration before deployment and remove development or private endpoints from release defaults.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis)\n- [Plant Vitality API Documentation](references/api_doc.md)\n- [Shared Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n- [Skill Demo](https://lifeemergence.com/sample.html)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, json, shell commands, guidance]\n\n**Output Format:** [Markdown and JSON analysis reports, with optional report links and command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May write an analysis result to a user-specified output file.]\n\n## Skill Version(s):\n\n1.0.9 (source: server release metadata; artifact frontmatter says 1.0.11)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.9:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.9:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.8: 31 files, 39894 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2352b), SKILL.md (11637b), 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 (153b)\n\nFile v1.0.8:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.10\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.8:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.8\",\n  \"publishedAt\": 1786394869795\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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\n\nFile v1.0.8:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.8:scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.8:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.8:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.8:skill-card.md\n\n## Description:\n\nUsing plant images, optional environmental data, and growth metrics, this skill calls a cloud analysis service to produce a 0-100 plant vitality score, vitality grade, and trend for plant monitoring workflows.\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 evaluate plant vitality from images, videos, or report history and receive a structured score, grade, trend, and report link. It is intended for smart planters, plant factories, home gardening, and plant-monitoring platforms where users need concise plant health tracking.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Plant images, videos, and report history are sent to configured lifeemergence.com cloud services for analysis and history lookup.\n\nMitigation: Install and use the skill only when that cloud transfer is acceptable for the data being analyzed.\n\nRisk: The skill can create or reuse a local workspace identity and store returned account tokens in a local SQLite database.\n\nMitigation: Review the local identity and token-storage behavior before installation, and run it only in a workspace where this persistence is acceptable.\n\n## Reference(s):\n\n- [Plant Vitality Index API Documentation](references/api_doc.md)\n- [SMYX Analysis API Documentation](skills/smyx_analysis/references/api_doc.md)\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis)\n- [Publisher Profile](https://clawhub.ai/user/smyx-sunjinhui)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, JSON, shell commands, guidance]\n\n**Output Format:** [Markdown or JSON analysis report with a plant vitality score, trend, status fields, and report links]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May save output to a user-specified file when the CLI output path is provided.]\n\n## Skill Version(s):\n\n1.0.8 (source: server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.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, 39934 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2450b), SKILL.md (11636b), 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 (153b)\n\nFile v1.0.7:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.8\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.7:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.7\",\n  \"publishedAt\": 1785695739722\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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\n\nFile v1.0.7:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.7:scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.7:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.7:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.7:skill-card.md\n\n## Description: <br>\nEvaluates plant images, optional environmental data, and growth metrics to produce a 0-100 plant vitality score with a trend and structured report. <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, growers, and plant-monitoring developers use this skill to analyze plant images or videos, calculate vitality scores and trends, and retrieve historical plant vitality reports for smart planters, plant factories, home gardening, and monitoring platforms. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant images, videos, URLs, identity values, and analysis metadata may be sent to the LifeEmergence remote service. <br>\nMitigation: Use the skill only when the remote service account, retention model, and media sensitivity are acceptable; avoid submitting sensitive media. <br>\nRisk: The skill silently creates or reuses an account identity and stores login tokens locally. <br>\nMitigation: Run it in an isolated workspace when possible, review or clear the workspace data directory after use, and avoid sharing the local token database. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis) <br>\n- [Skill Demo](https://lifeemergence.com/sample.html) <br>\n- [Plant Vitality API Documentation](artifact/references/api_doc.md) <br>\n- [SMYX Analysis API Documentation](artifact/skills/smyx_analysis/references/api_doc.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, JSON, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown result text with optional JSON detail, report links, and command examples] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can write analysis output to a user-specified file; historical report queries are formatted as Markdown tables.] <br>\n\n## Skill Version(s): <br>\n1.0.7 (source: server release metadata; artifact frontmatter reports 1.0.8) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.0.7:skills/smyx_analysis/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nyaml==6.0.3\n\nFile v1.0.7:skills/smyx_common/requirements.txt\n\npydash==8.0.6\nSQLAlchemy==2.0.46\nPyYAML==6.0.3\n\nArchive v1.0.6: 31 files, 40083 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2910b), SKILL.md (11636b), 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 (153b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.7\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.6:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1785302852049\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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\n\nFile v1.0.6:skills/smyx_analysis/references/api_doc.md\n\n# API接口文档\n\n## 接口规范\n\n- 基础地址：由 smyx_common 配置统一管理\n- 认证方式：API Key 鉴权\n- 请求格式：支持文件上传\n- 响应格式：JSON\n\n## 错误码说明\n\n| 错误码 | 说明       |\n|-----|----------|\n| 400 | 请求参数错误   |\n| 401 | API密钥无效  |\n| 403 | 权限不足     |\n| 413 | 文件过大     |\n| 415 | 不支持的文件格式 |\n| 500 | 服务器内部错误  |\n\nFile v1.0.6:scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_analysis/scripts/config.yaml\n\n{}\n\nFile v1.0.6:skills/smyx_common/scripts/config-dev.yaml\n\nApiEnum:\n  base-url-open-api: \"http://192.168.1.234:9601/smyx-open-api\"\n  base-url-open-h5: \"http://192.168.1.234:4100\"\n  base-url-health: \"http://192.168.1.234:7070/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config-test.yaml\n\nApiEnum:\n  base-url-open-api: \"https://livemonitortest.lifeemergence.com/smyx-open-api\"\n  base-url-open-h5: \"http://livemonitortest.lifeemergence.com\"\n  base-url-health: \"https://healthtest.lifeemergence.com/jeecg-boot-xzgz\"\n\nConstantEnum:\n  is-debug: true\n\nFile v1.0.6:skills/smyx_common/scripts/config.yaml\n\nApiEnum:\n  api-key: null\n  api-secret-key: null\n  base-url-health: https://lifeemergence.com/jeecg-boot-xzgz\n  base-url-open-api: https://open.lifeemergence.com/smyx-open-api\n  base-url-open-h5: http://livemonitor.lifeemergence.com\n  database-url: null\nConstantEnum:\n  app--id: x1a3s4nwy1s2r4se\n  current--tentant-code: XIAN_ZHAO_GAN_ZHI\n  default--skill-platform-name: ARK_CLAW\n  feishu-app--id: cli_a93d769369badcb1\n  feishu-app--secret: null\n  is-debug: false\nenv: prod\n\nFile v1.0.6:skill-card.md\n\n## Description: <br>\nThis skill analyzes plant images, videos, optional environmental data, and growth metrics through a cloud service to produce a 0-100 plant vitality score, vitality grade, trend, change percentage, alert hints, 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 agents use this skill to evaluate plant vitality from images, videos, optional environmental data, or growth metrics, especially for smart planters, plant factories, home gardening, and plant-monitoring platforms. It can also query prior cloud-generated vitality reports for the same resolved user identity. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant images, videos, URLs, internal identifiers, and report history may be processed by the publisher's cloud service. <br>\nMitigation: Use the skill only with media, URLs, and report data approved for external cloud processing. <br>\nRisk: The skill can silently create or reuse an identity and store reusable service tokens in the local workspace data directory. <br>\nMitigation: Run it in a controlled workspace, restrict access to local data files, and rotate or revoke tokens if that workspace is shared or exposed. <br>\nRisk: Remote API calls upload local files or submit URL inputs with limited user control. <br>\nMitigation: Review inputs before execution and run the skill only in environments where outbound requests to the publisher service are expected. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/smyx-sunjinhui/skills/smyx-plant-vitality-index-analysis) <br>\n- [Publisher profile](https://clawhub.ai/user/smyx-sunjinhui) <br>\n- [Skill demo](https://lifeemergence.com/sample.html) <br>\n- [Plant vitality API documentation](references/api_doc.md) <br>\n- [Shared 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, configuration] <br>\n**Output Format:** [Markdown-like status text with JSON-formatted structured analysis results or history records; optional file output when requested.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Results can include vitality scores, grades, trends, change percentages, alert hints, sub-scores, and report export links.] <br>\n\n## Skill Version(s): <br>\n1.0.6 (source: server release metadata; 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.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, 40069 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2748b), SKILL.md (11636b), 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 (153b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.6\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784387607956\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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\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>\nUsing plant images, optional environmental data, and growth metrics, this skill calls a plant-analysis service to produce a 0-100 vitality score, vitality grade, trend, change percentage, alert hints, 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 plant-monitoring operators use this skill to evaluate plant vitality from plant images or videos and to retrieve cloud-hosted historical vitality reports. It is intended for smart planters, plant factories, home gardening, and plant-monitoring platforms where concise scoring and trend reporting support care decisions. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant images, videos, URLs, and report history may be processed by lifeemergence.com services. <br>\nMitigation: Use only media and URLs approved to leave the user's environment, and avoid private files or internal URLs unless external processing is permitted. <br>\nRisk: The skill may create or reuse a local or remote identity and store session tokens in workspace data. <br>\nMitigation: Review workspace data handling before deployment, limit access to generated tokens, and remove or rotate stored identity data when the skill is no longer needed. <br>\nRisk: Single-image vitality scores can be affected by lighting, angle, and image quality. <br>\nMitigation: Prefer consistent daily image sequences and treat scores as care guidance rather than definitive plant-health diagnosis. <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-vitality-index-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 and JSON reports with score, grade, trend, alert hints, report links, and optional history tables] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May call cloud APIs for analysis and historical report retrieval; supports local file paths or public media URLs as inputs.] <br>\n\n## Skill Version(s): <br>\n1.0.5 (source: server release metadata; artifact frontmatter lists 1.0.6) <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, 39824 bytes\n\nFiles: references/api_doc.md (1805b), scripts/__init__.py (48b), scripts/config.py (691b), scripts/config.yaml (3b), scripts/skill.py (591b), scripts/smyx_plant_vitality_index_analysis.py (3613b), skill-card.md (2126b), SKILL.md (11636b), 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 (153b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.5\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评分、健康打分、生长状态打分、植物体检、活力趋势、叶绿素指数等关键词，并且上传了图像/视频文件 |\n| 📚 历史报告查询 | 当用户提及以下关键词时，**自动触发历史报告查询功能** ：查看植物活力历史报告、活力指数报告清单、活力评分报告清单、查询历史活力指数、显示所有植物活力报告、显示植物体检诊断报告，查询活力趋势清单 |\n\n### 4. 🤖 自动行为\n\n| 自动行为 | 执行要求 |\n|---|---|\n| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件，则自动保存为本地文件 |\n| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词，必须直接调用云端 API 查询，不得从本地记忆或人工汇总中获取 |\n\n#### ⚠️ 强制数据获取规则（次高优先级）\n\n> **橙色强约束：** 历史报告清单只允许从云端接口读取，不允许从本地记录、长期记忆或人工汇总中提取。\n\n必须执行：\n\n```bash\npython -m scripts.smyx_plant_vitality_index_analysis --list\n```\n\n| 类型 | 要求 |\n|---|---|\n| ✅ 必须 | 使用 `python -m scripts.smyx_plant_vitality_index_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_vitality_index_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_vitality_index_analysis.py`](scripts/smyx_plant_vitality_index_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_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json\n```\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783837707750\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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。\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>\nAnalyzes plant images, videos, URLs, and optional growth or environment signals to produce a 0-100 vitality score, trend, structured report, and historical report lookup. <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, growers, and plant-monitoring platform operators use this skill to evaluate plant vitality from plant media and review historical vitality reports for care monitoring. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Plant media or submitted URLs are sent to the Life Emergence cloud service for analysis. <br>\nMitigation: Use only media and URLs approved for that service, and avoid sensitive files or private/signed URLs. <br>\nRisk: The skill may create or reuse a local account identity and persist cloud access tokens locally. <br>\nMitigation: Review local storage before installation and remove the SQLite user database and saved tokens when decommissioning or sharing the workspace. <br>\n\n\n## Reference(s): <br>\n- [Plant Vitality Index API documentation](references/api_doc.md) <br>\n- [SMYX analysis API error reference](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):** [Markdown, JSON, Shell commands, Guidance] <br>\n**Output Format:** [Markdown report or JSON result from a Python CLI] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include report links and history tables; analysis depends on cloud service responses.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: ClawHub release evidence; 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","readmeExcerpt":"Skill: Plant Vitality Index | 植物整体活力指数（综合评分） Owner: smyx-sunjinhui Summary: Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall v","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python -m scripts.smyx_plant_vitality_index_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地植物图像/序列\npython -m scripts.smyx_plant_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json"},{"language":"bash","snippet":"python -m scripts.smyx_plant_vitality_index_analysis --list"},{"language":"text","snippet":"requests>=2.28.0"},{"language":"bash","snippet":"# 分析本地植物图像/序列\npython -m scripts.smyx_plant_vitality_index_analysis --input /path/to/plant.jpg\n\n# 分析网络植物图像/视频\npython -m scripts.smyx_plant_vitality_index_analysis --url https://example.com/plant.jpg\n\n# 显示历史活力指数报告/活力指数报告清单（自动触发关键词：查看植物活力历史报告、活力指数报告清单等）\npython -m scripts.smyx_plant_vitality_index_analysis --list\n\n# 输出精简报告\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --detail basic\n\n# 保存结果到文件\npython -m scripts.smyx_plant_vitality_index_analysis --input plant.jpg --output result.json"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: \"smyx-plant-vitality-index-analysis\"\ndescription: \"Using a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。\"\nversion: \"1.0.16\"\nlicense: \"MIT-0\"\n---\n\n# 🌿 Plant Vitality Index | 植物整体活力指数（综合评分）\n> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询\n\n---\n\n## 🧭 技能概览 | Overview\n\n| 模块 | 内容 |\n|---|---|\n| 🏷️ 技能名称 | **植物整体活力指数（综合评分）** |\n| 🎯 核心目标 | 通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。 |\n| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |\n| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |\n| 🧩 场景码 | `SMYX_PLANT_VITALITY_INDEX_ANALYSIS` |\n\nUsing a plant-monitoring platform that periodically (e.g., daily) collects plant images, environmental data, and growth metrics (new bud count, leaf-area change, leaf color), an AI evaluation model fuses leaf color (chlorophyll index), morphology (spread, leaf size), and growth dynamics (new buds, leaf-area growth rate) to output an overall vitality score from 0-100 along with a trend (rising / stable / declining). It helps users intuitively grasp plant health and guides care decisions. Application scenarios: smart planters, plant factories, home gardening, plant-monitoring platforms. The system generates a daily vitality report and pushes alerts when scores keep dropping (e.g., 'vitality index dropped 15% in the past week, please check light or roots'). Skill features: an intuitive way to understand plant health.\n\n通过植物监测平台定期（如每天）采集的植物图像、环境数据以及生长指标（如新芽数、叶片面积变化、叶色），利用AI综合评估模型融合叶片颜色（叶绿素指数）、形态（舒展度、叶片大小）、生长动态（新芽萌发数、叶面积增长率），输出0-100的整体活力评分，并给出活力趋势（上升/稳定/下降）。该技能帮助用户直观了解植物健康状况，指导养护决策。应用场景：智能花盆、植物工厂、家庭园艺、植物监测平台。系统每日生成活力指数报告，当评分持续下降时推送提醒（如'活力指数近一周下降15%，请检查光照或根系'）。技能特点：直观了解植物健康。\n\n## 🤖 AI 角色 | AI Role\n| 角色要点 | 说明 |\n|---|---|\n| 说明 1 | **假设你是一个专业的植物健康评估 AI。你的任务是综合植物的多项视觉和环境指标（叶片颜色、新芽数量、叶片面积变化、生长速度等），计算整体活力指数（0-100 分），并分析近期变化趋势。不要提供具体养护操作（如施肥配方、修剪方案），仅输出评分及趋势。** |\n\n## 🎬 技能演示 | Skill Demo\n\n[▶️ 点击查看技能使用介绍](https://lifeemergence.com/sample.html)\n\n---\n\n## 🎯 任务目标 | Goals\n### 1. 🧩 技能用途\n\n基于植物图像（单图或连续日间序列）+ 可选环境数据/生长指标，输出 0-100 整体活力评分与变化趋势\n\n### 2. 🛠️ 能力范围\n\n| 序号 | 具体能力 |\n|---:|---|\n| 1 | 叶片颜色（叶绿素指数）评估 |\n| 2 | 叶片形态（舒展度 |\n| 3 | 叶片大小）评估 |\n| 4 | 新芽萌发数计数 |\n| 5 | 叶面积增长率估算（基于序列） |\n| 6 | 整体株型紧凑度 |\n| 7 | 活力总分（0-100） |\n| 8 | 活力等级（excellent / good / fair / poor） |\n| 9 | 近期趋势（rising / stable / declining） |\n| 10 | 变化百分比 |\n| 11 | 活力下降阈值告警 |\n\n### 3. ⚡ 触发条件\n\n| 触发类型 | 触发规则 |\n|---|---|\n| ✅ 默认触发 | **默认触发**：当用户提供植物图像/连续日间图像序列/视频 URL 或文件需要分析时，默认触发本技能进行活力指数综合评分 |\n| 🔎 明确分析意图 | 当用户明确提及活力指数、植物活力、综合评"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7cyxkr2ymf7zwsrybpedg8xx83ywrj\",\n  \"slug\": \"smyx-plant-vitality-index-analysis\",\n  \"version\": \"1.0.13\",\n  \"publishedAt\": 1791004346407\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_VITALITY_INDEX_ANALYSIS` - 植物整体活力指数（综合评分）\n\n## 输入约束\n\n- 推荐使用每日同一角度、同一时段的连续植物图像（最少最近 3-7 天）\n- 单图也可输出当次评分，但无法给出趋势\n- 可选附带环境数据：光照 lux、气温 ℃、相对湿度 %、土壤湿度 %\n- 可选附带生长指标：新芽数、叶面积（cm²）、上次浇水/施肥时间\n\n## 评分维度（融合）\n\n- 叶片颜色（叶绿素指数）—— 越绿越饱满分越高\n- 叶片形态（舒展度、叶片大小）\n- 新芽萌发数\n- 叶面积增长率（基于序列）\n- 整体株型紧凑度\n\n## 输出字段（参考）\n\n- `vitality_score` - 活力总分（0-100）\n- `vitality_grade` - 活力等级（excellent / good / fair / poor）\n- `trend` - 近期趋势（rising / stable / declining）\n- `trend_change_pct` - 近 7 天变化百分比（如 -15%）\n- `sub_scores` - 子维度分数（chlorophyll / morphology / new_buds / growth_rate）\n- `alert_hint` - 活力下降阈值告警提示\n\n> 仅输出综合评分与趋势，不提供具体养护操作建议（如施肥配方、修剪方案）。"},{"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":985,"uniquenessScore":44,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T23:36:28.941Z","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-09T23:36:28.941Z","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-10T08:29:07.055Z","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"}]}}}