AgentSkillsCN

search-mode

最大搜索力度模式。启动多个并行代理,对代码库与文档进行全面而彻底的检索。适用于需要获取全方位搜索结果的场景。

SKILL.md
--- frontmatter
name: search-mode
description: Maximum search effort mode. Launch multiple parallel agents for exhaustive codebase and documentation search. Use when you need comprehensive search results.

Search Mode

ACTIVATION: When loaded, immediately maximize search effort across all available tools.

Protocol

MAXIMIZE SEARCH EFFORT

Launch multiple background agents IN PARALLEL:

Agent Deployment

code
// Codebase patterns (INTERNAL)
task(agent="explore", prompt="Find [pattern 1]...", background=true)
task(agent="explore", prompt="Find [pattern 2]...", background=true)
task(agent="explore", prompt="Find [pattern 3]...", background=true)

// External resources (EXTERNAL)
task(agent="researcher", prompt="Find docs for...", background=true)
task(agent="researcher", prompt="Find GitHub examples...", background=true)

Direct Tools (Use in Parallel)

ToolPurpose
search_semanticNatural language code search
find_similarFind similar code patterns
find_dependenciesWhat depends on X?
call_graphFunction caller/callee relationships
grepText pattern search
globFile pattern matching
ast_grep_searchStructural code patterns
lsp_goto_definitionJump to symbol definition
lsp_find_referencesSymbol usage across codebase
lsp_symbolsDocument/workspace symbol search
lsp_diagnosticsGet errors/warnings before build

Search Strategy

  1. Fire 3-5 parallel agents for broad coverage
  2. Use direct tools for specific patterns simultaneously
  3. NEVER stop at first result - be exhaustive
  4. Cross-reference findings between internal and external sources

Example Workflow

For: "Find all authentication implementations"

code
// Parallel agents
task(agent="explore", prompt="Find auth middleware implementations", background=true)
task(agent="explore", prompt="Find login/logout functions", background=true)
task(agent="explore", prompt="Find JWT/session handling", background=true)
task(agent="researcher", prompt="Find NextAuth.js best practices", background=true)

// Direct tools (in parallel)
grep(pattern="authenticate|authorization|jwt|session", include="*.ts")
glob(pattern="**/auth/**/*.ts")
ast_grep_search(pattern="async function $NAME($$$) { $$$ }", lang="typescript")

Output Requirements

Synthesize ALL findings into:

  1. File inventory with absolute paths
  2. Pattern summary - what patterns exist
  3. Key findings - most relevant discoveries
  4. Gaps identified - what wasn't found