adilmunawar/zd-claude-plugin/gee-api-routes
Claude Code and agent skill by adilmunawar/zd-claude-plugin
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Server-side Earth Engine in Next.js API routes: init once, promisified evaluate, layers, palettes, tile URLs, validation, timeouts.
Install
npx vskill@latest install adilmunawar/zd-claude-plugin/gee-api-routesSKILL.md
The same SKILL.md was published earlier as adilmunawar/zd-claude-plugin/gee-api-routes.
- Init once.
initGEE()guards with a module-level flag; credentials fromEE_BASE64_KEY(base64 JSON); normaliseprivate_keynewlines. No fallback credentials in code — throw a descriptive error instead. - Promisify.
const evaluate = (o) => new Promise((res, rej) => o.evaluate((v, e) => e ? rej(e) : res(v))); run independent reductions withPromise.all. - Validate input. Body must contain a GeoJSON geometry; reject > 5 MB or > 10 000 vertices (simplify client-side first). Cap
rangemonths and date spans. - Layers. Build in
geeCore.ts: S2 SR harmonized cloud-masked median, indices (NDVI NDMI NDRE EVI SAVI GNDVI NDTI MSAVI2 CIRE NDWI MNDWI BSI NDBI NBR NDCI NDSI), classification image, S1 VV/VH. Reuse the sharedvisParamstable so palettes match the legend component. - Tiles.
getMapUrl(image, vis)→ee.data.getMapId→{z}/{x}/{y}template; cache per (layer, date range) for the request lifetime; tile URLs expire — do not persist them. - Reductions.
scale: 10, maxPixels: 1e9, tileScale: 4+for parcel-size geometries;bestEffortonly for previews. - Errors. Return
{ error }with 400 for bad input, 502 for EE failures; log the EE message server-side only. - Timeouts. App Hosting/Vercel functions have execution limits; long jobs go to the inference backend with a job id.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/zd-agis/skills/gee-api-routes/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adilmunawar/zd-claude-plugin/gee-api-routes)