Skip to content
Back to skills

Fs Find

ASecurity

Find files by filename pattern (glob) under scenarios/<world_name>/fs and return a Collection.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
developmentpythonshell

Security analysis

A100/100

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

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill fs-find --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fs Find?

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

Security grade badge for Fs Find
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-fs-find/badge)](https://www.skillsdirectory.com/skills/bdambrosio-fs-find)

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: fs-find
type: python
description: "Find files by filename pattern (glob) under scenarios/<world_name>/fs and return a Collection."
schema_hint: {"pattern": "string (glob pattern)", "path": "string (relative)", "recursive": "bool", "max_results": "int"}
---

# fs-find

Find files by filename pattern (glob) within the filesystem sandbox for the current world.

## Input

- `pattern`: Glob pattern for filename matching (required, e.g., "*.txt", "Nan_*", "*Ar*")
- `path`: Directory to search (default: "." root)
- `recursive`: Whether to search subdirectories (default: true)
- `max_results`: Maximum files to return (default: 200)

## Pattern Matching

- Uses shell-style glob patterns (via Python `fnmatch`)
- Matches against **filename only** (not full path)
- Common patterns:
  - `"*.txt"` - all .txt files
  - `"Nan_*"` - files starting with "Nan_"
  - `"*Ar*"` - files containing "Ar"
  - `"Nan_Ar.txt"` - exact filename match

**Note:** Pattern cannot contain path separators (`/` or `\`). Use the `path` parameter to search in specific directories.

## Output

Success returns:
- `resource_id`: Collection ID containing matching file Notes
- Collection items are placeholder file Notes (path/size/mtime/format in metadata; body `(placeholder)` until `fs-read`)

## Examples

```json
{"type":"fs-find","pattern":"*.txt","out":"$txt_files"}
{"type":"fs-find","pattern":"Nan_*","path":"bhagavan","recursive":false,"out":"$matches"}
{"type":"fs-find","pattern":"*Ar*","out":"$ar_files"}
```

Files in this skill

  • Skill.md1.5 KB
  • tool.py6.4 KB

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…