Prompt Compression

# Trinity Compress (Skill)

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Prompt Compression" with this command: npx skills add trinitybotserver/prompt-compression

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

CMCC Digital Credential

Manage China Mobile Digital Credential flow by loading credentials, binding agent, and authorizing sensitive operations with secure HmacSHA256 signatures and...

Registry SourceRecently Updated
Automation

Personal Guardian

个体终端应急守护智能体(PTERA)。当用户激活"安全时刻"或设备自动检测到危险信号时,Agent 获得完全自主决策权,默认用户处于无法应答状态,以人身安全为最高优先级执行饱和式救援——录音、定位、联系人链式通知、120/110 自主呼叫、无人机急救网络联动。

Registry SourceRecently Updated
Automation

Automation Master

一站式办公自动化套件,集成文件处理、数据提取、智能数据集匹配等核心功能。

Registry SourceRecently Updated
1860mk1350
Automation

Synthetic Supermemory

Full automated memory pipeline for OpenClaw agents. Scribe session transcripts into structured daily memory files, ingest them into Supermemory for semantic...

Registry SourceRecently Updated