# Soil quality index

> Soil quality index is an open-source agent skill for health and science. Builds and checks soil quality indices from measured soil indicators. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ccarbajal16/soil-dsm-skills/tree/main/plugins/dsm-soil/skills/soil-quality-index
- **Repository:** https://github.com/ccarbajal16/soil-dsm-skills
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** soil-quality-index
- **Collection:** https://github.com/ccarbajal16/soil-dsm-skills
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through constructing a Soil Quality Index or Soil Health Index as a composite score of soil condition. It covers choosing a minimum data set of indicators by PCA, network analysis, expert judgement or ecosystem-function grouping, setting the scoring direction and curve for each indicator, weighting and aggregating them, and then testing whether the index actually separates sites through sensitivity, fidelity, external and stability checks.

The material also explains the trade-offs the skill treats as decisive: the choice of minimum data set usually matters more than the aggregation formula, indices built from sample extremes are not comparable across studies, and an index chained from predicted soil properties can lose most of its signal. It points to R tooling for the steps, including the soilquality package and CRAN packages such as SQIpro and SQI, and warns about functions that prompt for input or need a fixed random seed.

The skill expects tabular soil measurements with one row per sample and R as the working language. Some methods depend on additional inputs such as a non-degraded reference soil, external yield data or pairwise expert comparisons.

## When your agent uses it

> Build, validate and interpret a Soil Quality Index (SQI) or Soil Health Index (SHI) from measured soil indicators — selecting a minimum data set, scoring indicators, weighting and aggregating them, and proving the index actually discriminates. Covers land-use and management comparison, degradation quantification, balanced-fertilisation diagnosis, structural equation modelling of soil health and its drivers, fuzzy rule-based assessment, and estimating indicators from machine learning and remote sensing. Use whenever the goal is a composite statement of soil condition rather than a map of one property. Triggers: "soil quality index", "SQI", "soil health index", "SHI", "minimum data set", "MDS", "indicator scoring", "soil health assessment", "soil degradation index", "SEM soil health", "soil quality indicators", "land use soil quality", "fuzzy association rules soil", "weighted additive index", "which indicators for soil quality".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ccarbajal16/soil-dsm-skills/tree/HEAD/plugins/dsm-soil/skills/soil-quality-index)
- [License: MIT](https://github.com/ccarbajal16/soil-dsm-skills/tree/HEAD/plugins/dsm-soil/skills/soil-quality-index)

## Features

- **Minimum data set selection:** Covers PCA, network-analysis and expert routes for choosing which indicators enter the index, with grouping by ecosystem function.
- **Indicator scoring curves:** Sets linear, sigmoidal and optimum scoring by indicator direction, including standardisation against a reference soil.
- **Weighting and aggregation:** Describes weighted additive and area-based aggregation and how to publish the weights used.
- **Index validation tests:** Checks sensitivity, fidelity to the full dataset, correlation with external criteria and ranking stability.
- **Structural equation guidance:** Explains when to use CFA, piecewise SEM or PLS path models for soil health and its drivers, and the circularity trap.
- **R implementation notes:** Lists the soilquality functions and their defaults, plus cautions about randomised network selection and console prompts.

## Good for

- Compare soil health under different land uses or farming practices
- Select a minimal set of soil indicators for a composite quality score
- Quantify soil degradation relative to a non-degraded reference site
- Test whether a soil health index separates sites into useful categories
- Diagnose balanced fertilisation needs using a weighted soil index

## Install

### Claude Code

This skill ships in the `dsm-soil` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ccarbajal16/soil-dsm-skills
/plugin install dsm-soil@soil-dsm-skills
```

Or copy only this skill to `~/.claude/skills/soil-quality-index`:

```sh
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-quality-index &&
cp -R "$tmp/plugins/dsm-soil/skills/soil-quality-index" ~/.claude/skills/soil-quality-index &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/soil-quality-index` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/soil-quality-index` to use it in every repository:

```sh
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-quality-index &&
cp -R "$tmp/plugins/dsm-soil/skills/soil-quality-index" ~/.agents/skills/soil-quality-index &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/soil-quality-index` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/soil-quality-index` to use it in every project:

```sh
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-quality-index &&
cp -R "$tmp/plugins/dsm-soil/skills/soil-quality-index" ~/.cursor/skills/soil-quality-index &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/soil-quality-index` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ccarbajal16/soil-dsm-skills.git --path plugins/dsm-soil/skills/soil-quality-index
```

Or copy the folder to `~/.gemini/skills/soil-quality-index` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/soil-quality-index`:

```sh
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-quality-index &&
cp -R "$tmp/plugins/dsm-soil/skills/soil-quality-index" ~/.copilot/skills/soil-quality-index &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/soil-quality-index` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ccarbajal16/soil-dsm-skills.git
```

Then copy `soil-dsm-skills/plugins/dsm-soil/skills/soil-quality-index` into your agent's skills folder as `soil-quality-index`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Soil quality index trigger?

It applies when the goal is a composite statement of soil condition, not a map of a single property, and triggers on terms such as soil quality index, SQI, soil health index, minimum data set and weighted additive index.

### Does Soil quality index need any tools or packages?

The skill's guidance assumes R. It refers to the soilquality package (version 2.3.0 or later) and to CRAN packages SQIpro and SQI for the conventional methods.

### Are SQI values comparable between studies?

Usually not, because scoring is relative to each study's own sample extremes. The exception is a ratio against a non-degraded reference soil, which the skill says can be compared across studies.

### Are there scripts or bundled files?

The skill folder contains only its SKILL.md file and no scripts.

### How do I install Soil quality index in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/soil-quality-index to use it in all your projects, or to .claude/skills/soil-quality-index 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 quality index 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 quality index?

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 quality index?

The closest alternatives to Soil quality index are Soil fertility mapping, Soil map validation, ML for soil prediction, Digital soil mapping workflow and Soc stock mrv.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Soil fertility mapping](https://ai-powered.com/skills/soil-fertility-mapping): Soil fertility mapping is an open-source agent skill for health and science.
- [Soil map validation](https://ai-powered.com/skills/soil-map-validation): Soil map validation is an open-source agent skill for health and science.
- [ML for soil prediction](https://ai-powered.com/skills/ml-for-soil-prediction): ML for soil prediction is an open-source agent skill for health and science.
- [Digital soil mapping workflow](https://ai-powered.com/skills/digital-soil-mapping-workflow): Digital soil mapping workflow is an open-source agent skill for health and science.
- [Soc stock mrv](https://ai-powered.com/skills/soc-stock-mrv): Soc stock mrv is an open-source agent skill for health and science.
- [Quantitative analysis](https://ai-powered.com/skills/quantitative-analysis): Quantitative analysis is an open-source agent skill for analytics and data.
- [Ensemble ML for soil](https://ai-powered.com/skills/ensemble-ml-for-soil): Ensemble ML for soil is an open-source agent skill for health and science.
- [Hybrid process ML soc](https://ai-powered.com/skills/hybrid-process-ml-soc): Hybrid process ML soc is an open-source agent skill for health and science.

---
Source: https://ai-powered.com/skills/soil-quality-index
