edmundmiller/dotfiles/code-search

Claude Code and agent skill by edmundmiller/dotfiles

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Compares semantic, text, and structural search strategies. Use for intent-based discovery with sgrep or selecting a search/codemod approach, not for ordinary known-string lookups.

Install

npx vskill@latest install edmundmiller/dotfiles/code-search

SKILL.md

Code search tool selection

Choose by what you know and what must match:

  • Behavior without known identifiers: use sgrep for semantic discovery.
  • Exact names, literals, regexes, or non-code text: use scoped rg.
  • Syntax shape, codemods, or structural policy: use ast-grep. Load its skill

for patterns, safe rewrites, rule tests, severity, and CI. Preview matches before rewriting; do not use text replacement for structural changes.

Use rg to shortlist files before a structural search when helpful. AST matching distinguishes syntax nodes from incidental text in comments or strings.

Semantic discovery with sgrep

Use Context.dev's sgrep when you know the behavior but not its identifiers. Scope the search to a likely directory and inspect the returned source before drawing conclusions. Rankings are approximate, not proof of behavior.

bash
sgrep "retry failed requests with backoff" ./src -n 5 --json

When you already have useful patterns, rank only their matching passages. Run both commands from the same directory so ripgrep paths resolve correctly.

bash
rg --json -C 3 'retry|backoff' ./src \
| sgrep "retry failed requests with backoff" --stdin --json

Keep rg for exact names, literals, and regexes. Keep ast-grep for syntax and rewrites. If sgrep is unavailable, use scoped rg searches instead.

The first search downloads a 32–34 MB model and any required parsers. Source and queries stay local, but the local index caches source passages. After assets are cached, set HF_HUB_OFFLINE=1 to prevent further downloads. --no-cache disables index reads and writes, not model downloads. Do not bypass ignore rules to include secrets in a search.

Upstream: https://github.com/context-dot-dev/sgrep. Other projects also use the name sgrep; use the version packaged by these dotfiles.

ripgrep examples

bash
# Show line numbers for a literal-looking call; this also matches comments.
rg -n 'console\.log\(' -t js
# Search selected file types.
rg 'TODO|FIXME' -t py -t js
# Show surrounding lines.
rg -C 3 'error' -t log
# Return filenames only.
rg -l 'import.*React' -g '*.tsx'

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
81
Repository forks
6
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/edmundmiller/dotfiles/code-search/badge)](https://verified-skill.com/skills/edmundmiller/dotfiles/code-search)

Something wrong with this skill or its page? Tell us.