/skills-for-agriculture:s4ag-earthworksfrom skills-for-agriculture
Designs and builds earthworks for water harvesting — swales, berms, ponds, and keyline contour infrastructure. Useful for land management, erosion control, and water retention.
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.
Water that runs off your land takes soil, fertility, and resilience with it. Earthworks capture that water and put it to work — moving it laterally through the soil rather than down the slope and off the farm. Swales, berms, ponds, and keyline ripping are the physical infrastructure that transforms a runoff-and-erosion farm into a water-harvesting farm. Get this right once and the land pays you back for decades.
How this skill works: Each sub-tool pauses at a Checkpoint to confirm the assumptions it is about to build on before producing output. A recommendation built on a wrong assumption wastes time and money — confirm the checkpoint before acting. Each sub-tool ends with Next steps — the skills worth running once you have acted on this one.
The thinkers whose frameworks underpin this skill — and what they specifically discovered that changes how you farm.
P.A. Yeomans — Keyline Design Yeomans spent decades designing and building water systems across Australian farms and documented the methodology in The Keyline Plan (1954) and Water for Every Farm (1965). His specific discovery: the keyline — the inflection point on a valley slope where the land transitions from concave to convex — is the natural contour along which water will spread most efficiently across a hillside. Ripping along or slightly off-keyline moves water from valleys (where it concentrates and erodes) to ridges (where it is deficient). The practical implication: a single keyline ripping operation, properly located, can distribute rainfall across an entire paddock without a drop of concrete or pipe.
Bill Mollison — Swale Design in Permaculture Mollison formalised the on-contour swale — a level, non-draining ditch with a berm on the downslope side — as the primary earthworks tool in permaculture design. His key contribution: swales do not transport water, they hold it in place until it infiltrates. The difference between a contour drain (which carries water to a discharge point) and a swale (which retains it for infiltration) is the difference between managing a problem and solving it. Swales on contour turn every rainfall event into an irrigation and infiltration event.
Darren Doherty — Regrarians Platform Doherty refined Yeomans' keyline methodology into the Regrarians Platform, a practical design sequence that positions earthworks within a whole-farm context. His specific finding: earthworks sequenced without considering access, topography, and enterprise layout often create as many problems as they solve. The Regrarians Platform sequences keyline layout, access tracks, irrigation, and enterprise placement in a logical order so each layer is informed by the one before. The implication: design earthworks in context, never in isolation.
Mark Shepard — Farm-Scale Earthworks Integration Shepard documented large-scale earthworks integrated with enterprise design at New Forest Farm in Wisconsin in Restoration Agriculture. His specific contribution: on-contour earthworks sized and spaced for machinery access — swales wide enough to drive a tractor along, berms planted to productive species — deliver both water management and enterprise function. Earthworks are not an infrastructure cost; they are productive land if designed correctly.
Brad Lancaster — Rainwater Harvesting Principles Lancaster's Rainwater Harvesting for Drylands and Beyond established the decision hierarchy for water harvesting: slow the water, spread it, sink it, store it, use it. His most actionable finding: small, distributed earthworks on-contour outperform large storage tanks in drought resilience because they recharge the soil moisture profile across the whole farm rather than concentrating stored water in one place. Capture where it falls before you pump it anywhere.
Judith Schwartz — Water Cycle Restoration Schwartz's research (Water in Plain Sight) documented how land management changes infiltration rates and groundwater recharge at landscape scale. Her key finding: bare, compacted, and heavily grazed soils have infiltration rates 10–50x lower than biologically active, vegetated soils — meaning earthworks alone cannot solve a water problem caused by degraded soil biology. Earthworks and soil biology restoration work together; neither is sufficient alone.
| You need to... | Tool |
|---|---|
| Find the contour lines and keyline before building anything | contour-reading |
| Design a swale and berm system for your slope | swale-design |
| Site and size a farm pond | pond-siting |
| Apply Yeomans' keyline pattern across the farm | keyline-design |
| Route tracks and roads so they manage water, not damage it | access-design |
Locates the true contour and keyline on any slope before any design work begins.
Every earthworks error starts here — a swale built slightly off-contour drains rather than holds, undermines its berm, and eventually fails. Finding the true contour before any design work is the single most important earthworks skill. You cannot shortcut this.
Tools for finding contour:
| Tool | Cost | Accuracy | Best for |
|---|---|---|---|
| A-frame level | Under $20 in materials, self-built | ±2cm over 3m | Small-scale farms, no budget |
| Bunyip level (water level) | Under $30 | ±1cm over long runs | Level transfer across obstacles |
| Surveyor's level | Hire or buy ($200–2000) | ±5mm | Larger scale, consistent results |
| Laser level | Hire $50–150/day | ±3mm | Fast over large areas |
| GPS/RTK survey | Hire $300–500/day | ±2cm | Large farms, complex topography |
| Contour map (1:5000 or better) | Free–$50 from survey authority | ±1m | Preliminary planning only |
A-frame method — step by step:
Understanding the keyline:
The keyline is not simply a contour line — it is a specific landform feature. On a valley slope, the land is concave (the valley) then transitions to convex (the ridge spur). The keyline is the inflection point between these two curvatures — the highest point where the valley floor meets the rising slope.
To identify it:
Reading the slope for earthworks potential:
Checkpoint — confirm before finalising:
Designing from map contours without ground-truthing is common and often adequate for preliminary planning — but before earthmoving begins, every contour line must be verified on the ground. A map error costs nothing; an earthmoving error costs days of machine time.
Output:
CONTOUR READING ASSESSMENT
Site: [name or description]
Slope gradient (estimated): [%] across [distance]m
Keyline location: [description — distance from valley bottom, feature it relates to]
RECOMMENDED SURVEY METHOD
Method: [A-frame / bunyip / laser / GPS]
Reason: [why this suits the budget and scale]
Estimated time to survey: [hours]
CONTOUR LINES IDENTIFIED
[Contour 1]: [elevation or relative position] — [suitability for earthworks]
[Contour 2]: [elevation or relative position] — [suitability for earthworks]
[Contour 3 if applicable]
LANDFORM NOTES
Valley floor: [description]
Keyline zone: [approximate location]
Ridge/spur: [description]
Drainage patterns observed: [description]
EARTHWORKS POTENTIAL
[High / Moderate / Limited] — [reason]
Constraints: [any slope, access, or soil constraints noted]
RECOMMENDED NEXT STEP
[swale-design / pond-siting / keyline-design / access-design]
Next steps:
/s4ag-land-reading — combine contour reading with full landform and vegetation assessment before committing to design.Sizes, spaces, and designs on-contour swales and berms for water harvesting and infiltration.
A swale is a level trench dug on contour. It does not drain — it fills and holds water until the soil absorbs it. The berm is the soil excavated from the trench, placed on the downslope side and compacted, then planted with trees, shrubs, or groundcover. Together, the swale and berm function as a water-harvesting and tree-planting system.
Design sequence:
1. Confirm the contour line is true level. Any gradient causes water to flow along the swale and concentrate at the low end — undermining the berm and eventually causing failure. Use an A-frame or laser level to walk the line before marking for excavation. A 20m swale needs to be level to within 2cm end-to-end.
2. Size the swale cross-section.
| Scale / Slope | Swale width (m) | Swale depth (m) | Berm height (m) | Notes |
|---|---|---|---|---|
| Hand-dug, garden | 0.3–0.6 | 0.2–0.3 | 0.2–0.3 | Use mattock or spade |
| Small tractor, 3–8% slope | 0.8–1.2 | 0.4–0.6 | 0.5–0.6 | Backhoe bucket or grader blade |
| Large tractor/excavator, 3–8% slope | 1.5–3.0 | 0.6–1.0 | 0.8–1.0 | Full earthmoving equipment |
| High rainfall / flashy catchment | Add 30% volume | Add 30% volume | Increase berm compaction | Engineer check recommended |
3. Calculate catchment area and swale capacity.
The swale must hold all the water that falls on the slope above it, plus roof runoff if roadshed or building runoff is directed to it.
Approximate calculation:
Example: 500m² catchment, 50mm design storm, pasture (0.3 coefficient) 500 × 0.05 × 0.3 = 7.5m³ swale volume needed → design for 9m³
4. Design the overflow.
Every swale must have an overflow — a point where excess water exits safely rather than overtopping the berm unpredictably. Options:
Never allow an unarmoured overflow. An overtopped berm erodes rapidly.
5. Space swales on the slope.
Swale spacing depends on slope, soil infiltration rate, and rainfall intensity:
| Slope | Suggested swale spacing (measured vertically) |
|---|---|
| 1–3% | 5–15m vertical interval |
| 3–8% | 3–8m vertical interval |
| 8–15% | 2–4m vertical interval — wider swales, steeper compacted berms |
Lower infiltration rate = closer spacing. Higher rainfall = closer spacing.
6. Berm planting.
An unplanted berm is a temporary berm. Plant it immediately after construction:
Soil biology note: Swales dramatically increase soil infiltration and moisture over time — which feeds the soil food web. Dry soils have slow, bacteria-dominated biology; moist, aerated soils develop the fungal networks Ingham describes as the hallmark of healthy soil. Berm trees, with their mycorrhizal networks extending into the swale's moist zone, accelerate this transformation.
Checkpoint — confirm before finalising:
An undersized swale or an off-contour swale are the two most common earthworks failures. Confirm both before any ground is broken.
Output:
SWALE DESIGN
Site: [name]
Number of swales: [n]
Slope gradient: [%]
SWALE DIMENSIONS
Width: [m]
Depth: [m]
Berm height: [m]
Berm width at base: [m]
Cross-sectional area: [m²]
Volume per 10m length: [m³]
CATCHMENT AND SIZING
Catchment area per swale: [m²]
Design storm event: [mm]
Runoff coefficient: [value] ([surface type])
Required swale volume: [m³]
Designed swale volume (at proposed length): [m³] — [adequate / increase length]
SPACING
Vertical interval between swales: [m]
Number of swale lines required: [n]
OVERFLOW
Type: [armoured / piped / natural]
Location: [description]
BERM PLANTING
Pioneer groundcover: [species]
Productive trees: [species] at [spacing]m
CONSTRUCTION NOTES
Equipment required: [hand tools / tractor with blade / excavator]
Estimated construction time: [days]
Level verification: [tool and method]
Next steps:
/s4ag-water — pair swale installation with irrigation scheduling to use the captured water productively./s4ag-agroforestry — berm tree planting is agroforestry; design the species selection for enterprise value.Selects, sizes, and designs farm ponds for stock water, irrigation, fire management, or aquaculture.
A pond placed in the wrong location will either never fill, constantly leak, or fail catastrophically. Pond siting is the most consequential earthworks decision — get it wrong and you have a large expensive hole; get it right and you have a water asset that pays for itself every dry summer.
Pond types and primary uses:
| Type | Primary use | Siting principle |
|---|---|---|
| Gully dam | Continuous supply from permanent watercourse | Dam a natural drainage line; requires spillway design |
| Hillside pond | Gravity-fed irrigation, stock water | Keyed into slope above the usage area; fills from catchment runoff |
| Keyline pond | Keyline water distribution; gravity irrigation | Placed at or above keyline elevation for gravity-fed reticulation |
| In-field pond | Biodiversity, microclimate, wildlife water | Level ground; fed by overland flow or swale overflow |
| Aquaculture pond | Fish and crustacean production | Level ground; clay seal or liner; access to water source |
The five siting questions:
1. What will fill it?
Minimum catchment rule of thumb: the catchment area feeding the pond should be at least 10–30 times the pond surface area in moderate rainfall (500–800mm). In low rainfall (below 400mm), 50–100x or more.
2. What will hold the water? Ponds built without a clay seal are expensive to fill and impossible to keep full. Test before designing:
3. Where will the spillway discharge? Every pond must have a spillway — a defined overflow point sized for a design flood. A failed dam spillway can cause catastrophic downstream damage. Spillway design for large ponds (>500m³) should involve an engineer. For small ponds, a rock-armoured broad-crested spillway is the minimum safe standard.
4. What topography is available?
5. Who regulates it? Dam construction is regulated in most jurisdictions. In Australia, New Zealand, UK, and most US states, ponds above a threshold volume (typically 1ML / 1 acre-foot or similar) require permits. Consult your local water authority before any design work proceeds beyond preliminary.
Sizing a hillside or keyline pond:
Target volume = daily water demand × number of drought days + safety factor
| Use case | Daily demand (approximate) |
|---|---|
| 100 beef cattle (maintenance) | 5,000–6,000L/day |
| 50 dairy cows (milking) | 10,000–12,000L/day |
| 1 hectare irrigation (summer, moderate evapotranspiration) | 3,000–8,000L/day |
| Fire suppression reserve (small rural property) | 50,000–100,000L minimum |
Example: 80 beef cattle through a 90-day drought 80 × 60L × 90 days × 1.5 safety = 648,000L = 648m³ = 0.65ML
Soil biology note: Farm ponds create a permanently moist zone radiating outward through the surrounding soil — a biological hotspot. The moist margin, the pond floor biology, and the aerobic zone around the pond all support populations of organisms that Ingham identifies as critical for nutrient cycling. Ponds also support insect diversity that feeds birds and beneficials. A farm with a well-managed pond has measurably higher biodiversity within 50m of the water.
Checkpoint — confirm before finalising:
A pond built without checking clay content or regulatory requirements is the most expensive earthworks mistake possible — costs mount before a drop of water is retained.
Output:
POND DESIGN BRIEF
Site: [name/location]
Pond type: [gully dam / hillside / keyline / in-field / aquaponics]
Primary use: [stock water / irrigation / fire reserve / aquaculture / biodiversity]
WATER SUPPLY
Source: [watercourse / catchment runoff / swale overflow / pumped]
Catchment area (if runoff-fed): [ha]
Average annual rainfall at site: [mm]
Estimated annual runoff to pond: [m³]
VOLUME REQUIREMENT
Daily demand: [L/day]
Drought days to carry: [days]
Required volume: [m³ / ML]
Designed volume: [m³ / ML]
CLAY TEST RESULT
Smear test: [adequate / marginal / inadequate]
Seal required: [none / compacted clay core / bentonite / liner]
TOPOGRAPHY
Dam wall length: [m]
Dam wall height (maximum): [m]
Cut:fill ratio (estimated): [ratio]
Estimated earthmoving volume: [m³]
SPILLWAY
Type: [rock-armoured broad-crested / piped / drop inlet]
Spillway capacity (design event): [mm/hr over catchment]
Discharge to: [location]
REGULATORY
Permit required: [yes / no / unknown — check with [authority]]
Estimated construction cost: [$]
NOTES
[Clay conditions, access, special considerations]
Next steps:
/s4ag-water — once the pond is built, design irrigation reticulation and scheduling./s4ag-aquaculture — if the pond is large enough, explore aquaculture integration.Applies Yeomans' keyline pattern to distribute water from valley to ridge across a farm.
Keyline design is the systematic application of a single counterintuitive principle: water concentrates in valleys; the rest of the slope is deficient. Keyline ripping and swale placement moves water laterally from where it accumulates (valley floors) toward where it is needed (ridge slopes). Properly applied, a keyline pattern can turn a farm from a system that sheds water into one that retains and distributes it.
The core principle:
On any hillside, water flows toward the valley. Left unmanaged, rainfall runs down the slope, concentrates in drainage lines, and leaves the ridge slopes dry. The keyline correction: after identifying the keyline, rip the soil along a line that is true contour at the keyline elevation, then grade slightly off-contour on successive lines — tilting the rip lines from valley toward ridge as you move upslope. Water moving along these rip lines diverges from the valley rather than converging toward it.
The four components of a keyline system:
1. Keyline pond (where resources allow) Sited at keyline elevation in each valley, the keyline pond captures runoff from above and sits at the ideal elevation for gravity-fed irrigation below. Multiple keyline ponds connected by a contour channel give the farm a water distribution spine.
2. Keyline contour channel A shallow channel on keyline contour connects ponds and distributes overflow. Not a drainage channel — it carries water for distribution to swales and rip lines below.
3. Keyline ripping Ripping (subsoiling) along and slightly off keyline breaks compaction, aerates the subsoil, and creates pathways for lateral water movement. The classic Yeomans approach:
4. Keyline swales Swales on or above keyline harvest additional rainfall and direct overflow into the distribution system. These sit above the keyline ponds and channel and feed them.
Design process:
Step 1 — Map the valleys. On a contour map or through field observation, identify all significant drainage valleys on the property.
Step 2 — Find the keyline in each valley. Walk each valley from its lowest point upward and identify the inflection point where the valley transitions from concave to convex — this is the keyline.
Step 3 — Draw the keyline contour. Using survey tools, establish the true contour at keyline elevation and mark it across the property.
Step 4 — Site ponds. Identify the lowest saddle point on each keyline contour — this is where a dam wall requires minimum earthmoving to create maximum storage.
Step 5 — Design the rip lines. Starting from the keyline contour, plan rip lines running parallel but tilted 1–2% toward the ridge at their valley end. Mark these on a farm map for the tractor operator.
Step 6 — Sequence the work. In the first year: establish keyline ponds. Second year: begin ripping. Third year and beyond: expand the rip pattern upslope and introduce swales.
Realistic timelines and expectations:
Keyline design is a multi-year transformation. First-year effects (improved infiltration after ripping, reduced runoff) are visible within one season. Measurable soil moisture changes across the slope take 2–5 years. The full redistribution of water from valley to ridge takes 5–10 years of consistent management. Plan accordingly.
Reading results:
Soil biology note: Keyline ripping does more than move water — it aerates the subsoil. Anaerobic subsoil is biologically dead or dominated by fermentative bacteria. Introducing oxygen through ripping activates aerobic decomposition, feeds fungal hyphae into deeper soil horizons, and allows plant roots to follow the rip channels into subsoil previously inaccessible to them. Over time, keyline-ripped soil develops biological activity at depths that tillage-based farming never reaches.
Checkpoint — confirm before finalising:
Keyline ripping without first locating the true keyline will either have no effect or actively worsen drainage patterns. Ground-truth the keyline before committing to rip lines.
Output:
KEYLINE DESIGN PLAN
Farm name: [name]
Area covered: [ha]
Number of valleys: [n]
KEYLINE LOCATIONS
Valley 1: [description] — keyline at [approximate elevation or feature]
Valley 2: [description] — keyline at [approximate elevation or feature]
[Additional valleys]
POND SITES
Pond 1 (Valley 1): [location description] — estimated volume [m³] — estimated wall height [m]
Pond 2 (Valley 2): [location description] — estimated volume [m³] — estimated wall height [m]
CONTOUR CHANNEL
Length: [m]
Links: [Pond 1 to Pond 2 / from Pond to swale system]
RIPPING PROGRAMME
Year 1 priority area: [description]
Rip line orientation: [true keyline / tilted [%] toward ridge at valley end]
Rip depth target: [cm]
Equipment required: [tractor hp / subsoiler type]
Annual ripping area: [ha]
3-YEAR PROGRAMME
Year 1: [ponds / first ripping zone]
Year 2: [expand ripping / swale installation]
Year 3: [full system / monitoring]
SUCCESS INDICATORS TO MONITOR
- [indicator 1]
- [indicator 2]
- [indicator 3]
Next steps:
/s4ag-water — once the keyline system is in place, design the gravity-fed irrigation reticulation./s4ag-regenerative — keyline design is one of the fastest routes to whole-farm regeneration; connect it to the broader transition plan.Routes roads and tracks to manage water rather than channel it toward erosion.
Every track on a farm is a water management intervention — it either manages water safely or it concentrates runoff and carves gullies. Poorly designed tracks are one of the most common causes of farm erosion. Well-designed access routes shed water gradually to vegetated margins, eliminate concentration points, and become part of the farm's water management infrastructure.
The core principle:
Sealed and compacted surfaces shed water rather than absorbing it. Runoff velocity increases with the length of the slope. Erosion damage is proportional to velocity squared — doubling the velocity quadruples the erosion force. The design response: interrupt the runoff distance before velocity builds, and direct the water to vegetated land where it can infiltrate.
Water on tracks — the three failure modes:
1. Track running down the slope (not on contour) Water follows the track, accelerates, and erodes the track surface and any drainage line it reaches. Fix: avoid tracks that run straight down slopes. Where unavoidable, install frequent cross-drains (every 30–50m on slopes above 5%) to break the flow path.
2. Track forming a berm along the contour A poorly shaped contour track acts as a dam, concentrating water until it overflows at the lowest point — usually concentrating the entire track's catchment into one erosive surge. Fix: design the track cross-section to shed water off the uphill edge before it concentrates. A slight outward camber (2–4%) plus regular turnout drains prevents ponding.
3. Track entering a drainage line without a crossing Water sheet-flowing across the track hits the drainage line and cuts headward erosion upslope. Fix: formal watercourse crossings with culverts, rock armour, or concrete — not bare ground.
Design principles for on-contour tracks:
Turnout drain design:
A turnout drain is a simple diversion cut across the track, angled at 30–45° to the track line, directing water off the downhill edge onto vegetated land. Key requirements:
Spacing guide for turnout drains:
| Track slope | Maximum spacing between turnouts |
|---|---|
| 1–2% | 80–100m |
| 2–4% | 50–60m |
| 4–8% | 30–40m |
| Above 8% | 20–25m; consider rerouting the track |
Integrating tracks with earthworks:
Where possible, design track layout alongside swale and keyline design:
Existing tracks — assessment and repair:
Before designing new tracks, assess existing ones:
Soil biology note: Track placement and surface management determines how much of the farm's water reaches the soil biology. Every litre that sheets off a track and exits the farm is a litre that does not infiltrate to feed the food web. Compacted track surfaces — like compacted field soils — are biologically inert. Where tracks must cross productive ground, minimise their width, maximise vegetated margins, and consider periodic biological decompaction (subsoiling) of the track surface after wet-season damage.
Checkpoint — confirm before finalising:
Designing a new track without assessing existing track drainage problems first often means the new track inherits or amplifies the existing failures.
Output:
ACCESS DESIGN PLAN
Property: [name]
Existing tracks assessed: [yes / no / partially]
EXISTING TRACK ISSUES IDENTIFIED
[Track segment 1]: [issue — down-slope run / berm effect / inadequate crossing]
Fix: [turnout drains at [spacing]m / regrade for outward camber / install culvert]
[Track segment 2]: [issue]
Fix: [fix]
NEW TRACK DESIGN
Route: [description — from / to, via which landform features]
Alignment to contour: [on-contour / slight off-contour for drainage / unavoidable downslope section at [location]]
Cross-section camber: [%] outward
Surface: [gravel / compacted native / rock base]
TURNOUT DRAIN SCHEDULE
[Location 1 — distance from start]: [depth] [angle] [outlet to]
[Location 2]: [depth] [angle] [outlet to]
[Continue as needed]
WATERCOURSE CROSSINGS
[Crossing 1 — location]: [culvert diameter] [material] [sizing notes]
INTEGRATION WITH EARTHWORKS
[How this track relates to swale/keyline system]
MAINTENANCE
Inspect after: [major rain events]
Priority repairs: [list]
Next steps:
/s4ag-land-reading — walk the whole farm for water patterns before finalising access routes./s4ag-water — once access infrastructure is managed for water, design the positive-use irrigation system.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
earthworks, water-harvesting, keyline-design, swales, berms, ponds
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