Agent skill

Gee Scripting

by zzhonglei in zzhonglei/GeoCode-Release

GEE scripting and remote sensing analysis workflow guide. An agent skill from zzhonglei/GeoCode-Release.

MITAuto-check passedData & Analytics

Install Gee Scripting

skills CLI
$ npx skills add zzhonglei/GeoCode-Release --skill gee-scripting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zzhonglei/GeoCode-Release gee-scripting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zzhonglei/GeoCode-Release.git skills-src && mkdir -p .claude/skills && cp -r skills-src/contributions/gee-scripting/skill .claude/skills/gee-scripting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gee-scripting
GitHub stars
187
Token cost
~1.6k tokens
SKILL.md length
623 words
Files
5 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

GEE scripting and remote sensing analysis workflow guide. An agent skill from zzhonglei/GeoCode-Release.

  • Works in 3 steps: Script Mode Selection → Script Writing Standards → geocode Module Practical Notes
  • Tasks that involve Geospatial analysis
  • SKILL.md covers 1. Script Mode Selection, 2. Script Writing Standards, 3. geocode Module Practical… and Knowledge Index, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Gee Scripting is an agent skill from zzhonglei/GeoCode-Release. GEE scripting and remote sensing analysis workflow guide. Read this skill when the task involves Google Earth Engine.When analyzing a study area with defined boundaries, always prepare a local boundary vector file in advance (e.g., .shp, .geojson). Do NOT use GEE's built-in boundary datasets, and do NOT produce the final boundary file within GEE.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/change-detection.md`, `references/classification.md` and `references/image-composite.md`).

It sits in Data & Analytics, covering Geospatial analysis. The repository describes itself as: A desktop AI assistant for geoscience data processing. The licence is MIT.

When your agent uses it

  • Tasks that involve Geospatial analysis

Example prompts

  • “/gee-scripting”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Script Mode Selection
  2. Script Writing Standards
  3. geocode Module Practical Notes

What it can do on your machine

Read from SKILL.md and the folder at commit 6e3534f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gee Scripting loads about 1.6k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 91 tokens; SKILL.md has 623 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~14k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from zzhonglei/GeoCode-Release at commit 6e3534f, republished under its MIT licence (© zzhonglei). 623 words, ~1,644 tokens.

Download SKILL.mdSave it as .claude/skills/gee-scripting/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
gee-scripting
description
GEE scripting and remote sensing analysis workflow guide. Read this skill when the task involves Google Earth Engine.When analyzing a study area with defined boundaries, always prepare a local boundary vector file in advance (e.g., .shp, .geojson). Do NOT use GEE's built-in boundary datasets, and do NOT produce the final boundary file within GEE.

This skill is a built-in skill for GeoAgent. Follow these guidelines when writing and executing GEE scripts — they will help you avoid the most common failure scenarios and write efficient, reliable scripts.

GEE Scripting Workflow Guide

All GEE scripts must be executed using the RunGeeScript tool. When performing GEE operations, you MUST strictly follow this skill and read the document references/image-composite.md(first 600 lines).


1. Script Mode Selection

RunGeeScript provides two execution modes:

Inline mode (script parameter) — suitable for quick queries and simple one-off operations: querying image bands, collection size, date ranges; single-step computations and quick validations.

File mode (script_path parameter) — suitable for multi-step tasks: data filtering → processing → analysis → export pipelines; complex scripts requiring iterative debugging; scripts worth preserving for the user.


2. Script Writing Standards

Standard Script Structure
python
# 1. Imports
from geocode import init_gee, load_region, download_image, check_coverage, heartbeat
import ee

# 2. Initialization (must be the first step)
init_gee("project-id")

# 3. Define study area
roi = load_region("/path/to/boundary.shp").geometry()

# 4. Data retrieval and processing (wrap each slow operation with heartbeat)
with heartbeat("Filtering collection"):
    ... read: references/image-composite.md ...

# 5. Compositing
with heartbeat("Computing composite"):
    composite = ......

# 6. Quality check — decide whether to proceed or adjust parameters
report = check_coverage(composite, roi)

# 7. Output
download_image(composite, "/path/to/output.tif", roi, scale=10)
Heartbeat Usage Rules

When in doubt, wrap it. Any operation involving GEE server-side computation should be wrapped — because you cannot accurately predict server-side execution time, and a single missed heartbeat could cause the script to be unexpectedly terminated.

Common operations that must be wrapped: .getInfo(), reduceRegion()/reduceRegions(), classify(), train(), download_image()/export_image().

python
# heartbeat wraps slow operations, outputting status every 30 seconds to keep the process alive
with heartbeat("Computing NDVI statistics"):
    stats = ndvi.reduceRegion(
        reducer=ee.Reducer.mean(),
        geometry=roi, scale=30, maxPixels=1e9
    ).getInfo()
