plugins/dev-workflow/skills-codex/searching-code/SKILL.md
Intelligent codebase search and zoom-out mapping via WarpGrep. Use when user asks "how does X work", "trace flow", "find all implementations", "understand codebase", "zoom out", "map this area", or needs cross-file exploration in large repos (1000+ files).
npx skillsauth add alexei-led/claude-code-config searching-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
WarpGrep is an RL-trained search agent that reasons about code, not just pattern matches. Use zoom-out mode when the user needs a higher-level map before touching code.
fd to find likely files and rg to find known symbols, routes, handlers, and types; use WarpGrep for semantic flow across files.CONTEXT.md, CONTEXT-MAP.md, nearest */CONTEXT.md, and relevant docs/adr/*.md files when present.fd/rg/WarpGrep searches instead of full-file reading, and say the final summary will separate verified facts from guesses/unknowns.Return a bounded code map:
file:line references.| Use WarpGrep | Use Smart Explore (claude-mem) | Use Built-in Grep | | --------------------------- | ---------------------------------- | ------------------------ | | "How does auth flow work?" | "What functions are in this file?" | "Find class UserService" | | "Trace data from API to DB" | "Show me this function's source" | Simple regex patterns | | "Find all error handling" | "Find all types matching X" | "Where is X defined?" | | Large repos (1000+ files) | File structure at a glance | Known file patterns | | Before major refactoring | Targeted function extraction | Quick needle lookups |
When available, prefer Smart Explore for structural queries (10-20x fewer tokens). Use WarpGrep for semantic/reasoning queries across files.
Good queries (reasoning required):
"How does authentication flow from the login handler to the database?"
"Find all places where user permissions are checked"
"Trace the request lifecycle from router to response"
Bad queries (use Grep instead):
"Find UserService" → use Grep
"Search for 'import React'" → use Grep
For trace-flow requests, explicitly say you will first check for CONTEXT.md, CONTEXT-MAP.md, nearest */CONTEXT.md, and docs/adr/*.md when present before naming domain concepts.
CONTEXT.md, CONTEXT-MAP.md, and relevant ADRsfd 'auth|login|session|user' for likely files; rg 'login|authenticate|AuthService|Session|UserRepository' for entry points, symbols, and shared typesUse when the user says "zoom out", "map this area", "go up a layer", or sounds lost in local details.
Return a map, not a dump:
CONTEXT.mdAvoid line-by-line explanations unless asked. The point is orientation, not drowning the user in snippets.
search_string: "natural language description of what to find"
repo_path: "/absolute/path/to/repo"
tools
Idiomatic shell development for POSIX sh, Bash, Zsh, Fish, hooks, CI shell steps, and scriptable CLI glue. Use when writing or changing `.sh`, `.bash`, `.zsh`, `.fish`, `.bats`, shell functions, shell pipelines, or command-runner recipes. Emphasizes portability, quoting, safe filesystem/process handling, non-TUI CLI tools, ShellCheck, shfmt, Bats, and ShellSpec. NOT for Python, TypeScript, Go, web code, or infrastructure operations.
tools
Use when planning, executing, checkpointing, finishing, or inspecting lightweight spec-driven work. Runs one task at a time using `.spec/` markdown files and the bundled `specctl` helper. NOT for broad product discovery beyond a short requirement interview.
testing
Author, inspect, troubleshoot, and review infrastructure across IaC, Kubernetes, cloud resources, containers, CI/CD, and Linux hosts. Use when changing Terraform/OpenTofu, Kubernetes, Helm, Kustomize, Dockerfiles, GitHub Actions, AWS, GCP, Cloud Run, BigQuery, IAM, logs, instances, or service health. NOT for deploy/apply/rollback workflows (see deploying-infra). NOT for shell scripts or generic command pipelines (see writing-shell).
development
Configure safe git workflow hygiene: pre-commit/pre-push hooks, Gitleaks secret scanning, .gitignore rules, local git config, and guardrails. Use when setting up git hooks, gitleaks/git leaks, staged pre-commit checks, pre-push validation, core.hooksPath, .gitignore, or git config best practices. NOT for creating commits (use committing-code), cleaning branches/worktrees (use cleanup-git), or creating worktrees (use using-git-worktrees).