Skip to main content

text-summarizer

Summarize text from a file or inline input. Use for concise summaries and key-point extraction.

Source facts

Repository
datalayer/agent-skills
Last source activity
July 24, 2026 at 14:23
Detected SKILL.md language
English
Stars
15
Forks
2

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
3 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
text-summarizer
description
Summarize text from a file or inline input. Use for concise summaries and key-point extraction.
license
BSD-3-Clause
version
1.0.0
tags
["nlp","summarization","text-processing"]
author
Datalayer
compatibility
Requires Python 3.10+
allowed-tools
Read
metadata
{"category":"nlp"}
# Text Summarizer Skill ## Required Environment Variables - None required. ## Invocation Contract - Call `run_skill_script` with: - `skill_name`: `text-summarizer` - `script_name`: `summarize` - This script requires one input source, passed as `--file` or `--text`. - Pass those options in `kwargs`. ## Script API ### `script_name: summarize` - required input (exactly one): - `file`: path to text file, or - `text`: inline text to summarize - optional `kwargs`: - `max_sentences`: integer - `method`: `extractive | key_points` ## `run_skill_script` Examples - Summarize a file: ```json { "skill_name": "text-summarizer", "script_name": "summarize", "kwargs": { "file": "document.txt", "max_sentences": 5, "method": "extractive" } } ``` - Summarize inline text: ```json { "skill_name": "text-summarizer", "script_name": "summarize", "kwargs": { "text": "Long text here", "method": "key_points", "max_sentences": 3 } } ``` ## Direct CLI Examples ```bash python agent_skills/skills/text_summarizer/scripts/summarize.py --file document.txt --max-sentences 5 python agent_skills/skills/text_summarizer/scripts/summarize.py --text "Long text here" --method key_points --max-sentences 3 ```
View on GitHub