Skill Tracer
Skills › Knowledge Work Plugins › search-strategy

search-strategy

skill · 222 lines · Apache-2.0 · enterprise-search/skills/search-strategy/SKILL.md

The facts

Its description

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.

The description the agent reads to decide when to use it.

From its settingsline 3

When it starts

This skill is not user-invocable, so a person's words never load it directly; it is pulled in by another skill in the enterprise-search flow when a natural-language question has to be broken into parallel, source-specific searches. It runs as the internal query-decomposition and ranking engine behind that flow.

A model's summary of when it is used.

A model's reading

Who can start it

Only the agent

Only the agent starts it. It's hidden from your commands.

From its settingsline 4

What it leads to

Other skills this one hands off to, calls, requires or offers instead, as a model read them.

A model's reading

Licence

Apache-2.0, from enterprise-search/LICENSE

The terms its author shares it under, which let it be shown here.

From the repositorylicence text

The text

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1---
2name: search-strategy
3description: 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.
4user-invocable: false
5---
6
7# Search Strategy
8
9> If you see unfamiliar placeholders or need to check which tools are connected, see [CONNECTORS.md](../../CONNECTORS.md).
11The core intelligence behind enterprise search. Transforms a single natural language question into parallel, source-specific searches and produces ranked, deduplicated results.

Search Strategy

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

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

Raw lines 1 to 12
13## The Goal
15Turn this:
16```
17"What did we decide about the API migration timeline?"
18```
20Into targeted searches across every connected source:
21```
22~~chat: "API migration timeline decision" (semantic) + "API migration" in:#engineering after:2025-01-01
23~~knowledge base: semantic search "API migration timeline decision"
24~~project tracker: text search "API migration" in relevant workspace
25```
27Then synthesize the results into a single coherent answer.

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.

Raw lines 13 to 28
Uses an outside tool ~~chat :22
Uses an outside tool ~~knowledge :23
Uses an outside tool ~~project :24
29## Query Decomposition

Query Decomposition

Raw lines 29 to 30
31### Step 1: Identify Query Type
33Classify the user's question to determine search strategy:
35| Query Type | Example | Strategy |
36|-----------|---------|----------|
37| **Decision** | "What did we decide about X?" | Prioritize conversations (~~chat, email), look for conclusion signals |
38| **Status** | "What's the status of Project Y?" | Prioritize recent activity, task trackers, status updates |
39| **Document** | "Where's the spec for Z?" | Prioritize Drive, wiki, shared docs |
40| **Person** | "Who's working on X?" | Search task assignments, message authors, doc collaborators |
41| **Factual** | "What's our policy on X?" | Prioritize wiki, official docs, then confirmatory conversations |
42| **Temporal** | "When did X happen?" | Search with broad date range, look for timestamps |
43| **Exploratory** | "What do we know about X?" | Broad search across all sources, synthesize |

Step 1: Identify Query Type

Classify the user's question to determine search strategy:

Query TypeExampleStrategy
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
Raw lines 31 to 44
Uses an outside tool ~~chat :37
45### Step 2: Extract Search Components
47From the query, extract:
49- **Keywords**: Core terms that must appear in results
50- **Entities**: People, projects, teams, tools (use memory system if available)
51- **Intent signals**: Decision words, status words, temporal markers
52- **Constraints**: Time ranges, source hints, author filters
53- **Negations**: Things to exclude

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
Raw lines 45 to 54
Names a skill memory-management :50
55### Step 3: Generate Sub-Queries Per Source
57For each available source, create one or more targeted queries:
59**Prefer semantic search** for:
60- Conceptual questions ("What do we think about...")
61- Questions where exact keywords are unknown
62- Exploratory queries
64**Prefer keyword search** for:
65- Known terms, project names, acronyms
66- Exact phrases the user quoted
67- Filter-heavy queries (from:, in:, after:)
69**Generate multiple query variants** when the topic might be referred to differently:
70```
71User: "Kubernetes setup"
72Queries: "Kubernetes", "k8s", "cluster", "container orchestration"
73```

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"
Raw lines 55 to 74
75## Source-Specific Query Translation

