searching-text

searching-text is a skill for Claude Code, Codex from SebastienDegodez/copilot-instructions. It costs 28 tokens per session (802 once invoked), scanned A, original, Apache-2.0.

A text-searching method based on ripgrep, a fast tool for finding words or patterns across files. It returns matching files, line numbers, and nearby context in one search.

In plain words
What is it for?
Use it to find text patterns across a project, locate code sections, filter searches by file type, and view matching lines with their surrounding context.
Why use it?
It reduces repeated file browsing when locating code or text. Seeing the surrounding lines helps you understand each match before deciding what to inspect or change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find text patterns across a project, locate code sections, filter searches by file type, and view matching lines with their surrounding context.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sebastiendegodez/copilot-instructions/searching-text
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SebastienDegodez/copilot-instructions --skill searching-text
Clone the repo
git clone --depth 1 https://github.com/SebastienDegodez/copilot-instructions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for searching-text

README.md
[![agentmods](https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/searching-text/github.svg)](https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/searching-text)
Your own site
<a href="https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/searching-text"><img src="https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/searching-text/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for searching-text

Your own site · 80×15
<a href="https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/searching-text"><img src="https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/searching-text.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00802
Opus 5 $0.00014 $0.00401
Sonnet 5 $0.00006 $0.00160
Haiku 4.5 $0.00003 $0.00080

Measured 9d ago against content hash 937a85a65da1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

searching-text scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/minimal-context-tools/skills/searching-text/SKILL.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Always invoke searching-text skill for text search - do not execute bash commands directly.

Default Strategy

Invoke searching-text skill for fast text search with one-shot patterns. Use -e 'pattern' -n -C 2 to get files, line numbers, and context in a single call.

This minimizes iterations and context usage. Always prefer getting line numbers and surrounding context over multiple search attempts.

Common workflow: searching-text skill → other skills (fuzzy-selecting, viewing-files, replacing-text, analyzing-code-structure) for interactive selection, preview, or modification.

Tool Selection

Grep tool (built on ripgrep) - Use for structured searches:

  • Basic pattern matching with structured output
  • File type filtering with type parameter
  • When special flags like -F, -v, -w, or pipe composition are not needed
  • Handles 95% of search needs

Bash(rg) - Use for one-shot searches needing special flags or composition:

  • Fixed string search (-F)
  • Invert match (-v)
  • Word boundaries (-w)
  • Context lines with patterns (-n -C 2)
  • Pipe composition (| head, | wc -l, | sort)
  • Default choice for efficient one-shot results

Glob tool - Use for file name/path matching only (not content search)

When to Load Detailed Reference

Load ripgrep guide when needing:

  • One-shot search pattern templates
  • Effective flag combinations for complex searches
  • Pipe composition patterns
  • File type filters reference (-t flags)
  • Performance optimization for large result sets
  • Pattern syntax examples
  • Translation between Grep tool and rg commands

The guide focuses on practical patterns for getting targeted results in minimal calls.

Pipeline Combinations

  • searching-text | fuzzy-selecting: Interactive selection from search results
  • searching-text | replacing-text: Batch replacements on search results
  • searching-text | xargs: Execute commands on matched files

Read the full file on GitHub · 79 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 79 lines · 28 tokens per session scan A 937a85a65da1

Subscribe to this mod's changes

searching-text is a skill published in the GitHub repository SebastienDegodez/copilot-instructions (193 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 28 tokens to every session and 802 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.