analyze
免费Analyze a legacy app in any language before rewriting it in Elixir: inventory, features as goals, why each mechanism exists, runtime topology, external contracts. Use to start or refresh a rewrite.
中文简介正在准备中。当前显示原文说明。
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.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
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 unchangedrtk verify (or rtk verify --filter mix-test) to
confirm 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 result
is in the transcript and cannot shrink it. rtk works at the subprocess layer
(the only layer where transcript-shortening is possible).mix.exs inspection needed.enabled = false in
config.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 setup还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Analyze a legacy app in any language before rewriting it in Elixir: inventory, features as goals, why each mechanism exists, runtime topology, external contracts. Use to start or refresh a rewrite.
中文简介正在准备中。当前显示原文说明。
Design the idiomatic Elixir architecture for a rewrite: set the compatibility bar (ADR-000), consult phx specialists on open questions, then build contexts, ledger and ADRs. Use after /rewrite:analyze.
中文简介正在准备中。当前显示原文说明。
Ash Framework — resources, actions, policies, aggregates; Use when generating resources via mix ash.codegen, editing…
中文简介正在准备中。当前显示原文说明。
Ash Framework — resources, actions, policies, aggregates, calculations, AshPhoenix.Form, LiveView, migrations. Use when generating resources via mix ash.codegen, editing changes, checks, types, validations, or domain code interfaces.
中文简介正在准备中。当前显示原文说明。
Compatibility alias for the Elixir/Phoenix plugin's LiveView assigns audit. Invoke explicitly with /lv:assigns.
中文简介正在准备中。当前显示原文说明。
Inspect LiveView socket assigns for memory bloat — missing temporary_assigns, unused assigns, unbounded lists needing streams, memory estimates. Use when LiveView memory grows or you need to add temporary_assigns.
中文简介正在准备中。当前显示原文说明。