Skip to content
scollisPublic

About

A repository for AI agent skills mainly based on Anthropic's Claude

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

ai-skills

Agent skills for atmospheric and radar science, authored by Scott Collis with Claude (Anthropic) and used with Claude Science.

A skill here is a directory holding a SKILL.md — prose an agent loads as reference — and usually a kernel.py of helper functions that load alongside it. The point of committing them is not the code volume; it is that the factual claims are checked. Bucket names, cost constants, and layout quirks go stale quietly, so the test suites in tests/ re-verify them against live services and the offline suite refuses documentation that has drifted from its own code.

What is here

skill what it does
nexrad-aws-2025 NEXRAD on AWS after the 2025 migration: bucket map, VCP/SAILS/AVSET detection, ARCO access primitives
nexrad-cloud-router Chooses among the four NEXRAD access paths on measured cost, and names the skill to load per step
nexrad-cost-calibration Re-measures those cost constants for the local machine and link
nexrad-arco ARCO Icechunk/Zarr store to Py-ART; QVPs, METAR overlays, animations
nexrad-radar-gcs GCS mirror fallback when AWS is blocked, plus PPI / dual-pol plotting helpers

The first tranche — NEXRAD cloud access and routing — chosen because the 2025 bucket migration broke most existing code and these five cross-reference each other.

Py-ART processing

skill what it does
pyart-foundations The Radar object, scan anatomy and split-cut handling, field naming, the extract_sweeps sweep_number trap, IO and xradar interop. Router for the rest
pyart-mapping Projection semantics, the PlateCarree-vs-Geodetic datum trap, cone-of-silence georeferencing verification, geodesic range rings, grid_origin
pyart-gatefilter-qc GateFilter semantics and its five silent traps, marginal cost per criterion, measured downstream sensitivity
pyart-velocity-dealias The three dealiasers, velocity texture, Nyquist handling, reference-velocity paths and their unbounded extrapolation
pyart-dualpol-phase KDP method selection on measured cost and plausibility, PhiDP unfolding, attenuation correction, the LP solver crash
pyart-gridding grid_from_radars, radius-of-influence selection by holdout cross-validation, weighting choice, multi-radar and GateMapper
pyart-retrievals QPE, echo classification, hydrometeor ID, the dependency order the errors do not name, CAPPI/QVP/CFAD products

Measured against Py-ART 2.2.5 on two radar classes, because most Py-ART surprises come from assuming one when you have the other: NEXRAD WSR-88D (KIWA 2026-08-20 04:14 UTC, VCP 212 with SAILSx1 — 19 sweeps over 14 unique elevations, split cuts, per-sweep Nyquist, no normalized_coherent_power) and a research C-band (ARM SGP C-SAPR, MC3E 2011-05-20 11:29 UTC — 17 tilts one sweep per elevation, uniform 16.52 m/s Nyquist, NCP present).

ARM VAPs

skill what it does
cmac-vap The ARM CMAC 2.0 VAP: config system, fuzzy gate classification, sounding ingest, clutter retrieval

cmac-vap is deliberately not part of the Py-ART tranche. CMAC is a consumer of Py-ART, so what it teaches about idiomatic Py-ART usage — call order, which guards a production VAP actually needs — is folded into the pyart-* skills, while its own machinery (config dicts, membership functions, VAP conventions) lives only in cmac-vap. A Py-ART user should never have to install scikit-fuzzy to follow a pyart-* skill; test_structure_pyart.py enforces that boundary.

Blender scenes and cloud rendering

skill what it does
blender-remote-mcp Driving Blender on the Mac through the MCP connector: headless jobs, async renders, file transfer, Blender 5.x API gotchas
blender-engineering-asset Dimensionally accurate procedural hardware assets (radars, met stations, aircraft) and verifying them by silhouette overlay
blender-landscape-realism Geo-referenced site scenes in Cycles: lidar/NAIP terrain, haze, materials, vegetation, radar siting checks
blender-arm-instruments ARM instruments as standalone assets from the ARM handbooks: PDF text/figure extraction, the shared build harness, previews, orbit queue, placing them in site scenes
c850-blender-aircraft The ARM AAF Challenger 850 (N850RJ): APM-verified dimensions, glazing and livery, probe placement rules, animation props
cm1-cloud-simulation Building and running CM1 on Apple silicon: supercell recipe with stretched grid, cumulus LES (BOMEX, towering Cu), memory guards, known blow-ups
cm1-clouds-to-blender CM1 output to split-species OpenVDB, per-species physical optics within Cycles' closure limit, placement, cameras, timelapses
blender-cloud-lightning Lightning in a CM1 storm: flash sites from graupel and updraft, in-cloud glow as skin emission, cloud-to-ground bolts, timing

