doc-summariser

doc-summariser is a skill for Claude Code, Codex from BenjisCollector/claude-fde-showcase. It costs 51 tokens per session (563 once invoked), scanned A, original, MIT.

An offline document summarising skill that selects important sentences or produces a short one-line gist from supplied text.

In plain words
What is it for?
Use it for TL;DRs, brief summaries, or a preliminary summary before more detailed processing.
Why use it?
It gives you a quick, repeatable way to shorten long text without sending it to an online service.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for TL;DRs, brief summaries, or a preliminary summary before more detailed processing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benjiscollector/claude-fde-showcase/doc_summariser
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BenjisCollector/claude-fde-showcase --skill doc_summariser
Clone the repo
git clone --depth 1 https://github.com/BenjisCollector/claude-fde-showcase

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-summariser

README.md
[![agentmods](https://agentmods.dev/badge/skills/benjiscollector/claude-fde-showcase/doc_summariser/github.svg)](https://agentmods.dev/skills/benjiscollector/claude-fde-showcase/doc_summariser)
Your own site
<a href="https://agentmods.dev/skills/benjiscollector/claude-fde-showcase/doc_summariser"><img src="https://agentmods.dev/badge/skills/benjiscollector/claude-fde-showcase/doc_summariser/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc-summariser

Your own site · 80×15
<a href="https://agentmods.dev/skills/benjiscollector/claude-fde-showcase/doc_summariser"><img src="https://agentmods.dev/badge/skills/benjiscollector/claude-fde-showcase/doc_summariser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 563 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00563
Opus 5 $0.00026 $0.00282
Sonnet 5 $0.00010 $0.00113
Haiku 4.5 $0.00005 $0.00056

Measured 10d ago against content hash 0a84fbd960fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

doc-summariser scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (helper.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent_skills/doc_summariser/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Doc Summariser

An agent skill that demonstrates the SKILL.md + helper-code pattern with a real, runnable capability.

Capability

Given a block of text, produce a faithful summary. Two modes are available:

  • Extractive summary (summarise_document): selects the most salient whole sentences from the text using a frequency-based scoring scheme (a variant of the classic Luhn method) and returns them in their original order, so the summary reads naturally.
  • One-line gist (gist): a word-bounded single line for when the caller wants the shortest possible version.

Both modes are deterministic and run fully offline, which makes the skill cheap, reproducible, and easy to test. They share their implementation with the MCP summarise tool, so there is one source of truth to upgrade later (for example, to a Claude-generated abstractive summary).

When to use

  • The user pastes a long passage and asks for the "gist", "TL;DR", or a "short version".
  • An orchestrator needs a quick, cheap summary step before deeper processing.

How to use

from agent_skills.doc_summariser.helper import summarise_document, gist

# Most salient sentences, original order:
summarise_document(long_text, max_sentences=3)

# A single short line:
gist(long_text, max_words=20)

Or run the skill directly to see both modes on a sample:

python agent_skills/doc_summariser/helper.py

Inputs

  • text (str): the document to summarise.
  • max_sentences (int, default 3): upper bound on extractive summary length.
  • max_words (int, default 20): upper bound on the one-line gist.

Output

  • summarise_document: a string containing the top sentences, joined and in original document order. If the text is already within the sentence bound it is returned (whitespace-normalised) unchanged.
  • gist: a single short line; the original text if already short enough, otherwise the first max_words words followed by an ellipsis.

Edge cases

  • A negative bound raises ValueError.
  • A bound of zero returns an empty string.
  • Text with no scorable content falls back to the leading sentences.

Read the full file on GitHub · 70 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 70 lines · 51 tokens per session scan A 0a84fbd960fa

Subscribe to this mod's changes

doc-summariser is a skill published in the GitHub repository BenjisCollector/claude-fde-showcase (0 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 563 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.