oliver-kriska/claude-elixir-phoenix-opencode-compound-docs
Searchable Elixir/Phoenix/Ecto solution documentation system with YAML frontmatter. Builds institutional knowledge from solved problems. Use when consulting past solutions before investigating new issues.
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill compound-docs
Searchable, categorized solution documentation that makes each
debugging session easier than the last.
.claude/solutions/
├── ecto-issues/
├── liveview-issues/
├── oban-issues/
├── otp-issues/
├── security-issues/
├── testing-issues/
├── phoenix-issues/
├── deployment-issues/
├── performance-issues/
└── build-issues/
.claude/solutions/ for existing fixes before debugging
validated metadata per references/schema.md
prevent recurrence
---
module: "Accounts"
date: "2025-12-01"
problem_type: runtime_error
component: ecto_schema
symptoms:
- "Ecto.Association.NotLoaded on user.posts"
root_cause: missing_preload
severity: medium
tags: [preload, association, n-plus-one]
---
# Association NotLoaded on User Posts
## Symptoms
Ecto.Association.NotLoaded raised when accessing user.posts
in UserListLive after filtering.
## Root Cause
Query in Accounts context missing preload for :posts.
## Solution
Added `Repo.preload(:posts)` to `list_users/1`.
## Prevention
Use n1-check skill before shipping list views.
Use Grep to search .claude/solutions/ by symptom (e.g., NotLoaded), by tag (e.g., tags:.*preload), or by component (e.g., component: ecto).
/phx-compound creates solution docs here/phx-investigate searches here before debugging/phx-plan consults for known riskslearn-from-fix feeds into this systemreferences/schema.md — YAML frontmatter validation schemareferences/resolution-template.md — Full solution templateTake oliver-kriska/claude-elixir-phoenix-opencode-compound-docs 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.