agentleFS
geoai-latamgeoai-latam/SKILL_JS5_ARCGIS/skills/arcgis-spatial-analysis/AGENTS.md

SKILL_JS5_ARCGIS / arcgis-spatial-analysis

AGENTS.md1 starsChanged 6 months agoMITView on GitHub

Quick-reference for server-side analysis (SDK 5.1). Read before running GP/statistics.

The file

Files
AGENTS.md

Agent Guide: arcgis-spatial-analysis

Quick-reference for server-side analysis (SDK 5.1). Read before running GP/statistics.

Quick Decision Tree

  1. Read <task url>?f=json: execution type, parameter names, data types.
  2. Synchronous? → geoprocessor.execute(url, params).
  3. Asynchronous? → geoprocessor.submitJob + waitForJobCompletion (in try) + fetchResultData.
  4. Aggregates? → query.outStatistics on the layer.

Setup Checklist

  • FeatureSet for feature inputs, LinearUnit for distances.
  • Exact parameter spelling (the error does not say which one is wrong).
  • try/catch around waitForJobCompletion(): failures reject with the JobInfo.
  • Find outputs by paramName.
  • Statistics queries, never client-side sums.

Anti-patterns (one-liner reminders)

  • ❌ Summing downloaded features (capped at 1000 rows: a wrong total).
  • ❌ A number for a GPLinearUnit, a Graphic for a feature set.
  • ❌ Checking jobStatus after await waitForJobCompletion() instead of catching.
  • ❌ execute on an async GP service.

Files in This Skill

  • SKILL.md / SKILL.es.md — full guides
  • references/api-detail.md — geoprocessor / input types / statistics
  • references/examples.md — GP + statistics
  • references/pitfalls.md — extended troubleshooting
  • scripts/snippet-geoprocessor.ts

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.