/skills-for-agriculture:s4ag-pestsfrom skills-for-agriculture
Diagnoses crop pests, diseases, and plant damage using Integrated Pest Management principles. Walks through identification, causal analysis, and lowest-intervention controls for organic and conventional systems.
Ships in skills-for-agriculture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Most pest and disease problems are symptoms of plant stress, and most plant stress is a symptom of food web dysfunction. Before reaching for any spray — biological or chemical — the most useful question is: why is this plant stressed enough to attract this pest? That said, when a crop is under immediate attack, the immediate answer comes first. This skill uses the IPM (Integrated Pest Management) ladder: start at the lowest intervention level that solves the problem, move up only when needed.
How this skill works: The wrong treatment wastes money and often kills the beneficials that would have solved the problem, so each sub-tool pauses at a Checkpoint to confirm what it's assuming — the actual pest, the crop, the urgency, organic or conventional. Confirm the checkpoint before acting. The one exception is genuine emergency: if a crop is under immediate attack with harvest imminent, the answer comes first and the framing waits. Each sub-tool ends with Next steps — the skills worth running once the immediate problem is handled.
The thinkers whose frameworks underpin this skill — and what they specifically discovered that changes how you farm.
Mary Louise Flint & Steve Dreistadt — Natural Enemies and IPM Their Natural Enemies Handbook is the primary reference for beneficial insect identification and deployment. Their key contribution to practice: the economic threshold concept — pest populations must reach a level where the cost of damage exceeds the cost of control before intervention is justified. Most pest populations never reach this threshold. The default response to a pest sighting should be monitoring and assessment, not spraying. Beneficial insects need pest populations to survive; eliminating pests eliminates their natural enemies.
Eliot Coleman — Prevention Through Plant Health Coleman's case across forty years of market gardening: a healthy plant grown on a functional soil food web resists pest and disease pressure in ways that a nutritionally deficient plant cannot. Better cell wall integrity (adequate silicon, calcium, potassium), better secondary metabolite production, and better systemic acquired resistance all come from plant health, which comes from food web function. Cultural prevention — variety selection, rotation, timing — is cheaper and more reliable than any spray, biological or chemical.
Jeff Gillman — Evidence-Based Assessment Gillman's The Truth About Organic Gardening provides the most honest comparison of organic and conventional interventions available. His most practically important finding: several organic interventions are harder on beneficial insects than targeted synthetic options. Pyrethrin, rotenone, and copper are not inherently safe because they're "natural." The question is evidence of efficacy and impact — read label claims sceptically and choose interventions with documented effectiveness and known biology impact.
Elaine Ingham — Biology as Primary Pest Prevention Ingham's soil food web framework explains the mechanism behind Coleman's observation: plants grown on a functioning food web receive nutrients in the forms and concentrations they're adapted to — not the excess nitrogen and phosphorus of synthetic fertility that produces soft, fast-growing, pest-attractive tissue. A healthy food web also produces diverse antibiotic compounds through microbial activity that suppresses soil-borne pathogens. Address the food web before reaching for any spray.
| You need to... | Tool |
|---|---|
| Identify what pest or disease you have | identification |
| Decide whether the damage warrants intervention | threshold-assessment |
| Use prevention and cultural controls | cultural-controls |
| Deploy beneficial organisms | biological-controls |
| Apply an approved organic spray | organic-interventions |
| Use conventional chemistry | conventional-options |
On urgency: A farmer saying "there are aphids all over my brassicas and I'm harvesting tomorrow" gets Level 4/5 immediately, with a one-line note on prevention for next season. The IPM ladder is a planning tool, not a gate — deliver the answer at the right level for the urgency.
Diagnoses what the pest or disease is before acting.
The identification protocol before any intervention: what does the damage look like, where on the plant, what time of year, what else is in the area? Treating without identification wastes inputs and often kills beneficials while missing the actual pest.
Damage pattern diagnosis:
| Symptom | Likely cause | Confirm by |
|---|---|---|
| Holes in leaves — irregular, ragged edges | Caterpillars, slugs, beetles | Check undersides at night; look for frass |
| Holes in leaves — small, regular, round | Flea beetles (brassicas especially) | Look for tiny shiny beetles jumping when disturbed |
| Leaf curl, distortion at growing tips | Aphids, virus, broad mite | Check undersides and growing points with hand lens |
| Yellow leaves — lower, older leaves first | Nitrogen deficiency, root damage, overwatering | Pull plant, check roots for rot or pests |
| Yellow leaves — upper, newer leaves | Iron/manganese deficiency (usually pH-related) | Soil pH test |
| Yellow patches between veins (interveinal chlorosis) | Magnesium or iron deficiency | Soil test; check pH |
| White powdery coating on leaf surface | Powdery mildew | Wipes off easily; spreads in warm dry weather |
| Grey fuzzy coating (botrytis) | Grey mould — Botrytis cinerea | High humidity, poor air circulation; check ventilation |
| Black or brown spots | Blight, bacterial, fungal leaf spot | Pattern and speed of spread; weather (blight in wet) |
| Wilting despite adequate moisture | Root rot, Pythium, vine weevil larvae, crown rot | Pull plant — check roots; vine weevil = C-shaped grub |
| Stem rot at base of seedlings | Damping-off (Pythium, Rhizoctonia) | Overwatering; poor drainage; crowded seedlings |
| Deformed or discoloured fruit | Virus, calcium deficiency, irregular watering | Check pattern: widespread = systemic; localised = physiological |
| Silvery streaks on leaves | Thrips | Look for tiny insects along veins under magnification |
| Sticky residue on leaves (honeydew) | Aphids, scale, whitefly above | Check underside of leaves above sticky area |
Soil food web diagnostic note: many pest and disease problems correlate with food web disruption. Excess nitrogen (soft, lush tissue), synthetic pH amendments, and fungicide use all increase pest susceptibility. Before treating the symptom, ask whether the soil biology has recently been disturbed.
Checkpoint — confirm before finalising:
A misidentification sends the farmer to the wrong treatment. Confirm the ID — or state your confidence level honestly — before recommending action.
Output:
PEST/DISEASE IDENTIFICATION
Crop affected: [crop]
Symptom: [damage description]
Location on plant: [where damage appears]
Season/timing: [when noticed]
Likely cause: [pest or disease]
Confidence: [High / Medium / Low]
If Low, alternatives to consider: [list]
Recommended next step: [threshold-assessment / immediate intervention / cultural-controls]
Next steps:
/s4ag-soil — many "pest" symptoms are nutrient or biology problems in disguise.Decides whether the level of damage actually warrants intervention.
The economic threshold concept: pest populations must cause damage whose cost exceeds the cost and risk of the intervention before treatment is justified. Most pest populations — especially early in the season with beneficials present — never reach threshold. The default is to monitor and wait.
Factors that raise the threshold (tolerate more damage):
Factors that lower the threshold (act sooner):
Common thresholds (as guidelines — adjust to crop value and context):
Checkpoint — confirm before finalising:
Confirm the scale and trend before advising — "spray" and "wait" are opposite calls that hinge on these facts.
Output:
THRESHOLD ASSESSMENT
Pest/disease: [name]
Crop: [crop and growth stage]
Current damage level: [description]
Trend: [increasing rapidly / stable / decreasing]
Economic threshold: [guidance for this crop/pest combination]
Decision: [Intervene now / Monitor for 5–7 days / No action needed]
Rationale: [why]
If monitoring: watch for [specific trigger that would prompt intervention]
Next steps:
Uses prevention and management practices to reduce pest and disease pressure without inputs.
Cultural controls are the most cost-effective pest management available — they prevent problems rather than responding to them. They work best when planned before planting, not after damage appears.
Rotation: Most soil-borne diseases and some pests (clubroot, allium white rot, nematodes) build up in soil when the same crop family is grown repeatedly. Minimum 3-year rotation between families on the same ground. Longer (5–7 years) for persistent problems like allium white rot.
Variety selection: Disease-resistant and locally-adapted varieties can eliminate the need for fungicide programmes entirely. For brassicas: clubroot-resistant varieties on infected ground. For tomatoes: choose varieties with resistance to blight (Blight F1), TMV, and fusarium. For salad: choose mildew-resistant lettuce varieties for polytunnel production.
Timing: Avoid pest peaks through timing. Carrot fly has two peaks (May and August in UK) — sowing in June avoids the first peak. Flea beetles damage is worst in dry spring weather — establishing brassicas in autumn or under fleece avoids worst pressure. Brassica caterpillar damage tracks butterfly activity — cover under mesh to exclude oviposition.
Physical barriers:
Companion planting: Evidence-based companions that have demonstrated pest management effect:
Sanitation: Remove diseased plant material promptly — grey mould, blight, and viral disease spread through infected tissue left in the field. Don't compost diseased material unless the compost heap reaches 60°C+. Rotate tools between areas when disease pressure is high.
Checkpoint — confirm before finalising:
Confirm the system before recommending rotation and timing changes — generic advice won't fit the farm's constraints.
Output:
CULTURAL CONTROLS FOR [pest/disease]
Immediate (this season):
- [action and timing]
Next season (prevention):
- [rotation change]
- [variety to trial]
- [timing adjustment]
- [physical barrier to use]
Companion planting:
- [companion species and rationale]
Sanitation:
- [specific action]
Next steps:
/s4ag-seasons — bake the rotation and timing changes into the year-round plan./s4ag-soil — address the plant stress (often excess N or weak biology) behind recurring pressure./s4ag-biodiversity — build permanent beneficial-insect habitat for season-on-season control.Deploys beneficial organisms to suppress pest populations.
Biological controls work best as part of a planned system — not as a rescue treatment after a population has crashed. They require living pests to reproduce, so early deployment at low pest density gives better results than late deployment at high density.
Habitat for beneficials (cheapest and most durable approach): Create and maintain flowering strips of umbellifers (dill, fennel, coriander), phacelia, buckwheat, and native wildflowers near crops. These provide nectar and pollen for adult beneficial insects, who then lay eggs near pest populations. Parasitic wasps, hoverflies, and lacewings are the primary beneficials — their adults need nectar; their larvae eat aphids, caterpillars, and scale.
Purchased beneficial organisms:
| Target pest | Biological agent | Form | Key conditions |
|---|---|---|---|
| Aphids (glasshouse) | Aphidius colemani, Aphidoletes aphidimyza | Release cards/sachets | 15–28°C; best in polytunnel |
| Red spider mite | Phytoseiulus persimilis | Release sachets | >15°C; humidity >60% |
| Whitefly | Encarsia formosa | Release cards | >18°C; indoor environment |
| Vine weevil larvae | Steinernema kraussei (nematode) | Soil drench | Soil temp >5°C; moist soil |
| Caterpillars | Bacillus thuringiensis var. kurstaki (Btk) | Spray | Active larvae; ingested by caterpillars |
| Leatherjackets | Steinernema carpocapsae (nematode) | Soil drench | Moist soil; >12°C |
| Thrips | Amblyseius cucumeris | Release sachets | >15°C; indoor |
| Scale insects | Metaphycus helvolus | Release cards | >22°C; indoor |
| Soil pathogens | Trichoderma harzianum | Drench or seed treatment | Biologically active soil; preventive |
| Powdery mildew | Bacillus subtilis (Serenade) | Spray | Preventive; warm dry conditions |
Soil biology as biological control: Ingham's food web framework. A functioning soil food web — diverse bacteria, nematodes, microarthropods — suppresses soil-borne pathogens (Pythium, Fusarium, Rhizoctonia) through competition and antibiosis. Rebuilding the food web through compost additions and cover crops reduces damping-off, root rot, and soil-borne disease pressure more durably than any purchased biological agent.
Checkpoint — confirm before finalising:
Confirm conditions before recommending a release — a beneficial deployed outside its window is wasted money.
Output:
BIOLOGICAL CONTROL PLAN
Target pest: [pest]
Crop: [crop and environment — field / polytunnel]
Habitat approach: [what flowering strips or habitat to establish]
Purchased agent (if appropriate):
Agent: [organism]
Source: [supplier recommendation]
Timing: [when to release — early / at first detection]
Rate: [per m² or per plant]
Conditions required: [temperature, humidity]
Expected result timeline: [days to see effect]
Next steps:
/s4ag-biodiversity — turn one-off beneficial releases into permanent resident populations./s4ag-composting — make the compost and tea that suppress soil-borne pathogens biologically.Applies approved organic sprays as Level 4 on the IPM ladder — when cultural and biological controls are insufficient or too slow.
Organic does not mean harmless. Evaluate each intervention on its efficacy, biology impact, and residual — not on whether it is "natural." Some organic inputs cause significant harm to beneficials and soil biology at normal use rates.
Common organic interventions:
| Product | Target | Biology impact | Limitation |
|---|---|---|---|
| Neem oil (azadirachtin) | Broad insect (aphids, scale, whitefly, caterpillars) via IGR | Moderate — avoid applying during peak bee foraging; degrades quickly | Slow-acting (3–7 days); needs repeat applications; preventive more than curative |
| Copper sulphate / copper hydroxide | Blight, downy mildew, bacterial diseases | Accumulates in soil — long-term application causes copper toxicity; harms earthworms | Approved organic but not benign; use minimum effective rate; avoid on same ground annually |
| Sulphur | Powdery mildew, spider mite | Harmful to predatory mites (Phytoseiulus) and some beneficials; phytotoxic above 27°C | Do not apply in hot weather; incompatible with some fungicides; do not apply within 2 weeks of oil sprays |
| Pyrethrin | Broad-spectrum contact insecticide | Harmful to most beneficials including beneficials; breaks down in 12–24 hours | Broad spectrum — kills pests and beneficials alike; use as last resort before conventional |
| Spinosad | Caterpillars, thrips, leafminer | Lower beneficial impact than pyrethrin; some bee risk at application; resistance risk in thrips | Rotate with other modes of action; do not apply during flowering |
| Insecticidal soap (potassium soap) | Soft-bodied insects (aphids, mites, whitefly) | Low residual; low biology impact | Contact-only — thorough coverage required; no residual protection; may cause phytotoxicity on some crops |
Checkpoint — confirm before finalising:
Confirm certification status and conditions — an input that breaches the farm's certification, or scorches the crop, is worse than no spray.
Output:
ORGANIC INTERVENTION
Pest/disease: [target]
Product: [product name]
Active ingredient: [active]
Application rate: [rate and dilution]
Timing: [when to apply — time of day, growth stage, weather conditions]
PHI (pre-harvest interval): [days]
Repeat application: [yes/no — interval]
Biology impact: [what this does to soil and beneficial populations]
Better alternative if available: [more targeted option, or biological control]
Next steps:
/s4ag-soil — reduce the plant stress that's driving repeat infestations./s4ag-certification — if organic certification is a goal, confirm this input keeps you compliant.Level 5 on the IPM ladder — when crop loss is imminent and lower-intervention options are insufficient or too slow.
Conventional chemistry is the answer when: the crop will fail without intervention, harvest is imminent and there is no time for slower options, or the pest population has exceeded all other control options. Reaching for conventional as a first response rather than a last resort destroys the beneficial population that would prevent the next problem.
Principles for conventional use within an IPM programme:
Common conventional interventions by pest category:
Aphids: Pyrethroids (broad spectrum; harm all beneficials) or pirimicarb (selective aphicide; spares most beneficials — prefer this). Systemic neonicotinoids are effective but have well-documented pollinator impacts — avoid in flowering crops.
Caterpillars: Indoxacarb or chlorantraniliprole (diamide group) — effective on caterpillars, lower bee toxicity than pyrethroids. Bt (Bacillus thuringiensis) should be tried first.
Fungal diseases: Trifloxystrobin (strobilurin) or tebuconazole (triazole) for broad-spectrum fungal. Rotate between FRAC groups to prevent resistance. Note: strobilurins are highly toxic to aquatic organisms — observe buffer zones near water.
Slug and snail: Metaldehyde is being withdrawn in many markets due to wildlife toxicity — use ferric phosphate (Sluggo, Iron phosphate) which is approved organic and safer for wildlife and soil biology.
Checkpoint — confirm before finalising:
Confirm ID, timing, and local approval before naming a product — this is the highest-consequence level of the ladder.
Output:
CONVENTIONAL CONTROL
Pest/disease: [target]
Active ingredient: [active]
Product class: [IRAC/FRAC group if relevant]
Application window: [timing and growth stage]
PHI: [days before harvest]
Re-entry interval: [hours]
Resistance management: [rotate with — mode of action to alternate]
Biology impact: [what this input does to soil biology and beneficial populations]
Sustainable alternative at this level: [specific more-selective product or biological control option]
Next steps:
/s4ag-soil — the durable fix: reduce the plant stress that made the crop vulnerable./s4ag-biodiversity — rebuild the beneficial populations a broad-spectrum spray will have knocked back.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (human-avatar/skills-for-agriculture) — no native marketplace selected
npx claudepluginhub p/human-avatar-skills-for-agriculture48 skills in this plugin
/s4agRouter and starting point for the skills-for-agriculture plugin. Use when the user types /s4ag, asks what this plugin does, asks 'which skill should I use', or describes a farming need without naming a specific skill — and you need to route them to the right s4ag-* skill. Also the right entry when a farm question spans several domains and you're unsure where to start./s4ag-agritourismDevelop agritourism income on a working farm. Use when the user asks about farm stays, farm events, visitor experiences, farm education income, agritourism pricing, planning permission for tourism, or says things like 'open my farm to visitors', 'farm Airbnb', or 'diversify my income'./s4ag-agroforestryOther plugins' skills for the same job