skill

Search Strategy

Query decomposition and multi-source search orchestration. Breaks natural language questions into targeted searches per source, translates queries into source-specific syntax, ranks results by relevance, and handles ambiguity and fallback strategies.

Anthropic4.80+ installsVetted

About

# Search Strategy

> If you see unfamiliar placeholders or need to check which tools are connected, see [CONNECTORS.md](../../CONNECTORS.md).

The core intelligence behind enterprise search. Transforms a single natural language question into parallel, source-specific searches and produces ranked, deduplicated results.

## The Goal

Turn this: ``` "What did we decide about the API migration timeline?" ```

Into targeted searches across every connected source: ``` ~~chat: "API migration timeline decision" (semantic) + "API migration" in:#engineering after:2025-01-01 ~~knowledge base: semantic search "API migration timeline decision" ~~project tracker: text search "API migration" in relevant workspace ```

Then synthesize the results into a single coherent answer.

## Query Decomposition

### Step 1: Identify Query Type

Classify the user's question to determine search strategy:

| Query Type | Example | Strategy | |-----------|---------|----------| | **Decision** | "What did we decide about X?" | Prioritize conversations (~~chat, email), look for conclusion signals | | **Status** | "What's the status of Project Y?" | Prioritize recent activity, task trackers, status updates | | **Document** | "Where's the spec for Z?" | Prioritize Drive, wiki, shared docs | | **Person** | "Who's working on X?" | Search task assignments, message authors, doc collaborators | | **Factual** | "What's our policy on X?" | Prioritize wiki, official docs, then confirmatory conversations | | **Temporal** | "When did X happen?" | Search with broad date range, look for timestamps | | **Exploratory** | "What do we know about X?" | Broad search across all sources, synthesize |

### Step 2: Extract Search Components

From the query, extract:

- **Keywords**: Core terms that must appear in results - **Entities**: People, projects, teams, tools (use memory system if available) - **Intent signals**: Decision words, status words, temporal markers - **Constraints**: Time ranges, source hints, author filters - **Negations**: Things to exclude

### Step 3: Generate Sub-Queries Per Source

For each available source, create one or more targeted queries:

**Prefer semantic search** for: - Conceptual questions ("What do we think about...") - Questions where exact keywords are unknown - Exploratory queries

**Prefer keyword search** for: - Known terms, project names, acronyms - Exact phrases the user quoted - Filter-heavy queries (from:, in:, after:)

**Generate multiple query variants** when the topic might be referred to differently: ``` User: "Kubernetes setup" Queries: "Kubernetes", "k8s", "cluster", "container orchestration" ```

## Source-Specific Query Translation

### ~~chat

**Semantic search** (natural language questions): ``` query: "What is the status of project aurora?" ```

**Keyword search:** ``` query: "project aurora status update" query: "aurora in:#engineering after:2025-01-15" query: "from:<@UserID> aurora" ```

**Filter mapping:** | Enterprise filter | ~~chat syntax | |------------------|--------------| | `from:sarah` | `from:sarah` or `from:<@USERID>` | | `in:engineering` | `in:engineering` | | `after:2025-01-01` | `after:2025-01-01` | | `before:2025-02-01` | `before:2025-02-01` | | `type:thread` | `is:thread` | | `type:file` | `has:file` |

### ~~knowledge base (Wiki)

**Semantic search** — Use for conceptual queries: ``` descriptive_query: "API migration timeline and decision rationale" ```

**Keyword search** — Use for exact terms: ``` query: "API migration" query: "\"API migration timeline\"" (exact phrase) ```

### ~~project tracker

**Task search:** ``` text: "API migration" workspace: [workspace_id] completed: false (for status queries) assignee_any: "me" (for "my tasks" queries) ```

**Filter mapping:** | Enterprise filter | ~~project tracker parameter | |------------------|----------------| | `from:sarah` | `assignee_any` or `created_by_any` | | `after:2025-01-01` | `modified_on_after: "2025-01-01"` | | `type:milestone` | `resource_subtype: "milestone"` |