Workflow notes from the DERECHOS / "ARM on the FARM" Blender scenes (Blender 5.2, M-series Macs, Metal). Numbers here are observations with dates in the source runs, not test-checked facts; no kernel.py ships with this tranche.

ARM data standards

skill what it does
arm-netcdf-standards The ARM Data File Standards (DOE/SC-ARM-15-004 v1.3) made operational: filename and datastream construction, the base_time/time_offset/time triple, coordinate and location variables, required attributes, bit-packed QC, state and source variables, global attributes. Ships arm_standards_check.py, a rule engine that cites the section behind every finding, and helpers that write a compliant file rather than retrofit one

Calibrating this one against released ARM data changed it. Run against one file from each of 143 local datastreams, five rules turned out to be wrong rather than the files — §6.1.4 makes units not recommended on a bounds variable, which alone was 55 false positives — and the survivors are deviations the standard itself records as retired practice: units = "unitless", valid_min used as a QC limit, "Quality check results on field:". So the skill documents what ARM's own files do as well as what the document says, and the checker carries two profiles: what the ADC's published files actually satisfy, and the literal reading of §6.7.1. A released file is not a safe compliance template, which is the sort of thing you only learn by measuring.

ARM instrumentation

Every instrument ARM deploys gets a handbook written by its instrument mentor. This tranche turns those handbooks into loadable skills — 128 instruments, nested under one directory:

skill what it does
arm-instruments The index and access layer: ARM's data-source catalog API (the only complete enumeration — arm.gov/capabilities/instruments is a JS shell and there is no sitemap), the two URL patterns handbooks are filed under, and helpers resolving an instrument code to its handbook, datastreams and verified example. Ships catalog.csv, all 594 ARM instrument classes
arm-instrument-<code> × 128 One per instrument: measurement principle, reported quantities with ranges and uncertainties, specifications, calibration, embedded-QC coverage, the variable inventory of a real file, and the known artifacts and failure modes the mentor documented — 1519 of them across the tranche

Coverage by category: Aerosols 36, Cloud Properties 29, Radiometric 29, Airborne 25, Surface Meteorology 17, Atmospheric Profiling 11, Surface/Subsurface 8, Atmospheric Carbon 8, Other 5, Ocean 2.

Credit. These are derived references; the instrument knowledge in them belongs to the ARM instrument mentors who wrote the handbooks. 100 mentors are credited across the tranche, each in the Credit section of the skills derived from their handbook, with the DOE report number and a link. 5 handbooks are facility-issued with no individual author on the cover and say so. test_credits_the_handbook_authors fails the build if a skill drops its attribution, and catalog.csv carries an authors column so the credit survives outside the prose.

Each skill is grounded in two places at once and says which claim came from where: the handbook (page-cited, hb p. 17) and an example file actually pulled from ARM Live and opened with ACT. The rule is that the handbook is design intent and the file is current truth — where they disagree, the skill says so instead of picking one. test_structure_arm_instruments.py enforces the agreement that can be checked offline: a variable named in the prose must exist in the shipped example_inventory.json, the handbook URL must match the catalog record, a hb p. N citation must be inside the handbook's page count, and the variable and QC counts in the table must equal the inventory's. test_live_arm_instruments.py re-checks the three external facts on a schedule — the catalog API still answers, the PDF is still there, ARM Live still serves the example.

Two honesty constraints came out of building it. 6 of the 128 skills could not be verified against a file — aircraft video averaging 8.7 GB per file, MPEG products, datastreams that exist only at level a0 which ARM Live will not serve, files ARM Live lists but will not transfer — and those ship with the reason in place of a data section rather than an inventory they could not measure. And one handbook can cover several instrument classes (29 of these skills share a document; DOE/SC-ARM/TR-113 covers kasacr, wsacr and xsacr jointly), so those carry a scope note saying which numbers are family-level. tap is the sharpest case: ARM links it to the SGP Aerosol Observing System handbook, which mentions TAP only in passing, and its skill says so.

The artifacts section is the reason these are worth shipping. A variable name tells you what a number is; only the mentor tells you that rain, fog or dew on the ECOR gas analyser's optical window corrupts latent heat flux (hb p. 17), or that the MFRSR's 940 nm water-vapour channel cannot be Langley-calibrated the way the other six are (hb p. 19).

tools/arm_instrument_build/ holds the pipeline that produced them, so the next instrument is a re-run rather than a rewrite.

