/dsm-soil:soil-map-validationfrom dsm-soil
Validates soil property maps and SOC predictions with cross-validation, accuracy metrics, uncertainty calibration, and aggregation to reporting support. Useful for digital soil mapping, carbon stock estimation, and MRV/carbon-credit reporting.
Ships in dsm-soil. 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.
Forged from the DSM knowledge wiki (12 sources, 2017–2026). The wiki remains the source of truth; this skill is the distilled, actionable version. Key wiki pages: validation-verification, accuracy-metrics, spatial-cross-validation, uncertainty-aggregation, sampling-design, spatial-autocorrelation, model-interpretability.
| Strategy | Use when | Watch out |
|---|---|---|
| Random k-fold (RCV) | quick screen, weak spatial structure | over-optimistic under spatial autocorrelation |
| Spatial CV (SCV) | spatially structured data; want conservative estimate | validates, does not fix spatial structure; disputed as a map-accuracy tool |
| LOOCV | small n; paired with pass/fail tests | high variance; still model-eval, not map-accuracy |
| Leakage-free / whole-mapping-process CV | covariates interpolated from the same samples | must rebuild kriged/IDW layers per fold |
| Design-based (probability sample) | certifying map accuracy for MRV | needs a probability sample up front |
| Population-based (exhaustive reference) | a dense/exhaustive "truth" raster exists; benchmarking designs/protocols | truth is often itself a model output → tests reproducibility, not field accuracy |
| Metric | Answers | Optimum |
|---|---|---|
| RMSE / MAE | error magnitude (data units) | 0 |
| ME (mean error) / Bias | systematic over/under-prediction | 0 |
| R² / MEC / NSE | skill vs predicting the mean (same Nash-Sutcliffe idea, three names) | 1 (can be negative = worse than the mean) |
| CCC / LCCC | agreement with the 1:1 line (catches high-R²-but-biased) | 1 |
| PICP | share of obs inside the nominal prediction interval | = nominal |
| Moran's I of residuals | leftover spatial structure | 0 |
Distilled from: Wadoux 2026 (MRV, aggregation, PICP), Wadoux 2019 (accuracy plots, δ),
Jafari 2026 (residual Moran's I), Shi 2026 (leakage-free CV), Lai 2026 (temporal MEC≈0),
Ma 2026 (fit≠skill, NSE), Hengl 2026 & Tian 2025 (CCC, prediction intervals, extrapolation
risk, ~66% aggregation), Rohmer 2024 (SHAP for uncertainty), Sarkar 2025 & Carbajal 2025
(model choice regime-dependent; negative R²), Bouasria 2023 (learning-curve sample sizing,
report metric SD not single runs, define R² exactly, population-based evaluation, cLHS
target-leakage bug). Full citations in the wiki sources/.
Portable build from the DSM knowledge wiki (the source of truth). Obsidian cross-references were flattened for standalone use; regenerate with build.ps1.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ccarbajal16/soil-dsm-skills --plugin dsm-soil12 skills in this plugin
/digital-soil-mapping-workflowRun a digital soil mapping (DSM) project end to end — from framing the target and assembling scorpan covariates, through sampling design, model selection, handling spatial autocorrelation, training, and producing a map with calibrated uncertainty. Use when planning or reviewing any project that predicts a soil property (SOC, texture, pH, …) across space (and optionally time) from environmental covariates. Triggers: "digital soil mapping", "DSM", "predict soil property from covariates", "soil map", "scorpan", "which model for soil mapping", "covariates for soil", "map SOC / soil carbon"./ensemble-ml-for-soilDecide whether to combine machine-learning models at all, and if so how — by measuring the gain available before building any combiner. Covers the ambiguity/diversity ceiling, the weighting spectrum (simple average, R²-weighted, Bates–Granger, AIC/BIC, NNLS/SuperLearner, Granger–Ramanathan, learned meta-models, attention, per-pixel selection), out-of-fold stacking under spatial CV, cross-fitting the combiner, voting for classification, and significance testing of the margin. Use when someone proposes an ensemble, reports an ensemble gain, or asks whether their averaging scheme is "too simple". Triggers: "ensemble machine learning", "model stacking", "stacked generalisation", "SuperLearner", "meta-learner", "meta-model", "weighted average ensemble", "R2-weighted ensemble", "simple average ensemble", "Bates-Granger", "Granger-Ramanathan", "NNLS weights", "non-negative least squares", "caretStack", "mlr3pipelines stacking", "voting ensemble", "hard voting", "soft voting", "blending", "bagging vs boosting vs stacking", "ensemble gain", "does stacking help", "combine RF and XGBoost", "which model to combine", "base learner diversity", "error correlation", "out-of-fold predictions", "level-one dataset", "landmap", "MACHISPLIN", "spatial ensemble", "per-pixel model selection", "combine my model with SoilGrids"./hybrid-process-ml-socDesign and build hybrid soil-organic-carbon models that fuse a process-oriented model (RothC / CENTURY / Millennial) with machine learning (Random Forest / QRF) to predict SOC stock in space AND time — getting ML's spatial accuracy together with the process model's physically-plausible temporal dynamics. Use when a task needs SOC *change* over time (not just a static map), when pure ML gives implausible temporal trends, or when integrating mechanistic knowledge into data-driven soil mapping. Triggers: "hybrid soil carbon model", "process + machine learning", "POML", "space-time SOC", "RothC + random forest", "physically plausible SOC prediction", "knowledge-guided ML for soil"./ml-for-soil-predictionChoose, tune, and reason about machine-learning models for predicting soil properties (SOC, texture, pH, …) — Random Forest, Quantile Regression Forests, gradient boosting, and deep learning — including per-pixel uncertainty and interpretability. Use when the task is the ML modelling craft itself: which algorithm, how to tune it, how to get honest uncertainty, whether deep learning is worth it, why an ML model underperforms. Triggers: "random forest for soil", "QRF", "which ML model", "deep learning soil", "CNN / ANN soil carbon", "hyperparameters", "feature importance / SHAP", "prediction interval", "ML model gives bad R²"./rothc-temporal-modellingSet up, initialize, calibrate, validate, and interpret the RothC (Rothamsted Carbon) model — and CENTURY-family process models — for simulating soil organic carbon stock and its change over time. Use when modelling SOC dynamics under management or climate scenarios, initializing RothC pools (spin-up), calibrating decay constants, choosing carbon inputs, adapting RothC to a region/practice, or judging whether a RothC result is trustworthy. Triggers: "RothC", "CENTURY / CenW", "soil carbon model", "carbon pools DPM/RPM/BIO/HUM/IOM", "spin-up / initialize SOC pools", "calibrate RothC", "SOC under climate change", "carbon input estimation", "first-order decay"./soc-stock-mrvQuantify, report, and verify soil-organic-carbon stock and its change over time for carbon markets / MRV (Monitoring, Reporting, Verification) — computing SOC stock, estimating change and its uncertainty at the field/project support, and applying the uncertainty deduction that determines creditable tons. Use when a task involves soil carbon crediting, an MRV framework (VM0042, VT0014), SOC stock-change detectability, or reporting SOC with defensible uncertainty. Triggers: "SOC MRV", "soil carbon credits", "carbon farming verification", "SOC stock change", "uncertainty deduction", "how much SOC can we credit", "monitoring reporting verification soil carbon".Other plugins' skills for the same job