Skip to content
Skills Library
Programming · Analysis

rg-context

/rg-context

Use when looking for where something lives in a codebase and a plain grep would return too much or too little. Ranks files by matches, shows the top files with surrounding lines, finds definitions by name, and keeps the output inside a line budget.

Repository
claude-os ↗
Licence
Apache-2.0
Last repository change
10.11.2026

Assessment and security

96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content31 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: rgc.sh

What it does and when to use it

Use when looking for where something lives in a codebase and a plain grep would return too much or too little. Ranks files by matches, shows the top files with surrounding lines, finds definitions by name, and keeps the output inside a line budget.

Original author description

Use when looking for where something lives in a codebase and a plain grep would return too much or too little. Ranks files by matches, shows the top files with surrounding lines, finds definitions by name, and keeps the output inside a line budget.

How it works

SKILL.md has no level-two headings · 21 lines, 155 words

SKILL.md preview
---
name: rg-context
description: Use when looking for where something lives in a codebase and a plain grep would return too much or too little. Ranks files by matches, shows the top files with surrounding lines, finds definitions by name, and keeps the output inside a line budget.
---

# rg-context

`rgc.sh` sits beside this file. Run it with bash, using this skill's base directory:

```bash
bash "<base directory>/rgc.sh" "retry limit" src
bash "<base directory>/rgc.sh" --def createOsPlugins
bash "<base directory>/rgc.sh" --top 3 --context 5 --budget 80 "pattern" path
```

It searches with ripgrep in smart case, skips generated folders and lock files, then prints:

1. The totals and the files ranked by matches. Tests, docs and fixtures rank below source with the same count.
2. The matches of the top files with surrounding lines, until the line budget runs out.
3. How to see the rest: the output ends with how many files were left out.

`--def NAME` looks for where NAME is defined instead of where it is mentioned, in the common forms of JS/TS, Python, PHP, Go, Rust, Java and shell.

Exit code 1 means no matches. Try a shorter pattern or a wider path before concluding that something does not exist.
Files in this package (2)
  • SKILL.md 1 KB
  • rgc.sh 3 KB

Versions

The database has no other skills named rg-context.

Database snapshot: 13.11.2026 · package version e0d62cd9f3bf (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 91context-engine
    Search and understand the indexed codebase with Context Engine (hybrid semantic + lexical search, reranked, with a symbol graph). Use for any question about this codebase - where something is implemented, how it works, callers/definitions, every place that does X - before ls/find/Grep/Read.
  • 100grep-before-read
    Default to `rg`/`grep` for discovery instead of reading whole files. Use whenever you're hunting for a symbol, function, pattern, or a specific line in a repo you don't already have fully loaded in context - especially on files over ~400 lines, unknown codebases, or when the…
  • 100code-query
    Local source-code lookup; definitions/snippets only. USE FOR: definitions, callers/refs, requirement/test ID traces, symbol/regex search, code Q&A. PREFER OVER read_file, grep_search, and ripgrep for source files; fall back to grep only if hits are empty or unrelated. DO NOT USE…
  • 100code-search
    Search for patterns inside file contents using ripgrep (rg). Use when searching for code patterns, finding function definitions, locating usages, or when the user asks to search/grep content inside files.
  • 90jevgrep
    Use for questions about how, why or where behavior works in a codebase, when you do not yet know which files matter. Calls the code_find tool, which returns relevant files and verbatim excerpts. For a known symbol, string or filename use grep or read_file instead.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.