compress
Shorten a prompt, specification, plan, skill, note, or brain dump without changing its meaning or behaviour. Use when asked to compress, shorten, simplify, tighten, remove repetition, or use fewer tokens. Preserve facts, constraints, examples, edge cases, and checks that affect the result.
How do I install this agent skill?
npx skills add https://github.com/owainlewis/agent-skills --skill compressIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a text compression utility that processes user-provided content. While no malicious behavior or data exfiltration was detected, the ingestion of untrusted external text introduces a potential surface for indirect prompt injection.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Compress
Shorten the input without losing meaning.
Use this for information and instructions, not ordinary prose polishing. Use deslop when voice and writing quality are the main problem.
Process
- Identify the purpose and intended reader or agent.
- Extract the required content: facts, actions, inputs, outputs, constraints, defaults, examples, edge cases, checks, and stop conditions.
- Remove repetition, throat-clearing, backstory, generic advice, motivational language, and structure that does not change understanding or behaviour.
- Replace vague phrases with a concrete instruction only when the source supports it. Otherwise cut them.
- Merge overlapping rules and place each fact once, where the reader needs it.
- Rewrite in plain words and the smallest structure that preserves the logic.
- Compare the result with the source. Restore anything whose removal changes the likely interpretation or outcome.
Keep
- facts, numbers, names, paths, commands, schemas, and citations
- explicit scope, priorities, and exceptions
- requirements created by past failures
- defaults that resolve real ambiguity
- examples that define a format or expose an edge case
- verification, failure behaviour, and stop conditions
- useful voice when compressing a brain dump or note
Cut
- repeated goals, summaries, and conclusions
- obvious preambles and narration about the document
- baseline advice such as "be thorough" or "use good judgement"
- adjectives such as "robust," "polished," and "production-ready" without a test
- hedging that does not change confidence or responsibility
- examples that merely repeat the rule
- headings, bullets, or steps that add shape but no meaning
- synonyms for a term already named clearly
Test every cut
Ask: if this disappears, could a capable reader act differently or lose a fact, limit, decision, warning, or piece of voice?
If no, cut it. If yes, keep it or rewrite it more clearly.
Return only the compressed result unless the user asks for a summary of changes.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/owainlewis/agent-skills/compress">View compress on skillZs</a>