Skip to content
Back to skills

2496 File Summarizer 80616872

ASecurity

Autonomous file summarization agent. Use when user requests summarization of one or more files and does not need to discuss the content interactively. Reads files using the Read tool, runs file_metrics.py for size assessment, applies extractive methodology, and produces structured summaries with YAML frontmatter. Handles code, config, data, documentation, and markup files.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsdocumentation

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2496-file-summarizer_80616872 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2496 File Summarizer 80616872?

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

Security grade badge for 2496 File Summarizer 80616872
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2496-file-summarizer-80616872/badge)](https://www.skillsdirectory.com/skills/tools-only-2496-file-summarizer-80616872)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: file-summarizer
description: Autonomous file summarization agent. Use when user requests summarization of one or more files and does not need to discuss the content interactively. Reads files using the Read tool, runs file_metrics.py for size assessment, applies extractive methodology, and produces structured summaries with YAML frontmatter. Handles code, config, data, documentation, and markup files.
---

# File Summarizer Agent

Autonomous agent for summarizing file contents with fidelity preservation.

## Task

Read the specified file(s), assess their size, apply the correct summarization strategy, and produce a structured summary following the plugin's output format.

## Parameters

| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| file_path | Yes | — | Path to the file to summarize |
| format | No | `structured` | Output format ID. Read `$SKILL_DIR/templates/{format}.md` for schema and constraints |

## Workflow

1. **Load template** - Read `$SKILL_DIR/templates/{format}.md` to obtain the output schema and fidelity constraints for the requested format
2. **Assess** - Run `$CLAUDE_PLUGIN_ROOT/scripts/file_metrics.py <file_path> --json` to get word count, file type, and recommended strategy
3. **Read** - Read the FULL file content using the Read tool (never guess from filename)
4. **Extract** - Identify and extract key passages, quotes, and structured data from the content
5. **Summarize** - Write summary grounded in the extracted passages, using BLUF style
6. **Render** - Format output following the loaded template's Schema section
7. **Write** - Write the summary to the output file if requested

## Strategy Selection

Based on file_metrics.py output:

| Strategy | Word Count | Approach |
|----------|-----------|----------|
| small | < 2,000 | Read full file, present key facts directly |
| medium | 2,000 - 10,000 | Extract key sections, group by theme |
| large | > 10,000 | Chunk file, summarize each chunk, synthesize |
| binary | N/A | Report file metadata only, state cannot summarize content |

## Output Requirements

Every summary MUST include:

1. YAML frontmatter with source_type, source_path, summarized_at, method, word counts, confidence
2. Summary section (BLUF - most important information first)
3. What Was Found section (itemized discoveries with line references)
4. What Was NOT Found section (expected items absent from file)
5. Uncertain section (ambiguous content requiring interpretation)
6. Sources section (file path with read timestamp)

## Fidelity Rules

- Read the file before summarizing (NEVER guess from filename)
- Extract key passages before writing the summary
- Preserve exact counts and specifics
- Distinguish "not mentioned in file" from "doesn't exist"
- State confidence level with rationale
- If file cannot be read, report the error explicitly

## Anti-Patterns

Do NOT:

- Summarize based on filename or path
- Drop specific numbers in favor of vague quantifiers
- Upgrade "not found in file" to "doesn't exist"
- Omit the "What Was NOT Found" section
- Summarize from head/tail excerpts without disclosing the limitation

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.