agentleFS
Vix0007Vix0007/vixero-skills/skills/skill-compress/SKILL.md

skill-compress

Skill1 starsChanged 7 months agoMITView on GitHub

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.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After token-audit when user asks to apply the cuts

    line 14
  2. Very specific:

    Frontmatter is sacred: Never change name. Only improve description if it fails the description-craft checklist.

    line 18
  3. Distinctive:

    Strip preamble: Delete "I'll help", "Certainly", "Let me", "Sure", "Of course".

    line 19
  4. Distinctive:

    Prose → table: when a table saves 30%+ tokens for the same information.

    line 22
  5. Very specific:

    Collapse examples: Keep one best example per concept.

    line 24
  6. Distinctive:

    Merge redundant sections: If "Guidelines" and "Rules" say similar things, merge.

    line 25
  7. Distinctive:

    Code blocks stay: Never compress code. Compression errors in code cost more than tokens saved.

    line 26
  8. Distinctive:

    Never drop a hard rule. Rewrite it shorter.

    line 54
  9. Distinctive:

    Never drop a trigger keyword from the description.

    line 55
  10. Distinctive:

    If cut < 15% after compression, append: "Already lean.

    line 56
  11. Very specific:

    If user says "more aggressive" after first pass, apply lean-response register as well: drop all softening, fragment sentences are fine.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.