File search

From cfircoo/claude-code-toolkit · View interactive version

File search is an AI agent skill from the GitHub repository cfircoo/claude-code-toolkit. Fast file and text search across the codebase. Use when you need to find files by name, search code by content, locate definitions, find usages/imports, or explore project structure. Triggers on "find file", "search for", "where is", "grep for", "locate", "find definition", "find usage", "search cod

How to use this skill

Skill file

<objective>

Execute fast, thorough file and text searches across the codebase using a lightweight haiku agent. Returns precise results with file paths, line numbers, and context — never modifies files.

</objective>

<search_modes>

This skill handles all search types automatically based on input:

| Input Pattern | Search Mode | What Happens |

|--------------|-------------|--------------|

| File name or glob pattern | File search | Finds files by name/pattern across the project |

| Text string or regex | Content search | Greps file contents for matches |

| Function/class/type name | Definition search | Finds where something is defined + its signature |

| "usages of X" / "who calls X" | Usage search | Finds all imports and call sites |

| "imports of X" | Import search | Finds all files that import a module |

| Directory path or "structure" | Structure exploration | Maps directory layout and key files |

| "related to X" | Related files | Finds dependencies and dependents of a file |

The agent runs multiple search strategies in parallel and cross-references results for completeness.

</search_modes>

<tips>

</tips>

<success_criteria>

</success_criteria>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.