Skip to content
Back to skills

List Dir

ASecurity

Find files matching a pattern in a directory

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

Security analysis

A100/100

Scanned November 13, 2026

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

Installs into .claude/skills of the current project.

Are you the author of List Dir?

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

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

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: list-dir
description: Find files matching a pattern in a directory
context: same
args:
  - name: pattern
    description: Glob pattern to match (e.g., "*.py", "*.txt")
    required: false
  - name: path
    description: Directory to search in
    required: false
  - name: recursive
    description: Search recursively
    required: false
tags: [directory, list, glob]
category: system
version: "1.0.0"
author: cognitrix
allowed-tools: [Glob]
safety:
  risk-level: low
---

# List Directory

Find files matching a pattern using the Glob tool.

## Usage

### List all files in current directory
```
Glob pattern="*"
```

### List Python files
```
Glob pattern="*.py"
```

### List files in specific directory
```
Glob pattern="*.py" path="src"
```

### Recursive search (default)
```
Glob pattern="**/*.py" path="src"
```

### Include directories in results
```
Glob pattern="*" path="." recursive=true include_dirs=true
```

## Notes

- Supports both absolute and relative paths
- Use `~` for home directory paths
- Use `**` for recursive matching
- Use `include_dirs=true` to include directories in results

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.