Arcgis python api

From VectorSpaceLab/AREX-Skill · View interactive version

Arcgis python api is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use ArcGIS API for Python for GIS administration, spatial dataframes, feature/raster analysis, mapping, location services, geospatial deep learning, app automation, and Knowledge Graph workflows.

How to use this skill

Skill file

ArcGIS API for Python repo skill

Use this skill when a task involves the arcgis Python package, ArcGIS Online or ArcGIS Enterprise automation, GIS content administration, spatially enabled dataframes, feature layers, maps, geocoding, routing, geoenrichment, imagery/raster analysis, arcgis.learn, StoryMaps, Experience Builder, item dependency graphs, Knowledge Graphs, or ArcGIS AI-powered services.

This repository is a documentation and sample-gallery checkout for the separately distributed arcgis package. Use the bundled references and scripts here instead of reopening the original checkout's notebooks or scripts.

Start safely

  1. Read installation and runtime notes before choosing a package/runtime.
  2. Run python scripts/check_arcgis_environment.py for a local import/signature smoke. The script never opens credentials, calls ArcGIS services, downloads data, trains models, or mutates content.
  3. Identify whether the user task is read-only, service-backed, credentialed, credit-consuming, or destructive.
  4. If credentials, target portal, service privileges, data, or hardware are missing, provide a dry-run plan or local validation only.
  5. Route to exactly the sub-skill that owns the main workflow, then combine sub-skills only for cross-workflow tasks.

Install baseline

The repository version evidence pins the 2.4.1 family. For a local user-managed environment:

python -m pip install "arcgis==2.4.1.*"
python -m pip install "arcgis-mapping==4.31.*"  # needed for map widget workflows
python scripts/check_arcgis_environment.py

Prefer conda/Pixi or ArcGIS Pro-managed environments when the workflow depends on compiled geospatial libraries, ArcGIS Pro, local geodatabases, or notebook widgets. Never mutate a user's ArcGIS Pro or conda base environment without approval.

Route map

| User task | Use this sub-skill | Read first |

| --- | --- | --- |

| Connect to ArcGIS Online/Enterprise, manage profiles, content, items/resources, users/groups, org admin, servers, collaboration, clone/offline backups | gis-admin-content | Its admin/content workflow and troubleshooting references |

| Query/edit/append feature layers, work with FeatureSet, Spatially Enabled DataFrames, geometry, replicas/sync, branch versioning, or feature/spatial analysis services | features-dataframes-analysis | Its workflows reference and local_geometry_smoke.py |

| Build maps/web maps/scenes, configure symbols/renderers/popups, geocode/reverse/batch geocode, route/VRP/service areas/OD matrices, or enrich/report demographics | mapping-location-services | Its service API reference and import smoke |

| Use image services, ImageryLayer, raster functions/chains, raster analytics jobs, multidimensional rasters, or orthomapping | imagery-raster-analysis | Its workflow guide and raster import smoke |

| Use arcgis.learn for imagery/text/tabular/time-series/point-cloud geospatial ML, choose model families, train/infer/export/deploy, or fix torchvision/GPU dependency issues | deep-learning | Its optional dependency probe and model catalog |

| Automate StoryMaps, Experience Builder, Hub, dashboards, Tracker/Workforce/Survey URLs, item dependency graphs, Knowledge Graphs, or AI-powered ArcGIS services | apps-knowledge-ai-services | Its module probe and app/Knowledge workflow reference |

Shared references

Non-negotiable safety rules

Cross-workflow patterns

Verification status to preserve

The generated skill was verified for base CPU/import/signature behavior of the installed arcgis and arcgis-mapping packages. No live ArcGIS service calls, destructive admin scripts, cloud deployments, notebook executions, large downloads, or GPU model training were run during production. Optional surfaces such as arcgis.learn, arcgis.ai, and dashboard module names are explicitly probed by sub-skill scripts before use.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.