ARM value-added products

ARM does not only publish instrument data. It publishes value-added products - retrievals and quality-controlled composites computed from instrument datastreams, each documented in its own technical report. This tranche is 80 of them, built with the same pipeline and the same grounding rule as the instrument skills:

skill what it does
arm-vaps The index: coverage by category, the honesty markers explained, and how to route between a product and its input instrument
arm-vap-<code> × 80 One per product: the retrieval algorithm, declared input instruments, reported quantities, retrieval settings, embedded-QC coverage measured on a real file, the variable inventory, and the documented conditions where the retrieval is invalid or biased — 1029 of them across the tranche

ARSCL, KAZR-ARSCL, MWRRET, QCRAD, MICROBASE, LASSO, VARANAL, RADFLUXANAL, PBLHT, the AOD products, the Raman and Doppler lidar profile products, the CMAC radar products. 151 developers and mentors are credited from the report covers, in a Credit section that cites the technical report rather than the skill.

The rule these carry that the instrument skills do not: a VAP inherits every limitation of its inputs. Each skill names its declared input classes and links to arm-instrument-<code> for them, because when a retrieved value looks wrong the input instrument and its DQRs are the first place to look, not the algorithm.

Three honesty markers appear in these files, each enforced by a test. Scope of this report where a report covers a sibling product — arscl and kazrarscl share a 2001 MMCR-era document that predates the KAZR implementation entirely, and four other pairs share one report. Extraction coverage where the report is longer than the extractor's 110,000-character window — LASSO is 171 pages of which 60 were read, ARMTRAJ 176 of which about a quarter — so those skills mark their lists as lower bounds rather than inventories. And no example verified for the 6 products that could not be opened: two served only at level a0, two serving 0.8–2.4 GB files, one truncated tar, one HDF error on two separate files.

One product was rejected rather than published on the wrong document: aod, whose linked report turned out to document the SAS-He AOD product rather than the MFRSR/NIMFR one it serves. arm-vap-aod-mfrsr and arm-vap-aod-nimfr carry the right report.

Scattering forward models

skill what it does
rustmatrix-scattering T-matrix scattering for nonspherical hydrometeors: Scatterer, polarimetric observables, PSD tabulation, orientation averaging, HydroMix. Carries the axis-ratio convention the upstream docs invert, the solver's convergence envelope, and the paths that return silently wrong numbers
rustmatrix-spectra The Doppler and polarimetric spectra engine: SpectralIntegrator, fall-speed presets and their real validity limits, turbulence and beam broadening, receiver noise, BeamIntegrator over a scene

rustmatrix is by Prof. Stephen W. Nesbitt (University of Illinois Urbana-Champaign) — a Rust-backed replacement for the numerical core of pytmatrix, adding multi-species mixtures, spectral polarimetry, and beam-pattern integration, and growing out of his ATMS 410 Radar Meteorology course and Radar Meteorology: A First Course (Rauber & Nesbitt, 2018). These two skills document it; they do not vendor it.

Measured against rustmatrix 2.2.0 on macOS arm64 / CPython 3.13. The library itself validated well — Mie parity at 7.7e-08 across six bands with zero convergence failures at default settings, exact reflectivity additivity in HydroMix, a spectral-to-bulk round-trip closing to 1 ulp. What the skills are for is the other half: several of rustmatrix's traps produce wrong numbers rather than exceptions, so each is documented with the measured magnitude — a scatter table loaded at the wrong wavelength costs 30 dB in Ka-band Zh, an even n_alpha in orientation averaging aliases by up to 2.3 dB and does not improve with refinement, and passing a drop-shape relation directly to axis_ratio inverts the sign of Zdr with no error at all. Solver limits raise pyo3_runtime.PanicException, which subclasses BaseException, so except Exception misses them.

Two skills referenced by the NEXRAD tranche are not yet published here: nexrad-site-rainfall and nexrad-area-over-threshold. They belong to a later tranche; until then those cross-references point at nothing in this repo.

ARM data access with ACT

skill what it does
act-arm-live ARM Live Data Webservice via act-atmos: datastream naming, the server-side concatenate/subset mod endpoint, DOI citation lookup, read_arm_netcdf. The access layer the 232 instrument and VAP skills assume
act-qc ARM's embedded QC flags: the bit-packed-to-CF cleanup everything depends on, the ds.qcfilter accessor, Data Quality Report ingestion, QC summary variables
act-retrievals Derived quantities from ARM data: sonde precipitable water, CAPE/CIN, Liu-Liang and Heffter PBL height, lidar PBL and Sobel cloud base, Doppler-lidar VAD winds, instrument corrections
act-plotting The ACT Display family: TimeSeriesDisplay with QC block plots and day/night shading, SkewTDisplay, WindRoseDisplay, DistributionDisplay

