Reduce mix output noise (5-15% token savings) by installing rtk filters that compress mix test/credo/dialyzer/compile output before it reaches Claude. Use when long mix output floods context.
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill mix-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.
/phx:work or /phx:full hitting context limits from mix output/phx:investigate retrying mix compile/mix test repeatedlymix dialyzer output dominates the transcript** (CompileError),== Compilation error in), test failures (FAILURES, 0 failures — preserved
even on short-circuit), dialyzer warnings, and stack traces with file:line MUST
pass through unchanged
rtk verify (or rtk verify --filter mix-test) toconfirm the bundled test fixtures pass before declaring success
.rtk/filters.toml — diff and merge insteadwhich rtk && rtk --version
Read ${CLAUDE_SKILL_DIR}/references/install.md if rtk is missing — covers
homebrew install + shell hook setup.
.rtk/filters.tomlReference filters live at ${CLAUDE_SKILL_DIR}/references/rtk-filters.toml. Six
production-tested filters covering:
mix-test — short-circuits all-pass, preserves failure blocks + compile errorsmix-credo — collapses clean runs, preserves violation blocksmix-dialyzer — drops PLT progress, keeps warnings + summarymix-deps-get — collapses unchanged package listsmix-ecto-migrate — strips compile prefix, short-circuits "already up"mix-compile — handles parallel worker prefixes (N>) and MIX_ENVRun this if the project has no .rtk/filters.toml yet:
mkdir -p .rtk
cp "${CLAUDE_SKILL_DIR}/references/rtk-filters.toml" .rtk/filters.toml
Read both files if one already exists. Present a diff to the user. Merge only
the filters they don't already have.
rtk verify # runs all embedded [[tests.*]] fixtures
rtk verify --filter mix-test # one filter only
Check that all report "passed". Flag and stop if any fail — usually means the
user has a custom rtk version with regex differences.
Run rtk init zsh (or rtk init bash) to install the transparent rewrite hook
that turns mix X into rtk mix X. Re-running is safe (idempotent). Skip this
step and mix calls run unfiltered.
Add custom regex patterns to strip_lines_matching for project-specific noise
sources (e.g., third-party hex deps spamming stack traces). See the inline
example in ${CLAUDE_SKILL_DIR}/references/rtk-filters.toml lines 57-59.
PostToolUse hooks fire after the tool resultis in the transcript and cannot shrink it. rtk works at the subprocess layer
(the only layer where transcript-shortening is possible).
projects. No mix.exs inspection needed.
enabled = false inconfig.toml). Filters run locally, no data leaves the machine.
${CLAUDE_SKILL_DIR}/references/rtk-filters.toml — bundled filter set${CLAUDE_SKILL_DIR}/references/install.md — rtk install + shell hook setupToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Use when implementing any feature or bugfix, before writing implementation code
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.
Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.
Take oliver-kriska/mix-compression from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference brew.
Without those the skill loads but fails at the first command.