smart-grep-extended
Installation
SKILL.md
Smart Grep - Token-Efficient Code Search
Overview
This skill provides a token-efficient alternative to the default Grep tool, using rg --json with intelligent truncation and token budgeting. It reduces token usage by 90%+ compared to standard grep searches.
Token Savings Example:
- Standard grep: ~45,000 tokens for large codebase search
- Smart grep: ~2,800 tokens for same search
- Savings: 94%
When to Use
- Searching for functions, classes, or patterns across the codebase
- Finding where specific code is used or defined
- Any time you would normally use Grep or ripgrep
- When you need to stay within token budgets