print(f"NDVI mean: {stats['NDVI_mean']:.4f}")

The equivalent code without heartbeat could silently wait 2-3 minutes on large regions before being terminated by timeout.

When chaining operations, use a separate heartbeat for each stage, and print stage results between heartbeat blocks. This both keeps the process alive and lets the user track progress.

Print Output Standards

Good output habits help the user understand what the script is doing and where it's at:

  • Print a description and key parameters at the start of the task (study area, time range, etc.)
  • Print stage results after each stage completes
  • Structure the final results clearly
  • Use flush=True to ensure immediate visibility

3. geocode Module Practical Notes

The tool description already lists the complete API signatures for the geocode module. Here are supplementary notes on key practical considerations.

init_gee(project_id)

The first step in every script. project_id is the user's GEE Cloud Project ID — if unknown, ask the user to confirm.

load_region(file_path)

Uploads a local vector file (.shp, .geojson) as an ee.FeatureCollection.

Process the boundary files locally before uploading them to GEE; do not process the boundary files on GEE!

Prefer this function for loading study area boundaries over GEE's built-in boundary datasets (e.g., FAO/GAUL, USDOS/LSIB). Local files are more precise and user-controlled, and built-in datasets' administrative boundaries may not match the user's specific needs.

The return value is an ee.FeatureCollection — you typically need .geometry() to get the boundary for filterBounds() and clip(). Uploading large vector files may be slow; the function has built-in heartbeat.

Show full SKILL.md (203 more words)Show less
check_coverage(image, roi)

Call after compositing, before downloading. If coverage is insufficient, adjust parameters (expand date range, relax cloud threshold) or fill gaps with unmask() before proceeding to download.

download_image vs export_image

download_image is preferred — it downloads directly to a local GeoTIFF without Google Drive as an intermediary. It uses geemap chunked downloading, writing to a temporary file first then atomically moving it, so incomplete files are never produced.

export_image is for scenarios where download_image cannot handle the job: images covering extremely large areas (e.g., nationwide at 10m resolution), download timeouts, or batch large-file exports. The trade-off is that the user must manually download from Drive.

Key considerations for download_image parameters:

ParameterKey Points
scaleMatch source data resolution (Sentinel-2: 10, Landsat: 30, MODIS: 250/500/1000). Too small → huge files or limits exceeded
crsDefault EPSG:4326. For projected coordinate systems, refer to the projection-selection skill
dtypeUse "uint8" or "int16" for classification results to reduce file size; "float32" for continuous values

Knowledge Index

Read the corresponding reference document based on the current task type:

  • Image filtering, cloud masking, and compositing → references/image-composite.md->Recommended reading
  • Classification and clustering → references/classification.md
  • Change detection → references/change-detection.md

Templates

  • Single-date image selection (user needs a real observation from one date, not a composite) → templates/single-date-image.md

© zzhonglei, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in contributions/gee-scripting/skill of zzhonglei/GeoCode-Release.

  • SKILL.md
  • references/change-detection.md
  • references/classification.md
  • references/image-composite.md
  • templates/single-date-image.md

Open the folder on GitHubat commit 6e3534f

Compare with similar skills

Gee Scripting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gee Scripting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gee Scripting this skillzzhonglei/GeoCode-Release187—~1.6kAutomated safety check: PassMIT
Antv L7antvis/L74.1k—~1.4kAutomated safety check: PassMIT
Geo SleuthOldcircle/geo-sleuth1.3k—~6.1kAutomated safety check: PassMIT
Portaljs Add Geodatopian/portaljs2.4k1 repos~1.7kAutomated safety check: PassMIT
Rs Paper Pipelinethinson/RS-PaperClaw227—~319Automated safety check: PassMIT
Remote Sensing Research Radarlimi124/remote-sensing-research-radar142—~1.3kAutomated safety check: PassNone

