
Soil fertility mapping
Guides an agent through multi-property soil fertility maps and composite fertility indices
Soil fertility mapping is an open-source agent skill for health and science. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 13
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Soil fertility mapping
This skill walks an agent through building national or regional maps of several soil properties and nutrients, including texture, pH, CEC, organic carbon, nitrogen, phosphorus, potassium, calcium and bulk density, from harmonized legacy soil records using machine learning. It separates the workflow into per-property mapping, a composite Soil Fertility Index, and uncertainty reporting, and it advises which properties tend to map well (inherent ones such as pH and calcium) and which map poorly (management-driven ones such as available phosphorus and total nitrogen).
The instructions cover data harmonization to a common depth and grid, per-property feature selection, quantile regression forests or ensemble models with per-pixel intervals, and validation with a panel of metrics plus spatial cross-validation. For the index, it describes several routes, including weighted additive scoring, fuzzy zoning, supervised classification and pixelwise expert thresholds, and it recommends Monte-Carlo propagation of uncertainty and applicability masks such as the area of applicability.
The skill is a text guide with no bundled scripts. It refers to external R tools such as CAST and spup, and to a soilquality package, so the user needs soil legacy data, covariate rasters and an R or similar environment to carry out the steps.
When your agent uses it
Produce national/regional maps of multiple soil fertility properties and nutrients from harmonized legacy data with machine learning, and integrate them into a composite Soil Fertility Index (SFI) with honest, propagated uncertainty. Use when the goal is a multi-property fertility product (texture, pH, CEC, OC, N, P, K, Ca, BD) at broad scale — a GSNmap-style national soil-nutrient assessment, a fertility/soil-quality index, or region-specific management diagnosis. Triggers: "soil fertility map", "soil fertility index", "SFI", "nutrient mapping", "GSNmap", "map N P K", "soil quality index", "national soil property maps", "map CEC / pH / texture".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (13 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the dsm-soil plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ccarbajal16/soil-dsm-skills
/plugin install dsm-soil@soil-dsm-skillsOr copy only this skill to ~/.claude/skills/soil-fertility-mapping:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccarbajal16/soil-dsm-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/soil-fertility-mapping &&
cp -R "$tmp/plugins/dsm-soil/skills/soil-fertility-mapping" ~/.claude/skills/soil-fertility-mapping &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/soil-fertility-mapping inside it instead.
Copy the skill folder to ~/.agents/skills/soil-fertility-mapping to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccarbajal16/soil-dsm-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/soil-fertility-mapping &&
cp -R "$tmp/plugins/dsm-soil/skills/soil-fertility-mapping" ~/.agents/skills/soil-fertility-mapping &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/soil-fertility-mapping inside it instead.
Copy the skill folder to ~/.cursor/skills/soil-fertility-mapping to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccarbajal16/soil-dsm-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/soil-fertility-mapping &&
cp -R "$tmp/plugins/dsm-soil/skills/soil-fertility-mapping" ~/.cursor/skills/soil-fertility-mapping &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/soil-fertility-mapping inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ccarbajal16/soil-dsm-skills.git --path plugins/dsm-soil/skills/soil-fertility-mappingOr copy the folder to ~/.gemini/skills/soil-fertility-mapping yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/soil-fertility-mapping:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccarbajal16/soil-dsm-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/soil-fertility-mapping &&
cp -R "$tmp/plugins/dsm-soil/skills/soil-fertility-mapping" ~/.copilot/skills/soil-fertility-mapping &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/soil-fertility-mapping inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ccarbajal16/soil-dsm-skills.gitThen copy soil-dsm-skills/plugins/dsm-soil/skills/soil-fertility-mapping into your agent's skills folder as soil-fertility-mapping. Agents that support SKILL.md read one folder per skill.
What it does
- Per-property map workflow
- Steps for predicting each soil property or nutrient separately, with covariate selection and per-pixel uncertainty.
- Harmonization guidance
- Advice on merging legacy soil records, standardizing depth, lab methods and time windows before modelling.
- Composite fertility index routes
- Several ways to combine property maps into an index, from weighted scoring to threshold classes.
- Uncertainty propagation
- Monte-Carlo approach to carry per-pixel property uncertainty into fertility class probabilities.
- Applicability masking
- Method for marking where a model is reliable, using area of applicability and data-density measures.
- Validation metric panel
- Recommends reporting several accuracy metrics per property plus spatial cross-validation.
Good for
- Build a national soil nutrient map from legacy soil sampling records
- Compute a soil fertility index for a region from mapped properties
- Map nitrogen, phosphorus and potassium with honest uncertainty
- Diagnose management limits on fertility for a specific area
- Classify soil fertility zones and report where the classification is reliable
Soil fertility mapping FAQ
What does the skill need before Soil fertility mapping can be used?
It assumes harmonized legacy soil data and environmental covariate layers such as climate, terrain and parent material, and it points to external R tools like CAST and spup for parts of the workflow.
Which soil properties does Soil fertility mapping cover?
Texture, pH, CEC, organic carbon, nitrogen, phosphorus, potassium, calcium and bulk density.
Does Soil fertility mapping predict nitrogen and phosphorus well?
The skill states that management-driven properties such as available phosphorus and total nitrogen typically map poorly from environmental covariates and should carry lower confidence.
Does Soil fertility mapping include scripts?
No, the skill folder contains only the SKILL.md instructions with no bundled scripts.
How do I install Soil fertility mapping in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/soil-fertility-mapping to use it in all your projects, or to .claude/skills/soil-fertility-mapping in one project. Or install the dsm-soil plugin, which includes it: /plugin marketplace add ccarbajal16/soil-dsm-skills, then /plugin install dsm-soil@soil-dsm-skills.
Does Soil fertility mapping run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Soil fertility mapping?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Soil fertility mapping?
The closest alternatives to Soil fertility mapping are Digital soil mapping workflow, ML for soil prediction, Soil map validation, Soil quality index and Ensemble ML for soil.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ccarbajal16/soil-dsm-skills

Guides an agent through planning a digital soil mapping project from covariates
- Open source
- 13 GitHub stars
- Health and science

Measures whether combining soil ML models can beat the best single model, and how
- Open source
- 13 GitHub stars
- Health and science

Guides an agent in building hybrid process-plus-ML models for soil carbon change over time
- Open source
- 13 GitHub stars
- Health and science

Guides an agent in choosing, tuning and interpreting ML models for soil property
- Open source
- 13 GitHub stars
- Health and science

Guides an agent through setting up, calibrating and checking RothC soil carbon models
- Open source
- 13 GitHub stars
- Health and science

Guides an agent through soil organic carbon stock change measurement and crediting
- Open source
- 13 GitHub stars
- Health and science
