Jump to related tools in the same category or review the original source on GitHub.

AI & LLMs @trinitybotserver Updated 7/18/2026 532 downloads 0 stars Security: Pass

Compression OpenClaw Plugin & Skill | ClawHub

Looking to integrate Compression into your AI workflows? This free OpenClaw plugin from ClawHub helps you automate ai & llms tasks instantly, without having to write custom tools from scratch.

What this skill does

# Trinity Compress (Skill) Pre-run prompt compression for iterative AI dev loops. **Goal:** reduce input tokens every iteration by compressing prompt files *before* your loop runs. - Works with Ralph-style loops, agent/skill directories, and most token-billed providers. - Runs as a **local script** (no model calls). - Creates **.bak** backups and supports instant undo. ## What it installs into a repo - `trinity-compress.config.json` — rules + targets - `scripts/trinity-compress.sh` — compression script - Makefile snippet (optional): `optimize-prompts`, `optimize-undo`, etc. - `.gitignore` snippet: ignore `*.bak` - Installers: - `scripts/install.ps1` (Windows) - `scripts/install.sh` (bash) ## Requirements - bash 4+ - `jq` - `bc` ## Use 1) Install into your repo (copy assets or use the included installer scripts) 2) Run: - `bash scripts/trinity-compress.sh balanced` - or via Makefile target ## Undo - Restores all `*.bak` backups from the last run. ## Notes - This tool does not rewrite code blocks, URLs, file paths, or variable names. - Aggressive mode may reduce clarity; review before committing.

Install

ClawHub CLI
openclaw skills install @trinitybotserver/compression
Node.js (npx)
npx clawhub@latest install compression

Full SKILL.md

Open original

SKILL.md content below is scrollable.

Trinity Compress (Skill)

Pre-run prompt compression for iterative AI dev loops.

Goal: reduce input tokens every iteration by compressing prompt files before your loop runs.

  • Works with Ralph-style loops, agent/skill directories, and most token-billed providers.
  • Runs as a local script (no model calls).
  • Creates .bak backups and supports instant undo.

What it installs into a repo

  • trinity-compress.config.json — rules + targets
  • scripts/trinity-compress.sh — compression script
  • Makefile snippet (optional): optimize-prompts, optimize-undo, etc.
  • .gitignore snippet: ignore *.bak
  • Installers:
    • scripts/install.ps1 (Windows)
    • scripts/install.sh (bash)

Requirements

  • bash 4+
  • jq
  • bc

Use

  1. Install into your repo (copy assets or use the included installer scripts)
  2. Run:
    • bash scripts/trinity-compress.sh balanced
    • or via Makefile target

Undo

  • Restores all *.bak backups from the last run.

Notes

  • This tool does not rewrite code blocks, URLs, file paths, or variable names.
  • Aggressive mode may reduce clarity; review before committing.
ClawHub Registry URL: https://clawhub.ai/trinitybotserver/skills/compression

Related skills

If this matches your use case, these are close alternatives in the same category.