gitignore-respecting-search

Installation
SKILL.md

Gitignore-Aware Search Protocol (Ripgrep over Recursive Grep)

Overview

When searching a repository for a function or variable name, naive agents run unconstrained shell searches (grep -r "handleSubmit" .).

Standard grep lacks .gitignore awareness: it blindly searches through .git/ object packs, 100MB node_modules/ folders, minified bundles (bundle.min.js), and virtual environments (venv/). This causes Search Result Flood: dumping 500+ irrelevant vendor matches into the context window, blowing past token limits and hallucinating changes in third-party libraries.

The Gitignore-Aware Search Protocol enforces the use of ripgrep (rg) or IDE grep_search tools that respect .gitignore, .ignore, and binary exclusion filters natively.


Unconstrained grep -r vs. Gitignore-Aware ripgrep

Installs
1
GitHub Stars
2
First Seen
Oct 23, 2026