"Generate a substantial summary and verify the ratio"
"Produce the summary in batches and validate the final total"
Rules
Default target ratio: 0.20
Default tolerance: 0.02
Accept only summaries between 18% and 22% of the original word count
Output must be in user's language of choice (e.g., pt-BR)
If the ratio is outside the allowed range, do not import the summary
In chat-only mode, if the source is very large, generate the summary in multiple batches and merge them before validation
All packaged helper scripts live in scripts/ inside this skill folder
Workflow
Start from a local plain-text book file or a downloaded Project Gutenberg text.
Count the source words with python scripts/book_tools.py count <original_file>.
Compute the target summary length with python scripts/book_tools.py target <original_file> --ratio 0.20.
If the source is too large for one reply, split it with python scripts/split_book.py <original_file> 3000.
Draft summary batches in order, preserving chronology and section fidelity.
Merge the batches with python scripts/book_tools.py aggregate <summary_file> <batch_files...>.
Validate the final ratio with python scripts/verify_summary_ratio.py <original_file> <summary_file>.
Key Files
scripts/book_tools.py
scripts/split_book.py
scripts/verify_summary_ratio.py
SKILL.md
Notes
The packaged scripts use only the Python standard library.
Run the commands from the skill folder, or use explicit paths if you call them from elsewhere.
For very large books, prefer the automated pipeline over single-turn chat drafting.
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.
1---2name: asb04-0095373description: "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 the result rejected if it falls outside the allowed range. Warning: this skill may consume many tokens because it can run multiple times until it reaches the requested compression rate."4metadata:5 source: https://skillmd.com/skills/bishal-pdmsft/asb04-0095376---78# Book Summarizer910Use this skill for requests like:1112- "Summarize this book at a 20% compression ratio"13- "Generate a substantial summary and verify the ratio"14- "Produce the summary in batches and validate the final total"1516## Rules1718- Default target ratio: `0.20`19- Default tolerance: `0.02`20- Accept only summaries between `18%` and `22%` of the original word count21- Output must be in user's language of choice (e.g., pt-BR)22- If the ratio is outside the allowed range, do not import the summary23- In chat-only mode, if the source is very large, generate the summary in multiple batches and merge them before validation24- All packaged helper scripts live in `scripts/` inside this skill folder2526## Workflow27281. Start from a local plain-text book file or a downloaded Project Gutenberg text.292. Count the source words with `python scripts/book_tools.py count <original_file>`.303. Compute the target summary length with `python scripts/book_tools.py target <original_file> --ratio 0.20`.314. If the source is too large for one reply, split it with `python scripts/split_book.py <original_file> 3000`.325. Draft summary batches in order, preserving chronology and section fidelity.336. Merge the batches with `python scripts/book_tools.py aggregate <summary_file> <batch_files...>`.347. Validate the final ratio with `python scripts/verify_summary_ratio.py <original_file> <summary_file>`.3536## Key Files3738- `scripts/book_tools.py`39- `scripts/split_book.py`40- `scripts/verify_summary_ratio.py`41- `SKILL.md`4243## Notes4445- The packaged scripts use only the Python standard library.46- Run the commands from the skill folder, or use explicit paths if you call them from elsewhere.47- For very large books, prefer the automated pipeline over single-turn chat drafting.48- 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.4950
Run npx get-skill add bishal-pdmsft/asb04-009537 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Book Summarizer It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
bishal-pdMSFT (@bishal-pdmsft) published this skill. Their other Agent Skills are listed on their SkillMD profile.