
farming-expert
Expert-level precision agriculture, farm management systems, crop monitoring, and agtech. Use when the user mentions agriculture, precision agriculture, agtech, or crop management, or when the task involves Farm Management or AgTech Solutions.
- Installs
- 284
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/personamanagmentlayer/pcl --skill farming-expert- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads farming-expert automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Farming Expert
Expert guidance for precision agriculture, farm management systems, crop monitoring, IoT sensors, and agricultural technology.
Core Concepts
Precision Agriculture
- GPS-guided equipment
- Variable rate technology
- Crop monitoring and sensors
- Soil analysis and mapping
- Drone/satellite imagery
- Automated irrigation systems
Farm Management
- Crop planning and rotation
- Resource optimization
- Yield prediction
- Weather forecasting integration
- Equipment maintenance
- Financial management
AgTech Solutions
- IoT sensors (soil, weather)
- Machine learning for yield prediction
- Automated harvesting
- Livestock tracking
- Supply chain integration
- Marketplace platforms
Farm Management System
from dataclasses import dataclass
from typing import List, Optional
from datetime import datetime, timedelta
from enum import Enum
class CropType(Enum):
WHEAT = "wheat"
CORN = "corn"
SOYBEANS = "soybeans"
RICE = "rice"
VEGETABLES = "vegetables"
class GrowthStage(Enum):
PLANTED = "planted"
GERMINATION = "germination"
VEGETATIVE = "vegetative"
FLOWERING = "flowering"
HARVEST_READY = "harvest_ready"
HARVESTED = "harvested"
@dataclass
class Field:
field_id: str
name: str
area_hectares: float
soil_type: str
coordinates: List[tuple] # GPS polygon
irrigation_system: str
drainage_quality: str
@dataclass
class CropCycle:
cycle_id: str
field_id: str
crop_type: CropType
variety: str
planting_date: datetime
expected_harvest_date: datetime
growth_stage: GrowthStage
seed_rate: float
fertilizer_applied: List[dict]
pesticides_applied: List[dict]
irrigation_schedule: List[dict]
class FarmManagementSystem:
"""Farm management and crop tracking"""
def __init__(self, db):
self.db = db
def plan_crop_rotation(self, field_id, years=3):
"""Generate crop rotation plan"""
field = self.db.get_field(field_id)
history = self.db.get_crop_history(field_id, years=10)
# Analyze soil nutrients and previous crops
rotation_plan = []
# Rules for rotation:
# - Alternate nitrogen-fixing and nitrogen-demanding crops
# - Avoid same crop family consecutively
# - Consider soil health and pest management
for year in range(years):
recommended_crop = self.recommend_next_crop(field, history, year)
rotation_plan.append({
'year': datetime.now().year + year,
'crop': recommended_crop,
'reason': self.explain_recommendation(recommended_crop, history)
})
return rotation_plan
def monitor_crop_health(self, field_id):
"""Monitor crop health using sensor data"""
field = self.db.get_field(field_id)
current_crop = self.db.get_current_crop(field_id)
# Collect sensor data
soil_moisture = self.get_soil_moisture_data(field_id)
weather_data = self.get_weather_data(field.coordinates)
ndvi_data = self.get_ndvi_from_satellite(field.coordinates)
# Analyze health indicators
health_score = self.calculate_health_score(
soil_moisture,
weather_data,
ndvi_data,
current_crop
)
alerts = []
if soil_moisture < current_crop.optimal_moisture_min:
alerts.append({
'type': 'irrigation_needed',
'severity': 'high',
'message': 'Soil moisture below optimal level'
})
if ndvi_data < 0.6: # Vegetation health threshold
alerts.append({
'type': 'crop_stress',
'severity': 'medium',
'message': 'NDVI indicates possible crop stress'
})
return {
'field_id': field_id,
'health_score': health_score,
'soil_moisture': soil_moisture,
'ndvi': ndvi_data,
'alerts': alerts,
'recommendations': self.generate_recommendations(alerts)
}
def predict_yield(self, field_id):
"""Predict crop yield using ML"""
field = self.db.get_field(field_id)
current_crop = self.db.get_current_crop(field_id)
# Features for prediction
features = {
'field_area': field.area_hectares,
'soil_type': field.soil_type,
'crop_variety': current_crop.variety,
'days_since_planting': (datetime.now() - current_crop.planting_date).days,
'total_rainfall': self.get_accumulated_rainfall(field_id),
'avg_temperature': self.get_avg_temperature(field_id),
'fertilizer_amount': sum(f['amount'] for f in current_crop.fertilizer_applied),
'ndvi_avg': self.get_avg_ndvi(field_id)
}
# Use trained model to predict yield
predicted_yield_per_hectare = self.yield_model.predict([features])[0]
total_yield = predicted_yield_per_hectare * field.area_hectares
return {
'field_id': field_id,
'predicted_yield_kg': total_yield,
'yield_per_hectare': predicted_yield_per_hectare,
'confidence': 0.85,
'expected_harvest_date': current_crop.expected_harvest_date
}
IoT Sensor Integration
class AgricultureIoT:
"""IoT sensor data collection and analysis"""
def process_soil_sensor_data(self, sensor_id):
"""Process soil sensor readings"""
readings = self.db.get_recent_readings(sensor_id, hours=24)
analysis = {
'sensor_id': sensor_id,
'avg_moisture': np.mean([r['moisture'] for r in readings]),
'avg_temperature': np.mean([r['temperature'] for r in readings]),
'avg_ph': np.mean([r['ph'] for r in readings]),
'avg_ec': np.mean([r['ec'] for r in readings]), # Electrical conductivity
'nitrogen_level': np.mean([r['nitrogen'] for r in readings]),
'phosphorus_level': np.mean([r['phosphorus'] for r in readings]),
'potassium_level': np.mean([r['potassium'] for r in readings])
}
# Detect anomalies
anomalies = []
if analysis['avg_moisture'] < 20:
anomalies.append('Low soil moisture - irrigation recommended')
if analysis['avg_ph'] < 5.5 or analysis['avg_ph'] > 7.5:
anomalies.append(f'Soil pH out of optimal range: {analysis["avg_ph"]:.1f}')
analysis['anomalies'] = anomalies
return analysis
def automate_irrigation(self, field_id):
"""Automated irrigation control"""
field = self.db.get_field(field_id)
soil_moisture = self.get_soil_moisture_data(field_id)
weather_forecast = self.get_weather_forecast(field.coordinates, days=3)
# Decision logic
should_irrigate = False
duration_minutes = 0
# Check if irrigation is needed
if soil_moisture < field.moisture_threshold:
# Check if rain is expected
expected_rainfall = sum(day['rainfall_mm'] for day in weather_forecast)
if expected_rainfall < 10: # Less than 10mm expected
should_irrigate = True
# Calculate irrigation duration
moisture_deficit = field.moisture_threshold - soil_moisture
duration_minutes = int(moisture_deficit * field.area_hectares * 60 / field.irrigation_rate)
if should_irrigate:
self.activate_irrigation(field_id, duration_minutes)
return {
'field_id': field_id,
'irrigation_activated': should_irrigate,
'duration_minutes': duration_minutes,
'reason': 'Soil moisture below threshold' if should_irrigate else 'No irrigation needed'
}
Weather and Climate Analysis
class WeatherAnalytics:
"""Weather-based agricultural decisions"""
def analyze_growing_conditions(self, field_id, date_range):
"""Analyze weather suitability for crops"""
weather_data = self.get_historical_weather(field_id, date_range)
# Calculate growing degree days (GDD)
gdd = sum([
max(0, (day['temp_max'] + day['temp_min']) / 2 - 10)
for day in weather_data
])
# Analyze frost risk
frost_days = len([d for d in weather_data if d['temp_min'] < 0])
# Water balance
total_rainfall = sum(d['rainfall_mm'] for d in weather_data)
total_evapotranspiration = sum(d['et_mm'] for d in weather_data)
water_deficit = total_evapotranspiration - total_rainfall
return {
'growing_degree_days': gdd,
'frost_days': frost_days,
'total_rainfall_mm': total_rainfall,
'water_deficit_mm': water_deficit,
'avg_temperature': np.mean([d['temp_avg'] for d in weather_data]),
'suitability_score': self.calculate_suitability_score(gdd, frost_days, water_deficit)
}
def optimize_planting_date(self, field_id, crop_type):
"""Determine optimal planting date"""
historical_weather = self.get_historical_weather(field_id, years=10)
crop_requirements = self.get_crop_requirements(crop_type)
# Find window with:
# - Minimal frost risk
# - Adequate soil temperature
# - Good rainfall distribution
optimal_dates = []
for year_data in historical_weather:
for date, conditions in year_data.items():
score = self.score_planting_conditions(
conditions,
crop_requirements
)
optimal_dates.append((date, score))
# Return best planting window
best_dates = sorted(optimal_dates, key=lambda x: x[1], reverse=True)[:10]
return {
'recommended_planting_window': {
'start': best_dates[-1][0],
'end': best_dates[0][0]
},
'confidence': np.mean([d[1] for d in best_dates])
}
Pest and Disease Management
class PestManagement:
"""Pest and disease monitoring and management"""
def detect_pest_risk(self, field_id):
"""Predict pest pressure"""
weather_data = self.get_recent_weather(field_id, days=14)
crop = self.db.get_current_crop(field_id)
# Environmental factors affecting pests
avg_temp = np.mean([d['temperature'] for d in weather_data])
avg_humidity = np.mean([d['humidity'] for d in weather_data])
rainfall = sum(d['rainfall_mm'] for d in weather_data)
risk_factors = {
'temperature_risk': self.assess_temp_risk(avg_temp, crop.crop_type),
'humidity_risk': self.assess_humidity_risk(avg_humidity),
'rainfall_risk': self.assess_rainfall_risk(rainfall)
}
overall_risk = sum(risk_factors.values()) / len(risk_factors)
recommendations = []
if overall_risk > 0.7:
recommendations.append('Scout fields for pest activity')
recommendations.append('Consider preventive treatment')
elif overall_risk > 0.5:
recommendations.append('Increase monitoring frequency')
return {
'field_id': field_id,
'overall_risk_score': overall_risk,
'risk_level': 'high' if overall_risk > 0.7 else 'medium' if overall_risk > 0.4 else 'low',
'risk_factors': risk_factors,
'recommendations': recommendations
}
def analyze_crop_image(self, image_data):
"""Detect diseases from crop images using ML"""
# Would use computer vision model (CNN) trained on crop diseases
# Returns detected diseases and confidence scores
predictions = self.disease_detection_model.predict(image_data)
return {
'detected_diseases': predictions['diseases'],
'confidence': predictions['confidence'],
'affected_area_percent': predictions['affected_area'],
'treatment_recommendations': self.get_treatment_plan(predictions['diseases'])
}
Best Practices
- Use precision agriculture techniques
- Implement crop rotation
- Monitor soil health regularly
- Integrate weather data for decisions
- Use IoT sensors for real-time monitoring
- Apply variable rate technology
- Optimize water usage
- Practice integrated pest management
- Track field-level profitability
- Use data-driven decision making
- Maintain equipment properly
- Follow sustainable practices
Anti-Patterns
❌ Over-application of inputs ❌ Ignoring soil health ❌ No crop rotation ❌ Manual data collection only ❌ Ignoring weather forecasts ❌ Reactive instead of proactive management ❌ No yield analysis
Resources
- Precision Agriculture: https://www.ispag.org/
- FAO Agricultural Data: http://www.fao.org/faostat/
- Crop Science Society: https://www.crops.org/
- Agricultural IoT: https://www.iot-agriculturet.com/
FAQ
What does the farming-expert skill do?
Expert-level precision agriculture, farm management systems, crop monitoring, and agtech. Use when the user mentions agriculture, precision agriculture, agtech, or crop management, or when the task involves Farm Management or AgTech Solutions.
How do I install farming-expert?
Run npx skills add https://github.com/personamanagmentlayer/pcl --skill farming-expert in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/farming-expert/ (personal) or .claude/skills/farming-expert/ (project).
Which AI agents can use farming-expert?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is farming-expert safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains farming-expert?
It is published by personamanagmentlayer/pcl in personamanagmentlayer/pcl. It has 284 recorded installs.
More from personamanagmentlayer/pcl
finance-expert
personamanagmentlayer/pcl
Designs, reviews, operates and audits systems that hold, move, account for and report money — ledgers, payments, banking and open finance, reconciliation and close, risk, fraud, AML, markets and portfolio accounting, and corporate finance/FP&A. Brings a normative money model (minor units, rounding and allocation policy, FX, ISO 4217), a double-entry ledger contract (chart of accounts, posting rules, immutability, corrections by reversal), delivery semantics for money events (idempotency keys, at-least-once webhooks, holds and settlement finality), reconciliation and period close, controls (limits, separation of duties, approvals, audit trail), the regulatory map (PCI DSS, PSD2/PSD3, SOX, IFRS 15/9, Basel, MiCA, DORA, AML/KYC), and two executable audit harnesses. Use it whenever a task touches an amount of money — a balance, a charge, a refund, a payout, a transfer, an invoice, a fee, a tax, an FX conversion, an interest accrual, a journal entry, a trial balance, a settlement file, a ch
telecommunications-expert
personamanagmentlayer/pcl
Expert-level telecommunications systems, network management, billing, 5G, SDN, and telecom infrastructure. Use when the user mentions telecom, networking, 5G, billing, OSS, or BSS, or when the task involves Telecommunications Systems, Network Technologies, Standards and Protocols, or Network Management.
trading-expert
personamanagmentlayer/pcl
Expert-level algorithmic trading, market systems, quantitative analysis, and trading platforms. Use when the user mentions algorithmic trading, quant, markets, finance, or high-frequency trading, or when the task involves Trading Systems, Market Data, or Execution.
real-estate-expert
personamanagmentlayer/pcl
Expert-level real estate systems, property management, MLS integration, CRM, virtual tours, and market analysis. Use when the user mentions property, MLS, CRM, proptech, or listings, or when the task involves Real Estate Systems, PropTech Solutions, Standards and Regulations, or Listing Management.
banking-expert
personamanagmentlayer/pcl
Expert-level banking systems, core banking, regulations, and banking technology. Use when the user mentions finance, core banking, regulations, or payments, or when the task involves Banking Systems or Key Technologies.
insurance-expert
personamanagmentlayer/pcl
Expert-level insurance systems, underwriting, claims processing, actuarial analysis, risk assessment, and insurtech solutions. Use when the user mentions underwriting, claims, actuarial, risk, or insurtech, or when the task involves Insurance Systems, Insurance Types, Standards and Regulations, or Claims Processing.
Popular devops & cloud skills
microsoft-foundry
microsoft/azure-skills
Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure
azure-diagnostics
microsoft/azure-skills
Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.
azure-prepare
microsoft/azure-skills
Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
azure-deploy
microsoft/azure-skills
Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.
azure-validate
microsoft/azure-skills
Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.