condense
Installation
SKILL.md
Condense
Strip prose filler from .md files. Preserve every instruction. This skill practices what it preaches.
Phase 1: SCOPE
Identify targets.
- Single file: User names a path. Read it.
- Glob: User gives a pattern (
agents/*.md). Expand, list matches, confirm with user. - Batch (10+ files): Dispatch parallel agents, one per file.
Mechanical pre-pass (deterministic, run before LLM condensing): strip trailing whitespace and consecutive blank lines that inflate Opus token counts. The script handles the mechanical reduction so the LLM phase focuses on prose density.
python3 scripts/check-whitespace.py --fix <target-file-or-dir> # 0=clean, 1=violations fixed
Run on the scoped targets (defaults to agents/**/*.md and skills/**/*.md when no path given). Then proceed to the LLM pass on the same files.