search-router by parcadei/continuous-claude-v3
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill search-router为每种查询类型使用最高效的搜索工具。
Query Type?
├── 代码探索(符号、调用链、数据流)
│ → TLDR Search - 节省 95% 的 token
│ 所有代码搜索的默认选择 - 替代 Grep 使用
│ 示例:"spawn_agent"、"DataPoller"、"redis usage"
│ 命令:tldr search "query" .
│
├── 结构搜索(AST 模式)
│ → AST-grep (/ast-grep-find) - 约 50 个 token 输出
│ 示例:"def foo"、"class Bar"、"import X"、"@decorator"
│
├── 语义搜索(概念性问题)
│ → TLDR Semantic - 5 层嵌入(P6)
│ 示例:"how does auth work"、"find error handling patterns"
│ 命令:tldr semantic search "query"
│
├── 字面搜索(精确文本、正则表达式)
│ → Grep 工具 - 最后手段
│ 仅在 TLDR/AST-grep 不适用时使用
│ 示例:错误消息、配置值、非代码文本
│
└── 完整上下文(需要完全理解)
→ Read 工具 - 1500+ token
找到正确文件后的最后手段
| 工具 | 输出大小 | 最佳用途 |
|---|---|---|
| TLDR | ~50-500 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 默认:代码符号、调用图、数据流 |
| TLDR Semantic | ~100-300 | 概念查询(P6,基于嵌入) |
| AST-grep | ~50 token | 函数/类定义、导入、装饰器 |
| Grep | ~200-2000 | 最后手段:非代码文本、正则表达式 |
| Read | ~1500+ | 找到文件后的完全理解 |
# 代码探索 → TLDR(默认)
tldr search "spawn_agent" .
tldr search "redis" . --layer call_graph
# 结构搜索 → AST-grep
/ast-grep-find "async def $FUNC($$$):" --lang python
# 语义搜索 → TLDR Semantic
tldr semantic search "how does authentication work"
# 字面搜索 → Grep(最后手段 - 优先使用 TLDR)
Grep pattern="check_evocation" path=opc/scripts
# 完整上下文 → Read(找到文件后)
Read file_path=opc/scripts/z3_erotetic.py
1. AST-grep:"Find async functions" → 3 个文件:行匹配
2. Read:仅查看最佳匹配 → 完全理解
3. 跳过:4 个不相关文件 → 节省 6000 个 token
/tldr-search - 默认 - 代码探索,节省 95% 的 token/ast-grep-find - 结构代码搜索/morph-search - 快速文本搜索每周安装量
194
代码仓库
GitHub 星标数
3.6K
首次出现
2026 年 1 月 22 日
安全审计
安装于
opencode188
codex186
gemini-cli185
cursor184
github-copilot182
amp179
Use the most token-efficient search tool for each query type.
Query Type?
├── CODE EXPLORATION (symbols, call chains, data flow)
│ → TLDR Search - 95% token savings
│ DEFAULT FOR ALL CODE SEARCH - use instead of Grep
│ Examples: "spawn_agent", "DataPoller", "redis usage"
│ Command: tldr search "query" .
│
├── STRUCTURAL (AST patterns)
│ → AST-grep (/ast-grep-find) - ~50 tokens output
│ Examples: "def foo", "class Bar", "import X", "@decorator"
│
├── SEMANTIC (conceptual questions)
│ → TLDR Semantic - 5-layer embeddings (P6)
│ Examples: "how does auth work", "find error handling patterns"
│ Command: tldr semantic search "query"
│
├── LITERAL (exact text, regex)
│ → Grep tool - LAST RESORT
│ Only when TLDR/AST-grep don't apply
│ Examples: error messages, config values, non-code text
│
└── FULL CONTEXT (need complete understanding)
→ Read tool - 1500+ tokens
Last resort after finding the right file
| Tool | Output Size | Best For |
|---|---|---|
| TLDR | ~50-500 | DEFAULT: Code symbols, call graphs, data flow |
| TLDR Semantic | ~100-300 | Conceptual queries (P6, embedding-based) |
| AST-grep | ~50 tokens | Function/class definitions, imports, decorators |
| Grep | ~200-2000 | LAST RESORT: Non-code text, regex |
| Read | ~1500+ | Full understanding after finding the file |
# CODE EXPLORATION → TLDR (DEFAULT)
tldr search "spawn_agent" .
tldr search "redis" . --layer call_graph
# STRUCTURAL → AST-grep
/ast-grep-find "async def $FUNC($$$):" --lang python
# SEMANTIC → TLDR Semantic
tldr semantic search "how does authentication work"
# LITERAL → Grep (LAST RESORT - prefer TLDR)
Grep pattern="check_evocation" path=opc/scripts
# FULL CONTEXT → Read (after finding file)
Read file_path=opc/scripts/z3_erotetic.py
1. AST-grep: "Find async functions" → 3 file:line matches
2. Read: Top match only → Full understanding
3. Skip: 4 irrelevant files → 6000 tokens saved
/tldr-search - DEFAULT - Code exploration with 95% token savings/ast-grep-find - Structural code search/morph-search - Fast text searchWeekly Installs
194
Repository
GitHub Stars
3.6K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode188
codex186
gemini-cli185
cursor184
github-copilot182
amp179
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
116,600 周安装
SpecStory 历史文件整理工具 - 按时间戳自动归档会话文件,保持项目目录整洁
101 周安装
OMC Doctor:Claude代码助手安装诊断与修复工具 - 解决OMC插件问题
101 周安装
微信文章转Markdown工具 - 高效抓取公众号文章并转换为Markdown格式,支持存档与AI处理
101 周安装
Go语言技术文档编写指南 - 专业API设计与文档生成技能
101 周安装
Mermaid图表专家技能 - 专业流程图、序列图、甘特图代码生成与可视化指南
101 周安装
销售自动化工具 - 冷邮件序列、跟进计划、话术模板与A/B测试完整指南
101 周安装