技能潮 SkillTide 提交收录
官方说明3 个来源MCP 服务3 天前
prompt-compression

prompt-compression

Compress docs/prompts into minimal tokens for AGENTS.md
在 GitHub 查看 ↗直链 · 无中转页
官方说明Prompt Compression Compress your docs, prompts, and context into minimal tokens for AGENTS.md.
来源明细
收录自 ccplugins/awesome-claude-code-plugins 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-14 · 最近见到 2026-10-16 · 共见到 4 次 · 被 3 个来源列出
评分构成
综合分 303 · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-10-14;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

Prompt Compression

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Compress your docs, prompts, and context into minimal tokens for AGENTS.md. Get 80% fewer tokens
with zero information loss.
> Vercel's research proved it:
> an 8KB compressed docs index in AGENTS.md hits 100% eval pass rate,
> compared to 53% with no docs and 79% with skills. Passive context beats active retrieval -- but
> only if it fits. This plugin teaches your agent the compression techniques that make it fit.
The Problem
You want your AI agent to follow project conventions, use the right API versions, and reference your
docs. You have two options:
1. **Skills** (active retrieval) -- agent must decide to invoke them. Vercel's evals show agents
skip this 56% of the time. Result: 53% pass rate, same as no docs at all.
2. **AGENTS.md** (passive context) -- always loaded, no decision point. 100% pass rate. But raw docs
are 40KB+, eating your context window on every request.
The answer is compression. Vercel compressed 40KB of Next.js docs down to 8KB (80% reduction) and
maintained the perfect pass rate. This plugin packages those compression techniques so your agent
applies them to any framework, any project.
Install
Cursor / Claude Code / Windsurf
Or copy skills/ into your .cursor/skills/ or .claude/skills/ directory.
What's Included
| Type | Name | Description |
| ------- | -------------------- | -------------------------------------------------------------------------- |
| Skill | prompt-compression | 8 compression rules with before/after examples and output formats |
| Rule | prompt-compression | Always-on rule that enforces token-efficient AGENTS.md formatting |
| Command | /compress-prompt | Compress any content for AGENTS.md (guides you if no input provided) |
| Command | /audit | Scan your existing AGENTS.md for token waste and compression opportunities |
How It Works
Run /compress-prompt with your docs, guidelines, or API reference. The agent compresses it using
these techniques:
| Technique | Before | After | Reduction |
| ------------------------- | ------------------------------------------------ | -------------------------------------------------- | --------- |
| Pipe-delimited file index | Nested markdown headings with prose descriptions | \|routing:{defining,dynamic,middleware} | ~75% |
| Single-line directives | Multi-paragraph rule explanation | \|imports: builtin > external > internal > types | ~90% |
| Abbreviated keys | Required: true, Type: string, Default: "prod" | \|env: req str="prod" | ~80% |
| Brace expansion | Separate entries per file | {Button,Input,Modal}.tsx | ~60% |
| API shorthand | Full endpoint documentation | GET /users?page,limit -> User[]\|auth:bearer | ~70% |
No input? Just run /compress-prompt and it walks you through choosing what to compress --
framework docs, coding standards, API references, or an existing AGENTS.md.
Real-World Example
**Before (640 tokens):**
来源
awesome · https://github.com/ofershap/prompt-compression
按领域浏览
MCP 服务
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引