code-search

code-search is a skill for Claude Code, Codex from YPares/rigup.nix. It costs 0 tokens per session (580 once invoked), scanned A, original, MIT.

A set of command-line tools for finding text in code, locating files and folders, and viewing files with line numbers and syntax highlighting.

In plain words
What is it for?
Use it to search for functions or text, find files by name or type, browse folder contents, and inspect source files.
Why use it?
It reduces the time spent navigating unfamiliar projects and avoids manually checking files one by one.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ypares/rigup.nix/code-search
Any agent
npx skills add YPares/rigup.nix --skill code-search
Clone the repo
git clone --depth 1 https://github.com/YPares/rigup.nix

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 code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/ypares/rigup.nix/code-search.svg)](https://agentmods.dev/skills/ypares/rigup.nix/code-search)
Your own site
<a href="https://agentmods.dev/skills/ypares/rigup.nix/code-search"><img src="https://agentmods.dev/badge/skills/ypares/rigup.nix/code-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00580
Opus 5 $0.00000 $0.00290
Sonnet 5 $0.00000 $0.00116
Haiku 4.5 $0.00000 $0.00058

Measured 4d ago against content hash b9c826e3c923, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-search 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 4d 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.

riglets/code-search/SKILL.md · 85 lines

How it starts

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

Code Search & File Tree Browsing

Fast, efficient utilities for searching code and browsing file hierarchies.

Tools Overview

ripgrep (rg)

Ultra-fast grep alternative that respects .gitignore by default.

Common usage:

rg <pattern> [<path>]              # Search for pattern in files
rg -t <type> <pattern>             # Search files of specific type
rg --no-ignore <pattern>           # Search ignoring .gitignore
rg -w <pattern>                    # Match whole word
rg -C <num> <pattern>              # Show context lines

fd

Faster, simpler alternative to find with better defaults and colorized output.

Common usage:

fd <pattern> [<path>]              # Find files matching pattern
fd -e <ext> <pattern>              # Find by extension
fd -t f <pattern>                  # Find files only
fd -t d <pattern>                  # Find directories only
fd --follow <pattern>              # Follow symlinks

bat

Syntax-highlighting cat with git integration and line numbers.

Common usage:

bat <file>                         # View file with syntax highlighting
bat --line-range <start:end> <file>  # Show specific line range
rg <pattern> | bat --file-name <path>  # Syntax highlight search results

fzf

Fuzzy filtering and pattern matching for command pipelines.

Common usage:

<command> | fzf --filter <pattern>  # Filter output by pattern (non-interactive)
echo -e "file1\nfile2\nfile3" | fzf --filter "file"  # Match lines containing "file"
rg <pattern> | fzf --filter <secondary-pattern>  # Further filter search results

tree

Display directory structure in tree format.

Common usage:

tree [<path>]                      # Show tree structure
tree -L <depth> [<path>]           # Limit depth
tree -I '<pattern>'                # Exclude pattern
tree -a                            # Include hidden files

Common Workflows

Filter search results by secondary pattern

rg <primary-pattern> | fzf --filter <secondary-pattern>

Read the full file on GitHub · 85 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. 4d ago First seen · 85 lines · 0 tokens per session scan A b9c826e3c923

Subscribe to this mod's changes

code-search is a skill published in the GitHub repository YPares/rigup.nix (86 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 580 tokens. 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.

Related

Other skills, from other repositories

jj-todo-workflow

Structured TODO commit workflow using JJ (Jujutsu). Use to plan tasks as empty commits with [task:] flags, track progress through status transitions, manage parallel task DAGs with dependency checking. Enforces completion discipline. Enables to divide work between Planners and Workers. Requires the working-with-jj…

YPares/agent-skills · 70 tokens

package-npm-nix

Package npm/TypeScript/Bun CLI tools for Nix. Use when creating Nix derivations for JavaScript/TypeScript tools from npm registry or GitHub sources, handling pre-built packages or source builds with dependency management.

YPares/agent-skills · 52 tokens

nushell-usage

Essential patterns, idioms, and gotchas for writing Nushell code. Use when writing Nushell scripts, functions, or working with Nushell's type system, pipelines, and data structures. Complements plugin development knowledge with practical usage patterns.

YPares/agent-skills · 54 tokens

typst-writer

Write correct and idiomatic Typst code for document typesetting. Use when creating or editing Typst (.typ) files, working with Typst markup, or answering questions about Typst syntax and features. Focuses on avoiding common syntax confusion (arrays vs content blocks, proper function definitions, state management).

YPares/agent-skills · 66 tokens

nushell-plugin-builder

Guide for creating Nushell plugins in Rust using nuplugin and nuprotocol crates. Use when users want to build custom Nushell commands, extend Nushell with new functionality, create data transformations, or integrate external tools/APIs into Nushell. Covers project setup, command implementation, streaming data, custom…

YPares/agent-skills · 69 tokens

searxng-search

Enhanced web and package repository search using local SearXNG instance.

YPares/agent-skills · 19 tokens