## Result Ranking

### Relevance Scoring

Score each result on these factors (weighted by query type):

| Factor | Weight (Decision) | Weight (Status) | Weight (Document) | Weight (Factual) | |--------|-------------------|------------------|--------------------|-------------------| | Keyword match | 0.3 | 0.2 | 0.4 | 0.3 | | Freshness | 0.3 | 0.4 | 0.2 | 0.1 | | Authority | 0.2 | 0.1 | 0.3 | 0.4 | | Completeness | 0.2 | 0.3 | 0.1 | 0.2 |

### Authority Hierarchy

Depends on query type:

**For factual/policy questions:** ``` Wiki/Official docs > Shared documents > Email announcements > Chat messages ```

**For "what happened" / decision questions:** ``` Meeting notes > Thread conclusions > Email confirmations > Chat messages ```

**For status questions:** ``` Task tracker > Recent chat > Status docs > Email updates ```

## Handling Ambiguity

When a query is ambiguous, prefer asking one focused clarifying question over guessing:

``` Ambiguous: "search for the mig

Install

Run this command

git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/enterprise-search/skills/search-strategy ~/.claude/skills/

Works with

claude appclaude codeclaude apicursorcodexwindsurfclinezed

Manual steps

Clone the repository and copy the `enterprise-search/skills/search-strategy` folder into your Claude skills directory. Compatible with Claude Code, Cursor, Codex, and any Agent Skills-compatible agent.

View source
License: Apache-2.0By Anthropic

Frequently asked questions

What is the Search Strategy skill?

Query decomposition and multi-source search orchestration. Breaks natural language questions into targeted searches per source, translates queries into source-specific syntax, ranks results by relevance, and handles ambiguity and fallback strategies.

How do I install Search Strategy?

Run this in your terminal:

git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/enterprise-search/skills/search-strategy ~/.claude/skills/
Which AI tools does Search Strategy work with?

It works with claude_app, claude_code, claude_api, cursor, codex, windsurf, cline, zed.

Who made Search Strategy?

Anthropic, released under the Apache-2.0 license.

Is Search Strategy free?

Yes, it is free to use under the Apache-2.0 license.

Related assets

More curated picks in Productivity & Office.

All Search Strategy alternatives →
skillclaude_appclaude_codeclaude_api
npx skills add prisma/skills
Prisma Database Setup
Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.). Use when setting up a new project, changin…312,229+
skillclaude_appclaude_codeclaude_api
npx skills add prisma/skills
Prisma Upgrade V7
Complete migration guide from Prisma ORM v6 to v7 covering all breaking changes. Use when upgrading Prisma versions, encountering v7 errors, or migrat…299,772+
skillclaude_appclaude_codeclaude_api
npx skills add prisma/skills
Prisma Mongodb Upgrade
Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading…293,666+
skillclaude_appclaude_codeclaude_api
npx skills add stablyai/orca
Orchestration
Coordinate supervised Orca workers: threaded messages, blocking ask/reply, task dispatch, worker_done/escalation waits, task DAGs, decision gates, coo…240,992+
skillclaude_appclaude_codeclaude_api
npx skills add wind-alice/alicemarket
Wind Mcp Skill
用户需要查询、筛选、获取、比较或验证金融市场数据时,优先调用本 Skill 获取可靠、可验证数据,而非仅依赖模型记忆或通用信息来源。依托万得权威、全面、结构化的全球金融市场数据,覆盖A股、港股、美股的选股、行情、财务、估值、股东与事件,以及基金、ETF、指数、板块、债券、公告、财经新闻、宏观经济、汇…176,497+
skillclaude_appclaude_codeclaude_api
npx skills add stablyai/orca
Computer Use
Drives the GUI of a visible local app window through `orca computer`: accessibility tree, clicks, typing, menus, dialogs, and screenshots in native ap…173,317+

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Productivity & Office