Compress verbose SKILL.md files using Chain-of-Density with skill-aware formatting. Use when a skill exceeds 200 lines or needs terse refactoring.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install skill-condenser或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install skill-condenser⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/skill-condenser/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: skill-condenser description: "Compress verbose SKILL.md files using Chain-of-Density with skill-aware formatting. Use when a skill exceeds 200 lines or needs terse refactoring." license: Apache-2.0 metadata: author: agentic-insights version: "1.0" ---
Compress SKILL.md files using CoD with skill-format awareness. Optimized for 2-3 passes (not 5) since skills are structured, not prose.
cod-iteration with skill-format contextPass to cod-iteration:
iteration: 1
target_words: [current_words * 0.6]
format_context: |
OUTPUT FORMAT: Agent Skills SKILL.md
- Use ## headers for sections
- Bullet lists, not prose paragraphs
- Tables for comparisons/options
- Code blocks for commands
- No filler phrases ("this skill helps you...")
text: [FULL SKILL.MD CONTENT]
iteration: 2
target_words: [iteration_1_words]
format_context: |
SKILL.md TERSE RULES:
- Each bullet = one fact
- Combine related bullets with semicolons
- Remove redundant examples (keep 1 best)
- Tables compress better than lists for options
text: [ITERATION 1 OUTPUT]
source: [ORIGINAL SKILL.MD]
Only if still >150 lines:
iteration: 3
target_words: [iteration_2_words]
format_context: |
FINAL PASS:
- Move detailed content to references/ links
- Keep only: Quick Start, Core Pattern, Troubleshooting
- Each section <20 lines
text: [ITERATION 2 OUTPUT]
source: [ORIGINAL SKILL.MD]
Each iteration returns:
Missing_Entities: "entity1"; "entity2"; "entity3"
Denser_Summary:
---
name: skill-name
description: ...
---
# Skill Name
[Condensed content in proper SKILL.md format]
When condensing skills, prioritize these entity types:
| Entity Type | Keep | Remove | |-------------|------|--------| | Commands | deploy.py --env prod | Verbose explanations | | Options | Table row | Paragraph per option | | Errors | Error → Fix | Long troubleshooting prose | | Examples | 1 best example | Multiple similar examples | | Prerequisites | Bullet list | Explanation of why needed |
| Original | Target | Iterations | |----------|--------|------------| | 200-300 lines | 100-150 | 2 | | 300-500 lines | 150-200 | 2-3 | | 500+ lines | 200 + refs | 3 + refactor |
Before (45 words):
## Configuration
The configuration system allows you to customize various aspects of the deployment.
You can set environment variables, adjust timeouts, and configure retry behavior.
Each setting has sensible defaults but can be overridden as needed.
After (18 words):
## Configuration
| Setting | Default | Override |
|---------|---------|----------|
| `ENV` | prod | `--env dev` |
| `TIMEOUT` | 30s | `--timeout 60` |
| `RETRIES` | 3 | `--retries 5` |
If skill is too large after 3 iterations:
references/: API details, advanced config, examplesSee advanced config安装 skill-condenser 后,可以对 AI 说这些话来触发它
Help me get started with skill-condenser
Explains what skill-condenser does, walks through the setup, and runs a quick demo based on your current project
Use skill-condenser to compress verbose SKILL
Invokes skill-condenser with the right parameters and returns the result directly in the conversation
What can I do with skill-condenser in my developer & devops workflow?
Lists the top use cases for skill-condenser, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/skill-condenser/ 目录(个人级,所有项目可用),或 .claude/skills/skill-condenser/(项目级)。重启 AI 客户端后,用 /skill-condenser 主动调用,或让 AI 根据上下文自动发现并使用。
skill-condenser 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
skill-condenser 可免费安装使用。请查阅仓库了解许可证信息。
Compress verbose SKILL.md files using Chain-of-Density with skill-aware formatting. Use when a skill exceeds 200 lines or needs terse refactoring.
skill-condenser 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using skill-condenser
Identifies repetitive steps in your workflow and sets up skill-condenser to handle them automatically