prompt-compresslisted
Install: claude install-skill jsb4702-glitch/verification-harness
# prompt-compress
Selective, numeric-safe LLM prompt compression with a density triage gate.
## When to reach for this
- You have a **long English prose blob** (transcript, article, paper section, log)
headed into another LLM and want to cut input tokens.
- The text is **narrative-heavy, number-light**. That's the sweet spot: protecting
numbers costs almost nothing and you still get 2.5–3x.
## When NOT to (the gate enforces this)
- **Number-dense docs** (FEA results, datasheets, MIL-STD tables, BOM/PN lists):
the tool refuses. Protected numeric span becomes a non-compressible floor
(Amdahl) — measured 58%-numeric FEA paper caps at 1.72x ceiling, real ~1.45x.
Just send raw text.
- **Static / repeated context** (system prompts, CLAUDE.md, fixed docs): use
**prompt caching** — lossless and cheaper than any compression.
- **Korean / non-English**: the mBERT compressor is MeetingBank(EN)-trained;
Korean compression quality is unverified. Triage still works; compression risky.
## Why the gate exists (measured, not asserted)
Blind LLMLingua-2 on an ankle-FEA paper (394 numeric tokens):
| mode | ratio | numeric recall |
|------|-------|----------------|
| blind rate=0.33 | 3.3x | **29.9%** (silent loss) |
| protect-numbers rate=0.33 | 1.45x | **100%** |
| ceiling (protected verbatim) | 1.72x | 100% |
Blind compression mangled "13,700 MPa" -> "13,000 MPa" with no error. Protection
fixes recall but the ratio collapses *because* the doc is number-heavy — which is
exa