Book Summarizer for Openclaw

An AI-driven precision summarization tool that enforces a strict 20 percent compression ratio for long-form texts.

dannyxyz22
v1.0.1
Mar 19, 2026
1
983
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install book-summarizer

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install book-summarizer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Book Summarizer?

The Book Summarizer is a sophisticated utility within the Openclaw Skills ecosystem designed for users who require more than just a brief overview. It focuses on high-fidelity, long-form summarization, ensuring that the resulting output maintains exactly 20% of the original word count (within a narrow 2% tolerance).

This skill is particularly valuable for researchers, students, and professionals who need substantial, structured summaries that preserve the chronology and section fidelity of the source material. By utilizing local Python scripts for validation, it eliminates the guesswork often associated with LLM-generated length constraints.

Book Summarizer Use Cases

  • Processing Project Gutenberg texts into substantial study guides.
  • Compressing long-form manuscripts for editorial review while maintaining 20% detail.
  • Generating multi-batch summaries for massive texts that exceed standard context windows.
  • Translating and summarizing international literature into specific languages like pt-BR with strict length requirements.

How Book Summarizer Works

  1. The system ingests a local plain-text file or a Project Gutenberg download.
  2. It calculates the baseline word count using internal scripts to establish a target length.
  3. Large books are automatically split into manageable segments to ensure high-quality drafting.
  4. Summary batches are generated sequentially to maintain narrative flow and section integrity.
  5. Batches are aggregated into a single document and passed through a verification script.
  6. The final summary is only accepted if it falls strictly between 18% and 22% of the original source's word count.

Book Summarizer Setup

To integrate this component of Openclaw Skills, ensure you have Python installed and the skill files located in your local directory.

# Navigate to the skill folder
cd skills/book-summarizer

# Count source words
python scripts/book_tools.py count <original_file>

# Verify target length
python scripts/book_tools.py target <original_file> --ratio 0.20

Book Summarizer Data Schema & Taxonomy

The skill organizes its workflow through a dedicated directory structure and specific metadata tracking:

File/Folder Purpose
scripts/ Contains the Python logic for counting, splitting, and merging.
book_tools.py The primary utility for word count and target length calculation.
split_book.py Handles chunking for books exceeding 80k words.
verify_summary_ratio.py The final gatekeeper script that validates the compression percentage.

Book Summarizer Advanced Features

  • Multi-batch processing: Handles massive volumes of text by summarizing in sequences and merging them logically.
  • Strict Validation Gate: Automatically rejects and retries summaries that do not meet the 18-22% compression window.
  • Language Flexibility: Supports generating the final output in any user-specified language while maintaining ratio accuracy.
  • Zero Dependencies: Uses only the Python standard library for maximum portability and security within the Openclaw Skills framework.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*