---
name: Safe File Reader
slug: safe-file-reader
category: AI Engineering
description: Safe File Reader reads files from a documents directory with validation so an agent can access only allowed files. Use it when an agent needs to read document contents without exposing arbitrary files.
github: "https://github.com/cisco-ai-defense/skill-scanner/tree/main/evals/skills/path-traversal/file-reader"
language: Python
stars: 2445
forks: 308
install: "npx degit https://github.com/cisco-ai-defense/skill-scanner/tree/main/evals/skills/path-traversal/file-reader ~/.claude/skills/file-reader"
installs_to: ~/.claude/skills/file-reader
source_path: evals/skills/path-traversal/file-reader/SKILL.md
collection_size: 21
category_size: 2451
collection_url: "https://dirskills.com/collections/cisco-ai-defense/skill-scanner"
added: 2026-08-18T06:57:54.000Z
last_synced: 2026-08-18T06:57:54.000Z
canonical_url: "https://dirskills.com/skills/safe-file-reader"
---

# Safe File Reader

Safe File Reader reads files from a documents directory with validation so an agent can access only allowed files. Use it when an agent needs to read document contents without exposing arbitrary files.

**Install:**

```bash
npx degit https://github.com/cisco-ai-defense/skill-scanner/tree/main/evals/skills/path-traversal/file-reader ~/.claude/skills/file-reader
```

## README

# Safe File Reader

Reads files from the documents directory with validation.

## Usage

Provide filename to read.
