Skip to content
Back to skills

Code Search

ASecurity

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

  • 95 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 7, 2026
data-aitypescriptpythongobashgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add YPares/rigup.nix --skill code-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ypares-code-search/badge)](https://www.skillsdirectory.com/skills/ypares-code-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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:**
```bash
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:**
```bash
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:**
```bash
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:**
```bash
<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:**
```bash
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
```bash
rg <primary-pattern> | fzf --filter <secondary-pattern>
```

### Search code and show context
```bash
rg -C 3 <pattern>
```

### Search specific file types
```bash
rg -t ts <pattern>      # TypeScript files
rg -t py <pattern>      # Python files
rg -t go <pattern>      # Go files
```

### List directory tree
```bash
tree -L 3
```

Files in this skill

  • SKILL.md2.3 KB
  • default.nix600 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.