From Code Search
Use when searching source code: text/regex (ripgrep), structural/AST patterns (ast-grep, semgrep), 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.
| 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 |
| 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 | 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.For non-code corpora (JSON/YAML, CSV/Parquet, PDFs/Office), use the
data-and-docs-search skill.
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
npx claudepluginhub mbeacom/productivity-skills --plugin code-search