一键导入
searching-text
Use when searching for text patterns across files, finding specific code locations, or getting lines with surrounding context in a single call
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when searching for text patterns across files, finding specific code locations, or getting lines with surrounding context in a single call
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when implementing any feature or fix using TDD, before writing any implementation code
Use when domain logic leaks into API/Infrastructure, project references violate layer boundaries, or you need to decide between CQS (always), CQRS bus (complex domains), and DDD patterns (invariants and events).
Use when configuring Git hooks in .NET projects before team commits occur, to enforce commit message standards and code formatting automatically
Use before writing any test or implementation task, when observable behavior needs to be captured in business language scenarios and approved by the user before code begins
Use when running mutation testing, killing mutants, verifying test quality, checking mutation score, or analyzing survivors after the test baseline is green
Use when writing tests from the outside-in, defining behavior before code, or any feature where tests should start from observable business behavior and let internal design emerge
| name | searching-text |
| description | Use when searching for text patterns across files, finding specific code locations, or getting lines with surrounding context in a single call |
Always invoke searching-text skill for text search - do not execute bash commands directly.
Invoke searching-text skill for fast text search with one-shot patterns. Use -e 'pattern' -n -C 2 to get files, line numbers, and context in a single call.
This minimizes iterations and context usage. Always prefer getting line numbers and surrounding context over multiple search attempts.
Common workflow: searching-text skill → other skills (fuzzy-selecting, viewing-files, replacing-text, analyzing-code-structure) for interactive selection, preview, or modification.
Grep tool (built on ripgrep) - Use for structured searches:
type parameter-F, -v, -w, or pipe composition are not neededBash(rg) - Use for one-shot searches needing special flags or composition:
-F)-v)-w)-n -C 2)| head, | wc -l, | sort)Glob tool - Use for file name/path matching only (not content search)
Load ripgrep guide when needing:
-t flags)The guide focuses on practical patterns for getting targeted results in minimal calls.
# Find and edit all references to a function
rg "functionName" -l | fzf --multi --preview="bat --color=always --highlight-line $(rg -n "functionName" {} | head -1 | cut -d: -f2) {}" | xargs vim
# Find TODOs and create summary
rg "TODO|FIXME" -n | fzf --multi --preview="bat --color=always --highlight-line {2} {1}"