From Code Search
Use when searching source code: text/regex (ripgrep), structural/AST patterns (ast-grep, semgrep), symbol definitions/references/call hierarchy (LSP, GNU Global, ctags), when/why code changed (git history), structural rewrites (comby), or codebase size/complexity (tokei, scc).
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-search:code-searchThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
CLI search for source code. Pick the modality by what you know.
CLI search for source code. Pick the modality by what you know.
This skill is portable across GitHub Copilot, APM, and Claude Code; keep the
references/ folder next to SKILL.md when copying it into a Copilot skill
location.
| Task | Use | Reference |
|---|---|---|
| Text / regex in code | rg | ripgrep |
| Find files by name/path | fd | fd |
| Structural / syntax-aware search | sg (ast-grep) | ast-grep |
| Security/lint rule packs, taint | semgrep | semgrep |
| Symbol defs / refs / call hierarchy | LSP · global · ctags | code-intelligence |
| When/why code changed | git log -S/-G/-L | git-history |
| Structural search-and-replace | comby, sg --rewrite | comby |
| Size / complexity by language | tokei, scc | metrics |
Decision flow: text → rg | structural → sg | symbol defs/refs → LSP/global |
rule packs → semgrep | filenames → fd | change history → git pickaxe |
rewrite → comby | LOC → tokei.
rg -t py, sg --lang ts, fd -e go),
restrict dirs, and count first (rg -c pattern | wc -l) before reading.rg -g '!vendor/' -g '!*.lock', fd -E node_modules.rg -e P1 -e P2) in one walk,
or issue distinct searches as parallel tool calls. Never sequential &&.rg -t ts includes .tsx; fd -e ts does NOT — use fd -e ts -e tsx.retrieval-strategy skill or invoke the retrieval-strategist agent.rtk when installed — prefix the rtk-wrapped tools (rtk rg …,
rtk git log …) for 60–90% smaller output; other tools run directly and
rtk rg -c/-l stay raw (pipe-safe). See rtk.For non-code corpora (JSON/YAML, CSV/Parquet, PDFs/Office), use the
data-and-docs-search skill.
npx claudepluginhub mbeacom/context-kit --plugin code-searchGuides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Guides reception of code review feedback: verify before implementing, avoid performative agreement, push back with technical reasoning when needed.
Runs a structured interview session to sharpen plans or designs, producing ADRs and a glossary as output.