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. · effort: low
Compound Docs — Institutional Knowledge Base
Searchable, categorized solution documentation that makes each debugging session easier than the last.
Directory Structure
.claude/solutions/├── ecto-issues/├── liveview-issues/├── oban-issues/├── otp-issues/├── security-issues/├── testing-issues/├── phoenix-issues/├── deployment-issues/├── performance-issues/└── build-issues/Iron Laws
- ALWAYS search solutions before investigating — Check
.claude/solutions/for existing fixes before debugging - YAML frontmatter is MANDATORY — Every solution needs
validated metadata per
${CLAUDE_SKILL_DIR}/references/schema.md - One problem per file — Never combine multiple solutions
- Include prevention — Every solution documents how to prevent recurrence
Solution File Format
---module: "Accounts"date: "2025-12-01"problem_type: runtime_errorcomponent: ecto_schemasymptoms: - "Ecto.Association.NotLoaded on user.posts"root_cause: missing_preloadseverity: mediumtags: [preload, association, n-plus-one]---
# Association NotLoaded on User Posts
## SymptomsEcto.Association.NotLoaded raised when accessing user.postsin UserListLive after filtering.
## Root CauseQuery in Accounts context missing preload for :posts.
## SolutionAdded `Repo.preload(:posts)` to `list_users/1`.
## PreventionUse n1-check skill before shipping list views.Searching Solutions
Use Grep to search .claude/solutions/ by symptom (e.g., NotLoaded), by tag (e.g., tags:.*preload), or by component (e.g., component: ecto).
Integration
/phx:compoundcreates solution docs here/phx:investigatesearches here before debugging/phx:planconsults for known riskslearn-from-fixfeeds into this system
References
${CLAUDE_SKILL_DIR}/references/schema.md— YAML frontmatter validation schema${CLAUDE_SKILL_DIR}/references/resolution-template.md— Full solution template
phxagents · v2.8.8 · GitHub · llms.txt · llms-full.txt
Community plugin. Not affiliated with Phoenix Framework or phoenix.new.