fs-search-skill
Search the filesystem with ls (list directory), glob (pattern match), or grep (search file contents).
Best use case
fs-search-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Search the filesystem with ls (list directory), glob (pattern match), or grep (search file contents).
Teams using fs-search-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/fs-search-skill/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How fs-search-skill Compares
| Feature / Agent | fs-search-skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Search the filesystem with ls (list directory), glob (pattern match), or grep (search file contents).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# FS Search Tool
Search the filesystem: list directories, glob pattern match files, or grep file contents. Uses deepagents filesystem backend.
## fs_search Tool
### Schema Fields
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| mode | string | No | `ls` (list directory), `glob` (pattern match), `grep` (search contents). Default: `ls` |
| path | string | No | Directory path to search in (default: `.`) |
| pattern | string | If glob/grep | Glob pattern (e.g., `**/*.py`) or grep search text |
| file_filter | string | No | Glob to filter files for grep mode (e.g., `*.py`) |
### Examples
**List directory:**
```json
{"mode": "ls", "path": "/path/to/project"}
```
**Find Python files:**
```json
{"mode": "glob", "path": ".", "pattern": "**/*.py"}
```
**Search for a function:**
```json
{"mode": "grep", "path": ".", "pattern": "def my_function", "file_filter": "*.py"}
```
**Find all config files:**
```json
{"mode": "glob", "path": "/etc", "pattern": "*.conf"}
```
### Response Format
**ls mode:**
```json
{
"path": ".",
"entries": [
{"name": "src", "type": "dir", "size": null},
{"name": "README.md", "type": "file", "size": 1234}
],
"count": 2
}
```
**glob mode:**
```json
{
"path": ".",
"pattern": "**/*.py",
"matches": [{"path": "src/main.py"}, {"path": "tests/test_main.py"}],
"count": 2
}
```
**grep mode:**
```json
{
"path": ".",
"pattern": "def main",
"matches": [
{"path": "src/main.py", "line": 42, "text": "def main():"}
],
"count": 1
}
```
### Guidelines
1. Use `ls` to explore directory structure
2. Use `glob` to find files by name pattern (supports `**` recursive, `*` wildcard, `?` single char)
3. Use `grep` to search file contents (literal text, not regex)
4. Combine `grep` with `file_filter` to limit search scope
5. Results are capped at 500 matches for grep modeRelated Skills
serper-search-skill
Search the web using Serper API for Google-powered search results including web, news, images, and places.
perplexity-search-skill
Search the web using Perplexity Sonar AI for synthesized answers with citations, related questions, and optional images.
duckduckgo-search-skill
Search the web using DuckDuckGo for free, privacy-focused results with no API key required.
brave-search-skill
Search the web using Brave Search API for privacy-focused, independent search results with no tracking.
twitter-search-skill
Search for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators. Returns rich tweet data with expanded URLs, author info, media, metrics, and referenced tweets.
proxy-config-skill
Configure residential proxy providers and make proxied HTTP requests with geo-targeting.
http-request-skill
Make HTTP requests to external APIs and web services. Supports GET, POST, PUT, DELETE, PATCH methods with headers and JSON body.
crawlee-scraper-skill
Read and extract content from any web page URL.
browser-skill
Interactive browser automation - navigate, click, type, fill forms, take screenshots, get accessibility snapshots. Supports system Chrome/Edge via auto-detection.
apify-skill
Run web scrapers and extract data from websites and social media platforms using Apify actors. Supports Instagram, TikTok, Twitter/X, LinkedIn, Facebook, YouTube, Google Search, and general web crawling.
nearby-places-skill
Search for nearby places like restaurants, cafes, stores, and services using Google Places API. Find places by type and location.
shell-skill
Execute short-lived shell commands in a sandboxed environment. No PATH access -- use process_manager for npm/python/node commands.