‹ 首页

search-tools

@parcadei · 收录于 1 周前 · 上游提交 5 个月前

Search Tool Hierarchy

适合你,如果你需要快速找到合适的开发工具或技能。

/ 下载安装
search-tools.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add parcadei/continuous-claude-v3/search-tools
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- parcadei/continuous-claude-v3/search-tools
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify parcadei/continuous-claude-v3/search-tools
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
3859GitHub stars
~401上下文体积 · 单文件
镜像托管

怎么用

商店整理自技能原文 · 版本 d07ff4b · 表述以原文为准
它做什么

安装后,Claude 会根据你的搜索意图自动选择最合适的代码搜索工具:语义搜索用 LEANN,结构搜索用 AST-grep,文本搜索用 Morph 或内置 Grep。

什么时候触发

当你向 Claude 提出代码搜索请求时触发,例如询问代码工作原理、查找函数调用或搜索文本。

装好后可以这样说
触发 LEANN 语义搜索
触发 AST-grep 结构搜索
触发 Morph 文本搜索
技能原文 SKILL.md作者撰写 · MIT · d07ff4b

Search Tool Hierarchy

When searching code, use this decision tree:

Decision Tree
Need CONCEPTUAL/SEMANTIC search?
  (how does X work, find patterns, understand architecture)
  → Use LEANN (/leann-search) - embedding-based semantic search
  → PreToolUse hook auto-redirects semantic Grep queries

Need to understand code STRUCTURE?
  (find function calls, class usages, refactor patterns)
  → Use AST-grep (/ast-grep-find)

Need to find TEXT in code?
  → Use Morph (/morph-search) - 20x faster
  → If no Morph API key: fall back to Grep tool

Simple one-off search?
  → Use built-in Grep tool directly
Tool Comparison

| Tool | Best For | Requires | |------|----------|----------| | LEANN | Semantic search: "how does caching work", "error handling patterns", conceptual queries | Index built | | AST-grep | Structural patterns: "find all calls to foo()", refactoring, find usages by type | MCP server | | Morph | Fast text search: "find files mentioning error", grep across codebase | API key | | Grep | Literal patterns, class/function names, regex | Nothing (built-in) |

Examples

LEANN (semantic/conceptual):

  • "how does authentication work"
  • "find error handling patterns"
  • "where is rate limiting implemented"

AST-grep (structural):

  • "Find all functions that return a Promise"
  • "Find all React components using useState"
  • "Refactor all imports of X to Y"

Morph (text search):

  • "Find all files mentioning 'authentication'"
  • "Search for TODO comments"

Grep (literal):

  • class ProviderAdapter
  • def __init__
  • Regex patterns
LEANN Commands
# Search with semantic query
leann search opc-dev "how does blackboard communication work" --top-k 5

# List available indexes
leann list

# Rebuild index (when code changes)
leann build opc-dev --docs dir1 dir2 --no-recompute --no-compact --force
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。