pygimli

pygimli is a skill for Claude Code, Codex from SteadfastAsArt/geoscience-skills. It costs 115 tokens per session (1,385 once invoked), scanned A, original, MIT.

A Python framework for geophysical modelling and inversion, where measurements are used to estimate underground properties. It supports electrical resistivity, seismic refraction, induced polarization, ground-penetrating radar, and finite-element meshes.

In plain words
What is it for?
Use it to load and display survey data, run electrical-resistivity or seismic-refraction inversions, create meshes, and work with other listed geophysical methods.
Why use it?
It helps turn field measurements into underground models and visual results rather than leaving them as raw readings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to load and display survey data, run electrical-resistivity or seismic-refraction inversions, create meshes, and work with other listed geophysical methods.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/steadfastasart/geoscience-skills/pygimli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SteadfastAsArt/geoscience-skills --skill pygimli
Clone the repo
git clone --depth 1 https://github.com/SteadfastAsArt/geoscience-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin pygimli/plugin install pygimli after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pygimli

README.md
[![agentmods](https://agentmods.dev/badge/skills/steadfastasart/geoscience-skills/pygimli/github.svg)](https://agentmods.dev/skills/steadfastasart/geoscience-skills/pygimli)
Your own site
<a href="https://agentmods.dev/skills/steadfastasart/geoscience-skills/pygimli"><img src="https://agentmods.dev/badge/skills/steadfastasart/geoscience-skills/pygimli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pygimli

Your own site · 80×15
<a href="https://agentmods.dev/skills/steadfastasart/geoscience-skills/pygimli"><img src="https://agentmods.dev/badge/skills/steadfastasart/geoscience-skills/pygimli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,385 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.01385
Opus 5 $0.00057 $0.00692
Sonnet 5 $0.00023 $0.00277
Haiku 4.5 $0.00012 $0.00138

Measured 10d ago against content hash a08ffaadc556, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pygimli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/ert_inversion.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pygimli/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pyGIMLi - Geophysical Inversion

Quick Reference

import pygimli as pg
from pygimli.physics import ert, srt

# Load ERT data
data = ert.load("survey.ohm")

# Invert
mgr = ert.ERTManager(data)
model = mgr.invert(lam=20, verbose=True)

# View result
mgr.showResult()

Key Classes

Class Purpose
pg.Mesh Finite element meshes
pg.DataContainer Survey data and geometry
pg.Inversion Base inversion framework
ert.ERTManager ERT processing and inversion
srt.SRTManager Seismic refraction inversion

Essential Operations

Load and View ERT Data

import pygimli as pg
from pygimli.physics import ert

data = ert.load("survey.ohm")
print(f"Measurements: {data.size()}")
ert.showData(data)  # Pseudosection

ERT Inversion

from pygimli.physics import ert

mgr = ert.ERTManager(data)
model = mgr.invert(
    lam=20,          # Regularization
    verbose=True
)
mgr.showResult()
resistivity = mgr.model

Seismic Refraction

from pygimli.physics import srt

data = srt.load("traveltimes.sgt")
mgr = srt.SRTManager(data)
model = mgr.invert(lam=30, zWeight=0.3)
mgr.showResult()

Create Custom Mesh

import pygimli as pg
from pygimli.physics import ert

data = ert.load("survey.ohm")
mesh = pg.meshtools.createParaMesh(
    data.sensors(),
    quality=34.0,
    paraMaxCellSize=5,
    boundary=2
)
pg.show(mesh)

Save and Export

# Save mesh and model
mgr.mesh.save("result_mesh.bms")
pg.save(model, "resistivity_model.vector")

# Export to VTK for ParaView
mgr.mesh.exportVTK("result", mgr.model)

Array Types

Code Array
wa Wenner-alpha
wb Wenner-beta
dd Dipole-dipole
pd Pole-dipole
pp Pole-pole
slm Schlumberger
gr Gradient

Data Formats

Format Extension Description
BERT/pyGIMLi .ohm Unified data format
Syscal .txt IRIS export
Res2DInv .dat 2D inversion format
ABEM .ohm ABEM Terrameter
SRT .sgt Seismic traveltimes

Read the full file on GitHub · 178 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 178 lines · 115 tokens per session scan A a08ffaadc556

Subscribe to this mod's changes

pygimli is a skill published in the GitHub repository SteadfastAsArt/geoscience-skills (57 stars, last pushed 5mo ago), licensed MIT. It adds 115 tokens to every session and 1,385 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.