enterprise-search/skills/search-strategy/SKILL.md
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.
npx skillsauth add anthropics/knowledge-work-plugins search-strategyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
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.
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 |
From the query, extract:
For each available source, create one or more targeted queries:
Prefer semantic search for:
Prefer keyword search for:
Generate multiple query variants when the topic might be referred to differently:
User: "Kubernetes setup"
Queries: "Kubernetes", "k8s", "cluster", "container orchestration"
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 |
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)
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" |
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 |
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
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:
Do NOT ask for clarification when:
When a source is unavailable or returns no results:
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:
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]
testing
Reads a forwarded customer email or ticket, pulls order/refund status from PayPal and account history from HubSpot, drafts a tone-matched reply in the owner's writing voice, and can issue a PayPal refund with explicit owner approval. Use when the user says "draft a response," "answer this customer," "where's my order," or "I want a refund."
development
Prepares tax-season materials for small business owners — framed as deliverables for their accountant, not tax advice. Two modes: (1) quarterly estimated tax calculation — pulls YTD net income from QuickBooks and calculates the federal income tax + self-employment tax liability and quarterly payment due; (2) year-end 1099 prep — scans QuickBooks, PayPal, and Stripe for contractors paid over $600, builds a 1099-NEC candidate list with missing W-9 flags, and produces a plain-English summary a CPA can work from directly. Trigger this skill whenever the user mentions: quarterly taxes, estimated tax payment, how much to set aside for taxes, 1099s, 1099-NEC, year-end tax prep, contractor payments, W-9s, or any phrase suggesting they are preparing for a tax deadline or handing materials to an accountant. Also trigger proactively when a user asks about net profit or YTD income in a context that suggests they are worried about their tax bill.
tools
Prepares tax-season materials — quarterly estimated tax calculation or year-end 1099 prep — and produces an accountant handoff packet. Accepts optional mode and year arguments.
tools
The front door to the Small Business plugin. Listens to what the owner needs right now — vague or specific — and routes them to the best skill or slash command for the moment. Also serves as a guide: explains what's available, suggests what to try next, and adapts recommendations based on stored business context. Trigger whenever the owner asks "what can you do," "help me with my business," "what should I focus on," "I don't know where to start," or any open-ended business request that doesn't clearly match a single skill.