code-search

Search codebases for text patterns and files using grep and glob.

1|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/dtsong/claude-code-windows-setup --skill code-search-dtsong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-search
Source: https://github.com/dtsong/claude-code-windows-setup/tree/main/skills/code-search
Command: npx skills add https://github.com/dtsong/claude-code-windows-setup --skill code-search-dtsong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers quickly find specific code patterns, files, or text within a codebase, reducing the time spent on manual searching.

Core Features & Use Cases

  • Content Search: Use grep to find specific text strings or regular expressions across files.
  • File Pattern Matching: Use glob to locate files based on naming patterns.
  • Use Case: Quickly locate all instances of a specific function call or configuration variable throughout a project.

Quick Start

Find all occurrences of the text 'user_id' within the current directory.

Frequently Asked Questions about code-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search for a specific text pattern across files in a codebase?

To search for a specific text pattern across files in a codebase, use the grep command-line utility to find matching strings or regular expressions within a project directory.

What is the best way to locate files by naming patterns during code navigation?

The best way to locate files by naming patterns during code navigation is using the glob utility, which matches and retrieves file paths based on specific structural patterns.

Can I find all occurrences of a configuration variable throughout a project directory?

Yes, you can find all occurrences of a configuration variable throughout a project directory by running a deterministic code search using grep.

Does this code search approach require any external dependencies?

No, this code search approach requires no external dependencies, relying solely on standard command-line utilities like grep and glob for precise searches.

When do I need to use glob versus grep for searching a project?

Use glob when you need to locate files based on naming patterns, and use grep when you need to locate specific text strings or code structures within those files.