Skip to content
Back to skills

Fs Head

ASecurity

Read the first N lines of a text file under scenarios/<world_name>/fs.

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

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

Installs into .claude/skills of the current project.

Are you the author of Fs Head?

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

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

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-head
type: python
description: "Read the first N lines of a text file under scenarios/<world_name>/fs."
schema_hint: {"path": "string (relative)", "lines": "int"}
---

# fs-head

Return the first N lines of a text file from the filesystem sandbox.

## Input

- `path`: Relative path under `scenarios/<world_name>/fs` (required)
- `lines`: Number of lines to return (default: 20)

## Output

Success returns:
- `resource_id`: Note ID containing text content.
- Note content format:
  - metadata Note linked by meta Relation (path/line range/truncation metadata)
  - body text with the first N lines

## Examples

```json
{"type":"fs-head","path":"logs/app.log","lines":50,"out":"$log_head"}
```

Files in this skill

  • Skill.md707 B
  • tool.py3.2 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.