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

SKILL_JS5_ARCGIS / arcgis-arcade

AGENTS.md1 starsChanged 6 months agoMITView on GitHub

Quick-reference for Arcade. Read before writing expressions.

The file

Files
AGENTS.md

Agent Guide: arcgis-arcade

Quick-reference for Arcade. Read before writing expressions.

Quick Decision Tree

  1. Popup? → expressionInfos (popup profile).
  2. Label? → label expression (label profile).
  3. Renderer/visual variable? → valueExpression (renderer profile).
  4. Manual compile? → createArcadeExecutor(script, profile).

Setup Checklist

  • Declare the right variables in the profile ($feature, etc.).
  • Compile once, reuse the executor.
  • Keep label/renderer expressions lightweight.
  • Prefer declaring expressions on the consuming object.

Anti-patterns (one-liner reminders)

  • ❌ Hand-written profiles that miss variables: use createArcadeProfile("popup" | "labeling" | "visualization" | …).
  • ❌ Recompiling per feature.
  • ❌ Querying features without executor.fieldsUsed / geometryUsed: the expression returns 0, no error.
  • ❌ execute() when executor.isAsync (FeatureSet functions): use executeAsync().
  • ❌ Area()/Length() on Web Mercator geometry for real sizes: AreaGeodetic()/LengthGeodetic().
  • ❌ lruCache (deprecated in 5.0): cache.

Files in This Skill

  • SKILL.md / SKILL.es.md — full guides
  • references/api-detail.md — executor / profile
  • references/examples.md — popup / label / renderer
  • references/pitfalls.md — extended troubleshooting
  • scripts/snippet-arcade.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.