/arcgis-sdks-and-apis-plugin:build-with-arcgis-maps-sdk-for-javascriptfrom arcgis-sdks-and-apis-plugin
Provides guidance on building web-based mapping, visualization, editing, and spatial analysis apps using the ArcGIS Maps SDK for JavaScript, including core API, web components, authentication, and best practices.
Ships in arcgis-sdks-and-apis-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the ArcGIS Maps SDK for JavaScript when users are building web-based mapping, visualization, editing, data collection, or spatial analysis applications.
The SDK is based on a Web GIS approach where applications are built with reusable, preconfigured resources such as web maps, web scenes, and layers authored in ArcGIS Pro, Map Viewer, or Scene Viewer. The SDK provides web components and APIs to view and interact with an item, which holds the metadata and settings that define its content. Prefer loading a configured item rather than constructing them entirely from scratch through imperative code.
The core API (@arcgis/core) provides maps, web maps (2D), web scenes (3D), link charts (knowledge graphs), layers, visualization, authentication, identity management, and client-side analysis through its classes, methods, properties, events, and types.
The SDK's component are web components for declarative use in any frontend:
Map Components (@arcgis/map-components), AI Components (@arcgis/ai-components), Charts Components (@arcgis/charts-components), Coding Components (@arcgis/coding-components), Common Components (@arcgis/common-components), and Embeddable Components (@arcgis/embeddable-components).
The component packages build on Calcite Design System (@esri/calcite-components) for consistent, responsive, and accessible UI. For frontend design and layout, also read the build-with-calcite-design-system skill.
If the application's development requirements are unclear, use the gather-arcgis-application-requirements skill to review project context and clarify consequential unknowns before proceeding. Then apply this skill's technology-specific guidance, reusing requirements already clear from the request or project.
Developers must have one of the following ArcGIS accounts to create applications: ArcGIS Location Platform (free), or ArcGIS Online or ArcGIS Enterprise with a Creator, Professional, or Professional Plus user type. The account's user type, role, and privileges provide access to different resources and operations.
DO NOT SKIP: Refer to the follow-arcgis-authentication-patterns skill for ArcGIS authentication requirements, including the appropriate type of authentication for different audiences, use cases, and types of application. If the skill is not available, search the project for any existing authentication patterns, and if none are found, query the Esri MCP server for developer documentation for authentication best practices.
Read the project source code before providing implementation guidance based on it. For a standalone question about a Core API module, a component, or which package provides it, consult the documentation first, and inspect the app only if the context changes the answer.
Check these details before giving app-specific guidance:
js.arcgis.com script URL; it has no package manager.package.json or the CDN script URL. Do not assume a version; API availability depends on it.esriConfig.portalUrl and each item's portalItem.portal.url; an item can use a different portal. For Enterprise, include the configured web adaptor or context path, not just the host.@arcgis/core modules and types, and @arcgis/*-components packages and arcgis-* elements.esriConfig for applicationName, portalUrl, authentication, request settings, and relevant RequestOptions. Check the root <html lang> and Core API intl.setLocale() for locale.esriConfig.assetsPath and the component asset path passed to each package's setAssetPath().Use this to avoid giving CDN instructions to a package-managed app, one framework's patterns to another, or guidance for a newer SDK version to an app that uses an older version.
To update an existing app, use the matching guide — Get started, Vite, React, Angular, or TypeScript — and review the release notes for changes that affect it.
To create a new application, review available app templates with:
npx -y @arcgis/create --help
Use the user’s specified template and app name, or select suitable defaults. Create the app non-interactively:
npx -y @arcgis/create --name <app-name> --template <template-name>
If npx isn’t available, use the relevant template from jsapi-resources template.
Installing this skill individually does not configure Esri MCP server for developer documentation (esri-mcp-server-for-developer-documentation). Add that server at https://developers-mcp.arcgis.com/mcp using your client's MCP settings, or install the full ArcGIS SDKs and APIs plugin (arcgis-sdks-and-apis-plugin). If the MCP server is unavailable, consult the linked official Esri documentation.
Documentation can be queried using the Esri MCP server for developer documentation (esri-mcp-server-for-developer-documentation):
https://developers-mcp.arcgis.com/mcp
Use the search_esri_developer_docs tool to surface authoritative documentation pages with javascript-sdk as the focus_area parameter in addition to a specified search_term. Use the fetch_esri_developer_doc tool with the page_url parameter set to return the full content of a documentation page in Markdown format.
Clearly indicate any recommendations and assumptions that are not grounded in the official documentation. If the MCP server is unavailable, consult official documentation URLs below.
Start with the current SDK documentation page that best matches the app. Check official tutorials, samples, and Esri/jsapi-resources templates for an established pattern before inventing one, adapting what fits to the app's framework and conventions. Follow links from the best-matching page rather than re-searching the same topic with different wording. Do not treat source filenames as public URLs.
Choose the page type that matches the question:
$arcgis.import() module paths, and arcgis-* element names to find the right reference.references/core/, references/map-components/, references/coding-components/, references/charts-components/, references/ai-components/, references/common-components/, and references/embeddable-components/.references/<component-package>/components/<arcgis-*>/; Core API references use either references/core/<ClassName>/ for top-level modules or references/core/<namespace>/<...>/<ClassName>/ for namespaced modules. For example: references/map-components/components/arcgis-map/, references/charts-components/components/arcgis-chart/, references/core/Map/, references/core/layers/CSVLayer/, and references/core/geometry/operators/alphaShapeOperator/.sample-code/<sample-name>/.tutorials/<tutorial-name>/.guides/ path segment. For example: authentication/access-tokens/ resolves to <documentation-root>/authentication/access-tokens/./release-notes/ for the current release or a versioned page such as /v5-1/.Key documentation pages:
Components instead of widgets: Use components for all new development. Core API widgets are deprecated as of v5.0. Read the migration guide when you update an app that uses widgets.
Programming patterns: Use this guide for common component and Core API patterns. Read it for attributes and properties, HTML, Map and Scene setup, component visibility, portal items, multiple portals, localization, and widget view models.
Authentication: Use this guide to choose user, app, or API key authentication. Then read secure resources, the user authentication tutorial, the Core API OAuth sample, the component OAuth sample, and the IdentityManager and OAuthInfo references.
Async work and resources: Pass an AbortSignal, handle AbortError, and cancel old work before starting new work. For React, follow the React guidance.
Queries and SQL: Read this guide before querying or filtering, especially to choose between server-side and client-side. Build where clauses with @arcgis/core/core/sql.js rather than string concatenation, and note that createQuery() returns the layer's definitionExpression as where.
Geometry operators: Use geometry operators for spatial calculations, not for getting or filtering features.
Navigation and selection: Use arcgis-map.goTo() and arcgis-scene.goTo() for component-based navigation. Use MapView and SceneView when working directly with views. For canceling or interrupting navigation, refer to Handling interrupted view navigation. Use the LayerView reference for querying and highlighting visible features.
Calcite and application UI: Use Calcite components, foundations, and accessibility guidance. Read the UI placement guide for map and scene slots. Read the application layouts guide for shells, panels, and navigation.
Accessibility: Check keyboard use, focus, assistive technology, reduced motion, color contrast, and language.
Localization: Set the app locale and support translated strings, right-to-left text, and locale-aware dates, times, and numbers. Use the intl reference for locale APIs.
For older versions of the SDK, visit the archive page for links.
Use the Core API and components according to the application's delivery model.
After identifying the app's delivery model, read exactly one matching reference: package-managed apps or CDN apps. Do not load both for a single-model task.
When the task involves reusing a layer across components, read sharing data across components. When it involves configuration saved in web maps or layer items, read configuration saved with layers and items.
Import classes, functions, and types directly from their modules, using import type for type-only imports and the exported types rather than the deprecated __esri types.
Avoid generating unnecessarily complex @arcgis/core implementations when a component package provides an equivalent solution.
Match generated code to the user's frontend library and follow that library's conventions.
Label claims by how certain they are:
Before coding, inspect the items and layers an existing app loads. After coding, run the app, test its main workflows, and fix what fails. Repeat the relevant checks after changes.
fields, objectIdField, displayField, definitionExpression, charts, attributeTableTemplate, popupTemplate, and portalItem.access. Some populate lazily, so read after the UI settles: attributeTableTemplate can be null immediately after load() and present once a table component has rendered.esriId.findCredential("<portalUrl>/sharing") per portal before reading, and expect access to still govern what that account can see.displayField is frequently empty on services published from shapefiles or CSVs, which turns a displayField || objectIdField fallback into popups that show an object id. Prefer, in order: popupTemplate.title, the first attributeTableTemplate column, a field used in labelingInfo, then displayField, then objectIdField. Service metadata such as fieldValueType is visible only in raw service JSON, not on a loaded layer. Query by a field's name and display its alias; never query by alias.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub esri/esri-developer-agent-skills --plugin arcgis-sdks-and-apis-plugin15 skills in this plugin
/build-with-arcgis-and-cesiumjsBuild and troubleshoot browser-based 3D mapping apps with CesiumJS and ArcGIS. Use for ArcGIS basemaps, terrain, feature and map services, I3S/scene layers, geocoding, routing, places, and spatial analysis. Guide setup, authentication, ArcGIS REST JS integration, coordinate handling, attribution, and performance using current Esri documentation./build-with-arcgis-and-openlayersUse to build, extend, and troubleshoot browser based mapping applications with OpenLayers and ArcGIS services. Covers how to combine OpenLayers with ArcGIS basemaps, feature services, vector or raster tiles, location services, geocoding, routing, places, elevation, or secure ArcGIS resources. Includes ESM setup, ol-mapbox-style, ArcGIS REST JS, API keys and OAuth, projections, queries and pagination, styling, popups, editing, attribution, and performance./build-with-arcgis-api-for-pythonUse when working with ArcGIS API for Python (ArcGIS Python API, Python API for ArcGIS, Esri Python API), the arcgis Python package/library/module, or arcgis-mapping (arcgis.map). Covers scripts/notebooks, setup, authentication, Spatially Enabled DataFrames (SEDF), queries/edits, publishing, portal administration, cloning/dependencies, Web Maps/Web Scenes, analysis, geocoding, routing and arcgis.ai for ArcGIS Online, Enterprise and Location Platform. Not for ArcPy-only tasks or non-Python SDKs./build-with-arcgis-maplibreUse for displaying maps in a browser environment with MapLibre GL JS and ArcGIS services with @esri/maplibre-arcgis: Render ArcGIS basemaps, styles, sessions, feature layers, vector tiles, queries, and location services with authentication. Covers install, setup, debug, documentation, best practices, guidelines, explanations, and validation./build-with-arcgis-maps-sdk-for-dotnetUse this skill when building or extending native GIS applications with ArcGIS Maps SDK for .NET. Choose it for WPF or WinUI apps on Windows, or .NET MAUI apps for Windows, Android, iOS, and Mac Catalyst. Follow its guidance to set up and license the SDK, configure authentication, display 2D maps and 3D scenes, use ArcGIS Online, ArcGIS Enterprise, or ArcGIS Location Platform maps and services, and implement location, offline workflows, geocoding, routing, spatial analysis, editing, and synchronization. Use it for SDK-specific architecture, toolkit integration, validation, and platform considerations; consult follow-esri-authentication-patterns to select an authentication model./build-with-arcgis-maps-sdk-for-flutterUse this skill to build, extend, debug, and explain native iOS and Android apps with ArcGIS Maps SDK for Flutter. Guide SDK setup, authentication, maps and scenes, layers, location, offline workflows, and optional Toolkit widgets.Other plugins' skills for the same job