mcpbeat Sign in

Phx Investigate Agent Skill

Investigate Elixir/Phoenix bugs root-cause first. Reproduce failures, cite evidence; Codex subagents are optional.

2k tokens
context cost
the whole folder, loaded on every use
4
files
instructions only
0
copies elsewhere
how many repositories repackaged it
514
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill phx-investigate

What comes with it

4 468 bytes besides the instruction
references/debug-commands.md
references/error-patterns.md
references/investigation-template.md

What it tells the agent to use

found in the instruction text
Task spawns other agents

The instruction itself

12 sections, as written by the author

Investigate Bug

Investigate Elixir/Phoenix bugs root-cause first. Reproduce or establish the

failing behavior before recommending a fix, and cite concrete paths and lines.

Usage

$elixir-phoenix:phx-investigate Users can't log in after password reset
$elixir-phoenix:phx-investigate FunctionClauseError in UserController.show
$elixir-phoenix:phx-investigate Complex auth bug --parallel

Treat the text after the skill name as the bug description. --parallel asks

for independent investigation tracks when native Codex subagent tooling is

available; it is an optimization, never a requirement.

Iron Laws

  • Read the error literally first — extract the exception, message, failing

assertion, and first relevant application frame before theorizing.

  • Check the obvious before going deep — compile errors, missing migrations,

atom/string mismatches, nil values, stale servers, and changeset errors explain

many failures.

  • Reproduce before proposing a fix — run the smallest relevant test or

controlled command and record its output. If reproduction is impossible,

state exactly what evidence establishes the failure instead.

  • Confirm the root cause with evidence — distinguish the observed failure,

the causal code path, and the proposed correction.

  • Do not edit while investigating unless the user asks for a fix — the

investigation result is evidence and a recommendation, not an implicit patch.

Workflow

1. Consult Existing Evidence

Search .claude/solutions/, recent diffs, tests, logs, and the literal error.

Do not block if .claude/solutions/ does not exist.

2. Capture Runtime Context When Available

Tidewave is optional. If its tools are configured, use them for logs, source

locations, safe queries, or hypothesis checks. Otherwise use repository files,

mix commands, and local logs. Never fail or ask the user to install Tidewave

merely to continue an investigation.

3. Run Sanity Checks

Choose focused checks that fit the report, such as:

mix compile --warnings-as-errors
mix test test/path_test.exs --trace

Do not run migrations or other state-changing commands unless they are necessary,

safe for the fixture, and authorized by the user.

4. Reproduce Before Fixing

Capture the exact command, failure, and relevant output. Read

references/error-patterns.md, then inspect only the code needed to trace the

failure from entry point to cause.

5. Check the Obvious

Check saved files, atom/string keys, preload state, pattern matches, nil values,

return values, server restarts, and changeset errors. For silent LiveView form

failures, inspect {:error, changeset} and rendered validation errors before JS.

6. Trace and Test the Hypothesis

Use targeted searches, source reads, tests, or non-mutating diagnostics. Only add

temporary source diagnostics if the user explicitly authorizes edits, and remove

them before reporting. Cite path:line evidence for both the failing behavior

and the causal code.

If native Codex subagents are available and the bug genuinely spans independent

areas, delegate read-only tracks by concern. Otherwise perform the same tracks

sequentially in this session. Do not require named custom agents.

7. Report

Use references/investigation-template.md. Include:

  • reproduction or evidence establishing the failure;
  • root cause, not merely the symptom;
  • relevant paths and lines;
  • confidence and any unverified assumptions;
  • the smallest safe fix or next diagnostic step.

Route follow-up work with $elixir-phoenix:phx-quick, $elixir-phoenix:phx-plan, or $elixir-phoenix:phx-compound when

appropriate. Do not invoke another skill unless the user asks you to continue.

References

  • references/error-patterns.md — common errors and checklist
  • references/investigation-template.md — output format
  • references/debug-commands.md — debug commands and common fixes

Other skills for the same job

different authors, same section of the catalogue
Skill Creator
by anthropics
vendor ×10

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

56k tokens scripts
Skill Creator
by vercel-labs
vendor ×10

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

12k tokens scripts
Skill Creator
by JayZeeDesign
×9

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

10k tokens scripts
Template Skill
by JayZeeDesign
×7

Replace with description of the skill and when Claude should use it.

35 tokens
Dispatching Parallel Agents
by ZhanlinCui
×5

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

2k tokens
Skill Development
by anthropics
vendor ×4

This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

9k tokens
Find Skills
by sanity-io
vendor ×4

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

1k tokens
Writing Skills
by ZhanlinCui
×4

Use when creating new skills, editing existing skills, or verifying skills work before deployment

26k tokens scripts

How to use it

Copy the folder

Take oliver-kriska/claude-elixir-phoenix-phx-investigate from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

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.