← 返回
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.
利用技能感知格式的Chain-of-Density压缩冗长的SKILL.md文件。适用于技能超过200行或需精简重构的情况。
killerapp
AI智能 clawhub v1.1.0 1 版本 99849.9 Key: 无需
★ 3
Stars
📥 1,936
下载
💾 148
安装
1
版本
#latest

概述

Skill Condenser

Compress SKILL.md files using CoD with skill-format awareness. Optimized for 2-3 passes (not 5) since skills are structured, not prose.

When to Use

  • SKILL.md exceeds 200 lines
  • Skill contains prose paragraphs instead of bullets
  • Refactoring verbose documentation to terse style

Process

  1. Read the skill to condense
  2. Run 2-3 iterations of cod-iteration with skill-format context
  3. Each iteration: extract key entities, compress to bullets/tables
  4. Output: condensed skill maintaining structure

Orchestration

Iteration 1: Structure Extraction

Pass 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: Entity Densification

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]

Iteration 3 (Optional): Final Polish

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]

Expected Output Format

Each iteration returns:

Missing_Entities: "entity1"; "entity2"; "entity3"

Denser_Summary:
---
name: skill-name
description: ...
---
# Skill Name
[Condensed content in proper SKILL.md format]

Skill-Specific Entities

When condensing skills, prioritize these entity types:

Entity TypeKeepRemove
---------------------------
Commandsdeploy.py --env prodVerbose explanations
OptionsTable rowParagraph per option
ErrorsError → FixLong troubleshooting prose
Examples1 best exampleMultiple similar examples
PrerequisitesBullet listExplanation of why needed

Target Compression

OriginalTargetIterations
------------------------------
200-300 lines100-1502
300-500 lines150-2002-3
500+ lines200 + refs3 + refactor

Example: Compressing Verbose Section

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` |

Integration with Progressive Disclosure

If skill is too large after 3 iterations:

  1. Keep in SKILL.md: Overview, Quick Start, Common Errors
  2. Move to references/: API details, advanced config, examples
  3. Update SKILL.md with links: See advanced config

Constraints

  • Preserve frontmatter exactly (don't condense metadata)
  • Keep all ## section headers (structure matters)
  • Don't remove code blocks (commands are entities)
  • Maintain one concrete example per workflow

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-28 17:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

copywriter

killerapp
撰写引人入胜的用户体验文案、营销内容和产品信息。适用于编写按钮标签、错误提示、落地页、邮件、行动号召、空状态、工具提示或任何面向用户的文本。
★ 14 📥 14,155
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,138
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,376