skillfed

phx-mix-compression

Install rtk filters to compress verbose mix command output before it consumes context. The skill preserves critical signals like compile errors and test failures while short-circuiting successful runs to single lines, delivering 5-15% token savings on mix-heavy workflows.

phx-mix-compression reduces token use by filtering verbose mix command output before it enters your context.

AI-generated summary based on this skill's SKILL.md

507 35 MIT updated by oliver-kriska

Install

oliver-kriska/claude-elixir-phoenix/phx-mix-compression · repository language: Python

CLI (skillfed)coming soon
git clone https://github.com/oliver-kriska/claude-elixir-phoenix
cp -r claude-elixir-phoenix/targets/amp/skills/phx-mix-compression ~/.claude/skills/phx-mix-compression

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does phx-mix-compression reduce mix test output noise?

phx-mix-compression installs rtk filters that compress verbose mix command output before it consumes context. The filters preserve critical signals like compile errors and test failures while short-circuiting successful runs to single lines, delivering 5-15% token savings on mix-heavy workflows.

What mix commands does phx-mix-compression filter?

phx-mix-compression compresses output from mix test, credo, dialyzer, and compile. Each filter preserves error details and failure messages while collapsing repetitive pass output, optimizing context usage during long debugging sessions without losing actionable information.

Can phx-mix-compression compress mix dialyzer warnings?

Yes. phx-mix-compression's dialyzer filter reduces warning verbosity while retaining type mismatch details and critical diagnostics. Successful type checks collapse to a single confirmation line, freeing tokens for other context in Phoenix projects.

How do I install rtk filters for mix commands?

phx-mix-compression provides ready-to-install rtk filter configurations for Phoenix projects. After installation, the filters automatically engage on mix test, credo, dialyzer, and compile runs, filtering repetitive output and preserving errors without manual invocation.

What token savings does phx-mix-compression deliver?

phx-mix-compression achieves 5-15% token savings on mix-heavy workflows by compressing successful run output to single lines while preserving all critical errors. Savings scale with test suite size and debugging loop frequency in long sessions.

Does phx-mix-compression filter mix compile errors?

Yes. phx-mix-compression preserves all compile errors and warnings while filtering noise from successful compilation steps. The filter ensures you never miss diagnostics that matter while eliminating repetitive pass confirmations that flood context.

SKILL.md

rendered from the published skill — quoted content, verbatim

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 sessionsphx-work or phx-full hitting context limits from mix output
  • Debugging loopsphx-investigate retrying mix compile/mix test repeatedly
  • Dialyzer-heavy projectsmix dialyzer output dominates the transcript

Iron Laws

  1. NEVER strip critical signals — compile errors (** (CompileError), == Compilation error in), test failures (FAILURES, 0 failures — preserved

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 3 files
targets/amp/skills/phx-mix-compression/SKILL.md
targets/amp/skills/phx-mix-compression/references/install.md
targets/amp/skills/phx-mix-compression/references/rtk-filters.toml

Related skills

Tags

output-filtering token-optimization context-management cli-proxy build-tool-integration noise-reduction transcript-compression elixir-tooling developer-workflow