/geoai:google-earth-enginefrom GeoAI Skills
Guides use of Google Earth Engine's server-side model for image collections, masking, compositing, reducers, zonal statistics, time series, classification, and exports, including deciding when GEE beats local processing.
Ships in GeoAI Skills. 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.
Read when SKILL.md points to them.
Purpose: use GEE's server-side model correctly. The recurring failure
modes are client/server confusion (calling .getInfo() in loops,
Python if on server objects), unbounded computation (timeouts from
unscaled reductions), and silent default scales (statistics computed
at the wrong resolution).
Answer this before writing any ee. code. The decision turns on six things, and
you cannot make it without them, so establish them first — asking alongside a
provisional recommendation, never instead of one:
getInfo times out.Recommend Earth Engine only when 1 and 2 favour it and 3 permits it. When the
answer is genuinely balanced, say so and name the deciding question rather than
defaulting to the platform this skill is about. xee and STAC + stackstac /
odc-stac are the middle paths worth naming: catalog access with local compute.
ee.Image, ee.ImageCollection, ee.FeatureCollection are server-side
descriptions, not data. Nothing computes until an output is requested
(getInfo, export, map tile). Consequences:
if/for on server values — use ee.Algorithms.If
sparingly, prefer .map() + filters. A Python loop that calls
.getInfo() per element is the #1 GEE performance bug..getInfo() blocks and transfers; use it for tiny scalars only.
Anything sized → Export (to Drive/GCS/Asset)..aggregate_array(), .first(), .limit(3) probes — not by
printing whole collections.import ee
ee.Initialize(project="my-project")
aoi = ee.Geometry.Rectangle([27.0, 38.3, 27.4, 38.6])
def mask_s2(img):
# Cloud Score+ is the current best practice (threshold ~0.5-0.65)
cs = img.linkCollection(csplus, ["cs_cdf"]).select("cs_cdf")
return img.updateMask(cs.gte(0.6))
csplus = ee.ImageCollection("GOOGLE/CLOUD_SCORE_PLUS/V1/S2_HARMONIZED")
s2 = (ee.ImageCollection("COPERNICUS/S2_SR_HARMONIZED")
.filterBounds(aoi)
.filterDate("2025-05-01", "2025-09-30")
.map(mask_s2))
composite = s2.median().clip(aoi)
ndvi = composite.normalizedDifference(["B8", "B4"]).rename("ndvi")
Collection choices: S2_SR_HARMONIZED (post-2022 offset harmonized),
LANDSAT/LC08/C02/T1_L2 + friends (apply scale factors: optical
*0.0000275 - 0.2), MODIS/061/... for daily/coarse, ERA5-Land for
climate. Record collection IDs + date filters in the deliverable.
stats = ndvi.reduceRegions(
collection=districts,
reducer=ee.Reducer.mean().combine(ee.Reducer.stdDev(), sharedInputs=True),
scale=10, # ALWAYS explicit — native resolution
tileScale=4, # raise when "computation timed out"
)
scale defaults to the map zoom level in some paths — silently coarse
statistics. Always set it to the data's native resolution (or state the
deliberate coarsening).bestEffort=True silently degrades scale to fit limits — avoid in
analysis; prefer tileScale + exports.Export.table.toDrive, not .getInfo()..unweighted() for counts of whole pixels); state which you used.ee.List.sequence of dates (monthly/seasonal medians), then reduce —
don't export daily stacks you'll aggregate anyway.ee.Reducer.sensSlope() (robust) or
linearFit; harmonic regression (.addBands of sin/cos terms) for
phenology. Mask by count of valid observations — trends from 4 pixels
of 200 possible are noise; report the count band.change-detection.ee.Classifier.smileRandomForest covers most cases. Training samples via
image.sampleRegions; split train/test spatially (add a grid-cell
attribute and filter — random randomColumn splits leak; see
ml-experiment-standards → references/spatial-cv-protocol.md). Report
per-class accuracy from errorMatrix; area estimates from a classified
map still need design-based adjustment (change-detection / Olofsson).
Export.image.toDrive/toCloudStorage with explicit region, scale,
crs, maxPixels; use crsTransform when pixel alignment with an
existing raster matters.toAsset intermediate.xee for xarray-native access; visualize interactively with geemap.Batch tasks queue (check task status; don't fire hundreds blindly). Interactive requests time out at ~5 min — long jobs go to batch export. Cache intermediate products as assets when a pipeline reuses them.
Server-side computation is invisible after the fact: the catalog moves under you, a reducer default changes the number, and nothing in the exported file says which archive produced it. Every Earth Engine deliverable ships with a provenance record, emitted as a sidecar JSON next to the export — not left in the notebook:
COPERNICUS/S2_SR_HARMONIZED
and the specific collection version), plus the date range and filters applied.tileScale, bestEffort, and
any crsTransform.region, scale, crs, maxPixels, and the task ID.ee.__version__ / API client version, because
server-side defaults change without notice.Recommending Earth Engine over a local workflow is incomplete without this: the reproducibility cost is the main thing the user trades away by moving server-side, so state how it is recovered.
composite.select("B4").projection().nominalScale().getInfo()
and band names — confirms scale/CRS assumptions before reductions..getInfo() inside a loop (move logic server-side).scale in reduceRegion(s) → zoom-dependent statistics.bestEffort=True hiding resolution degradation.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub muend/geoai-skills --plugin geoai18 skills in this plugin
/arcgis-pro-automationAutomate controlled local ArcGIS Pro and ArcPy workflows through arcgis-mcp-bridge: inspect .aprx projects and file geodatabases, run geoprocessing, projection, raster, network, spatial-statistics, editing, symbology, and layout export with path and mutation guards. Use when the user explicitly names ArcGIS Pro, ArcPy, .aprx, .gdb, Esri geoprocessing, muend/arcgis-mcp-bridge, its health_check, PathGuard, or confirmation gates, or sketch-to-GIS extraction. Do not trigger for ArcGIS Online or Enterprise administration, QGIS or PyQGIS, generic open-source GIS, or live GUI control of an already-open ArcGIS Pro session./cartography-geovizAlways invoke before answering any request to create, compare, design, or review a user-facing map, even if the request is terse or underspecified. Covers publication maps, choropleths, map series and small multiples, comparable multi-date panels, proportional/bivariate/flow maps, raster rendering, and interactive web maps. Includes classification, color, legends, projections, accessibility, and large-data aggregation. Do not trigger for a temporary diagnostic plot inside another analysis./change-detectionChange analysis, once the observations are comparable. Not for cases whose blocker is comparability itself: mixed sensors, product levels or processing baselines to remote-sensing-analysis, undocumented vertical datums to point-cloud-lidar, multi-decade archive trends over large areas to google-earth-engine. Matching product level does not prove comparability. Otherwise invoke for what, where or how much changed: two-scene comparison, deforestation, urban growth, disaster damage, parcel-change audits, bi-temporal differencing, post-classification comparison, adjusted area, break detection in a series in hand (BFAST/LandTrendr/CCDC). Seasonal mismatch is this skill's own confounder; a documented datum with a stated accuracy budget is settled comparability. Keep both./geoai-orchestratorRoute genuinely ambiguous or multi-stage geospatial work across specialist skills while enforcing shared CRS, validity, leakage, units, verification, and reproducibility rules. Use for requests spanning multiple stages such as acquisition, imagery, modeling, analysis, and map delivery, or for an explicit end-to-end pipeline. Never invoke for one domain merely because a parameter is unclear. Code implementation/review, backend or platform choice, and production-readiness review are direct specialist tasks. Do not add this skill as a layer around one specialist./geo-data-engineeringAlways invoke when geospatial data must be acquired, prepared, repaired, scaled, or moved through a repeatable pipeline. Covers open-data/OSM/STAC acquisition, spatial formats, CRS transforms, quality checks, and batch ETL architecture for growing or recurring joins. Invoke alongside PostGIS for database execution and alongside SWE standards when code is delivered. Do not trigger merely because another specialist reads analysis-ready data./geo-deep-learningInvoke before recommending, training, or auditing a neural method for geospatial imagery, including vision transformers, U-Net/DeepLab/SegFormer, object detection, pixel classification, building/road extraction, and EO foundation-model fine-tuning. Also invoke for neural chip-split validity, IoU/accuracy claims, augmentation, imbalanced losses, spatial validation, or sliding-window inference. Use remote-sensing-analysis for non-neural methods and change-detection when temporal change is the deliverable.Other plugins' skills for the same job