Back to Skills

search-interceptor

verified

⛔ 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 GitHub

Marketplace

involvex-claude-marketplace

involvex/involvex-claude-marketplace

Plugin

code-analysis

development

Repository

involvex/involvex-claude-marketplace
1stars

plugins/code-analysis/skills/search-interceptor/SKILL.md

Last Verified

January 20, 2026

Install Skill

Select agents to install to:

Scope:
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-interceptor

Installation paths:

Claude
.claude/skills/search-interceptor/
Powered by add-skill CLI

Instructions

# 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 

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
5919 chars