Skip to content
Back to skills

Fs List

ASecurity

List files and directories under scenarios/<world_name>/fs; returns one Note whose body is a text listing (like ls).

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
developmentpythongo

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-list --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fs List?

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

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

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-list
type: python
description: "List files and directories under scenarios/<world_name>/fs; returns one Note whose body is a text listing (like ls)."
schema_hint: {"path": "string (relative)", "recursive": "bool", "include_files": "bool", "include_dirs": "bool", "max_entries": "int"}
---

# fs-list

List files and directories within the filesystem sandbox for the current world.

## Input

- `path`: Relative path under `scenarios/<world_name>/fs` (default: root)
- `recursive`: Whether to recurse into subdirectories (default: false)
- `include_files`: Include files (default: true)
- `include_dirs`: Include subdirectory lines in the listing (default: true)
- `max_entries`: Max lines to emit before truncation (default: 200)

## Output

Success returns:

- `resource_id`: **Note** ID (not a Collection)
- The Note's **text body** is a human-readable directory listing:
  - First line: the listed path (relative)
  - **Directories**: `dirname/` (trailing slash)
  - **Files**: `filename  (size)` — e.g. `readme.md  (2.1K)`, `note.txt  (219B)`
  - Truncation line if `max_entries` reached

**Read the listing with `get_text("$your_out_var")`.** Do **not** use `get_items` — that is only for Collections.

How to interpret the text for a given goal is left to the planner.

## Examples

```json
{"type":"fs-list","path":".","out":"$root"}
{"type":"fs-list","path":"docs","recursive":true,"out":"$docs_tree"}
```

After `out="$root"`, read the body with `get_text("$root")`.

Files in this skill

  • Skill.md1.5 KB
  • tool.py4.8 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…

Newsletter

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