Scikit Gstat logo

Scikit Gstat

Community
SteadfastAsArt
scikit-gstat

Estimate and diagnose variograms, perform ordinary kriging, and validate spatial interpolation with SciKit-GStat. Use for empirical or directional variograms, covariance-model comparison and kriging prediction/variance; use PyKrige or GSTools when the task requires universal kriging or external drift.

Overview

PublisherSteadfastAsArt
Repositorygeoscience-skills
Skill namescikit-gstat
Stars
75
Forks
9
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by SteadfastAsArt on GitHub. Read the source before you install it.

Installation

Install the Scikit Gstat AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/SteadfastAsArt/geoscience-skills/tree/main/scikit-gstat
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SteadfastAsArt/geoscience-skills.git /tmp/geoscience-skills
mkdir -p .claude/skills
cp -r /tmp/geoscience-skills/scikit-gstat .claude/skills/scikit-gstat
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Scikit Gstat in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Scikit Gstat on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Scikit Gstat is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SciKit-GStat

Fit spatial dependence and produce ordinary-kriging estimates with their conditional variances. A fitted variogram is not itself evidence of predictive accuracy or calibrated uncertainty.

Inputs and conventions

Use coordinates shaped (n, 2) and one scalar observation per location. Record the coordinate reference system, distance units, measurement units and sampling support. For a regional Euclidean-distance model, project longitude/latitude into a suitable distance-based CRS before fitting. Resolve trends and repeated locations explicitly; do not silently perturb duplicate coordinates.

Mask missing measurements consistently in coordinates and values. Preserve their identity in the source data; unknown measurements are not zeros. Variances, sills and nuggets have squared measurement units. SciKit-GStat's named sill is the partial sill: the plateau is sill + nugget. Its effective_range uses the library's model-specific convention, not a universally interchangeable correlation length.

Ordinary kriging example

This runnable example uses synthetic measurements and local Cartesian metres. For real work, replace the inputs and establish an appropriate model and support.

python
import numpy as np
import skgstat as skg

rng = np.random.default_rng(13)
coords = rng.uniform(0, 100, (90, 2))  # synthetic local x/y, metres
values = np.sin(coords[:, 0] / 25) + np.cos(coords[:, 1] / 30)
values += rng.normal(0, 0.08, len(coords))  # arbitrary measurement units

grid_coords = np.array([[30., 30.], [50., 50.], [70., 60.]])
V = skg.Variogram(coords, values, model="spherical", n_lags=10,
                  maxlag="median", use_nugget=False)
ok = skg.OrdinaryKriging(V, min_points=3, max_points=12)
predictions = ok.transform(*grid_coords.T)
variance = ok.sigma.copy()  # variance for the MOST RECENT transform, not stddev
supported = np.isfinite(predictions) & np.isfinite(variance)
print(predictions, variance, supported)

transform returns only predictions. return_variance does not enable tuple output. Copy ok.sigma before the next transform, including when processing chunks. Inadequate neighbourhoods may produce NaN; report support and preserve those gaps. Conditional kriging variance excludes uncertainty in fitted variogram parameters, trend choice and sampling bias.

Fit diagnostics and validation

Read parameters by name using V.describe(short=True). Matérn and stable models place a smoothness/shape parameter before their nugget in V.parameters. Evaluate a fitted model with V.transform(lags) so all fitted parameters are retained. See model conventions for parameter meaning, effective ranges and diagnostic examples.

Compare variogram-bin RMSE only as an in-sample diagnostic. For predictive assessment, declare spatial groups or survey holdouts before fitting; refit the variogram and every preprocessing step using each training fold only. Follow the training-only holdout example for this path. OrdinaryKriging is not a scikit-learn estimator that can be passed directly to cross_val_score. Report unpredicted targets alongside RMSE; do not improve a score by quietly dropping poorly supported locations.

DirectionalVariogram can compare azimuths, but different directional ranges alone do not establish significant anisotropy. Inspect pair counts, trends and sampling geometry before changing the covariance or distance model.

Alternatives and outputs

Use PyKrige/GSTools for drift-aware kriging, GeostatsPy for GSLIB-style simulation, and Verde for gridding without a variogram model. SciKit-GStat's built-in interpolator is ordinary kriging; its adapters do not make every object scikit-learn-compatible.

Retain prediction locations, units/CRS, missing/support masks, fitted parameters, training partitions and input provenance. Check outputs against held-out observations and a training-only baseline. Label uncertainties by what they cover.

Bundled diagnostic script

Resolve scripts/variogram_analysis.py relative to this skill. It reads explicitly selected CSV columns, removes rows missing any selected field, and rejects infinities, duplicate locations and constant values. Keep the original CSV to retain dropped-row identities. It compares in-sample fits and directional diagnostics; it does not run predictive validation.

bash
python /path/to/scikit-gstat/scripts/variogram_analysis.py samples.csv \
  --x easting --y northing --z porosity --n-lags 15 --maxlag median \
  --output variogram-results

The nugget is fixed at zero by default; --use-nugget fits it. A numeric --maxlag below 1 means a fraction of maximum pair distance; larger values use coordinate units. JSON preserves effective range, partial sill, nugget and any shape parameter separately. Plots evaluate all fitted parameters. Supply the CRS and units in the surrounding analysis record; this script does not infer or transform them. Check the exported JSON and figures before interpretation.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Scikit Gstat AI skill do?

Estimate and diagnose variograms, perform ordinary kriging, and validate spatial interpolation with SciKit-GStat. Use for empirical or directional variograms, covariance-model comparison and kriging prediction/variance; use PyKrige or GSTools when the task requires universal kriging or external drift.

Why use Scikit Gstat on TypingMind?

Because you install it once and use it with any model. Scikit Gstat is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Scikit Gstat in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/SteadfastAsArt/geoscience-skills/tree/main/scikit-gstat. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Scikit Gstat?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Scikit Gstat?

As many as you like. As long as a model supports skills, you can use Scikit Gstat with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Scikit Gstat AI skill free?

Yes. It is published on GitHub by SteadfastAsArt under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