Investigate bugs and errors in Elixir/Phoenix — root-cause analysis for crashes, exceptions, stack traces, test failures. Use --parallel for deep 4-track investigation.
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill investigate
Investigate bugs using the Ralph Wiggum approach: check the
obvious, read errors literally.
/phx:investigate Users can't log in after password reset
/phx:investigate FunctionClauseError in UserController.show
/phx:investigate Complex auth bug --parallel
$ARGUMENTS = Bug description or error message. Add --parallel
for deep 4-track investigation.
Use parallel mode (spawn deep-bug-investigator) when:
bug mentions 3+ modules, spans multiple contexts, is intermittent
or involves concurrency, or user says --parallel/deep.
Before spawning it, determine the effective maximum nesting depth. Use an
explicit positive-integer CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH value first;
when it is unset, inspect claude --version (the default is 1 in 2.1.217–2.1.218
and 3 in 2.1.219+). If the version is unavailable, conservatively use 1. At
depth 3+, use the deep-bug-investigator orchestrator. At depth 1 or 2, keep
orchestration in this main session: spawn the four
focused tracks (reproduction, root cause, impact, fix strategy) directly in
one parallel batch, wait for all four, then synthesize their evidence. Never
spawn an orchestrator that cannot delegate.
Otherwise: Run the sequential workflow below.
Avoid confirmatory subagents: Do NOT spawn parallel subagents
to "verify" findings you already identified in the main context.
If Step 3-4 already identified the root cause with high confidence,
present it directly — don't spend ~80K tokens on 4 subagents to
confirm what's already obvious (confirmed waste: session c135330a).
{:error, changeset} with validation failures, not viewport or JS issues.claude/solutions/ firstSearch .claude/solutions/ for relevant keywords using Grep.
If matching solution exists, present it and ask: "Apply this
fix, or investigate fresh?"
If Tidewave MCP is detected, **start here instead of asking
the user to paste errors**. Auto-capture runtime context:
mcp__tidewave__get_logs level: :error -- capture recent errorsmcp__tidewave__get_source_location
mcp__tidewave__execute_sql_query to inspect statemcp__tidewave__project_eval to test hypothesesmcp__tidewave__get_source_location with component namePresent pre-populated context to the user:
> Auto-captured from runtime:
>
> - Error: {parsed error from logs}
> - Location: {file:line from get_source_location}
>
> Investigating this. Correct if wrong.
This eliminates copy-pasting errors between app and agent.
If Tidewave NOT available: Fall through to Step 1.
Run mix compile --warnings-as-errors 2>&1 | head -50, then mix ecto.migrate.
Run mix test test/path_test.exs --trace. Then read the last 200 lines of log/dev.log and search for "error" or "exception" patterns.
Parse the error message — check ${CLAUDE_SKILL_DIR}/references/error-patterns.md.
File saved? Atom vs string? Data preloaded? Pattern match
correct? Nil? Return value? Server restarted?
LiveView form saves silently failing? Check changeset errors
FIRST — not viewport, click mechanics, or JS. A missing
hidden_input for a required embedded field causes `{:error,
changeset}` with no visible UI feedback.
Find what's actually happening vs what should happen.
Present root cause + evidence. Then route by fix size:
/phx:quick/phx:plan {root cause summary} sothe fix gets task structure and review
/phx:compoundUse /ralph-loop:ralph-loop for autonomous debugging with
clear completion criteria and --max-iterations.
${CLAUDE_SKILL_DIR}/references/error-patterns.md — Common errors and checklist${CLAUDE_SKILL_DIR}/references/investigation-template.md — Output format${CLAUDE_SKILL_DIR}/references/debug-commands.md — Debug commands and common fixesIntegration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.
Build and distribute Expo development clients locally or via TestFlight
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.
Take oliver-kriska/investigate 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.