# Skill Compress

> Rewrite a verbose SKILL.md or prompt into its lean equivalent without changing behavior. Use when the user asks to compress, shrink, tighten, minify, rewrite-lean, or optimize the token count of a skill or prompt. Preserves triggers, output format, and hard rules. Reports before/after token counts.

- **Type:** Skill
- **Install:** `agentstack add skill-vix0007-vixero-skills-skill-compress`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Vix0007](https://agentstack.voostack.com/s/vix0007)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Vix0007](https://github.com/Vix0007)
- **Source:** https://github.com/Vix0007/vixero-skills/tree/main/skills/skill-compress
- **Website:** https://vixdev.cloud/

## Install

```sh
agentstack add skill-vix0007-vixero-skills-skill-compress
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# skill-compress

Rewrite input at lowest token count that preserves behavior. Do not invent new behavior.

## Trigger on
- "compress this skill / prompt"
- "make this leaner / tighter"
- "rewrite for fewer tokens"
- After `token-audit` when user asks to apply the cuts

## Rules, in order

1. **Frontmatter is sacred.** Never change `name`. Only improve `description` if it fails the description-craft checklist. Keep description 100–250 chars.
2. **Strip preamble.** Delete "I'll help", "Certainly", "Let me", "Sure", "Of course".
3. **Delete ceremony.** "Please", "kindly", "feel free", "if you'd like".
4. **Imperative voice.** "Do X" not "You should do X" or "It is recommended that X be done."
5. **Prose → table** when a table saves 30%+ tokens for the same information.
6. **Lists over paragraphs** for enumerations of three or more.
7. **Collapse examples.** Keep one best example per concept. Move extras to an `examples/` subfolder referenced by path.
8. **Merge redundant sections.** If "Guidelines" and "Rules" say similar things, merge.
9. **Code blocks stay.** Never compress code. Compression errors in code cost more than tokens saved.
10. **Output format blocks stay verbatim.** These are contracts.

## Output

Return two sections:

### 1. Rewritten SKILL.md
Full content, ready to paste.

### 2. Diff summary
```
before: {n} tokens
after:  {n} tokens
cut:    {n} tokens ({pct}%)

preserved:
- trigger keywords
- output format
- hard rules
- behavior

changed:
- {specific change 1}
- {specific change 2}
```

## Hard rules
- Never drop a hard rule. Rewrite it shorter.
- Never drop a trigger keyword from the description.
- If cut < 15% after compression, append: "Already lean. Structural rewrite needed for more savings."
- If user says "more aggressive" after first pass, apply `lean-response` register as well: drop all softening, fragment sentences are fine.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Vix0007](https://github.com/Vix0007)
- **Source:** [Vix0007/vixero-skills](https://github.com/Vix0007/vixero-skills)
- **License:** MIT
- **Homepage:** https://vixdev.cloud/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-vix0007-vixero-skills-skill-compress
- Seller: https://agentstack.voostack.com/s/vix0007
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
