Skip to content
Back to skills

Summarize

ASecurity

Summarize text or local UTF-8 files via OpenAI-compatible chat completions.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 14, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Scanned June 14, 2026

npx -y skills add lordmacu/nexo-rs --skill summarize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Summarize?

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

Security grade badge for Summarize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lordmacu-summarize/badge)](https://www.skillsdirectory.com/skills/lordmacu-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: Summarize
description: Summarize text or local UTF-8 files via OpenAI-compatible chat completions.
requires:
  bins: []
  env:
    - SUMMARIZE_OPENAI_API_KEY
---

# Summarize

Use this skill when the user asks for concise summaries of long text or local
documents. Backed by the `summarize` extension which calls any
OpenAI-compatible chat completions endpoint.

## Use when

- "Summarize this text"
- "Give me a short summary of this file"
- "Extract key points from this note"
- Long input that would otherwise blow the context window

## Do not use when

- User asks for full verbatim rewrite
- User asks for strict legal or medical advice
- Input is binary media (audio/video) without transcript first
- Input fits comfortably in the conversation already (just summarize directly without the tool)

## Tools

### `status`
No arguments. Returns endpoint, model, key presence, size limits.

### `summarize_text`
- `text` (string, required, ≤ 60 000 chars)
- `length` (string, optional) — `short` (1–2 sentences) | `medium` (paragraph, default) | `long` (6–10 sentences)
- `language` (string, optional) — output language hint, e.g. `Spanish`

Returns `{length, language, input_chars, summary}`.

### `summarize_file`
- `path` (string, required) — UTF-8 file, max 1 MB
- `length`, `language` (optional, same)

Returns `{path, bytes, length, language, input_chars, summary}`.

## Execution guidance

- Default to `length: "medium"`. Bump to `short` if the user wants a one-liner; `long` if they ask for an exec summary or report.
- Pass `language` only if it differs from the conversation language.
- If the text is over 60k chars, chunk it before calling: split into ≤ 50k blocks, summarize each, then summarize the summaries.
- If error code is `-32011` (unauthorized) → `SUMMARIZE_OPENAI_API_KEY` missing or invalid; ask the operator.
- If error code is `-32007` (empty completion) → provider returned blank content; retry once or report.
- For binary files (PDF, DOCX) extract text first via another tool; this extension does not parse them.

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.