Grep Before Read

Default to `rg`/`grep` for discovery instead of reading whole files. Use whenever you're hunting for a symbol, function, pattern, or a specific line in a repo you don't already have fully loaded in context - especially on files over ~400 lines, unknown codebases, or when the user asks "where is X defined/used?". Do NOT use when the file is already loaded in context, when a test suite already scopes the discovery, or when the user handed you an exact path to a short file.

weikinhuang cd4592f 6.3 KB Updated

File contents

weikinhuang/dotfiles/tree/main/config/pi/skills/grep-before-read commit cd4592f7db

Frequently asked questions

npx skillmds@latest add weikinhuang/grep-before-read