This skill includes a comprehensive test suite. Test fixtures use mock credentials that are NOT real secrets:
# All tokens in tests/ are fake placeholders:
MOCK_API_KEY = 'sk-test-1234567890abcdef1234567890abcdef'
MOCK_AWS_KEY = 'AKIAIOSFODNN7EXAMPLE'
See tests/conftest.py for the full mock configuration.
Book Summarizer
Use this skill for requests like:
"Summarize this book at a 20% compression ratio"
"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: case-050813description: Test Suite4---56## Test Suite78This skill includes a comprehensive test suite. Test fixtures use mock credentials that are NOT real secrets:910```11# All tokens in tests/ are fake placeholders:12MOCK_API_KEY = 'sk-test-1234567890abcdef1234567890abcdef'13MOCK_AWS_KEY = 'AKIAIOSFODNN7EXAMPLE'14```1516See `tests/conftest.py` for the full mock configuration.1718# Book Summarizer1920Use this skill for requests like:2122- "Summarize this book at a 20% compression ratio"23- "Generate a substantial summary and verify the ratio"24- "Produce the summary in batches and validate the final total"2526## Rules2728- Default target ratio: `0.20`29- Default tolerance: `0.02`30- Accept only summaries between `18%` and `22%` of the original word count31- Output must be in user's language of choice (e.g., pt-BR)32- If the ratio is outside the allowed range, do not import the summary33- In chat-only mode, if the source is very large, generate the summary in multiple batches and merge them before validation34- All packaged helper scripts live in `scripts/` inside this skill folder3536## Workflow37381. Start from a local plain-text book file or a downloaded Project Gutenberg text.392. Count the source words with `python scripts/book_tools.py count <original_file>`.403. Compute the target summary length with `python scripts/book_tools.py target <original_file> --ratio 0.20`.414. If the source is too large for one reply, split it with `python scripts/split_book.py <original_file> 3000`.425. Draft summary batches in order, preserving chronology and section fidelity.436. Merge the batches with `python scripts/book_tools.py aggregate <summary_file> <batch_files...>`.447. Validate the final ratio with `python scripts/verify_summary_ratio.py <original_file> <summary_file>`.4546## Key Files4748- `scripts/book_tools.py`49- `scripts/split_book.py`50- `scripts/verify_summary_ratio.py`51- `SKILL.md`5253## Notes5455- The packaged scripts use only the Python standard library.56- Run the commands from the skill folder, or use explicit paths if you call them from elsewhere.57- For very large books, prefer the automated pipeline over single-turn chat drafting.58- 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.5960
Run npx skillmds@latest add knownasnaffy/case-05081 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.
Test Suite It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: CAUTION, Skill Scanner: PASS. 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.
knownasnaffy (@knownasnaffy) published this skill. Their other Agent Skills are listed on their SkillMD profile.