KDP physics and retrieval

skill what it does
kdp-physics-anchor Physics-first constraints for designing or scoring a KDP retrieval: the T-matrix-verified separability, the predicted KDP-core / Z-core width ratio as a falsification test, verified drop-shape polynomials
kdp-structure-priors Priors for the shape, size, amplitude and sign of KDP structures — columns, cores and feet, dendritic-growth bands, negative KDP aloft — with the artifacts that imitate each
kdp-retrieval-cautionary-tale Failure modes and physical acceptance tests. Documents an oversmoothed, physically impossible field that passed every internal check

Radar analysis and event detection

skill what it does
nexrad-site-rainfall Detect and quantify rainfall over a fixed ground site from Level II: event tabulation, Marshall-Palmer Z-R, accumulation over weeks to months
nexrad-area-over-threshold Storm coverage and organisation rather than point intensity: area exceeding rain-rate bins, area-over-threshold time series
nexrad-decade-archive Multi-year Level II to analysis-ready Zarr: case screening, codec choice on constrained filesystems, bit-exact int16 round-trip verification, resumable checkpointing
radar-cell-tracking Convective cell tracking with tobac: feature detection, watershed segmentation, trackpy linking, multi-threshold ladders, the weighted_diff denominator
radar-advection-interpolation Temporal interpolation between volumes by TV-L1 optical-flow advection on native gate geometry
gpm-storm-targeted-radar-fetch GPM DPR overpasses as the storm detector over a ground-radar domain, then fetch only the matching volumes

MRMS

skill what it does
mrms-hourly-conus The CONUS hourly analysis as analysis-ready Zarr (dynamical.org Icechunk store): gauge-corrected and radar-only QPE, precipitation type, FLASH ratios
mrms-case-detection Find heavy-rain hours over a fixed site from gauge-corrected QPE, confirm against ASOS / mPING / CoCoRaHS / HADS, then retrieve and classify the radar volumes

Land-atmosphere exchange

skill what it does
domain-et-inference Inferring evapotranspiration over large domains: the four method families, their disagreement envelope, and which to trust where
cropland-et-measurement Measuring ET over managed croplands: eddy-covariance corrections, the energy-balance closure gap and its four residual conventions, flux footprints and tower-to-pixel bias

Field-campaign workflows

skill what it does
arm-site-week-survey Survey a week at an ARM site across instruments before committing to a case
arm-dualpol-calibration Dual-polarisation calibration checks on ARM scanning radars
arm-bnf-storm-case-study Bankhead National Forest storm case study, end to end
severe-weather-event-context Place a severe event in climatological context: storm reports and damage paths, HRRR mesoscale environment, moisture back-trajectories, river-gauge response

DERECHOS campaign

Regional reference and tested data access for the proposed DOE ARM Mobile Facility deployment to the Iowa-Illinois Midwest. M1 is the South East Research Farm (SERF), Crawfordsville; S1 is the Muscatine Island Research Farm (MIRF) — the 2026 reassignment swapped the two designations.

skill what it does
derechos-campaign The campaign reference: hypotheses H1-H4, science questions SQ1-SQ7, the science traceability matrix, the array components and site roles
derechos-data-sources Tested regional access: ARM Live, IEM mesonet, Illinois Climate Network, KDVN and KLOT, CropScape, AmeriFlux, Sentinel-2, mPING, HRRR. Carries the site coordinates and KDVN geometry
derechos-soil-properties ISUSM soil moisture and temperature in full including SoilVue profiles, a network-wide sensor health audit, AWDB/SCAN, and SSURGO properties
derechos-hydrology Stream gauges, river stage and streamflow: USGS NWIS and the OGC API, NWPS flood categories, Iowa Flood Center, National Water Model
derechos-landuse-imagery Land cover and imagery: Planet, NASA Earthdata and HLS, Cropland Data Layer, NLCD, LCMAP
derechos-domain-et-data Evapotranspiration and surface flux over the domain: 31 ranked sources with the traps that silently return wrong ET
derechos-storm-database Severe-storm and derecho report databases: NCEI Storm Events, SPC WCM and the derecho archive, IEM local storm reports, damage paths
derechos-iowa-dot Iowa DOT road-weather: RWIS pavement condition live and archived, 511, plow AVL and imagery, crash records, traffic counts
derechos-iop-scorecard Executable IOP scorecard: scores a forecast per science question, assigns an archetype, and makes a GO/HOLD call against the IOP budget

