Skip to content
Back to skills

Grep

ASecurity

Search for text patterns in files

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentspythongonodegit

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add theonlyamos/cognitrix --skill grep --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Grep?

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

Security grade badge for Grep
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/theonlyamos-grep/badge)](https://www.skillsdirectory.com/skills/theonlyamos-grep)

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
---
name: grep
description: Search for text patterns in files
context: same
args:
  - name: pattern
    description: The text pattern to search for
    required: true
  - name: path
    description: Directory or file to search in
    required: false
  - name: include
    description: Glob pattern for files to include (e.g., "*.py")
    required: false
  - name: exclude
    description: Glob pattern for files to exclude (e.g., "*.log")
    required: false
  - name: context
    description: Number of lines to show before/after match
    required: false
  - name: ignore_case
    description: Case-insensitive search
    required: false
tags: [search, grep, find]
category: system
version: "1.0.0"
author: cognitrix
allowed-tools: [Grep]
safety:
  risk-level: low
---

# Grep

Search for text patterns in files using the Grep tool.

## Usage

### Search all files
```
Grep pattern="function_name"
```

### Search Python files only
```
Grep pattern="TODO" include="*.py"
```

### Search with context (3 lines before/after)
```
Grep pattern="error" context=3
```

### Case-sensitive search
```
Grep pattern="Error" ignore_case=false
```

### Exclude directories
```
Grep pattern="TODO" exclude="node_modules"
```

## Notes

- Supports both absolute and relative paths
- Use `~` for home directory paths
- Set context > 0 to show surrounding lines
- Use exclude to skip directories like node_modules, .git

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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