Purpose
Find where important terms appear and capture useful excerpts.
Steps
- •Use
rg -n "<keyword>"for line-level matches. - •Group matches by file and summarize.
Output
A structured list of findings by file and line.
按关键词搜索文件,并提取相关片段。
--- frontmattername: keyword-search-extractor description: Search files by keyword and extract relevant snippets. version: 0.1.0 tags: [search, grep, extract] allowed_tools: [run_command]
Find where important terms appear and capture useful excerpts.
rg -n "<keyword>" for line-level matches.A structured list of findings by file and line.