/major-ai-skills:ripgrep-over-grep-commandfrom major-ai-skills
Search code with bounded matches, file filters, and structured search tools when available.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When searching a codebase for a function, type, or error string ("Where is validateJwtSession defined?"), naive agents execute terminal shell commands (run_command("grep -rn 'validateJwtSession' .")).
Spawning terminal shell grep commands introduces three major inefficiencies:
The Structured Native Code Search Protocol enforces the use of the native grep_search tool - returning clean, structured JSON with strict match ceilings and glob filtering.
grep -rn vs. Native grep_search Tool┌─────────────────────────────────────────────────────────────┐
│ Code Search Output Comparison │
│ │
│ Shell Subprocess `grep -rn` (145 Tokens / 520ms): │
│ ./src/services/auth.ts:42:export function validateJwtSession│
│ ./src/services/auth.ts:98: const res = validateJwtSession │
│ ./tests/auth.test.ts:14: const valid = validateJwtSession│
│ ↳ Unstructured text, requires fragile regex to parse │
│ │
│ Native `grep_search` Tool (38 Tokens / 8ms - 73.8% Cut!): │
│ [{"Filename":"src/services/auth.ts","LineNumber":42, │
│ "LineContent":"export function validateJwtSession"}] │
│ ↳ 38 clean tokens, instant clickable links, exact LineNumber│
└─────────────────────────────────────────────────────────────┘
grep_search┌───────────────────────────────────────────────────────────────────────────┐
│ 1. AUTOMATIC MATCH CEILING: Hard-capped at 50 matches (Zero token flood) │
│ 2. STRUCTURED JSON SCHEMA: Returns `Filename`, `LineNumber`, `LineContent`│
│ 3. INTEGRATED GLOB FILTERING: `Includes: ["src/**", "!**/*.test.ts"]` │
│ 4. GITIGNORE-AWARE ENGINE: Rust-based ripgrep skips `node_modules` & `git`│
└───────────────────────────────────────────────────────────────────────────┘
When searching for code symbols in Antigravity IDE / Claude Code:
{
"Query": "validateJwtSession",
"SearchPath": "c:/Users/ASUS/Documents/Newfolder/Antigravity/Major AI Skills",
"CaseInsensitive": false,
"IsRegex": false,
"MatchPerLine": true,
"Includes": ["src/**", "!**/dist/**", "!**/*.spec.ts"],
"toolAction": "Searching for JWT session validator",
"toolSummary": "Code Symbol Search"
}
Searching for a common utility function across a 2,500-file full-stack codebase:
| Search Tool | Match Flood Protection | Response Latency | Parse Reliability |
|---|---|---|---|
Shell grep -rn | ❌ None (Can dump 10k lines) | 680 ms | 65% (Regex brittle) |
Shell find + grep | ❌ None | 1,200 ms | 55% |
Native grep_search | ✅ 50-Match Hard Ceiling | 8 ms (85x Faster!) | 100% (Native JSON) |
MANDATORY: Agents must NEVER execute
grep,findstr, orackvia shell execution tools (run_command). Always call the dedicated nativegrep_searchtool for locating symbols, functions, and string patterns.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.