askill
sag

sagSafety 80Repository

Search and Grep - powerful code search across repositories and file systems.

3 stars
1.2k downloads
Updated 2/22/2026

Package Files

Loading files...
SKILL.md

SAG (Search and Grep)

Fast code search using ripgrep.

Basic Search

rg "pattern" /path/to/search

Search by File Type

rg "function" --type ts
rg "class" --type py

Search with Context

rg "TODO" -C 3

Search and Replace

rg "old_name" --files-with-matches | xargs sed -i '' 's/old_name/new_name/g'

Useful Flags

  • -i — case insensitive
  • -w — whole word match
  • -l — files only
  • -c — count matches
  • --hidden — include hidden files
  • --glob '!node_modules' — exclude patterns

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

81/100Analyzed 2/25/2026

A well-structured quick reference for ripgrep code search. Provides clear examples for basic search, file type filtering, context, and search-and-replace patterns. Missing a trigger/when-to-use section and tags. The replace command could benefit from safety warnings. Overall a practical, reusable skill for code searching."

80
85
80
75
85

Metadata

Licenseunknown
Version-
Updated2/22/2026
Publisherkody-w

Tags

No tags yet.