← 返回 Skills 市场
dannyxyz22

Book summarizer

作者 Daniel Lélis Baggio · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
179
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install book-summarizer
功能描述
Use this skill when the user wants a long-form book summarized in the user's preferred language at an explicitly verified 20 percent compression ratio, with...
使用说明 (SKILL.md)

\r \r

Book Summarizer\r

\r Use this skill for requests like:\r \r

  • "Summarize this book at a 20% compression ratio"\r
  • "Generate a substantial summary and verify the ratio"\r
  • "Produce the summary in batches and validate the final total"\r \r

Rules\r

\r

  • Default target ratio: 0.20\r
  • Default tolerance: 0.02\r
  • Accept only summaries between 18% and 22% of the original word count\r
  • Output must be in user's language of choice (e.g., pt-BR)\r
  • If the ratio is outside the allowed range, do not import the summary\r
  • In chat-only mode, if the source is very large, generate the summary in multiple batches and merge them before validation\r
  • All packaged helper scripts live in scripts/ inside this skill folder\r \r

Workflow\r

\r

  1. Start from a local plain-text book file or a downloaded Project Gutenberg text.\r
  2. Count the source words with python scripts/book_tools.py count \x3Coriginal_file>.\r
  3. Compute the target summary length with python scripts/book_tools.py target \x3Coriginal_file> --ratio 0.20.\r
  4. If the source is too large for one reply, split it with python scripts/split_book.py \x3Coriginal_file> 3000.\r
  5. Draft summary batches in order, preserving chronology and section fidelity.\r
  6. Merge the batches with python scripts/book_tools.py aggregate \x3Csummary_file> \x3Cbatch_files...>.\r
  7. Validate the final ratio with python scripts/verify_summary_ratio.py \x3Coriginal_file> \x3Csummary_file>.\r \r

Key Files\r

\r

  • scripts/book_tools.py\r
  • scripts/split_book.py\r
  • scripts/verify_summary_ratio.py\r
  • SKILL.md\r \r

Notes\r

\r

  • The packaged scripts use only the Python standard library.\r
  • Run the commands from the skill folder, or use explicit paths if you call them from elsewhere.\r
  • For very large books, prefer the automated pipeline over single-turn chat drafting.\r
  • In chat-only mode, books above roughly 80k words should be summarized over multiple turns; do not pretend a single short draft satisfies the 20% rule.\r \r \r
安全使用建议
This package is internally consistent and only operates on local text files via bundled Python scripts. Before installing: (1) ensure you have a Python runtime available (the skill's metadata omits this dependency), (2) be aware that summarization normally involves sending book text to the model/provider — do not use it for sensitive/private documents unless you trust your model endpoint, and (3) respect copyright for non-public works. The code is small and uses only the standard library; review it yourself if you want to confirm behavior locally.
功能分析
Type: OpenClaw Skill Name: book-summarizer Version: 1.0.1 The book-summarizer skill bundle is a well-structured toolset for processing long-form text. The included Python scripts (book_tools.py, split_book.py, and verify_summary_ratio.py) use only the Python standard library to perform word counting, file splitting, and result aggregation. The instructions in SKILL.md are consistent with the stated purpose of achieving a specific compression ratio and do not contain any malicious prompt-injection attempts or unauthorized data access requests.
能力评估
Purpose & Capability
Name/description match the included scripts and instructions. The three Python helper scripts implement counting, splitting, aggregating, and ratio verification which are appropriate for a summarizer. Minor mismatch: the skill declares no required binaries but the SKILL.md and scripts assume a Python runtime (commands like `python scripts/...`).
Instruction Scope
SKILL.md confines activity to local files and the provided scripts (count, split, aggregate, verify). It also instructs the agent to draft summary batches 'in chat' — which implies sending book text to the LLM provider during summarization. The skill itself does not add remote endpoints, but using it will typically transmit source text to whatever model/service the agent invokes.
Install Mechanism
No install spec (instruction-only). Scripts are bundled and rely only on the Python standard library; nothing is downloaded or executed from external URLs.
Credentials
No environment variables, credentials, or config paths are requested. The skill does not require unrelated secrets or system credentials.
Persistence & Privilege
always is false and the skill does not request elevated or persistent system presence. It does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install book-summarizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /book-summarizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added a warning to the description: the skill may consume many tokens because it can run multiple times to meet the requested compression rate. - No functional or workflow changes. All rules and procedures remain the same.
v1.0.0
- Initial release of the Book Summarizer skill. - Summarizes long-form books to a verified 20% compression ratio (18%–22% accepted). - Supports user’s language preference for summary output. - Handles large books by batching summaries and merging them before ratio validation. - Includes Python scripts for word counting, batch splitting, merging, and ratio verification. - Strictly rejects summaries outside the allowed compression range.
元数据
Slug book-summarizer
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Book summarizer 是什么?

Use this skill when the user wants a long-form book summarized in the user's preferred language at an explicitly verified 20 percent compression ratio, with... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 179 次。

如何安装 Book summarizer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install book-summarizer」即可一键安装,无需额外配置。

Book summarizer 是免费的吗?

是的,Book summarizer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Book summarizer 支持哪些平台?

Book summarizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Book summarizer?

由 Daniel Lélis Baggio(@dannyxyz22)开发并维护,当前版本 v1.0.1。

💬 留言讨论