oliver-kriska/claude-elixir-phoenix / plugins/elixir-phoenix/skills/investigate
investigate
VerifiedFind the root cause of Elixir/Phoenix bugs — crashes, exceptions, stack traces, compile errors, LiveView that won't update, silent failures. Use when something is broken or misbehaves. --parallel for 4 tracks.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.5 KB |
| references/debug-commands.md | markdown | 2.0 KB |
| references/error-patterns.md | markdown | 1.2 KB |
| references/investigation-template.md | markdown | 934 B |
references/investigation-template.md
View on GitHub# Investigation Output Template
Create `.claude/plans/{slug}/research/investigation.md`:
````markdown
# Bug Investigation: $ARGUMENTS
## Error
```
{exact error message}
```
## Reproduction
```bash
{command to reproduce}
```
## Ralph Wiggum Checklist
- [x] File saved? YES
- [x] Compiled? YES
- [ ] Correct key type? **NO - FOUND IT**
- [ ] Data exists? Not checked
## Root Cause
**What's wrong**: Using string key "user_id" but map has atom :user_id
**Where**: lib/my_app_web/controllers/user_controller.ex:45
**Why missed**: External API returns string keys, internal code uses atoms
## Fix
```elixir
# Before
def show(conn, %{"user_id" => id}) do
user = Accounts.get_user(params["user_id"]) # params has string keys!
# After
def show(conn, %{"user_id" => id}) do
user = Accounts.get_user(id) # Already extracted
```
## Prevention
- Add test with external API mock
- Add typespec to catch at compile time
````
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |