phx:trace

Generate recursive call trees tracing function invocation paths in Elixir/Phoenix applications.

517|35|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill phx-trace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phx:trace
Source: https://github.com/oliver-kriska/claude-elixir-phoenix/tree/main/plugins/elixir-phoenix/skills/call-tracing
Command: npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill phx-trace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you understand how functions are called within your Elixir/Phoenix application, making it easier to debug complex data flows and plan code changes.

Core Features & Use Cases

  • Recursive Call Trees: Visualize the path from entry points to any function.
  • Argument Pattern Analysis: Understand how data is passed between functions.
  • Use Case: When a variable unexpectedly becomes nil, use this Skill to trace back from the point of failure to identify where the nil value was introduced.

Quick Start

Build a call tree for MyApp.Accounts.update_user/2.

Frequently Asked Questions about phx:trace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trace function calls and data flow in an Elixir Phoenix application?

To trace function calls in an Elixir Phoenix application, generate recursive call trees from defined entry points to visualize invocation paths and analyze argument patterns for diagnosing runtime issues.

How can I find where a nil value was introduced in my Elixir code?

To find where a nil value was introduced in Elixir code, trace data flow back from the point of failure to identify the origin using argument pattern analysis and call trees.

Does mix xref work for generating recursive call trees in Phoenix?

Yes, mix xref works for generating recursive call trees in Phoenix by leveraging call site identification and AST parsing to accurately trace function invocation paths.

What is the best way to plan function signature modifications in Elixir?

The best way to plan function signature modifications in Elixir is to analyze argument patterns and call trees to understand how data is passed between functions before making changes.

Can I trace data flow from a specific entry point like MyApp.Accounts.update_user/2?

Yes, you can trace data flow from a specific entry point like MyApp.Accounts.update_user/2 by building a recursive call tree to map its function invocation paths.

Why do I need AST parsing for debugging data flow in Elixir?

AST parsing is needed for debugging data flow in Elixir because it enables accurate call site and argument origin identification within complex recursive call trees.