agentleFS
cfircoocfircoo/claude-code-toolkit/skills/file-search/SKILL.md

file-search

Skill17 starsChanged 9 months agoMITView on GitHub

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 codebase", "find all references".

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use quotes for exact phrases: search for "database connection pool"

    line 33
  2. Distinctive:

    No false positives — every result was verified by a tool call </success_criteria>

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<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 PatternSearch ModeWhat Happens
File name or glob patternFile searchFinds files by name/pattern across the project
Text string or regexContent searchGreps file contents for matches
Function/class/type nameDefinition searchFinds where something is defined + its signature
"usages of X" / "who calls X"Usage searchFinds all imports and call sites
"imports of X"Import searchFinds all files that import a module
Directory path or "structure"Structure explorationMaps directory layout and key files
"related to X"Related filesFinds dependencies and dependents of a file

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

<tips> - Be specific: "find where UserService is defined" beats "find UserService" - Include file type hints: "find login handler in Python files" - Use quotes for exact phrases: search for "database connection pool" - Scope by directory: "search for auth middleware in src/api/" - Chain searches: "find all files that import from utils/auth" </tips>

<success_criteria>

  • Returns file paths with line numbers for all matches
  • Exhausts multiple search strategies before reporting "not found"
  • Results are ordered by relevance
  • No false positives — every result was verified by a tool call </success_criteria>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.