微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

response-compression

response-compression · v1.9.14
安全 unknown 级 作者 athola 公开目录收录
1.1k 下载 0 安装 4.1k 收藏 0 浏览

简介

response-compression

原始描述

Compresses verbose responses by removing filler and framing to save 200-400 tokens

通过你的 Agent 添加

安装目录:response-compression/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/response-compression/
Codex CLI~/.codex/skills/response-compression/
DeepSeek Harness~/.agents/skills/response-compression/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: response-compression description: | Compresses verbose responses by removing filler and framing to save 200-400 tokens version: 1.9.8 triggers:

  • tokens
  • efficiency
  • communication
  • directness
  • responses feel bloated or context is filling fast metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/conserve", "emoji": "\ud83e\udd9e"}} source: claude-night-market source_plugin: conserve

Night Market Skill — ported from claude-night-market/conserve. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Table of Contents

Response Compression

Eliminate response bloat to save 200-400 tokens per response while maintaining clarity.

When To Use

  • Reducing verbose output to save context tokens
  • Providing concise answers without losing information

When NOT To Use

  • Educational explanations where detail improves understanding
  • First-time setup instructions needing step-by-step 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

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill