/easygee:multimodal-geo-vectorfrom easygee
Detects, counts, outlines, segments, or localizes visible targets in local or Google Earth Engine remote-sensing imagery and delivers CRS-aware GeoPackage or GeoJSON vectors.
Ships in easygee. 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; scripts run unread.
Turn visual-model annotations into reproducible GIS artifacts. Keep the reference raster—not the preview or model—as the authority for CRS, transform, extent and pixel grid.
GeoPackage/.gpkg as a local projected-vector deliverable. Preserve
the source CRS when suitable; otherwise use a local projected/UTM CRS and
record it.local_first;hybrid;easygee skill. Run its interaction
and geospatial-method routers, resolve the project from user settings, verify
the dataset, and plan a batch export when a local download is too large.Run:
python scripts/check_environment.py --mode local
Use --mode gee when Earth Engine access is required. Do not install or
authenticate before checking. Never print or store GEE credentials. For GEE
authorization/project issues, defer to the sibling EasyGEE auth workflow.
Run:
python scripts/prepare_imagery.py local --input <image.tif> --output-dir <prepared> --bands 1,2,3
For an unreferenced JPG/PNG, accept it only with explicit map information:
python scripts/prepare_imagery.py local --input <image.png> --output-dir <prepared> --crs <EPSG:code> --bounds <xmin,ymin,xmax,ymax>
Do not infer bounds or CRS from scene appearance.
Resolve project, AOI seed, bands, dates, scale, CRS and scale factor. For boundary extraction, prefer one actual acquisition over a median composite. Select a recent clear scene using AOI-valid-pixel coverage and AOI-local cloud quality; collection footprint coverage or scene-level cloud metadata alone is not enough. Run:
python scripts/select_recent_gee_scene.py --project <project> --center <lon,lat> --radius-km <km>
Pass its selected_image_id to preparation so the exact acquisition remains
traceable:
python scripts/prepare_imagery.py gee --project <project> --output-dir <prepared> --region <xmin,ymin,xmax,ymax> --image-id <selected-image-id> --bands <red,green,blue> --scale <metres> --crs <EPSG:code> --name <scene>
Use a composite only when the user requests one or no adequate single scene
exists, and label that fallback. The selector must fail when its coverage or
clarity thresholds are unmet; use --allow-best-available only as an explicit,
reported fallback. Verify the prepared raster's valid_pixel_fraction; reject
or reselect scenes with clipped/nodata AOI coverage.
Use the EasyGEE export planner and ee.batch.Export.image.* for large results.
Do not silently coarsen scale or shrink AOI to bypass download limits.
The preparation script must produce:
Use the whole preview only when targets remain visually separable. For small or dense targets, create overlapping georeferenced tiles:
python scripts/tile_imagery.py --input <prepared.tif> --output-dir <tiles> --tile-size 512 --overlap 128
Prefer tiling when a target would be smaller than roughly 8–15 pixels in the model preview. Keep context around border objects.
Generate a strict prompt:
python scripts/prompt_template.py --image <preview.png> --target "<target definition>" --geometry <polygon|bbox|point|line> --output <prompt.txt>
Use the model's visual capability to return structured pixel JSON. Prefer JSON over painted overlays. Require the model to:
If the model cannot return coordinates, request a single bright-color outline overlay that preserves the exact extent and aspect ratio. Treat overlay color extraction as a fallback because image edits can alter pixels or produce inner and outer duplicate contours.
Save tile-local JSON files as <tile_id>.json or
<tile_id>_annotations.json, then run:
python scripts/merge_tile_annotations.py --manifest <tiles_manifest.json> --annotations-dir <tile-json-dir> --output <merged_annotations.json> --iou-threshold 0.5
Report object counts before and after overlap deduplication.
For structured annotations, run:
python scripts/vectorize_annotations.py json --annotations <annotations.json> --raster <reference.tif> --output-stem <results/targets>
For a bright-color overlay, run:
python scripts/vectorize_annotations.py overlay --overlay <overlay.png> --raster <reference.tif> --output-stem <results/targets> --color cyan
Apply --min-area, --max-area, --min-circularity or --simplify only
when the target definition and projected CRS make the thresholds meaningful.
Do not impose field-specific shape filters on vehicles, crowns or generic
objects.
Write separate polygon, line and point GeoPackages in the raster's native CRS, EPSG:4326 GeoJSON exchange files, a polygon-boundary line GeoPackage, and a manifest with counts and paths.
Render a boundary-only QA overlay before handoff:
python scripts/render_vector_qa.py --raster <reference.tif> --vector <results/targets_polygons.gpkg> --layer polygons --output <results/qa_overlay.png>
Run the no-data smoke test after modifying scripts:
python scripts/smoke_test.py
Do not bundle user imagery, case-specific labels or demonstration outputs in this skill. Use synthetic temporary data for offline tests or a user-selected, small GEE AOI for live verification.
agents/openai.yaml (opens in a new tab)references/annotation-contract.md (opens in a new tab)references/workflow-profiles.md (opens in a new tab)scripts/check_environment.py (opens in a new tab)scripts/merge_tile_annotations.py (opens in a new tab)scripts/prepare_imagery.py (opens in a new tab)scripts/prompt_template.py (opens in a new tab)scripts/render_vector_qa.py (opens in a new tab)scripts/select_recent_gee_scene.py (opens in a new tab)scripts/smoke_test.py (opens in a new tab)scripts/tile_imagery.py (opens in a new tab)scripts/vectorize_annotations.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rimagination/easygee --plugin easygee2 skills in this plugin
Other plugins' skills for the same job