phx:trace
仓库创建 2026年2月12日最近提交 5 小时前SkillHot 收录 20 天前
▸ 精选理由
权威使用 mix xref,适合定位数据流与调用链问题。
这个 Skill 做什么
基于 mix xref 构建函数调用树,追踪入口到被调用点的路径。
用 mix xref 把函数调用关系画成树,从项目入口一路追到被调用点,帮你看数据流和定位 bug 的传播路径。常在想改函数签名或研究一个异常是怎么触发时用,能把 Controllers、LiveView 回调、Oban workers、GenServer 回调等入口当作边界停止。特别之处是优先依赖 mix xref 的权威结果,并记录已访问的 MFA 来避免循环追踪。
▸ 展开 SKILL.md 英文原文
Trace Elixir call trees from entry points via mix xref. Use when debugging data flow, planning signature changes, or understanding how a bug reaches code.
505
Stars
34
Forks
40
仓库内 Skill
+35
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/oliver-kriska/claude-elixir-phoenix/main/plugins/elixir-phoenix/skills/call-tracing/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/oliver-kriska/claude-elixir-phoenix/main/plugins/elixir-phoenix/skills/call-tracing/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Call Tracing Build call trees showing how functions are reached from entry points. ## Iron Laws - Never Violate These 1. **Always use `mix xref callers` first** - It's authoritative; grep is fallback only 2. **Stop at entry points** - Controllers, LiveView callbacks, Oban workers, GenServer callbacks 3. **Track visited MFAs** - Prevent infinite loops from circular calls 4. **Extract argument patterns** - Just knowing "who calls" isn't enough; HOW they call matters 5. **Max depth 10** - Deeper trees indicate architectural issues, not useful traces ## When to Build Call Tree (Use Proactively) | Condition | Why Call Tree Helps | |-----------|---------------------| | Unexpected nil/value
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有