agentleFS
SteadfastAsArtSteadfastAsArt/geoscience-skills/flopy/SKILL.md

flopy

Skill67 starsChanged 10 months agoMITView on GitHub

Build, run, inspect and diagnose MODFLOW groundwater flow models with FloPy. Use for aquifer discretization, recharge and boundary conditions, hydraulic heads, groundwater budgets and MODFLOW 6 output; use Pastas for statistical head time series.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep MODFLOW 6 packages separate from older MODFLOW model/package APIs.

    line 29
  2. Distinctive:

    Write inputs, run the declared executable, and fail if it reports failure.

    line 37
  3. Very specific:

    Run scripts/confined_flow.py in an empty output folder:

    line 45
  4. Distinctive:

    Keep the input deck, solver/listing output, heads, cell budget and a summary of units, boundary assumptions, executable and package …

    line 61
  5. Distinctive:

    Read the FloPy documentation for package arguments and MODFLOW 6 documentation for governing equations and solver diagnostics.

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

FloPy

Produce a reproducible groundwater model and a checked water budget. FloPy writes and reads MODFLOW files; solving also requires a compatible MODFLOW executable.

Inputs and choices

  • Establish horizontal CRS, vertical datum, length/time units, layer tops/bottoms, active cells, hydraulic properties, stresses and observation uncertainties.
  • Head is an elevation relative to a datum. Depth below a well collar must first be converted with the collar elevation; a LAS depth curve is not a head series.
  • Choose steady or transient conditions from the question and stress history. Distinguish hydraulic conductivity (length/time), transmissivity (length²/time), recharge (length/time) and pumping (length³/time; extraction is negative).
  • Keep MODFLOW 6 packages separate from older MODFLOW model/package APIs. Use an isolated project environment and record the executable version and origin.

Workflow

  1. Audit geometry, layer ordering and boundary coverage before assigning values.
  2. Build the simulation, temporal discretization, solver, flow model and packages. Specify convertible/confined cells deliberately, with storage for transients.
  3. Write inputs, run the declared executable, and fail if it reports failure.
  4. Inspect head/budget files and listing convergence; mask dry/inactive sentinel values before statistics. Do not treat a successful process as calibration.
  5. Compare observations with uncertainties, inspect budget discrepancy and run grid/time-step sensitivity. Hold out wells or periods before tuning parameters.

Small executable benchmark

Run scripts/confined_flow.py in an empty output folder:

python confined_flow.py --workspace ./flow-check --exe /path/to/mf6

The script models a synthetic confined strip: 11 cells, each 10 m long and 10 m wide, 20 m thick, K = 1 m/day, with fixed heads of 10 and 9 m at the end cell centres. The 100 m separation implies a linear head profile and a flow of 2 m³/day. The layer spans elevations -20 to 0 m relative to an arbitrary local datum, so both imposed heads are above the aquifer top. It checks the head profile and flow against actual MODFLOW output. No recharge, pumping, storage or heterogeneous calibration is implied by this benchmark.

Outputs and interpretation

Keep the input deck, solver/listing output, heads, cell budget and a summary of units, boundary assumptions, executable and package versions. Report residuals and uncertainty separately from parameter plausibility and identifiability.

Read the FloPy documentation for package arguments and MODFLOW 6 documentation for governing equations and solver diagnostics.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.