Source-Specific Query Translation

Raw lines 75 to 76
77### ~~chat
79**Semantic search** (natural language questions):
80```
81query: "What is the status of project aurora?"
82```
84**Keyword search:**
85```
86query: "project aurora status update"
87query: "aurora in:#engineering after:2025-01-15"
88query: "from:<@UserID> aurora"
89```
91**Filter mapping:**
92| Enterprise filter | ~~chat syntax |
93|------------------|--------------|
94| `from:sarah` | `from:sarah` or `from:<@USERID>` |
95| `in:engineering` | `in:engineering` |
96| `after:2025-01-01` | `after:2025-01-01` |
97| `before:2025-02-01` | `before:2025-02-01` |
98| `type:thread` | `is:thread` |
99| `type:file` | `has:file` |

~~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:sarahfrom:sarah or from:<@USERID>
in:engineeringin:engineering
after:2025-01-01after:2025-01-01
before:2025-02-01before:2025-02-01
type:threadis:thread
type:filehas:file
Raw lines 77 to 100
Uses an outside tool ~~chat :77
101### ~~knowledge base (Wiki)
103**Semantic search** — Use for conceptual queries:
104```
105descriptive_query: "API migration timeline and decision rationale"
106```
108**Keyword search** — Use for exact terms:
109```
110query: "API migration"
111query: "\"API migration timeline\"" (exact phrase)
112```

~~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)
Raw lines 101 to 113
Uses an outside tool ~~knowledge :101
114### ~~project tracker
116**Task search:**
117```
118text: "API migration"
119workspace: [workspace_id]
120completed: false (for status queries)
121assignee_any: "me" (for "my tasks" queries)
122```
124**Filter mapping:**
125| Enterprise filter | ~~project tracker parameter |
126|------------------|----------------|
127| `from:sarah` | `assignee_any` or `created_by_any` |
128| `after:2025-01-01` | `modified_on_after: "2025-01-01"` |
129| `type:milestone` | `resource_subtype: "milestone"` |

~~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:sarahassignee_any or created_by_any
after:2025-01-01modified_on_after: "2025-01-01"
type:milestoneresource_subtype: "milestone"
Raw lines 114 to 130
Uses an outside tool ~~project :114
131## Result Ranking

Result Ranking

Raw lines 131 to 132
133### Relevance Scoring
135Score each result on these factors (weighted by query type):
137| Factor | Weight (Decision) | Weight (Status) | Weight (Document) | Weight (Factual) |
138|--------|-------------------|------------------|--------------------|-------------------|
139| Keyword match | 0.3 | 0.2 | 0.4 | 0.3 |
140| Freshness | 0.3 | 0.4 | 0.2 | 0.1 |
141| Authority | 0.2 | 0.1 | 0.3 | 0.4 |
142| Completeness | 0.2 | 0.3 | 0.1 | 0.2 |

Relevance Scoring

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

FactorWeight (Decision)Weight (Status)Weight (Document)Weight (Factual)
Keyword match0.30.20.40.3
Freshness0.30.40.20.1
Authority0.20.10.30.4
Completeness0.20.30.10.2
Raw lines 133 to 143
144### Authority Hierarchy
146Depends on query type:
148**For factual/policy questions:**
149```
150Wiki/Official docs > Shared documents > Email announcements > Chat messages
151```
153**For "what happened" / decision questions:**
154```
155Meeting notes > Thread conclusions > Email confirmations > Chat messages
156```
158**For status questions:**
159```
160Task tracker > Recent chat > Status docs > Email updates
161```

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
Raw lines 144 to 162
163## Handling Ambiguity
165When a query is ambiguous, prefer asking one focused clarifying question over guessing:
167```
168Ambiguous: "search for the migration"
169→ "I found references to a few migrations. Are you looking for:
170 1. The database migration (Project Phoenix)
171 2. The cloud migration (AWS → GCP)
172 3. The email migration (Exchange → O365)"
173```
175Only ask for clarification when:
176- There are genuinely distinct interpretations that would produce very different results
177- The ambiguity would significantly affect which sources to search
179Do NOT ask for clarification when:
180- The query is clear enough to produce useful results
181- Minor ambiguity can be resolved by returning results from multiple interpretations

