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 キュレーション済みスキル 品質 良好 · 48 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=zavelinski-prompt-compression-skills-prompt-compression-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
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.
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

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

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

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

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