fs-search-skill

Search the filesystem with ls (list directory), glob (pattern match), or grep (search file contents).

100 stars

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

$curl -o ~/.claude/skills/fs-search-skill/SKILL.md --create-dirs "https://raw.githubusercontent.com/trohitg/MachinaOS/main/server/skills/coding_agent/fs-search-skill/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/fs-search-skill/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How fs-search-skill Compares

Feature / Agentfs-search-skillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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 mode

Related Skills

serper-search-skill

100
from trohitg/MachinaOS

Search the web using Serper API for Google-powered search results including web, news, images, and places.

perplexity-search-skill

100
from trohitg/MachinaOS

Search the web using Perplexity Sonar AI for synthesized answers with citations, related questions, and optional images.

duckduckgo-search-skill

100
from trohitg/MachinaOS

Search the web using DuckDuckGo for free, privacy-focused results with no API key required.

brave-search-skill

100
from trohitg/MachinaOS

Search the web using Brave Search API for privacy-focused, independent search results with no tracking.

twitter-search-skill

100
from trohitg/MachinaOS

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

100
from trohitg/MachinaOS

Configure residential proxy providers and make proxied HTTP requests with geo-targeting.

http-request-skill

100
from trohitg/MachinaOS

Make HTTP requests to external APIs and web services. Supports GET, POST, PUT, DELETE, PATCH methods with headers and JSON body.

crawlee-scraper-skill

100
from trohitg/MachinaOS

Read and extract content from any web page URL.

browser-skill

100
from trohitg/MachinaOS

Interactive browser automation - navigate, click, type, fill forms, take screenshots, get accessibility snapshots. Supports system Chrome/Edge via auto-detection.

apify-skill

100
from trohitg/MachinaOS

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

100
from trohitg/MachinaOS

Search for nearby places like restaurants, cafes, stores, and services using Google Places API. Find places by type and location.

shell-skill

100
from trohitg/MachinaOS

Execute short-lived shell commands in a sandboxed environment. No PATH access -- use process_manager for npm/python/node commands.