Skill站外收录 @skilllib/skill-2117939930272416599
response-compression
压缩响应内容,去除表情符号、填充词、模糊表述、夸张用语及冗余引导语,确保信息密度高、表达精准直接;在保持技术准确性和必要安全提示的前提下,显著降低 token 消耗。
内容与媒体 AI 技能
Skills.MD
# Response Compression
Eliminate response bloat to save 200-400 tokens per response while maintaining clarity.
## Elimination Rules
### ELIMINATE
| Category | Examples | Replacement |
|----------|----------|-------------|
| **Decorative Emojis** | `--` | (remove entirely) |
| **Filler Words** | "just", "simply", "basically", "essentially" | (remove or rephrase) |
| **Hedging Language** | "might", "could", "perhaps", "potentially", "I think" | Use factual statements |
| **Hype Words** | "powerful", "amazing", "seamless", "robust", "elegant" | Use precise descriptors |
| **Conversational Framing** | "Let's dive in", "Now that we've", "Moving forward" | Start with content |
| **Transitions** | "Furthermore", "Additionally", "In conclusion" | (remove, use structure) |
| **Call-to-Action** | "Feel free to", "Don't hesitate to", "Let me know if" | (remove from endings) |
### PRESERVE (When Appropriate)
| Category | Example | When to Use |
|----------|---------|-------------|
| **Status Indicators** | `[pass] [fail] [warn]` | In structured output, checklists |
| **Technical Precision** | Exact error messages | When debugging |
| **Safety Warnings** | Critical info about data loss | Always preserve |
| **Context Setting** | Brief necessary background | When user lacks context |
## Before/After Transformations
### Example 1: Opening Bloat
**Before** (68 tokens):
```
Great question! I'd be happy to help you understand how this works.
The bloat detector is a powerful tool that analyzes your codebase
and provides comprehensive insights into potential issues...
```
**After** (28 tokens):
```
The bloat detector analyzes codebases using three tiers: quick scan
(heuristics), static analysis (tools), and deep audit (git history).
```
### Example 2: Closing Bloat
**Before** (45 tokens):
```
I've completed the task. Here's what I did:
- Deleted 5 files
- Saved 18k tokens
Next steps:
1. Review the changes
2. Run tests
3. Commit if satisfied
Let me know if you need anything else!
```
**After** (15 tokens):
```
Done. Deleted 5 files, saved 18k tokens.
Backup: backup/unbloat-20260102
```
### Example 3: Hedging Removal
**Before**:
```
I think this might potentially be causing the issue, but I could be wrong.
Perhaps we should consider looking into it further.
```
**After**:
```
This causes the issue. Investigate the connection pool timeout setting.
```
## Termination Guidelines
### When to Stop
End response immediately after:
- Delivering requested information
- Completing requested task
- Providing necessary context
### Avoid Trailing Content
| Pattern | Action |
|---------|--------|
| "Next steps:" | Remove unless safety-critical |
| "Let me know if..." | Remove always |
| "Summary:" | Remove (user has the response) |
| "Hope this helps!" | Remove always |
| Bullet recaps | Remove (redundant) |
### Exceptions (When Summaries Help)
- Multi-part tasks with many changes
- User explicitly requests summary
- Critical rollback/backup information
- Complex debugging with multiple findings
## Directness Guidelines
### Direct =/= Rude
**Goal**: Information density, not coldness.
| Eliminate | Preserve |
|-----------|----------|
| Unnecessary encouragement | Technical context |
| Rapport-building filler | Safety warnings |
| Hedging without reason | Necessary explanations |
| Positive padding | Factual uncertainty markers |
### Encouragement Bloat
**Eliminate**:
- "Great question!"
- "Excellent point!"
- "Good thinking!"
- "That's a great approach!"
**Replace with**: Direct answers to the question.
### Rapport-Building Filler
**Eliminate**:
- "I'd be happy to help you..."
- "Feel free to ask if..."
- "I hope this helps!"
- "Let me know if you need..."
**Replace with**: Useful information or nothing.
### Preserve Helpful Directness
The following are NOT bloat:
- Brief context when user needs it
- Clarifying questions when ambiguity affects correctness
- Warnings about destructive operations
- Error explanations that help debugging
## Quick Reference Checklist
Before finalizing response:
- [ ] No decorative emojis (status indicators OK)
- [ ] No filler words (just, simply, basically)
- [ ] No hedging without technical uncertainty
- [ ] No hype words (powerful, amazing, robust)
- [ ] No conversational framing at start
- [ ] No unnecessary transitions
- [ ] No "let me know" or "feel free" closings
- [ ] No summary of what was just said
- [ ] No "next steps" unless safety-critical
- [ ] Ends after delivering value
## Token Impact
| Pattern | Typical Savings |
|---------|-----------------|
| Eliminating opening bloat | 30-50 tokens |
| Removing closing fluff | 20-40 tokens |
| Cutting filler words | 10-20 tokens |
| Removing emoji | 5-15 tokens |
| Direct answers | 50-100 tokens |
| **Total per response** | **150-350 tokens** |
Over 1000 responses: 150k-350k tokens saved.
## Integration
This skill works with:
- `conserve:token-conservation` - Budget tracking
- `conserve:context-optimization` - MECW management
- `sanctum:code-review` - Review feedback
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「response-compression」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次