maestro/skills/research/search-router/SKILL.md
Choose the right search tool for each query type
npx skillsauth add scooter-lacroix/maestro search-routerInstall 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.
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: cd opc/packages/tldr-code && uv run python scripts/tldr_search.py "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)
cd opc/packages/tldr-code && uv run python scripts/tldr_search.py "spawn_agent"
cd opc/packages/tldr-code && uv run python scripts/tldr_search.py "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
/maestro:tldr-search - DEFAULT - Code exploration with 95% token savings/maestro:ast-grep-find - Structural code search/maestro:morph-search - Fast text searchtools
Wiring Verification
tools
Create and configure Maestro sub-agents with custom prompts, tools, and models
data-ai
Create and use Maestro slash commands - quick prompts, bash execution, file references
development
Upgrade any skill to v5 Hybrid format using decision theory + modal logic