version: "3.0.0" name: doc-summarize-pro description: "Enhanced document summarizer. Smart summary, bullet extraction, executive summary, chapter breakdown, multi-doc comparison, translate+summarize." author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills
小葱技能7w4.net持续更新中。
Pure-bash document summarizer: extract summaries, keywords, outlines, stats, and more — no external dependencies.
summarize <file>Generate a document summary by extracting key sentences from each paragraph (first and last sentences, plus topic sentences).
keywords <file>Extract keywords via word-frequency analysis. Filters common stop-words and ranks by occurrence count.
outline <file>Extract document structure and outline by detecting heading lines (Markdown # headers, ALL-CAPS lines, numbered sections).
stats <file>Document statistics: word count, character count, paragraph count, sentence count, unique words, and estimated reading time.
compare <file1> <file2>Compare two documents side-by-side: word count difference, shared keywords, and unique keywords per file.
batch <dir>Batch-summarize all text files in a directory. Processes .txt, .md, .rst, .log files and outputs a summary for each.
export <file> <format>Export a file's summary in a specified format. Supported formats: md (Markdown), txt (plain text), json.
historyDisplay processing history — shows all previously run commands with timestamps.
configView or update configuration. Settings: summary_sentences (sentences per paragraph in summary), keyword_count (max keywords to display).
helpShow usage information and available commands.
versionPrint the current version number.
# Summarize a document
bash scripts/script.sh summarize ~/Documents/report.md
# Extract keywords from a file
bash scripts/script.sh keywords paper.txt
# Get document outline
bash scripts/script.sh outline thesis.md
# Show file statistics
bash scripts/script.sh stats notes.txt
# Compare two documents
bash scripts/script.sh compare draft-v1.md draft-v2.md
# Batch summarize a directory
bash scripts/script.sh batch ~/Documents/notes/
# Export summary as JSON
bash scripts/script.sh export report.md json
# View processing history
bash scripts/script.sh history
# View/update config
bash scripts/script.sh config
bash scripts/script.sh config summary_sentences 3
bash scripts/script.sh config keyword_count 20
Settings are stored in $HOME/.doc-summarize-pro/config:
| Key | Default | Description |
|---|---|---|
summary_sentences |
2 |
Sentences extracted per paragraph |
keyword_count |
15 |
Maximum keywords to display |
Update via config <key> <value> or edit the config file directly.
All data is stored under $HOME/.doc-summarize-pro/:
| File | Purpose |
|---|---|
config |
Key-value configuration file |
history.log |
Processing history with timestamps |
Powered by BytesAgain | bytesagain.com
这是一款功能较全面的文档处理工具,核心功能实现扎实,文档清晰度较好,使用门槛不高。主要优势在于功能覆盖范围广(摘要、统计、关键词、对比等场景)、安装使用便捷。不足之处是文档描述的部分功能实际上不可用,容易让人产生困惑;另外对 Python 环境有隐性依赖需要留意。总体适合需要快速处理文档的用户选用,但入手前建议先确认所需功能确实已实现。