madappgang/claude-code/search-interceptor
- community
Checking that the SKILL.md file is still in the repository.
π‘ Bulk file read optimizer. Suggests semantic search alternatives when reading multiple files. Helps reduce token usage by using claudemem's ranked results instead of sequential file reads.
Install
npx vskill@latest install madappgang/claude-code/search-interceptorSKILL.md
Search Interceptor
This skill helps optimize bulk file operations by suggesting semantic search alternatives when they would be more efficient.
When Semantic Search is More Efficient
| Scenario | Token Cost | Alternative | |
|---|---|---|---|
| Read 5+ files | ~5000 tokens | claudemem search (~500 tokens) | |
| Glob all *.ts files | ~3000+ tokens | claudemem --agent map | |
| Sequential reads to understand | Variable | One semantic query |
When to Consider Alternatives
Multiple File Reads
If planning to read several files, consider:
Broad Glob Patterns
If using patterns like src/**/*.ts:
File Paths Mentioned in Task
Even when specific paths are mentioned, semantic search often finds additional relevant code:
Interception Protocol
Step 1: Pause Before Execution
When you're about to execute bulk file operations, STOP and run:
Step 2: Evaluate
If claudemem is indexed:
| Your Plan | Better Alternative | |
|---|---|---|
| Read 5 auth files | claudemem search "authentication login session" | |
| Glob all services | claudemem search "service layer business logic" | |
| Read mentioned paths | claudemem search "[concept from those paths]" |
If claudemem is NOT indexed:
Then proceed with semantic search.
Step 3: Execute Better Alternative
Interception Decision Matrix
| Situation | Intercept? | Action | |
|---|---|---|---|
| Read 1-2 specific files | No | Proceed with Read | |
| Read 3+ files in investigation | YES | Convert to claudemem search | |
| Glob for exact filename | No | Proceed with Glob | |
| Glob for pattern discovery | YES | Convert to claudemem search | |
| Grep for exact string | No | Proceed with Grep | |
| Grep for semantic concept | YES | Convert to claudemem search | |
| Files mentioned in prompt | YES | Search semantically first |
Examples of Interception
Example 1: Auth Investigation
β Original plan:
β After interception:
Example 2: API Integration Audit
β Original plan:
β After interception:
Example 3: Pattern Discovery
β Original plan:
β After interception:
Why Semantic Search Often Works Better
| Native Tools | Semantic Search | |
|---|---|---|
| No ranking | Ranked by relevance + PageRank | |
| No relationships | Shows code connections | |
| ~5000 tokens for 5 files | ~500 tokens for ranked results | |
| Only explicitly requested code | Discovers related code |
Tip: For investigation tasks, try claudemem search first to get a ranked view of relevant code.
Integration with Other Skills
This skill works with:
| Skill | Relationship | |
|---|---|---|
code-search-selector | Selector determines WHAT tool; Interceptor validates BEFORE execution | |
claudemem-search | Interceptor redirects to claudemem; this skill shows HOW to search | |
deep-analysis | Interceptor prevents bad patterns; deep-analysis uses good patterns | |
| Detective skills | Interceptor prevents duplicate work by trusting detective agents |
Hook System Integration
The hook system may provide claudemem results proactively when the index is available:
- Grep queries β May receive claudemem search results instead
- Bulk reads β May receive suggestion to use semantic search
- Broad globs β May receive map results
Using the Bypass Flag
When you specifically need native tool behavior:
This tells hooks you intentionally want native tool output.
Quick Reference
Before bulk Read/Glob operations, consider:
- Is claudemem indexed? β
claudemem status - Can this be one semantic query? β Often yes
- Do you need exact matches? β Use native tools with bypass flag
General guideline: For understanding/investigation, try semantic search first. For exact matches, use native tools.
Maintained by: MadAppGang Plugin: code-analysis v2.16.0 Purpose: Help optimize bulk file operations with semantic search alternatives
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/code-analysis/skills/search-interceptor/SKILL.md
Popularity
- Repository stars
- 280
- Repository forks
- 32
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 31 Mar 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/madappgang/claude-code/search-interceptor)