trim

Condense text files while preserving all original information.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/gsa9/claude-plan-skills --skill trim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trim
Source: https://github.com/gsa9/claude-plan-skills/tree/main/skills/trim
Command: npx skills add https://github.com/gsa9/claude-plan-skills --skill trim

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you optimize a file for token efficiency without sacrificing information or functionality, saving tokens during AI prompts and storage space.

Core Features & Use Cases

  • Inventory-preserving optimization: Condense prose and formatting while preserving every discrete item in the file.
  • Zero-information-loss: Ensure no facts, rules, or examples are removed or altered.
  • Use Case: Refactor long documents or notes to a compact form for quick reference while keeping meaning intact.

Quick Start

To tokenize-save a document, run trim on a file path, e.g., /trim path/to/file.txt

Frequently Asked Questions about trim

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize a text file for token efficiency without losing information?

To optimize a text file for token efficiency without losing information, run a trim command on a plain text file path to condense prose and formatting while preserving every discrete item, fact, and rule intact.

Can I condense long documentation into a compact form for quick reference?

Yes, you can condense long documentation into a compact form for quick reference by inventorying all original items before condensing and verifying the final version against the inventory to enforce zero-information-loss.

How does a document trim process verify zero information loss?

A document trim process verifies zero information loss by inventoring all original facts, rules, and examples before condensing the text, then automatically verifying the final optimized version against that initial inventory.

Does the token optimization work on any plain text file format?

Yes, token optimization works on any plain text or documentation file format where keeping every rule, fact, or example intact is critical, saving tokens during AI prompts and storage space.

What is the best way to shrink files for AI prompts while keeping meaning intact?

The best way to shrink files for AI prompts while keeping meaning intact is using an inventory-preserving optimization tool that condenses formatting and prose while ensuring no discrete items are removed or altered.