# Skill Compressor

Longer agent instructions can consume more context without producing better behaviour. Shorter instructions can also delete the line that made a skill reliable.

Skill Compressor makes a skill cheaper to load without breaking when it activates or how it behaves. It freezes a baseline, proposes a smaller candidate and accepts it only when routing and runtime tests show that the important behaviour survived.

## Use it when

- A skill has grown expensive to load.
- Repeated explanations belong in progressive disclosure.
- You need to distinguish useful instruction from accumulated prose.
- A shorter version must be supported by evaluation, not taste.

## Example request

```text
Use skill-compressor to reduce this skill's expected token load without changing when it activates or what it does.
```

## What to expect

The result includes a measured before and after comparison. A shorter file does not win if it loses required behaviour.

## Install and source

```shell
npx skills@latest add simonasrazm/skills --skill skill-compressor
```

Read the [Skill Compressor source](https://github.com/simonasrazm/skills/tree/main/skills/skill-compressor) or the [skills.sh listing](https://www.skills.sh/simonasrazm/skills/skill-compressor).

Source: https://finallydone.ai/skills/skill-compressor/