Handling Ambiguity

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

Ambiguous: "search for the migration"
→ "I found references to a few migrations. Are you looking for:
   1. The database migration (Project Phoenix)
   2. The cloud migration (AWS → GCP)
   3. The email migration (Exchange → O365)"

Only ask for clarification when:

  • There are genuinely distinct interpretations that would produce very different results
  • The ambiguity would significantly affect which sources to search

Do NOT ask for clarification when:

  • The query is clear enough to produce useful results
  • Minor ambiguity can be resolved by returning results from multiple interpretations
Raw lines 163 to 182
183## Fallback Strategies
185When a source is unavailable or returns no results:
1871. **Source unavailable**: Skip it, search remaining sources, note the gap
1882. **No results from a source**: Try broader query terms, remove date filters, try alternate keywords
1893. **All sources return nothing**: Suggest query modifications to the user
1904. **Rate limited**: Note the limitation, return results from other sources, suggest retrying later

Fallback Strategies

When a source is unavailable or returns no results:

  1. Source unavailable: Skip it, search remaining sources, note the gap
  2. No results from a source: Try broader query terms, remove date filters, try alternate keywords
  3. All sources return nothing: Suggest query modifications to the user
  4. Rate limited: Note the limitation, return results from other sources, suggest retrying later
Raw lines 183 to 191
192### Query Broadening
194If initial queries return too few results:
195```
196Original: "PostgreSQL migration Q2 timeline decision"
197Broader: "PostgreSQL migration"
198Broader: "database migration"
199Broadest: "migration"
200```
202Remove constraints in this order:
2031. Date filters (search all time)
2042. Source/location filters
2053. Less important keywords
2064. Keep only core entity/topic terms

Query Broadening

If initial queries return too few results:

Original: "PostgreSQL migration Q2 timeline decision"
Broader:  "PostgreSQL migration"
Broader:  "database migration"
Broadest: "migration"

Remove constraints in this order:

  1. Date filters (search all time)
  2. Source/location filters
  3. Less important keywords
  4. Keep only core entity/topic terms
Raw lines 192 to 207
208## Parallel Execution
210Always execute searches across sources in parallel, never sequentially. The total search time should be roughly equal to the slowest single source, not the sum of all sources.
212```
213[User query]
214 ↓ decompose
215[~~chat query] [~~email query] [~~cloud storage query] [Wiki query] [~~project tracker query]
216 ↓ ↓ ↓ ↓ ↓
217 (parallel execution)
218 ↓
219[Merge + Rank + Deduplicate]
220 ↓
221[Synthesized answer]
222```

Parallel Execution

Always execute searches across sources in parallel, never sequentially. The total search time should be roughly equal to the slowest single source, not the sum of all sources.

[User query]
     ↓ decompose
[~~chat query] [~~email query] [~~cloud storage query] [Wiki query] [~~project tracker query]
     ↓            ↓            ↓              ↓            ↓
  (parallel execution)
     ↓
[Merge + Rank + Deduplicate]
     ↓
[Synthesized answer]
Raw lines 208 to 222
Uses an outside tool ~~chat :215
Uses an outside tool ~~email :215
Uses an outside tool ~~cloud :215
Uses an outside tool ~~project :215

From anthropics/knowledge-work-plugins at 2574e29, 2026-10-27. Skills read by DeepSeek V4.1 Flash on 2026-11-04. Summary and techniques by Claude Opus 5.5 on 2026-11-06.