Skip to content
Back to skills

File Summarize

ASecurity

Produce a short Markdown summary of a text file (line count, top tokens, first/last lines). Use when the user asks "what's in this file" or wants a quick characterisation.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agents

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add hsaghir/looplet --skill file-summarize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of File Summarize?

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

Security grade badge for File Summarize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hsaghir-file-summarize/badge)](https://www.skillsdirectory.com/skills/hsaghir-file-summarize)

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: file-summarize
description: Produce a short Markdown summary of a text file (line count, top tokens, first/last lines). Use when the user asks "what's in this file" or wants a quick characterisation.
tags: [text, summary, exploration]
---

# File summariser

Use this skill when the user wants a quick characterisation of a text
file but does NOT want full content reproduction.

## Steps

1. Use `read_text(path=<file>)` to load the file.
2. Count: total lines, total chars, distinct words (split on
   whitespace, lowercased, stripped of `.,;:!?"'()`).
3. Identify the 10 most-frequent words, ignoring this stoplist:
   `the a an of to in for and or is are was were be been being it its
   this that these those on at by from as with`.
4. Capture the first 3 non-empty lines and the last 3 non-empty
   lines.
5. Write a Markdown report to `<stem>.summary.md` with sections:
   `## Counts`, `## Top words`, `## First lines`, `## Last lines`.

## Output contract

The user expects `<stem>.summary.md`. Report the path in
`done(answer=...)`.

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.