file-search

Search codebases for text patterns and syntax-aware structural code patterns.

5|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/barkleesanders/claude-code-starter --skill file-search-barkleesanders
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-search
Source: https://github.com/barkleesanders/claude-code-starter/tree/main/skills/file-search
Command: npx skills add https://github.com/barkleesanders/claude-code-starter --skill file-search-barkleesanders

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually sifting through large codebases to find specific code patterns, function usages, or potential issues is extremely time-consuming and prone to human error, especially when searching for syntax-aware structural matches that traditional grep tools cannot identify.

Core Features & Use Cases

  • Ultra-Fast Text Search: Leverages ripgrep to quickly locate strings, regex patterns, comments, and common security issues like hardcoded credentials or eval calls across any supported file type.
  • Syntax-Aware Structural Search: Uses ast-grep to find code patterns based on abstract syntax trees, such as specific function signatures, class definitions, or import statements, regardless of formatting variations.
  • Use Case: Before refactoring a shared utility function, use this skill to instantly locate all its usages across the entire codebase to avoid breaking dependent code, or scan for unhandled error patterns in production code.

Quick Start

Use the file-search skill to find all usages of the authenticateUser function across JavaScript and TypeScript files in the src directory.

Frequently Asked Questions about file-search

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

FAQPage Schema
How do I find all usages of a function before refactoring a codebase?

Search codebases for specific function usages before refactoring by running syntax-aware structural searches to locate all calls and definitions across supported files, ensuring you identify every dependent code block regardless of formatting variations.

What is the difference between text search and syntax-aware codebase analysis?

Text codebase analysis uses regex to find exact strings or comments, while syntax-aware structural search uses abstract syntax trees to locate code patterns like function signatures, matching them regardless of formatting variations.

Can I scan my codebase for hardcoded credentials and security vulnerabilities?

Scan codebases for hardcoded credentials and security vulnerabilities by running fast text searches with regex patterns to instantly locate exposed secrets, eval calls, and other common security issues across all supported file types.

Do I need ripgrep and ast-grep installed to perform structural code searches?

Yes, you need ripgrep and ast-grep pre-installed to perform structural code searches, as the tool requires ripgrep for regex-based text searches and ast-grep for abstract syntax tree-based structural pattern matching.

What's the best way to locate import statements across different formatting styles?

The best way to locate import statements across different formatting styles is using abstract syntax tree-based structural search, which identifies code patterns based on syntax structure rather than exact text matching, ignoring formatting variations.