Batch summarize documents with Claude AI.
pip install anthropic
export ANTHROPIC_API_KEY="your-key-here"
python summarize_docs.py ./docs/ --format md- Summarize entire folders or single files
- Supports: txt, md, py, js, ts, html, csv, json, yaml, pdf
- 3 summary styles: bullet (default), paragraph, tldr
- Output as text or markdown
# Single file
python summarize_docs.py report.txt
# Entire folder
python summarize_docs.py ./docs/
# Markdown output
python summarize_docs.py ./docs/ --format md --output summary.md
# Paragraph style
python summarize_docs.py ./docs/ --style paragraph
# TL;DR
python summarize_docs.py report.txt --style tldr- Python 3.10+
anthropicpackage- ANTHROPIC_API_KEY environment variable
Optional: pypdf2 for PDF support
pip install pypdf2~$0.001 per document with Claude Haiku.
This script is one of six in the Claude Automation Toolkit. The paid version ($19) adds:
- AI Code Reviewer — security, performance, and test-focused reviews from the command line
- Email Drafter — one-line description to polished email, five tones, six templates
- Data Analyzer — plain-English questions about CSV/JSON files with interactive memory
- Document Chat — load a codebase or folder and ask questions about it
- Batch Processor — run any prompt against hundreds of inputs in parallel
MIT