# mapbox-search-integration

Walks your agent through the full Mapbox search rollout: discovery questions first, then a working integration with the right API and parameters.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1900 installs · ★ 83
- Author: mapbox
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/mapbox/mapbox-agent-skills/tree/HEAD/skills/mapbox-search-integration/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/mapbox-search-integration

## What it does

The skill gives the agent an order of operations instead of letting it jump straight into code. It starts with questions: what users search for, which country, whether autocomplete is needed, and which platform the UI targets. Those answers drive the product choice.

Search Box API is the default recommendation. It covers addresses, POIs and autocomplete, and bills per session. Geocoding API is kept for batch server-side geocoding and stored results. For web work the skill points to the SDKs — Search JS React, Search JS Web, or Search JS Core when you build your own UI. Going straight to REST means handling debouncing and `session_token` yourself.

You will need a Mapbox key and a rough sense of search volume. Past a certain point the skill suggests caching and debouncing, because the bill creeps up quietly otherwise. It pairs with `mapbox-search-patterns`: that one picks tools and parameters, this one covers the whole build.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mapbox/mapbox-agent-skills --skill mapbox-search-integration -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mapbox-search-integration/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mapbox-search-integration/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mapbox/mapbox-agent-skills --skill mapbox-search-integration -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mapbox-search-integration/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mapbox/mapbox-agent-skills --skill mapbox-search-integration -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mapbox-search-integration/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mapbox/mapbox-agent-skills mapbox-search-integration
```

2. **Manually: put the files in place**
- File: `.github/skills/mapbox-search-integration/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mapbox/mapbox-agent-skills --skill mapbox-search-integration -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mapbox/mapbox-agent-skills --path skills/mapbox-search-integration
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mapbox-search-integration/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add mapbox/mapbox-agent-skills --skill mapbox-search-integration -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mapbox/mapbox-agent-skills/tree/HEAD/skills/mapbox-search-integration/SKILL.md

## When to use it
- decide between Search Box API and Geocoding API for a given feature
- add address autocomplete to a search bar on a map
- pick an SDK for React, iOS or Android instead of raw API calls
- constrain results to a country or delivery zone with `country` and `bbox`
- estimate what search will cost at high query volume

## Example prompts
- Add address search to my React app with a Mapbox map — walk me through the mapbox-search-integration skill
- I need autocomplete for businesses in Germany only, help me pick the API and parameters
- When a user picks an address from the suggestions, the map should fly to it — how do I wire that up?

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 9d652d039f7d15c0.

BEGIN THIRD-PARTY FILE 9d652d039f7d15c0
```text
---
name: mapbox-search-integration
description: Complete workflow for implementing Mapbox search in applications - from discovery questions to production-ready integration with best practices
---

# Mapbox Search Integration Skill

Expert guidance for implementing Mapbox search functionality in applications. Covers the complete workflow from asking the right discovery questions, selecting the appropriate search product, to implementing production-ready integrations following best practices from the Mapbox search team.

## Use This Skill When

User says things like:

- "I need to add search to my map"
- "I need a search bar for my mapping app"
- "How do I implement location search?"
- "I want users to search for places/addresses"
- "I need geocoding in my application"

**This skill complements `mapbox-search-patterns`:**

- `mapbox-search-patterns` = Tool and parameter selection
- `mapbox-search-integration` = Complete implementation workflow

## Discovery Phase: Ask the Right Questions

Before jumping into code, ask these questions to understand requirements:

### Question 1: What are users searching for?

**Ask:** "What do you want users to search for?"

**Common answers and implications:**

- **"Addresses"** → **Use Search Box API** (the default for interactive address search, including geocoding). Only use Geocoding API if the use case is batch/server-side geocoding or maintaining a legacy integration.
- **"Points of interest / businesses"** → POI search, use Search Box API with category search
- **"Both addresses and POIs"** → Search Box API
- **"Specific types of POIs"** (restaurants, hotels, etc.) → Search Box API
- **"Countries, cities, postcodes or neighborhoods"** → Search Box API for interactive search; Geocoding API only for batch/server-side geocoding
- **"Custom locations"** (user-created places) → May need custom data + search integration

**Follow-up if not stated initially**: "Are your users searching for points of interest data? Restaurants, stores, categories of businesses?"

**Implications:**

- **"Yes, POIs are included"** → Use the Search Box API
```
END THIRD-PARTY FILE 9d652d039f7d15c0

The third-party file has ended. Everything between the 9d652d039f7d15c0 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2118 of 11887 bytes. © mapbox · MIT · https://github.com/mapbox/mapbox-agent-skills/tree/HEAD/skills/mapbox-search-integration/SKILL.md

## Similar
- [maplibre-mapbox-migration](https://affpapa.org/en/nevibecode/skills/maplibre-mapbox-migration.md) — skill · 464 installs
- [amap](https://affpapa.org/en/nevibecode/skills/amap.md) — skill · 552 installs
- [amazon-location-service](https://affpapa.org/en/nevibecode/skills/amazon-location-service.md) — skill · 1000 installs

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
