With the release of ArcGIS Experience Builder Developer Edition v1.21, Esri introduced the arcgis-exb-widget-dev skill to streamline the development of custom widgets. The skill guides your coding agent through the process of creating, modifying, and testing custom widgets in Experience Builder.

What is the widget development skill?

The arcgis-exb-widget-dev skill helps coding agents create, modify, debug, and test widgets for ArcGIS Experience Builder Developer Edition.

The skill provides a consistent workflow for:

  • Defining widget requirements
  • Identifying the affected implementation surfaces
  • Updating widget files
  • Preserving saved app configurations
  • Testing and validating changes

The skill supports the following coding agents:

Why use the skill?

You can use the skill to guide a coding agent through Experience Builder widget development while following the patterns and contracts defined by the current repository.

You can use it to:

  • Create a widget from a set of requirements.
  • Modify an existing widget.
  • Add or update a settings interface.
  • Integrate a widget with data sources, maps, or layers.
  • Configure communication between widgets.
  • Add actions or extension points.
  • Update configuration, translations, tests, or accessibility support.
  • Migrate existing functionality to supported components or APIs.
  • Debug and validate widget changes.
  • Preserve compatibility with saved app configurations.

The skill identifies missing requirements before implementation begins and limits changes to the implementation surfaces required by the task.

How to use the skill

Use the skill in these four steps:

1. Install the skill

Copy the entire arcgis-exb-widget-dev folder from the ArcGIS Experience Builder SDK resources repo into the skills directory at the root of your project.

Use the directory associated with your coding agent:

  • VS Code: <project-root>/.github/skills/arcgis-exb-widget-dev/
  • Codex: <project-root>/.agents/skills/arcgis-exb-widget-dev/
  • Claude Code: <project-root>/.claude/skills/arcgis-exb-widget-dev/
  • Cursor: <project-root>/.cursor/skills/arcgis-exb-widget-dev/

The installed folder must include the skill definition, references, and supporting resources.

2. Describe your widget

Invoke the skill and describe the widget work you want the agent to complete:

Use dark colors for code blocksCopy
1
/arcgis-exb-widget-dev {requirement payload}

At minimum, the requirement should identify:

  • Task type: Whether to create or modify a widget
  • Target: The widget name or path
  • Goal: The expected widget behavior

If the requirement is incomplete, the agent pauses and asks focused questions before implementation begins.

Use the following template to structure the request:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Task type:
{New widget | Modify existing widget}

Target:
{Widget name or existing widget path}

Goal:
{Expected runtime behavior}

Target users:
{People who will use or configure the widget}

Settings interface:
{None | Required settings and behavior}

Data and map integration:
{None | Data source | Feature layer | Map view | Layer view | Multiple}

Communication:
{None | Message action | Data action | Output data | Shared state}

Extensions:
{None | Required extension points or operations}

Compatibility:
{Whether existing saved configurations must continue to work}

Accessibility:
{Accessibility requirements}

Testing:
{Expected tests and runtime scenarios}

Additional requirements:
{Other implementation details or constraints}

Only include fields relevant to the widget. If a required decision is missing, the agent asks for clarification before implementation.

For example:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
/arcgis-exb-widget-dev

Task type:
New widget

Target:
star-rating

Goal:
Allow a user to select a rating from 1 to 5, display the selected
rating, and save it to a configured data source.

3. Build or update the widget

After the requirements are clear, the skill determines which widget files and implementation surfaces are affected.

The skill classifies changes by impact level:

TierTypical scopeCommonly affected files
Tier 1Runtime behavior or UIsrc/runtime/** and related tests
Tier 2Configurable behaviorTier 1 files, src/config.ts, config.json, src/setting/**, and translations
Tier 3Capabilities or integrationsTier 2 files, manifest.json, README, actions, messages, data sources, and map contracts

The skill starts with the smallest scope that satisfies the requirement and expands only when needed.

It may update:

  • Runtime behavior
  • Settings interface
  • Configuration and compatibility logic
  • Manifest and contract files
  • Data source, map, or layer integration
  • Translations and accessibility support
  • Tests and validation checks

For a new widget, the agent may create files such as:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
manifest.json
config.json
icon.svg
README.md
src/config.ts
src/runtime/widget.tsx
src/setting/setting.tsx
src/runtime/translations/default.ts
src/setting/translations/default.ts
tests/**

For an existing widget, the agent reviews the current manifest, configuration, runtime implementation, settings implementation, translations, README, and related tests before making changes.

The underlying implementation flow is:

  1. Confirm the widget folder and manifest are valid.
  2. Route the requirement to the affected implementation surfaces.
  3. Update configuration and type contracts when needed.
  4. Update the settings interface when needed.
  5. Implement the runtime behavior.
  6. Update supporting files and registration when required.
  7. Validate the result.

4. Review and refine the widget

After implementation, review the agent summary and code changes to confirm they match the requirements.

The summary may include:

  • Widget name and type
  • Change-impact tier
  • Runtime behavior
  • Settings behavior
  • Data, map, or layer integration
  • Widget communication
  • Configuration changes
  • Manifest changes
  • Compatibility considerations
  • Accessibility support
  • Tests
  • Files created or modified
  • Validation results

Refine the widget

After the initial implementation, invoke the skill again or continue in the same conversation to request refinements.

For example:

Use dark colors for code blocksCopy
1
2
3
4
5
/arcgis-exb-widget-dev

Modify the star-rating widget. Add a setting that allows the
experience author to choose whether users can update a submitted
rating.

When continuing in the same conversation, the agent can use the existing implementation context to refine the widget.

Validate the widget

Once the implementation is complete, you can run validation tests to ensure your widget conforms to the expected behavior and requirements.

From the client directory, run:

Use dark colors for code blocksCopy
1
npm run tscheck:extensions

If translations, locale declarations, translation folders, or framework translation keys are affected, also run:

Use dark colors for code blocksCopy
1
npm run check-translation

If you create or modify a widget manifest, the changes are loaded dynamically and take effect without restarting the client development process.

Prompt examples

The following examples show common widget-development tasks.

Create a widget

This example demonstrates how to create a new widget using the skill. The agent will guide you through the process based on the provided requirement payload.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/arcgis-exb-widget-dev

Task type:
New widget

Target:
star-rating

Goal:
Allow users to select a rating from 1 to 5 and save the rating
to a configured feature layer. Each user can submit one rating
and update it later.

Target users:
People viewing the published experience.

Settings interface:
Allow the experience author to select the target feature layer
and rating field.

Data and map integration:
Feature layer

Accessibility:
Support keyboard navigation and provide an accessible name for
each rating option.

Testing:
Add tests for submitting and updating a rating.

Modify a widget

This example demonstrates how to modify an existing widget using the skill.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/arcgis-exb-widget-dev

Task type:
Modify existing widget

Target:
measurement

Goal:
Allow the experience author to define the default measurement unit.

Settings interface:
Add a unit selector that uses the existing supported measurement
units.

Compatibility:
Preserve existing saved configurations. Use the current default
when a saved configuration does not contain the new property.

Testing:
Add tests for the default value and saved unit selection.

Get map coordinates

This example demonstrates how to create a widget that displays coordinates for a location selected on a map.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
/arcgis-exb-widget-dev

Create a "Get map coordinates" widget:
Setting:
  1. Select a Map widget
  2. Output coordinate system
  3. Decimal place of coordinates

Runtime:
  1. When the user clicks on the map, get the coordinates and show on the widget in a good format
  2. The user is able to copy the coordinates to the clipboard

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.