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.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
3 · 1.5k · 9 current installs · 9 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the SKILL.md instructions: the skill reads a SKILL.md, runs iterative 'cod-iteration' passes to compress content, and outputs a condensed SKILL.md. There are no requested binaries, env vars, or config paths that would be unrelated to this purpose.
Instruction Scope
Instructions explicitly tell the agent to read and rewrite SKILL.md content (including moving detailed sections to references/). That's expected for a condenser, but the SKILL.md is somewhat vague about where the source file comes from and how writes are authorized. It also references an undefined step/tool 'cod-iteration' (presumably a model/internal routine). The skill does not instruct sending data to external endpoints, but you should confirm how 'cod-iteration' is implemented so you know whether content is kept locally or sent externally. Frontmatter preservation is required; frontmatter can occasionally contain sensitive metadata, so the agent's handling of it should be confirmed.
Install Mechanism
No install spec and no code files — instruction-only. This is low risk because nothing is written to disk by an installer. The runtime behavior depends on the agent's own capabilities (no external downloads or package installs are requested).
Credentials
The skill requests no environment variables or credentials, which is proportional. A minor caution: frontmatter or example SKILL.md files could embed tokens or URLs; the instructions preserve frontmatter exactly rather than redacting it, so verify that frontmatter does not contain secrets before running automated condensation that may write those fields back or expose them in logs.
Persistence & Privilege
always is false and there is no claim of modifying other skills' configurations or system-wide agent settings. The instructions do describe modifying repository files (moving sections to references/ and updating SKILL.md), which is within scope for a documentation refactorer; just ensure you consent to those repository writes.
Assessment
This skill appears coherent, but take simple precautions before running it: (1) Run it on a working copy or branch so you can review diffs and revert if necessary. (2) Confirm what 'cod-iteration' means in your agent — does it run locally or call an external API? If external, consider data sensitivity. (3) Check SKILL.md frontmatter for any secrets or tokens (the skill preserves frontmatter exactly). (4) Require a manual review step before applying changes to upstream repositories, and test on a small example first.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.1.0
Download zip
latestvk9737qfb3k4xprzdfg00g50t1580m20m

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

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](references/config.md)

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

Files

1 total
Select a file
Select a file to preview.

Comments

Loading comments…