prompt-compress
Numeric-aware prompt compression for long ENGLISH prose you're about to feed another LLM — meeting transcripts, paper intros/discussion, web-article bodies…
Skill by jsb4702-glitch
Chalk Labs
Need help deploying prompt-compress?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jsb4702-glitch-prompt-compress
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, backend, ml, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/prompt-compress
What's inside
- Skill name
prompt-compress- Description
- Numeric-aware prompt compression for long ENGLISH prose you're about to feed another LLM — meeting transcripts, paper intros/discussion, web-article bodies, logs. Uses LLMLingua-2 (local, CPU, no API) but FIRST triages numeric-sentence density: if the document is number-heavy (FEA results, datasheets, spec tables, PN lists), it REFUSES to compress, because protecting the numbers caps the ratio near 1.3x and blind compression silently corrupts figures ("13,700 MPa"->"13,000"). Number-bearing sentences are protected verbatim (≈100% numeric recall); only the prose between them is compressed. Use when you have a large low-numeric-density English text blob to shrink before sending to a model. Triggers: "이 컨텍스트 압축", "프롬프트 토큰 줄여줘", "긴 문서 압축해서 넣어줘", "llmlingua", "compress this context". NOT for: spec/datasheet/results tables (it'll refuse), Korean text (compressor is English/MeetingBank-trained — quality unverified), or static repeated context (prompt caching is the lossless, cheaper answer there).
- License
- MIT
- Instructions
- 63 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- compress.py
SKILL.md (first lines)
# 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 exactly why triage refuses number-heavy docs instead of pretending to help. ## Usage ```bash cd ~/.claude/skills/prompt-compress [ -d venv ] || (python3 -m venv venv && ./venv/bin/pip install -q llmlingua) # 1) Triage only — decide if compression is worth it (no model math on output) ./venv/bin/python compress.py --in doc.txt --triage-only # 2) Compress (auto-refuses if protected share > 40%) ./venv/bin/python compress.py --in doc.txt --rate 0.33 --out doc.min.txt # stdin / pipe cat doc.txt | ./venv/bin/python compress.py --rate 0.5 ``` Flags: `--rate` keep-rate for prose span (0.33≈3x on the prose part), `--skip-threshold` protected-share cutoff (default 0.40), `--force` compress anyway, `--triage-only` report density and stop. ## Notes - CPU-only, fully local, no API cost. First run downloads ~1.1GB mBERT once. - Protection is **sentence-level (coarse)**: any sentence containing a digit is kept whole. This is deliberate — fine-grained (number-token-only) protection lifts the ratio but reintvites boundary-token corruption. Coarse = safe. - Always read back the `[done] numeric recall` line; if <100%, a number leaked into the compressed prose span — inspect before trusting. - Output is plain text; feed it as context to the target model.
From jsb4702-glitch/verification-harness, MIT.
More from jsb4702-glitch/verification-harness
- 0.589score
img-gen
jsb4702-glitch
CLI에서 이미지 생성 — cdx(Codex/gpt-image-2) 또는 agy(Antigravity/generate_image) 백엔드로 텍스트→이미지.
SkillBFreshness: B★ 7Claude Code +9 - 0.589score
rhino-gh
jsb4702-glitch
Rhino 3D · Grasshopper 개발 지식스킬 — Rhino 8 스크립팅(Python 3/C#), Grasshopper 컴포넌트 개발(C# .gha), Script 컴포넌트(Script-Mode/SDK-Mode), 데이터 트리, rhino3dm, rhinocode CLI…
SkillBFreshness: B★ 7Claude Code +9 - 0.586score
canvas-flow
jsb4702-glitch
옵시디언 캔버스에 배선한 스킬 트리를 그래스호퍼 정의서처럼 실행하는 메타스킬.
SkillBFreshness: B★ 7Claude Code +9 - 0.586score
3d-render
jsb4702-glitch
3D 모델(STEP/IGES/STL)을 로컬에서 제품컷·엔지니어링 뷰로 렌더링한다.
SkillBFreshness: B★ 7Claude Code +9 - 0.586score
gemini-review
jsb4702-glitch
기구설계 검토 결과·계산·도면 해석을 Gemini로 교차검증한다.
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
porogen
jsb4702-glitch
음함수 다공/격자 조형 킷(~/porogen) — 형상×격자×영역 자유 합성으로 다공성 구조를 생성한다.
SkillBFreshness: B★ 7Claude Code +9 - 0.583score
groq-review
jsb4702-glitch
Groq API(llama-3.3-70b-versatile)로 내용을 교차검증한다.
SkillBFreshness: B★ 7Claude Code +9 - 0.581score
cdx
jsb4702-glitch
Codex CLI(cdx, OpenAI GPT)를 직접 호출해 질문에 답하거나 내 답변·계산을 교차검증한다.
SkillBFreshness: B★ 7Claude Code +9 - 0.581score
agy
jsb4702-glitch
Antigravity CLI(agy, Gemini 3.1 Pro)를 직접 호출해 질문에 답하거나 내 답변·계산을 교차검증한다.
SkillBFreshness: B★ 7Claude Code +9 - 0.581score
fact-audit
jsb4702-glitch
사실주장 밀도 높은 답변의 미묘한 오류를 탈상관 검증으로 잡는다.
SkillBFreshness: B★ 7Claude Code +9 - 0.581score
ko-academic-style
jsb4702-glitch
논문·보고서·기술 문서(HTML/PDF 정본, 용어집, rev 개정)를 한국어로 작성·수정할 때 로드하는 문서 모드.
SkillBFreshness: B★ 7Claude Code +9 - 0.536score
pn-verify
jsb4702-glitch
DOI·논문·부품 PN을 외부 권위 소스로 실조회해 실재 확인(G4 "회피→조회확정").
SkillCFreshness: C★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Jul 19, 2026 (3 months ago)
- Last release
- Jul 21, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jsb4702-glitch
- 0.589score
img-gen
jsb4702-glitch
CLI에서 이미지 생성 — cdx(Codex/gpt-image-2) 또는 agy(Antigravity/generate_image) 백엔드로 텍스트→이미지.
SkillBFreshness: B★ 7Claude Code +9 - 0.589score
rhino-gh
jsb4702-glitch
Rhino 3D · Grasshopper 개발 지식스킬 — Rhino 8 스크립팅(Python 3/C#), Grasshopper 컴포넌트 개발(C# .gha), Script 컴포넌트(Script-Mode/SDK-Mode), 데이터 트리, rhino3dm, rhinocode CLI…
SkillBFreshness: B★ 7Claude Code +9 - 0.586score
canvas-flow
jsb4702-glitch
옵시디언 캔버스에 배선한 스킬 트리를 그래스호퍼 정의서처럼 실행하는 메타스킬.
SkillBFreshness: B★ 7Claude Code +9 - 0.586score
3d-render
jsb4702-glitch
3D 모델(STEP/IGES/STL)을 로컬에서 제품컷·엔지니어링 뷰로 렌더링한다.
SkillBFreshness: B★ 7Claude Code +9 - 0.586score
gemini-review
jsb4702-glitch
기구설계 검토 결과·계산·도면 해석을 Gemini로 교차검증한다.
SkillBFreshness: B★ 7Claude Code +9 - 0.584score
porogen
jsb4702-glitch
음함수 다공/격자 조형 킷(~/porogen) — 형상×격자×영역 자유 합성으로 다공성 구조를 생성한다.
SkillBFreshness: B★ 7Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get prompt-compress running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
prompt-compress skill. Agent Mart. https://agentmart.dev/skills/jsb4702-glitch-prompt-compress (last updated 2026-10-24)