abstract-trimmer
Compress academic abstracts to meet strict word limits while preserving key information, scientific accuracy, and readability. Supports multiple compression strategies for journal submissions, conference applications, and grant proposals.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aipoch-ai/abstract-trimmerAbstract Trimmer
Precision editing tool that reduces abstract word count through intelligent compression techniques, maintaining scientific rigor while meeting strict journal and conference requirements.
Features
- Smart Compression: Multiple strategies (aggressive, conservative, balanced)
- Key Information Preservation: Retains critical findings and statistics
- Structural Integrity: Maintains Background-Methods-Results-Conclusion flow
- Quantitative Safety: Protects numbers, P-values, and confidence intervals
- Batch Processing: Trim multiple abstracts efficiently
- Quality Validation: Post-trim readability and accuracy checks
Usage
Basic Usage
# Trim abstract from file
python scripts/main.py --input abstract.txt --target 250
# Trim abstract from command line
python scripts/main.py --text "Your abstract here..." --target 200
# Check word count only
python scripts/main.py --input abstract.txt --target 250 --check-only
Parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
--input, -i | str | None | No | Input file containing abstract |
--text, -t | str | None | No | Abstract text (alternative to --input) |
--target, -T | int | 250 | No | Target word count |
--strategy, -s | str | balanced | No | Trimming strategy (conservative/balanced/aggressive) |
--output, -o | str | None | No | Output file path |
--check-only, -c | flag | False | No | Only check word count without trimming |
--format | str | json | No | Output format (json/text) |
Advanced Usage
# Aggressive trimming with text output
python scripts/main.py \
--input abstract.txt \
--target 200 \
--strategy aggressive \
--format text \
--output trimmed.txt
# Batch check multiple abstracts
for file in *.txt; do
python scripts/main.py --input "$file" --target 250 --check-only
done
Trimming Strategies
| Strategy | Approach | Best For |
|---|---|---|
| Conservative | Remove filler words, simplify sentences | Minor trims (10-20 words) |
| Balanced | Condense phrases, merge sentences | Moderate trims (20-50 words) |
| Aggressive | Remove secondary details, abbreviate | Major trims (50+ words) |
Output Format
JSON Output
{
"trimmed_abstract": "Compressed abstract text...",
"original_words": 320,
"final_words": 248,
"reduction_percent": 22.5
}
Text Output
Compressed abstract text...
Technical Difficulty: LOW
⚠️ AI自主验收状态: 需人工检查
This skill requires:
- Python 3.7+ environment
- No external dependencies
Dependencies
Required Python Packages
pip install -r requirements.txt
Requirements File
No external dependencies required (uses only Python standard library).
Risk Assessment
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aipoch-ai-abstract-trimmer": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
mempalace-integration
MemPalace记忆系统集成 - AAAK压缩 + Hall分类 + L0-L3分层 30x无损压缩(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens),facts/events/preferences/advice分类,加载优先级
ym-mediatoolkit
流式视频处理工具集 - 压缩、封面提取、音频转换,无需下载完整视频
cover-letter-drafter
Generates professional cover letters for journal submissions and job applications in medical and academic contexts.
everything-is-ok
无所不能 — Universal prompt compression protocol. Translate natural language into compressed I-Lang syntax (save 40-65% tokens). Text-to-text translator only — does not access files, URLs, or external resources. Works with ChatGPT, Claude, Gemini, DeepSeek, Kimi. Instruction-only, no code, no credentials.