简介
农场田间观测智能记录系统,支持照片、语音、文本多模态输入,AI自动识别病虫害与紧急程度,15分钟JWT令牌认证,适用于玉米大豆种植区的快速巡田上报。
原始描述
Query and create field observations and AI-processed captures. Photos, voice notes, and text notes from the field.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心用法
FarmOS Observations 是一个面向田间作业的智能观测记录技能,专为玉米、大豆等规模化种植场景设计。核心功能包括:
- 多模态数据采集:支持照片上传、语音笔记、文本描述三种输入方式,AI自动分析图像内容并提取关键信息
- 智能分类识别:内置8类观测类型(pest/disease/weed/weather_damage/equipment_issue/soil/crop_condition/other),通过关键词自动匹配印第安纳州常见病虫害库
- 紧急程度评估:基于语言信号自动判定 severity(low/medium/high),urgency score 7+ 自动触发预警
- 上下文感知对话:根据报告者风格(专业农艺师 vs 田间工人)自适应调整问答策略,最多3个跟进问题
API 调用要点:
- 需通过
~/clawd/scripts/farmos-auth.sh manager获取15分钟有效期的JWT令牌 - 列表查询使用
GET /api/observations(支持分页),禁止使用/api/integration/dashboard获取明细 - 创建观测使用
POST /api/observations,multipart/form-data 格式,支持照片附件
显著优点
- 零门槛快速录入:"Beans look rough" 级别的稀疏输入即可触发智能追问,降低田间工人使用门槛
- AI 视觉增强:自动识别叶片病斑形状、昆虫种类、杂草特征,结合图像描述与文本输入生成综合记录
- 跨模块联动:观测创建后自动关联 Tasks(生成工单)、Equipment(设备维修记录)、Weather(天气数据印证)
- 模式发现能力:自动识别跨田块/跨时间的同类问题聚集,提示"本周第三个水苋菜观测,建议全面喷防"
- 自适应交互:针对专业用户自动跳过冗余问题,针对普通用户主动引导关键信息采集
潜在缺点与局限性
- 服务稳定性风险:文档明确标注后端存在 restart loops,观测服务可能间歇性不可用
- 地理局限性:病虫害知识库高度聚焦印第安纳州(waterhemp、tar spot、SDS 等),其他地区适用性存疑
- 网络依赖:田间环境4G/5G覆盖不稳定时,照片上传可能失败
- 权限管理粗放:单一 manager 角色令牌,缺乏细粒度字段级或操作级权限控制
- AI 识别局限:模糊/昏暗照片明确标注"无法可靠识别",仍需人工复核
适合人群
- 规模化玉米/大豆种植户:1000英亩以上农场,需要数字化巡田记录
- 农场经理与农艺师:Brian 等经验丰富的技术人员,需要快速创建带AI分析的结构化观测
- 田间作业 crew:季节性工人可通过自然语言描述问题,无需学习复杂系统
- 农业服务组织:为多个农场提供植保、农机服务的第三方团队
常规风险
| 风险类型 | 具体描述 | 缓解建议 |
|---|---|---|
| 数据丢失 | 服务重启期间观测无法创建或查询 | 本地备份关键发现,服务恢复后补录 |
| 误判延误 | AI 将病斑误识为营养缺乏,延误防治 | 高urgency观测强制人工复核 |
| 隐私泄露 | 田间照片可能包含GPS位置或人员信息 | 上传前审查敏感内容 |
| 权限滥用 | 15分钟令牌泄露期间可任意操作观测数据 | 缩短令牌有效期,启用操作审计日志 |
| 过度依赖 | crew 放弃独立判断,完全依赖AI分类 | 保留"other"类型兜底,定期人工抽检 |
使用建议
- 紧急场景优先文本+照片:高urgency问题(液压泄漏、结构故障、化学品暴露)务必附带清晰照片
- 建立服务健康检查习惯:首次交互时快速探测
/api/observations响应,失败时立即切换人工记录 - 利用模式发现优化投入:定期回顾"本周同类观测聚集"提示,从点防转向面防降低单位成本
技能正文
name: farmos-observations description: Query and create field observations and AI-processed captures. Photos, voice notes, and text notes from the field. tags: [farming, observations, field-reports]
FarmOS Observations
AI-powered quick capture system — field observations, photos, voice notes, and issue reports.
When to Use This
What this skill handles: Field observations -- pest/disease/weed reports, crop condition notes, weather damage, soil issues, equipment problems spotted in the field, and photo-based scouting captures.
Trigger phrases: "found [pest/weed/disease] in field X", "beans look rough", "something is wrong with field 12", "create an observation", "log this problem", "any observations today?", "what has been reported in field X?"
What this does NOT handle: Equipment maintenance scheduling or fleet status (use farmos-equipment), task/work order creation (use farmos-tasks -- but the bot will offer to create a work order after logging an observation), weather forecasts or spray conditions (use farmos-weather).
Minimum viable input: Any mention of something observed in the field. "Beans look bad" is enough -- the bot will ask smart follow-ups.
Data Completeness
- The
/api/integration/dashboardendpoint is for summary stats only — observation counts and pending reviews. Do NOT use it to list individual observations. - For listing observations, use
GET /api/observationswith appropriate filters. This endpoint is paginated — uselimitparameter and note the total. - Always state the count: "Found 7 observations this week in field 12" — not just a list without context.
- If results seem low, flag it: "Only seeing 2 observations this week — that may be incomplete, or the observations service may be having issues."
- If the service is down, say so plainly. Don't present empty results as "no observations."
API Base
http://100.102.77.110:8008
Note: The observations backend may have stability issues (restart loops reported). If endpoints don't respond, report that the observations service appears to be down.
Integration Endpoints (No Auth)
Dashboard
GET /api/integration/dashboard
Returns: Observation counts, recent activity, pending reviews.
Authenticated Endpoints (JWT Required)
Authentication
This skill accesses protected FarmOS endpoints that require a JWT token.
To get a token:
TOKEN=$(~/clawd/scripts/farmos-auth.sh manager)
To use the token:
curl -H "Authorization: Bearer $TOKEN" http://100.102.77.110:8008/api/endpoint
Token expiry: Tokens last 15 minutes. If you get a 401 response, request a new token.
List Observations
GET /api/observations?limit=10&field_id=12 Authorization: Bearer {token}
Observation Detail
GET /api/observations/{id} Authorization: Bearer {token}
Returns: Full observation with AI analysis results, extracted entities, urgency score, and any created actions (tasks, maintenance records).
Create Observation
POST /api/observations Authorization: Bearer {token} Content-Type: multipart/form-data
Form fields:
observation_type(required) — pest, disease, weed, weather_damage, equipment_issue, soil, crop_condition, otherdescription(required) — Text description of what was observedseverity(optional) — low, medium, high (default: medium)field_id(optional) — Numeric field IDequipment_id(optional) — Numeric equipment IDphoto(optional) — Image file attachment
Example using curl:
curl -X POST http://100.102.77.110:8008/api/observations \
-H "Authorization: Bearer $TOKEN" \
-F "observation_type=weed" \
-F "description=Found waterhemp in northeast corner near waterway" \
-F "severity=high" \
-F "field_id=22" \
-F "photo=@/path/to/photo.jpg"
When crew reports a problem in #field-support or #field-ops, offer to create an observation. Extract as much detail as you can from the message (field, observation type, severity), then create the observation.
Usage Notes
- Observations include urgency scores (1-10). Flag anything 7+ immediately.
- AI processing classifies type and extracts equipment/field/crop references.
- Observations may create tasks (via Task Manager) or maintenance records (via Equipment).
- If the service is down, let the user know and suggest they log the observation manually.
- The observation intake system is designed for photos from the field — the bot should be ready to accept image messages and route them here.
- Proactive observation creation: When crew mentions issues in channel conversations ("got a bunch of weeds in field 12", "header making a weird noise"), offer to log it as an observation. Don't create silently — ask first.
- Equipment observations: If the observation involves equipment, include
equipment_idwhen creating. This helps track equipment-specific recurring issues.
Smart Observation Detection
When a user reports something that sounds like a field observation, auto-detect as much as you can from the message before asking questions.
What to Detect
Field identification:
- Explicit: "field 12", "F12", "the 12"
- By name: "the Byrd farm", "Kruckeberg", "home place" -- match to known field names
- From channel context: if the conversation was already about a specific field, carry that forward
- From user location: if they mention "the field I am in" or "out here", check recent context
Observation type -- see the Observation Type Detection table below.
Severity -- see the Severity Detection table below.
Specific pest/disease/weed identification:
- Common Indiana pests: western corn rootworm, Japanese beetle, corn earworm, soybean aphid, bean leaf beetle, armyworm, black cutworm, stink bug
- Common diseases: tar spot, gray leaf spot, northern leaf blight, sudden death syndrome, white mold, frogeye leaf spot, Goss wilt, anthracnose
- Common weeds: waterhemp, marestail (horseweed), giant ragweed, common ragweed, Palmer amaranth, lambsquarters, foxtail, velvetleaf, morningglory
- If the reporter uses a colloquial name, map it: "buttonweed" -> common buttonweed, "volunteer corn" -> note as weed/volunteer
Equipment reference:
- By name/number: "the 8250", "the Kinze", "the planter", "sprayer"
- By implication: "header won't raise" implies the combine (likely 8250)
Location within field:
- Cardinal directions: "northeast corner", "south end"
- Landmarks: "near the waterway", "along the tree line", "by the road", "headlands", "terrace"
- Coverage: "whole field", "scattered", "in patches", "one spot"
Observation Type Detection
| Keywords / Signals | Observation Type |
|---|---|
| bug, insect, aphid, rootworm, armyworm, beetle, cutworm, earworm, stink bug, larva, grub | pest |
| tar spot, gray leaf spot, northern leaf blight, rust, rot, blight, lesion, spots on leaves, mold, wilt, SDS, anthracnose, frogeye | disease |
| waterhemp, marestail, ragweed, foxtail, lambsquarters, Palmer, volunteer corn, weeds, escapes, resistance | weed |
| hail, wind damage, flood, frost, drought stress, storm, ice, lightning, washout, ponding | weather_damage |
| broken, leaking, stuck, noise, won't start, overheating, vibration, warning light, hydraulic, flat tire | equipment_issue |
| compaction, erosion, drainage, wet spots, tile, washout, ruts, soil test, pH | soil |
| stand count, emergence, color, lodging, population, uneven, stunted, yellowing, purpling, canopy | crop_condition |
If multiple types match (e.g., "yellowing leaves with spots" could be disease or crop_condition), pick the more specific one (disease in that case). If genuinely ambiguous, ask: "Is this more of a disease issue or general crop condition?"
Severity Detection
| Language Signals | Severity |
|---|---|
| "bad", "terrible", "everywhere", "whole field", "never seen this before", "worst I have seen", "out of control", "lost cause" | high |
| "some", "moderate", "spreading", "getting worse", "more than last week", "quite a bit", "a lot of" | medium |
| "a few", "small patch", "just noticed", "isolated", "one spot", "not too bad", "just starting" | low |
Default to medium if the language is neutral or you cannot determine severity. Never guess high -- ask.
Follow-Up Questions (Smart)
When the report is sparse, ask targeted follow-up questions. Maximum 2-3 questions per interaction -- do not interrogate.
Question Bank (pick the most useful ones)
- Scope: "How widespread is it? Just that spot or across the field?"
- Adjacent fields: "Have you seen this in adjacent fields?"
- Percentage: "Roughly what percentage of the field is affected?"
- Photos: "Any photos? A picture would help me nail down exactly what this is."
- Treatment history: "Was this field treated with anything recently?"
- Recurrence: "Is this the same issue you reported on [date]?" (only if a similar recent observation exists -- check observation history first)
- Timing: "When did you first notice this?"
- Trend: "Is it getting worse or holding steady?"
Which Questions to Ask
| Missing Info | Ask |
|---|---|
| No field identified | "Which field are you in?" (always ask this -- cannot create without a field) |
| No type identifiable | "What are you seeing exactly? Weeds? Bugs? Crop damage? Equipment problem?" |
| Has type but no scope | "How widespread is it?" |
| Weed/pest report | "Any photos?" (visual ID is high value for these) |
| Sounds like recurring issue | "Is this the same issue from [date]?" |
Reporter-Adaptive Behavior
Detailed Reporters (agronomists, Brian, experienced crew)
- They will say things like "Found western corn rootworm beetle damage in field 22, northeast corner, about 15% of the rows affected, adult count was 8 per plant"
- Auto-detect everything. Confirm the details. Create the observation.
- Skip redundant questions -- they have already given you what you need
- Example response: "Got it -- rootworm beetle damage in F22, northeast corner, ~15% of rows, 8 adults/plant. Severity: high. Creating the observation now."
Sparse Reporters (field crew, seasonal workers)
- They will say things like "something's wrong with field 12" or "beans look bad"
- Ask 2-3 targeted follow-up questions. Do NOT interrogate.
- Pick the highest-value questions for the situation
- After 2-3 questions, create the observation with whatever you have
- Example exchange:
- Crew: "Beans look rough in 12"
- Bot: "What are you seeing -- weeds, bugs, disease, or just the crop looking off? And is it the whole field or just a section?"
- Crew: "Weeds. Northeast side mostly."
- Bot: "Got it. Creating an observation -- weed pressure in field 12, northeast section, medium severity. Want me to create a scouting work order for it too?"
Key Rules
- Always offer before creating: "Want me to create an observation for this?" Do NOT create silently -- unless the user has explicitly asked you to create one.
- Exception: If the user directly says "Log this" or "Create an observation for...", that IS explicit permission -- go ahead and create.
- Never ask more than 3 follow-up questions. After 3, create with what you have and note what was unknown.
Post-Creation Actions
After successfully creating an observation, offer related actions:
- Work order: "Want me to create a work order for this?" (especially for weed/pest/equipment issues that need action)
- Adjacent field check: "Should I check if adjacent fields have the same issue?" (useful for pest/disease/weed spread)
- Scouting task: "Want me to schedule a follow-up scouting trip?" (for observations that need monitoring)
- Equipment maintenance: If equipment_issue type, "Want me to log this against the equipment maintenance record?"
Only offer 1-2 of the most relevant follow-up actions. Do not overwhelm the reporter with options.
Urgency Escalation
Flag the operator immediately (in addition to creating the observation) for:
- Crop damage at high severity -- potential yield loss, Brian needs to know
- Equipment safety -- hydraulic leak, structural failure, anything that could injure someone
- Chemical exposure -- drift, spill, re-entry violation, any chemical safety concern
- Pest/disease outbreak -- high severity pest or disease that could spread rapidly (tar spot, sudden death syndrome, heavy rootworm pressure)
- Weather damage at high severity -- hail, flood, significant storm damage
When escalating, send a concise alert: "URGENT: [type] reported in field [X] -- [one-line summary]. Severity: high. Observation #[id] created."
Do NOT escalate routine observations (low/medium severity, isolated issues, normal scouting finds).
Cross-Module Context
After creating or reviewing observations, connect to other modules:
Observations → Pattern Detection:
- When a new observation is created, check for similar recent observations (same type, nearby fields, same week): "This is the third waterhemp observation this week across three different fields. Might be time for a blanket spray program rather than spot treatments."
- When listing observations, group by pattern when multiple share type/field/timeframe: "3 disease observations this week, all in the east fields. Could be spreading."
- Track escalation: "First report was low severity last Tuesday, now we're at high severity across 4 fields. This is moving fast."
Observations → Tasks:
- After creating an observation, check farmos-tasks for existing work orders related to this field or issue: "There's already a scouting task open for field 22 from yesterday — want me to add this observation to it?"
- If no related task exists and the observation is actionable (pest, disease, weed at medium+ severity), offer to create one.
- Connect observation patterns to task suggestions: "Third waterhemp sighting this week — want me to create a blanket spray task?"
Observations → Weather:
- Connect recent weather to observation context: "3 disease observations after last week's rain — moisture likely drove this."
- When a weather_damage observation is created, pull the actual weather data: "You're reporting hail damage in field 14. Records show we got 1.2 inches with possible hail Tuesday evening."
- Flag ongoing weather risk: "With more rain coming Thursday, expect this fungal pressure to continue."
Observations → Equipment:
- If an observation leads to a task that requires specific equipment, check equipment availability: "If you're going to spray for this waterhemp, the sprayer is available — 153 hours, no maintenance due."
- For equipment_issue observations, cross-reference with farmos-equipment for that machine's maintenance history.
Cross-reference when it adds context. A simple "log this observation" doesn't need a full cross-module sweep. But when patterns emerge or observations drive action, connect the dots.
Image Understanding
When a photo accompanies an observation (the image description will appear in your context as [Image] Description: ...), use it to enhance the observation record.
Photo-Enhanced Detection
Use the image description to refine type and severity:
- Photo of lesions on leaves -- identify disease characteristics (shape, color, pattern, location on leaf) -- refine observation_type to "disease" and attempt specific ID
- Photo of insects or insect damage -- identify species or damage pattern -- refine observation_type to "pest"
- Photo of weeds -- identify species from leaf shape, growth habit, flower/seed head -- refine observation_type to "weed"
- Photo of equipment in the field -- note the machine and any visible issues -- set observation_type to "equipment_issue" and include equipment_id
- Photo of crop conditions -- note growth stage, color, stand count, uniformity -- refine observation_type to "crop_condition"
- Photo of weather damage -- note damage pattern (hail bruising, wind lodging, flood line) -- set observation_type to "weather_damage"
Always include the image description in the observation description field. Combine what the reporter said with what the photo shows:
"Reporter: Found some weird spots on the corn in field 12. Photo shows: rectangular tan lesions between leaf veins, approximately 1-3cm long, consistent with gray leaf spot (Cercospora zeae-maydis). Northeast section of field."
Photo Quality Handling
- Clear photo: Use it confidently to refine detection. State what you see and your assessment.
- Unclear/blurry/dark photo: Say so honestly: "I can make out [what you can see] but the photo is too blurry/dark for a confident ID. Can you get a closer shot, or describe what you are seeing?"
- Photo does not match description: If the photo shows something different from what the reporter described, mention it: "You mentioned weeds but the photo looks like it might be disease lesions -- can you clarify?"
- Multiple issues visible: Note all of them: "I can see both waterhemp and what looks like tar spot lesions in this photo. Want me to create observations for both?"
Photo Prompt for Sparse Reports
When a reporter sends a text-only observation about something visual (pest, disease, weed, damage), and has NOT included a photo:
- "Any photos? A picture would help me nail down exactly what this is." (already in the follow-up question bank)
- Do NOT demand photos. A text description is always enough to create an observation.
Attaching Photos to Observations
When creating an observation via POST /api/observations, include the photo as the photo form field if a MediaPath is available in your context. The image gets archived with the observation record for future reference.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。