Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)
All skills

Trim

Shrink an oversized always-on context file while keeping every directive intact.

When to use it

Your CLAUDE.md or OPERATIONAL_PREFERENCES has grown too large and you need to cut it without losing rules.

For example

You say

/trim OPERATIONAL_PREFERENCES — it's grown to 40KB and I want it smaller without losing any rules.

You get
  • Trimmed OPERATIONAL_PREFERENCES file
  • Byte-size comparison
  • Commit to USER_DATA repo

How it works

  • Runs ProposalGC first for safe automatic removals, then applies only the merges and relocations you approve.
  • Re-reads the file before writing if it changed mid-edit, since the memory loop can append proposals concurrently.

Before installing

This skill includes a script your assistant may run on your computer.