trim
Installation
SKILL.md
Trim
Cut a document down to its load-bearing ideas. This skill is not for summarizing and not for rewriting in a different style. It removes the parts that make readers stop reading, in the author's own words.
Resolving the target file
The user runs /trim with an optional file path. Resolve in this order:
- Argument given, path exists, file is text → use it.
- Argument given, path does not exist → ask the user to confirm the path. Do not search the filesystem.
- No argument → ask the user which file to trim. Do not guess from cwd or recent edits.
- User pasted raw text instead of a path → offer to save it to
/tmp/trim-input-<unix_epoch>.mdfirst, then proceed against that file. - File is binary, a data file, or source code (detect via extension:
.png,.jpg,.pdf,.zip,.csv,.json,.py,.ts,.go, etc., or by reading the first 4KB and seeing non-text bytes) → abort with a one-line note. This skill is for prose.
Workflow
1. Read and size the document
Read the entire file into the parent context only long enough to size it and forward to the sub-agent. Do not analyze it here.