⛔ INTERCEPT TRIGGER: Automatically invoked BEFORE Read 3+ files OR Glob with broad patterns. Validates whether bulk file operations should be replaced with semantic search. Prevents token waste from sequential file reads.
View on GitHubinvolvex/involvex-claude-marketplace
code-analysis
January 20, 2026
Select agents to install to:
npx add-skill https://github.com/involvex/involvex-claude-marketplace/blob/main/plugins/code-analysis/skills/search-interceptor/SKILL.md -a claude-code --skill search-interceptorInstallation paths:
.claude/skills/search-interceptor/# Search Interceptor
```
╔══════════════════════════════════════════════════════════════════════════════╗
║ ║
║ ⛔ INTERCEPT TRIGGERS: ║
║ ║
║ • About to Read 3+ files in same directory ║
║ • About to Glob with **/*.ts, **/*.py, or similar broad pattern ║
║ • Planning sequential file reads to "understand" something ║
║ • Rationalizing "let me read while agents work" ║
║ ║
║ WHEN TRIGGERED: Validate if claudemem search is better ║
║ ║
╚══════════════════════════════════════════════════════════════════════════════╝
```
## Purpose
This skill intercepts bulk file operations before they execute, validating whether semantic search would be more efficient.
## When This Skill Triggers
### Trigger 1: Multiple File Reads Planned
```
YOU ARE ABOUT TO:
Read file1.ts
Read file2.ts
Read file3.ts
Read file4.ts
...
STOP. Ask: Can this be ONE claudemem query?
```
### Trigger 2: Broad Glob Pattern
```
YOU ARE ABOUT TO:
Glob("src/services/**/*.ts")
Then read all N matches
STOP. Ask: What am I looking for SEMANTICALLY?
```
### Trigger 3: Parallelization Rationalization
```
YOU ARE THINKING:
"Let me read these files while the agent works..."
STOP. This is tool familiarity bias.
```
### Trigger 4: File Paths in Prompt
```
PROMPT MENTIONS:
src/services/prime/internal_api/client.ts
src/services/prime/api.ts
...
YOUR INSTINCT: Read them directly
STOP. Search semantically first for context.
```
---
## Interception Protocol
### Step 1: Pause Before Execution
When you're about to execute