better-grep

Search codebases with one-shot ripgrep queries returning files, line numbers, and context.

4|2|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/drunkcoding/AgentSkillsArxiv --skill better-grep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-grep
Source: https://github.com/drunkcoding/AgentSkillsArxiv/tree/main/skills/better-grep
Command: npx skills add https://github.com/drunkcoding/AgentSkillsArxiv --skill better-grep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Reduces the overhead of finding text patterns across large codebases by performing fast, one-shot searches that return files, line numbers, and contextual surrounding lines in a single call.

Core Features & Use Cases

  • One-shot search results: obtain files, line numbers, and context in a single ripgrep call.
  • Guided tool selection: clarifies when to use Grep tool, Bash(rg), or Glob for specialized needs.
  • Use Case: quickly locate function definitions or code patterns across a repository to understand usage and dependencies.

Quick Start

Invoke a one-shot ripgrep search with a single pattern to locate matches across the repository.

Frequently Asked Questions about better-grep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search a codebase for a text pattern and get line numbers in one call?

You can search a codebase for text patterns using a one-shot ripgrep call that instantly returns matching files, line numbers, and contextual surrounding lines without needing multiple queries.

What is the best way to locate function definitions across a large repository?

The best way to locate function definitions across a repository is performing a fast, one-shot ripgrep search that retrieves exact file paths and line numbers to map out code usage and dependencies.

When should I use ripgrep instead of Glob for code discovery?

Use ripgrep for searching text patterns within file contents, while Glob is better suited for locating files by name or structure, ensuring you apply the right tool for specialized code discovery needs.

Can I get contextual surrounding lines when searching for code patterns with ripgrep?

Yes, performing a one-shot ripgrep search across multiple file types returns not just the exact matches, but also the surrounding contextual lines to aid in debugging and pattern locating.

Does one-shot ripgrep search work for debugging across multiple file types?

One-shot ripgrep search works effectively for debugging across multiple file types, quickly locating specific code patterns and returning the necessary context in a single operation to speed up code discovery.