Skills Plugins MCP Prompt Model 博客 我的中心

prompt-compression

When you MUST feed a large blob into context (a long log, transcript, doc, or dataset dump), compress it to the salient parts first instead of pasting it whole. Use before including big inputs you cannot avoid. Distinct from context-warden (session discipline); this compresses one specific oversized input. Trigger with /prompt-compression or "compress this before adding", "summarize this blob for context", "this log is huge".

DeepseekModel Curated skill Quality Good · 48 v1.0.0

Get

https://deepseekmodel.com/api/download.php?id=zavelinski-prompt-compression-skills-prompt-compression-skill-md&format=skill
Download .skill Standard format with system_prompt and model_config, ready for any agent framework
The actual content of the system_prompt field in the .skill file.
name prompt-compression description When you MUST feed a large blob into context (a long log, transcript, doc, or dataset dump), compress it to the salient parts first instead of pasting it whole. Use before including big inputs you cannot avoid. Distinct from context-warden (session discipline); this compresses one specific oversized input. Trigger with /prompt-compression or "compress this before adding", "summarize this blob for context", "this log is huge". version 0.1.0 user-invocable true metadata {"emoji":"🗜️"} prompt-compression Sometimes you genuinely need a big external blob (a 5k-line log, a long transcript, a spec dump) in context. Pasting it whole is expensive and dilutes attention. Compress it to the parts that carry signal first. Why this exists (evidence) Prompt compression (LLMLingua, Jiang et al., arXiv:2310.05736 and follow-ups) shows large prompts can be compressed multiple-x with little task-performance loss, cutting cost and latency, because most tokens in a big blob are low-information. It also fights context rot: fewer irrelevant tokens means the model attends to what matters. When to use A SINGLE large input you cannot avoid including: long logs, stack traces, transcripts, large docs, data dumps, search results. Before pasting that blob into context or a sub-agent prompt. NOT a substitute for context-warden: that governs the whole SESSION (what to keep/drop over time); this compresses ONE oversized input on the way in. The method Identify the signal the task needs from the blob: the error + its frames, the relevant section, the rows that matter, the decisions, the numbers. Extract, don't summarize loosely: keep exact identifiers (names, signatures, error strings, IDs, line refs), drop boilerplate, repetition, timestamps, banners, passing/no-op lines. Structure the residue: a short ordered extract or a small table, with a pointer back to the source (file:line / log range) so detail is recoverable on demand. State the compression: note what was dropped (e.g. "kept the 3 ERROR frames, dropped 4.8k INFO lines") so nothing looks hidden. How to run it Logs: grep the error/levels you need, keep those frames + surrounding context, drop the rest. Transcripts/docs: extract the decisions/claims/sections relevant to the task; reference the rest by location. Heavy/automated: if an LLMLingua-style compressor or a summarizer tool is available, run it on the blob, then verify identifiers survived. Composes with context-warden : warden keeps the SESSION lean; prompt-compression shrinks a specific INPUT before it enters. Use together. retrieval-router : prefer retrieving only the needed slice over compressing the whole; compress when you truly must include a lot. run-cost : big blobs are top cost drivers; compress before paying for them repeatedly. Honest limits Lossy by nature: aggressive compression can drop a detail that mattered. Keep exact identifiers and a pointer to the source so you can re-expand. For precise work, retrieving the exact slice (retrieval-router) beats compressing the whole. Compression is for when you cannot avoid the bulk. Cited ratios are from the papers' setups; measure your own loss.
Keywords that activate this skill. Click one to copy it.

This skill does not provide trigger words.

The downloaded .skill package contains the following fields.
Field Description
formatFormat tag (skill/v1)
skill_idUnique skill ID
nameSkill name
versionVersion
descriptionDescription
categoryCategories (array)
trigger_wordsTrigger words
tagsTags
sourceSource
source_urlSource URL (this page)
exported_atExported at (set per download)
system_promptSystem prompt body
model_configModel config: provider / model / temperature / max_tokens / top_p
examplesExamples
install_guideImport guide for Coze / Dify / Claude / custom frameworks
The same skill can be exported in different platform formats.
.skill Standard format with system_prompt and model_config, ready for any agent framework Download
.skillpro Enhanced format with scripts, tools, dependencies and hooks Download
.json Plain JSON export with system_prompt and model parameters only Download
Coze Markdown with frontmatter, for Coze platform import Download
Dify Dify DSL, import directly after creating an app Download

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。