Similar skills

  • Antv L7

    antvis/L7

    Comprehensive guide for AntV L7 geospatial visualization library.

    4.1k GitHub stars~1.4k tokensUpdated 29 days ago
    Data & AnalyticsAuto-check passed
  • Geo Sleuth

    Oldcircle/geo-sleuth

    Geolocate or chronolocate a photo with tool-verified reasoning (where was this taken / when was it taken / photo geolocation / geo-guessing).

    1.3k GitHub stars~6.1k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Portaljs Add Geo

    datopian/portaljs

    Auto-ingest a geospatial file (GeoJSON, Shapefile, GeoPackage, KML/KMZ, FlatGeobuf, CSV-with-geometry) into a PortalJS portal on the user's own machine, with no server.

    2.4k GitHub starsUsed in 1 repo~1.7k tokens
    Data & AnalyticsAuto-check passed
  • Rs Paper Pipeline

    thinson/RS-PaperClaw

    A skill your agent uses when operating or maintaining the RS-PaperClaw pipeline that fetches remote-sensing arXiv papers, creates per-paper issues, builds daily digests, reconciles issue sets, and…

    227 GitHub stars~319 tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Remote Sensing Research Radar

    limi124/remote-sensing-research-radar

    Track, retrieve, screen, and synthesize research frontiers for geospatial AI, remote sensing big data, and transferable computer vision methods.

    142 GitHub stars~1.3k tokensUpdated 5 mo ago
    Data & AnalyticsAuto-check passed
  • Live Weather Briefing Skill

    FrancyJGLisboa/agent-skills-platform

    Create a current, source-linked weather briefing for a named city using the Open-Meteo geocoding and forecast APIs.

    2.4k GitHub stars~599 tokensUpdated 22 days ago
    Data & AnalyticsAuto-check passed

More from zzhonglei/GeoCode-Release

  • Thematic Map

    zzhonglei/GeoCode-Release

    Create well-designed maps that follow standard cartographic conventions.

    187 GitHub stars~3.1k tokensUpdated 4 days ago
    Auto-check passed
  • XLSX

    zzhonglei/GeoCode-Release

    Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm) where the workbook file is the primary deliverable.

    187 GitHub stars~3.1k tokensUpdated 4 days ago
    Auto-check passed
  • China Statistics Data

    zzhonglei/GeoCode-Release

    Find, download, and prepare official thematic statistics from the National Bureau of Statistics of China.

    187 GitHub stars~2.7k tokensUpdated 4 days ago
    Auto-check passed
  • Projection Selection

    zzhonglei/GeoCode-Release

    Select an appropriate projected coordinate system for geographic data analysis or cartographic tasks.

    187 GitHub stars~4.1k tokensUpdated 4 days ago
    Auto-check passed
  • China Admin Boundaries

    zzhonglei/GeoCode-Release

    Official, standards-compliant vector boundaries of China's administrative divisions — province, city and county polygons.

    187 GitHub stars~434 tokensUpdated 4 days ago
    Auto-check passed
  • Hello Geocode

    zzhonglei/GeoCode-Release

    Sample skill verifying the GeoCode skill store pipeline end-to-end.

    187 GitHub stars~297 tokensUpdated 4 days ago
    Auto-check passed

Questions about Gee Scripting

What does Gee Scripting do?

GEE scripting and remote sensing analysis workflow guide. An agent skill from zzhonglei/GeoCode-Release. Gee Scripting is an agent skill from zzhonglei/GeoCode-Release. GEE scripting and remote sensing analysis workflow guide.

When should I use Gee Scripting?

Gee Scripting fits situations like: tasks that involve Geospatial analysis.

How do I install Gee Scripting in Claude Code?

Run `npx skills add zzhonglei/GeoCode-Release --skill gee-scripting -a claude-code`. Or copy the skill folder (contributions/gee-scripting/skill in zzhonglei/GeoCode-Release) into .claude/skills/gee-scripting in your project. Claude Code loads it when a task matches its description.

How do I install Gee Scripting in Codex?

Run `npx skills add zzhonglei/GeoCode-Release --skill gee-scripting -a codex`. Or copy the skill folder (contributions/gee-scripting/skill in zzhonglei/GeoCode-Release) into .agents/skills/gee-scripting in your project. Codex loads it when a task matches its description.

Can I use Gee Scripting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zzhonglei/GeoCode-Release --skill gee-scripting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gee-scripting, .gemini/skills/gee-scripting, .github/skills/gee-scripting and .opencode/skills/gee-scripting in your project.

What does Gee Scripting need to run?

SKILL.md names no scripts, command-line tools or credentials: Gee Scripting is instructions for the agent only. Our summary lists: Python 3.

Does Gee Scripting access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Gee Scripting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gee Scripting use?

Gee Scripting is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gee Scripting use?

About 1.6k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Gee Scripting?

Skills that share tags, products or a category with Gee Scripting: Antv L7 (antvis/L7, 4.1k stars), Geo Sleuth (Oldcircle/geo-sleuth, 1.3k stars), Portaljs Add Geo (datopian/portaljs, 2.4k stars) and Rs Paper Pipeline (thinson/RS-PaperClaw, 227 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gee Scripting?

zzhonglei (a GitHub user) maintains it in zzhonglei/GeoCode-Release, which has 187 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 4, 2026.

Source: zzhonglei/GeoCode-Release on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.