Elixir Architect
A comprehensive Claude Code skill for architecting production-ready Elixir/Phoenix applications with complete documentation, ADRs, guardrails, and handoff materials.
Overview
Elixir Architect is a Claude Code skill that acts as an expert system architect, creating comprehensive project documentation packages that enable Director and Implementor AI agents to successfully build complex Elixir/OTP systems following industry best practices.
This skill creates:
- ✅ Complete directory structure for multi-app projects
- ✅ Architecture documentation (8 comprehensive files)
- ✅ Architecture Decision Records (ADRs)
- ✅ AI collaboration guardrails (Director/Implementor roles)
- ✅ Handoff documentation with workflows
- ✅ Domain-specific adaptations (Financial, E-Commerce, SaaS)
Key Features
Expert Consultation
Automatically launches Task agents to research:
- Domain-specific architecture patterns
- Ash Framework best practices
- Dave Thomas's path-based dependency approach
- OTP supervision tree patterns
- Superpowers framework for implementation planning
Comprehensive Documentation
Generates 20+ documentation files including:
- Foundation: README.md, CLAUDE.md with AI context
- Architecture: 8 detailed architecture documents (~6,000 lines)
- Guardrails: NEVER_DO, ALWAYS_DO, role definitions, review checklist
- Decisions: ADRs with alternatives and trade-offs
- Handoff: Complete workflow for Director/Implementor collaboration
Domain-Specific Adaptations
Special handling for:
- Financial Systems: Double-entry bookkeeping, money handling, audit trails
- E-Commerce: Order workflows, inventory, payment integration
- SaaS Platforms: Multi-tenancy, subscriptions, usage tracking
Proven Architectural Patterns
- Database as source of truth (no GenServers for entities)
- Functional core, imperative shell pattern
- Dave Thomas multi-app structure (path-based dependencies)
- Ash Framework for declarative domain modeling
- Oban for background job processing
- Optimistic locking for concurrency
Installation
Method 1: Claude Code Plugin (Recommended)
# In Claude Code, run:
/plugin install github.com/maxim-ist/elixir-architect
The skill will be automatically available as elixir-architect.
Method 2: Manual Installation
# Clone the repository
git clone https://github.com/maxim-ist/elixir-architect.git
# Copy skill to Claude Code skills directory
mkdir -p ~/.claude/skills
cp -r elixir-architect/skills/elixir-architect ~/.claude/skills/
Verification
To verify the skill is installed:
# In Claude Code
/skills list
You should see elixir-architect in the list.
Usage
Basic Invocation
# In Claude Code
/skills elixir-architect
Or simply describe your need:
I need to architect a task management system using Elixir, Ash, and Oban with
complete documentation for Director and Implementor AI collaboration
Claude will automatically invoke the skill if appropriate.
The Skill Will Ask You
The skill gathers requirements through these questions:
- Project Domain: What system are you building? (e.g., task management, e-commerce, SaaS)
- Tech Stack: Confirm Elixir + Ash + Oban + Phoenix + LiveView?
- Project Location: Where to create files? (provide absolute path)
- Structure Style: Dave Thomas path-based or umbrella app?
- Special Requirements: Multi-tenancy? Event sourcing? External integrations?
- Scale Targets: Expected load and performance requirements
- AI Collaboration: Using Director/Implementor workflow?
Example Session
User: Create architecture docs for a task management system at /Users/me/projects/taskflow
Claude: [Invokes elixir-architect skill]
Skill: I'll help architect your task management system. Let me gather some details:
1. Confirm tech stack: Elixir 1.17+, Ash 3.0+, Oban 2.17+, Phoenix 1.7+?
2. Structure: Dave Thomas path-based dependencies?
3. Special requirements:
- Multi-tenancy (teams/organizations)?
- Real-time features (LiveView task boards)?
- Expected user volume and task creation rate?
4. Will you use Director/Implementor AI workflow?
[After answering questions, skill launches expert Task agents]
Skill: Researching task management patterns and state machines...
Analyzing Ash Framework resource patterns...
Studying Dave Thomas multi-app structure...
[Creates complete documentation package]
Skill: ✅ Project architecture complete!
Created 23 files at /Users/me/projects/taskflow:
- Foundation docs (README, CLAUDE.md)
- 5 guardrail documents
- 8 architecture documents
- 4 Architecture Decision Records
- Handoff documentation
Ready for Director AI to create first feature design!
What Gets Created
The skill generates this structure at your specified location: