codebase-searchlisted
Install: claude install-skill aiskillstore/marketplace
# Codebase Search
## When to use this skill
- Finding specific functions or classes
- Tracing function calls and dependencies
- Understanding code structure and architecture
- Finding usage examples
- Identifying code patterns
- Locating bugs or issues
- Code archaeology (understanding legacy code)
- Impact analysis before changes
## Instructions
### Step 1: Understand what you're looking for
**Feature implementation**:
- Where is feature X implemented?
- How does feature Y work?
- What files are involved in feature Z?
**Bug location**:
- Where is this error coming from?
- What code handles this case?
- Where is this data being modified?
**API usage**:
- How is this API used?
- Where is this function called?
- What are examples of using this?
**Configuration**:
- Where are settings defined?
- How is this configured?
- What are the config options?
### Step 2: Choose search strategy
**Semantic search** (for conceptual questions):
```
Use when: You understand what you're looking for conceptually
Examples:
- "How do we handle user authentication?"
- "Where is email validation implemented?"
- "How do we connect to the database?"
Benefits:
- Finds relevant code by meaning
- Works with unfamiliar codebases
- Good for exploratory searches
```
**Grep** (for exact text/patterns):
```
Use when: You know exact text or patterns
Examples:
- Function names: "def authenticate"
- Class names: "class UserManager"
- Error messages: "Invalid credentials"
- Specific strings: "API_KEY"