Skip to content
Back to skills

Compression

ASecurity

Pre-run prompt compression for iterative AI dev loops.

  • 21 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
ai-agentsgobashgit

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill compression --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Compression?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Compression
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-compression/badge)](https://www.skillsdirectory.com/skills/modbender-compression)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Trinity Compress (Skill)
description: Pre-run prompt compression for iterative AI dev loops.
---

# 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.

Files in this skill

  • CHANGELOG.md146 B
  • README.md2 KB
  • SKILL.md1.2 KB
  • UPLOAD_CHECKLIST.md1.2 KB
  • assets/trinity-compress.config.json3.8 KB
  • skill.json310 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.