ARM NSA site (Utqiaġvik)

Site knowledge for the DOE ARM North Slope of Alaska observatory and its neighbours. At NSA the main facility is C1, and the X-band precipitation radar sits on the BARC building 1.90 km west of it.

skill what it does
arm-nsa-site Site history from 1997, every facility code with the coordinate to trust (E10 is a catch-all, not a site), a most-recent-file position audit of 162 datastreams, instrument classes per facility, campaigns, the Kollias 2019 radar-calibration offsets, and data DOIs crediting the mentors
utqiagvik-research-assets 37 non-ARM assets with sourced coordinates: NOAA GML BRW, NWS, USCRN, NSF NEON BARR, NGEE Arctic, CALM, the BEO, UAF sea-ice sites, GNSS, AERONET
utqiagvik-site-map OSM and TIGER layers, Esri imagery, and five asset-map variants (overview or close-ups; vector, imagery, grey or dark) with a distance triangle; records the cartopy PlateCarree latitude trap under PROJ 9.8 (about 23 km at 71 N)

Numerical practice

skill what it does
backend-swap-validation Validate replacing a hand-rolled numerical kernel with a library implementation behind an optional-dependency engine layer

Using a skill

With Claude Science, load by name and the helpers arrive in your kernel:

skill("nexrad-cloud-router")
plan = plan_analysis("three month base tilt series", site="KLOT", n_volumes=2000)
print(format_plan(plan))

Without it, SKILL.md is readable on its own and kernel.py imports as an ordinary module:

import sys; sys.path.insert(0, "skills/nexrad-aws-2025")
import kernel as nexrad
keys = nexrad.nexrad_keys("KLOT", start, end, client=nexrad.s3_anon())

The one thing to know: kernel.py files are exec'd by the skill loader, not imported, so they define no __file__ and may only contain functions, imports, and literal top-level assignments. tests/test_structure.py enforces that.

Tests

pip install -r requirements.txt
pytest tests/test_structure.py        # offline, all skills, runs on every push
pytest tests/test_structure_pyart.py  # offline, pyart-* + cmac-vap claim checks
pytest tests/test_structure_rustmatrix.py   # offline, rustmatrix-* claim checks
pytest tests/test_arm_standards.py    # offline, arm-netcdf-standards drift + round trips
pytest tests/test_structure_nsa.py    # offline, NSA tranche coordinates, distances, counts
pytest tests/test_live_*.py           # hits live buckets, runs weekly

The offline suites check skill structure, the loader's constraints, absence of secrets, and documentation-vs-code agreement. test_structure_pyart.py adds the Py-ART tranche's claim checks: physical invariants (cone radius linear in height, exclusion fractions inside [0,1], the dealiasing ratio dividing out against the stated Nyquist), internal consistency (a number stated twice must agree), and provenance (measured values carry a named radar and date; every helper the prose tells you to call exists). One of them exists because the drift already happened — a KDP row that paired one run's runtime with another run's percentiles — and it fails if either half of that pair is quoted alone.

test_structure_rustmatrix.py does the same for the scattering tranche, and where rustmatrix is installed it re-derives the load-bearing claims rather than trusting the prose: it solves for the drop-shape zero crossings, checks that the documented axis-ratio recipe gives positive Zdr while the bare relation gives negative, reproduces the n_alpha parity result, and confirms a solver panic still arrives as a BaseException. Two of its checks also exist because the drift already happened: an "exact to floating point" claim that the document's own table contradicted (five-decimal display of a 3.0e-07 residual), so exactness now has to be stated with a ulp or residual figure; and a guard-rail check that fails any assert_*/check_* helper containing no assert or raise, which caught a Mie-parity gate that documented a tolerance and never enforced it. The live suites are the ones that detect service drift — a changed bucket layout or store schema shows up as a failing scheduled run rather than as a wrong answer in someone's analysis.

Contributing

See CONTRIBUTING.md. In short: edit under skills/, run the offline suite, and keep every numeric claim in a SKILL.md derived from something a test can check.

Authors

  • Scott Collis
  • Claude (Anthropic) — co-author of the skills, helpers, and test suites

License

MIT. The skills describe public datasets (NOAA NEXRAD via the NSF Unidata AWS buckets, the NEXRAD ARCO store, and the Google Cloud mirror); the data carry their own terms.

Skill contents last synced from the registry: 2026-10-06.

About

A repository for AI agent skills mainly based on Anthropic's Claude

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages