phx:mix-compression
Installation
SKILL.md
Mix Output Compression
Mix commands (mix test, mix credo, mix dialyzer, mix compile) emit
verbose, repetitive output that consumes context fast. This skill installs
rtk — a CLI proxy that filters tool output
before it lands in the transcript.
The filters short-circuit happy paths to a single line (mix test: all pass)
while preserving full failure blocks, compile errors, and stack traces. Net win:
5-15% per-session token reduction on mix-heavy workflows.
When to use
- Long sessions —
/phx:workor/phx:fullhitting context limits from mix output - Debugging loops —
/phx:investigateretryingmix compile/mix testrepeatedly - Dialyzer-heavy projects —
mix dialyzeroutput dominates the transcript