file-search

v2026.09.25

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".

GitHub
安装命令
npx skhub add cfircoo/file-search
Markdown
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>
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

2026年9月25日

分类

未分类

许可证

MIT

源路径

skills/file-search

默认分支

main

最新提交

d626430

Tree SHA

f9f32ea