search-strategy by anthropics/knowledge-work-plugins
npx skills add https://github.com/anthropics/knowledge-work-plugins --skill search-strategy如果您看到不熟悉的占位符或需要检查连接了哪些工具,请参阅 CONNECTORS.md。
企业搜索背后的核心智能。将单个自然语言问题转换为并行的、特定于来源的搜索,并生成经过排序、去重的结果。
将以下内容:
"What did we decide about the API migration timeline?"
转换为针对每个已连接来源的定向搜索:
~~chat: "API migration timeline decision" (语义) + "API migration" in:#engineering after:2025-01-01
~~knowledge base: 语义搜索 "API migration timeline decision"
~~project tracker: 文本搜索 "API migration" in relevant workspace
然后将结果综合成一个连贯的答案。
对用户的问题进行分类以确定搜索策略:
| 查询类型 | 示例 | 策略 |
|---|---|---|
| 决策 | "关于 X 我们决定了什么?" |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 优先对话(~~chat、email),寻找结论信号 |
| 状态 | "项目 Y 的状态是什么?" | 优先近期活动、任务跟踪器、状态更新 |
| 文档 | "Z 的规范在哪里?" | 优先 Drive、wiki、共享文档 |
| 人员 | "谁在负责 X?" | 搜索任务分配、消息作者、文档协作者 |
| 事实性 | "我们对 X 的政策是什么?" | 优先 wiki、官方文档,然后是确认性对话 |
| 时间性 | "X 是什么时候发生的?" | 使用宽泛的日期范围搜索,寻找时间戳 |
| 探索性 | "关于 X 我们知道什么?" | 在所有来源中进行广泛搜索,然后综合 |
从查询中提取:
针对每个可用来源,创建一个或多个定向查询:
优先使用语义搜索的情况:
优先使用关键词搜索的情况:
当主题可能以不同方式被提及时,生成多个查询变体:
User: "Kubernetes setup"
Queries: "Kubernetes", "k8s", "cluster", "container orchestration"
语义搜索(自然语言问题):
query: "What is the status of project aurora?"
关键词搜索:
query: "project aurora status update"
query: "aurora in:#engineering after:2025-01-15"
query: "from:<@UserID> aurora"
过滤器映射:
| 企业过滤器 | ~~chat 语法 |
|---|---|
from:sarah | from:sarah 或 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 |
语义搜索 — 用于概念性查询:
descriptive_query: "API migration timeline and decision rationale"
关键词搜索 — 用于确切术语:
query: "API migration"
query: "\"API migration timeline\"" (确切短语)
任务搜索:
text: "API migration"
workspace: [workspace_id]
completed: false (用于状态查询)
assignee_any: "me" (用于"我的任务"查询)
过滤器映射:
| 企业过滤器 | ~~project tracker 参数 |
|---|---|
from:sarah | assignee_any 或 created_by_any |
after:2025-01-01 | modified_on_after: "2025-01-01" |
type:milestone | resource_subtype: "milestone" |
根据以下因素对每个结果进行评分(权重根据查询类型调整):
| 因素 | 权重(决策) | 权重(状态) | 权重(文档) | 权重(事实性) |
|---|---|---|---|---|
| 关键词匹配 | 0.3 | 0.2 | 0.4 | 0.3 |
| 新鲜度 | 0.3 | 0.4 | 0.2 | 0.1 |
| 权威性 | 0.2 | 0.1 | 0.3 | 0.4 |
| 完整性 | 0.2 | 0.3 | 0.1 | 0.2 |
取决于查询类型:
对于事实性/政策性问题:
Wiki/官方文档 > 共享文档 > 电子邮件公告 > 聊天消息
对于"发生了什么"/决策性问题:
会议记录 > 线程结论 > 电子邮件确认 > 聊天消息
对于状态问题:
任务跟踪器 > 近期聊天 > 状态文档 > 电子邮件更新
当查询存在歧义时,优先提出一个有针对性的澄清问题,而不是猜测:
歧义查询: "search for the migration"
→ "我找到了几个迁移的引用。您是在找:
1. 数据库迁移(Project Phoenix)
2. 云迁移(AWS → GCP)
3. 电子邮件迁移(Exchange → O365)"
仅在以下情况下请求澄清:
在以下情况下不要请求澄清:
当某个来源不可用或未返回结果时:
如果初始查询返回的结果太少:
原始: "PostgreSQL migration Q2 timeline decision"
扩展: "PostgreSQL migration"
更扩展: "database migration"
最扩展: "migration"
按此顺序移除约束条件:
始终跨来源并行执行搜索,切勿顺序执行。总搜索时间应大致等于最慢的单个来源的时间,而不是所有来源时间的总和。
[用户查询]
↓ 分解
[~~chat 查询] [~~email 查询] [~~cloud storage 查询] [Wiki 查询] [~~project tracker 查询]
↓ ↓ ↓ ↓ ↓
(并行执行)
↓
[合并 + 排序 + 去重]
↓
[综合答案]
每周安装量
166
代码库
GitHub 星标数
8.9K
首次出现时间
Jan 31, 2026
安全审计
安装于
opencode146
codex143
gemini-cli138
github-copilot132
claude-code128
amp126
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 |
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]
Weekly Installs
166
Repository
GitHub Stars
8.9K
First Seen
Jan 31, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode146
codex143
gemini-cli138
github-copilot132
claude-code128
amp126
头脑风暴技能:AI协作设计流程,将创意转化为完整规范与实施计划
79,800 周安装
before:2025-02-01 |
type:thread | is:thread |
type:file | has:file |