Skip to content

indoor47/summarize-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

summarize_docs

Batch summarize documents with Claude AI.

Quick Start

pip install anthropic
export ANTHROPIC_API_KEY="your-key-here"

python summarize_docs.py ./docs/ --format md

Features

  • 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

Usage

# 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

Requirements

  • Python 3.10+
  • anthropic package
  • ANTHROPIC_API_KEY environment variable

Optional: pypdf2 for PDF support

pip install pypdf2

Cost

~$0.001 per document with Claude Haiku.

Full Toolkit

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

Buy the full toolkit →

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages