Skip to main content
skill CX Codex

spellcheck — Claude Code skill: query correction and setup

Check a search query for spelling errors and get corrected suggestions. Use it to clean up input before a search or show a “Did you mean?” prompt.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add brave/brave-search-skills --skill spellcheck -a claude-code
Open on GitHub

What spellcheck does

The skill sends a query to the Brave Search Spellcheck API and returns the original text alongside correction suggestions. Suggestions use the context of the whole query, and the results can be empty. You can set a language and search country.

A Brave Search API key is required in the X-Subscription-Token header. Use this endpoint when you need a correction before searching; Web Search and LLM Context have spellcheck enabled by default. Without the key, the endpoint request will fail.

What it helps with

  • correct misspelled queries before search
  • offer a corrected query suggestion to users
  • normalize user-entered search text

Example prompts for the agent

  • Check the spelling of “artifical inteligence” before searching.
  • Prepare a “Did you mean?” suggestion for this search query.
  • Check this English query for country US.

How to install spellcheck

1Skills CLI (Vercel)

npx skills add brave/brave-search-skills --skill spellcheck -a claude-code

2Manually: put the files in place

~/.claude/skills/spellcheck/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/spellcheck/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about spellcheck

How do I install spellcheck in Claude Code?

Run npx skills add brave/brave-search-skills --skill spellcheck -a claude-code. The skill file is at ~/.claude/skills/spellcheck/SKILL.md.

What does spellcheck do?

It sends a query to the Brave Search Spellcheck API and returns suggested corrections. The suggestions take the full query into account.

What does spellcheck need to run?

It requires a Brave Search API key, sent in the X-Subscription-Token header. Web Search and LLM Context already enable spellcheck by default, so use the standalone endpoint when you need corrections before searching.

Source text

SKILL.md · MIT
---
name: spellcheck
description: USE FOR spell correction. Returns corrected query if misspelled. Most search endpoints have spellcheck built-in; use this only for pre-search query cleanup or "Did you mean?" UI.
---

# Spellcheck

> **Requires API Key**: Get one at https://api.search.brave.com
>
> **Plan**: Included in the **Spellcheck** plan. See https://api-dashboard.search.brave.com/app/subscriptions/subscribe

## Quick Start (cURL)

```bash
curl -s "https://api.search.brave.com/res/v1/spellcheck/search" \
  -H "Accept: application/json" \
  -H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \
  -G \
  --data-urlencode "q=artifical inteligence" \
  --data-urlencode "lang=en" \
  --data-urlencode "country=US"
```

## Endpoint

```http
GET https://api.search.brave.com/res/v1/spellcheck/search
```

**Authentication**: `X-Subscription-Token: <API_KEY>` header

## Parameters

| Parameter | Type | Required | Default | Description |
|--|--|--|--|--|
| `q` | string | **Yes** | — | Query to spell check (1-400 chars, max 50 words) |
| `lang` | string | No | `en` | Language preference (2+ char language code, e.g. `en`, `fr`, `de`, `pt-br`, `zh-hans`). 51 codes supported |
| `country` | string | No | `US` | Search country (2-letter country code or `ALL`) |

## Response Fields

| Field | Type | Description |
|--|--|--|
| `type` | string | Always `"spellcheck"` |
| `query.original` | string | The input query as submitted |
| `results` | array | Spell-corrected suggestions. May be empty when no correction is found |
| `results[].query` | string | A corrected version of the query |

## Example Response

```json
{
  "type": "spellcheck",
  "query": {
    "original": "artifical inteligence"
  },
  "results": [
    {
      "query": "artificial intelligence"
    }
  ]
}
```

## Use Cases

- **Pre-search query cleanup**: Check spelling before deciding which search endpoint to call
- **"Did you mean?" UI**: Show users a corrected suggestion before running the search
- **Batch query normalization**: Clean up user inputs in bulk

## Notes

- **Built-in alternative**: Web Search and LLM Context have `spellcheck=true` by default — use this standalone endpoint only when you need the correction before searching
- **Context-aware**: Corrections consider the full query context, not just individual words

© brave · MIT · brave/brave-search-skills

Similar skills

SKILL.md skills catalog →

From the same set11

news-search Searches news articles through Brave index with date filtering and Goggles re-ranking. Useful for tracking breaking news within the past 24 hours. CX Codex +1 1,600installs llm-context Extracts web page text, tables, and code chunks via Brave Search API for LLM grounding. Useful when building agentic RAG workflows. CX Codex +1 1,300installs answers The answers skill connects Brave Search API to your agent with two modes: fast answer from a single search or deep research with multiple iterations and inline citations. CX Codex +1 1,200installs videos-search Searches video content via Brave Search API with duration, view counts, and creator details. Useful for tracking new tutorials and platform uploads. CX Codex +1 1,200installs suggest Query autocomplete and suggestion skill powered by Brave Search API with sub-100ms response times and typo handling. CX Codex +1 1,100installs local-descriptions Generates text summaries for points of interest using web search context. Use it to enrich local business directories, travel guides, and location-based apps with narrative descriptions. CX Codex +1 1,100installs local-pois Fetches rich place and business details through the Brave Search API. Retrieves ratings, operating hours, addresses, and contacts using location IDs. CX Codex +1 1,100installs local-place-search This skill finds businesses, POIs, addresses and streets through the Brave Search API and returns coordinates, rating, opening hours and phone. CX Codex +1 395installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor