cm-deep-searchlisted
Install: claude install-skill tody-agent/codymaster
# Deep Search — Semantic Memory Power-Up
> **When your project outgrows AI's context window, bring the search engine to your docs.**
> Optional integration with [tobi/qmd](https://github.com/tobi/qmd) — BM25 + Vector + LLM re-ranking, 100% local.
## When to Trigger
**This skill is NOT invoked directly.** It is triggered automatically by other skills when they detect an oversized project.
### Detection Thresholds
During codebase scan (Phase 1a of `cm-brainstorm-idea`, Step 2 of `cm-dockit`, etc.), check:
```
TRIGGER if ANY of these are true:
→ docs/ folder contains >50 markdown files
→ Project has >200 source files total
→ User mentions "meeting notes", "historical PRDs", "old specs"
→ User asks "find that file that talked about X from before"
→ cm-dockit just generated >30 doc files
```
### What to Say (Non-Intrusive)
When threshold is met, suggest naturally — DO NOT block or force:
```markdown
💡 **Pro Tip: Deep Search**
This project has [X doc files / Y source files] — quite large for AI to read directly.
You can install **[qmd](https://github.com/tobi/qmd)** to create semantic search
across all your documentation, helping AI find the right context faster.
Quick install:
\`\`\`bash
npm install -g @tobilu/qmd
qmd collection add ./docs --name project-docs
qmd context add qmd://project-docs "Project documentation for [project-name]"
qmd embed
\`\`\`
Then AI can search using: `qmd query "your question"`
```
---
## Setup Guide (when user agrees to install