A skill your agent uses when searching for text patterns across files, finding specific code locations, or getting lines with surrounding context in a single call

Apache-2.0Auto-check passedDevelopment

Install Searching Text

skills CLI
$ npx skills add SebastienDegodez/copilot-instructions --skill searching-text -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SebastienDegodez/copilot-instructions searching-text --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SebastienDegodez/copilot-instructions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/minimal-context-tools/skills/searching-text .claude/skills/searching-text && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
searching-text
GitHub stars
198
Token cost
~892 tokens
SKILL.md length
354 words
Files
2
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when searching for text patterns across files, finding specific code locations, or getting lines with surrounding context in a single call

  • Searching for text patterns across files
  • SKILL.md covers Default Strategy, Tool Selection, When to Load Detailed Reference and Skill Combinations
  • Calls rg
  • Finding specific code locations

What it does

Searching Text is an agent skill from SebastienDegodez/copilot-instructions. Use when searching for text patterns across files, finding specific code locations, or getting lines with surrounding context in a single call

Its SKILL.md is about 890 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `reference/ripgrep-guide.md`).

It sits in Development. The repository describes itself as: A comprehensive codebase of best practices, coding rules, and workflow automation for AI-assisted development with GitHub Copilot. Includes DDD, Clean Architecture, testing… The licence is Apache-2.0.

When your agent uses it

  • Searching for text patterns across files
  • Finding specific code locations
  • Getting lines with surrounding context in a single call

Example prompts

  • “/searching-text”

What it can do on your machine

Read from SKILL.md and the folder at commit 0f0dccf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Searching Text loads about 892 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 354 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~892

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SebastienDegodez/copilot-instructions at commit 0f0dccf, republished under its Apache-2.0 licence (© SebastienDegodez). 354 words, ~892 tokens.

Download SKILL.mdSave it as .claude/skills/searching-text/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
searching-text
description
Use when searching for text patterns across files, finding specific code locations, or getting lines with surrounding context in a single call

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.

Show full SKILL.md (124 more words)Show less
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

Skill Combinations

For Discovery Phase
  • finding-files → searching-text: Find files of specific type, then search within them
  • extracting-code-structure → searching-text: Understand structure, then search for specific patterns
  • querying-json/querying-yaml → searching-text: Extract field values, then search for their usage
For Analysis Phase
  • searching-text → fuzzy-selecting: Interactive selection from search matches
  • searching-text → viewing-files: View matched files with syntax highlighting
  • searching-text → analyzing-code-structure: After finding text patterns, apply structural changes
For Refactoring Phase
  • searching-text → replacing-text: Replace found patterns with new content
  • searching-text → xargs: Execute commands on all matching files
  • searching-text → analyzing-code: Get statistics for files containing specific patterns
  • searching-text → analyzing-code-structure: After finding text patterns, apply structural changes
Integration Examples
bash
# Find and edit all references to a function
rg "functionName" -l | fzf --multi --preview="bat --color=always --highlight-line $(rg -n "functionName" {} | head -1 | cut -d: -f2) {}" | xargs vim

# Find TODOs and create summary
rg "TODO|FIXME" -n | fzf --multi --preview="bat --color=always --highlight-line {2} {1}"

© SebastienDegodez, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in plugins/minimal-context-tools/skills/searching-text of SebastienDegodez/copilot-instructions.

  • SKILL.md
  • reference/ripgrep-guide.md

Open the folder on GitHubat commit 0f0dccf

Compare with similar skills

Searching Text next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Searching Text compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Searching Text this skillSebastienDegodez/copilot-instructions198—~892Automated safety check: PassApache-2.0
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from SebastienDegodez/copilot-instructions

All 19 skills in this repo
  • Setup Husky Dotnet

    SebastienDegodez/copilot-instructions

    A skill your agent uses when configuring Git hooks in .NET projects before team commits occur, to enforce commit message standards and code formatting automatically

    198 GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Clean Architecture Dotnet

    SebastienDegodez/copilot-instructions

    A skill your agent uses when domain logic leaks into API/Infrastructure, project references violate layer boundaries, or you need to decide between CQS (always), CQRS bus (complex domains), and DDD…

    198 GitHub stars~5.1k tokensUpdated 3 days ago
    Auto-check passed
  • Outside In TDD

    SebastienDegodez/copilot-instructions

    A skill your agent uses when writing tests from the outside-in, defining behavior before code, or any feature where tests should start from observable business behavior and let internal design emerge

    198 GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • Creating Dotnet MCP Servers

    SebastienDegodez/copilot-instructions

    A skill your agent uses when building Model Context Protocol (MCP) servers in .NET, configuring tools, transports (SSE/stdio), JSON serialization for AOT, or testing MCP endpoints

    198 GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Generate Microcks Openapi Samples

    SebastienDegodez/copilot-instructions

    A skill your agent uses when creating OpenAPI mock examples for Microcks, setting up request/response routing with dispatchers, or mapping request fields to mock responses

    198 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Analyzing Code

    SebastienDegodez/copilot-instructions

    A skill your agent uses when understanding project composition by language, measuring code change impact, or generating code statistics for CI/CD metrics

    198 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Searching Text

What does Searching Text do?

A skill your agent uses when searching for text patterns across files, finding specific code locations, or getting lines with surrounding context in a single call. Searching Text is an agent skill from SebastienDegodez/copilot-instructions.

When should I use Searching Text?

Searching Text fits situations like: searching for text patterns across files; finding specific code locations; getting lines with surrounding context in a single call.

How do I install Searching Text in Claude Code?

Run `npx skills add SebastienDegodez/copilot-instructions --skill searching-text -a claude-code`. Or copy the skill folder (plugins/minimal-context-tools/skills/searching-text in SebastienDegodez/copilot-instructions) into .claude/skills/searching-text in your project. Claude Code loads it when a task matches its description.

How do I install Searching Text in Codex?

Run `npx skills add SebastienDegodez/copilot-instructions --skill searching-text -a codex`. Or copy the skill folder (plugins/minimal-context-tools/skills/searching-text in SebastienDegodez/copilot-instructions) into .agents/skills/searching-text in your project. Codex loads it when a task matches its description.

Can I use Searching Text in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SebastienDegodez/copilot-instructions --skill searching-text -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/searching-text, .gemini/skills/searching-text, .github/skills/searching-text and .opencode/skills/searching-text in your project.

What does Searching Text need to run?

Going by SKILL.md and its folder, Searching Text needs the command-line tools its instructions call (rg).

Does Searching Text access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Searching Text safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Searching Text use?

Searching Text is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Searching Text use?

About 892 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Searching Text?

Skills that share tags, products or a category with Searching Text: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Searching Text?

SebastienDegodez (a GitHub user) maintains it in SebastienDegodez/copilot-instructions, which has 198 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 6, 2026.

Source: SebastienDegodez/copilot-instructions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.