Back to Skills

before-file-search

verified

Use BEFORE running grep or glob commands. Reminds you to use codebase-locator agent instead of basic file search tools.

View on GitHub

Marketplace

eveld-claude

eveld/claude

Plugin

workflows

Repository

eveld/claude
3stars

skills/before-file-search/SKILL.md

Last Verified

January 23, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/eveld/claude/blob/main/skills/before-file-search/SKILL.md -a claude-code --skill before-file-search

Installation paths:

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

Instructions

# Before File Search

**STOP**: You're about to use grep or glob.

## Use codebase-locator Instead

The `codebase-locator` agent is specifically designed for finding files and components. It's more efficient and comprehensive than grep/glob.

### Instead of:
```
Grep(pattern="authentication", ...)
Glob(pattern="**/auth*.js")
```

### Do this:
```
Task(
  subagent_type="codebase-locator",
  prompt="Find all authentication-related files",
  description="Locate auth files"
)
```

## When Basic Tools Are OK

Only use grep/glob when:
- User explicitly asks for a simple file listing
- You need to check if a specific file exists
- You're doing a quick verification of a known path

For all exploratory searches, use `codebase-locator`.

Validation Details

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