Elixir Pro
Elixir Development Expert
Get expert-level Elixir code with OTP patterns, supervision trees, and Phoenix LiveView. The skill provides guidance on concurrency, fault tolerance, and distributed systems for production applications.
Die Skill-ZIP herunterladen
In Claude hochladen
Gehe zu Einstellungen → Fähigkeiten → Skills → Skill hochladen
Einschalten und loslegen
Teste es
Verwendung von "Elixir Pro". Create a GenServer for managing a todo list
Erwartetes Ergebnis:
A complete GenServer module with add, remove, complete, and list_todos operations. Includes state as a map, proper handle_call implementations, and example usage in the module documentation.
Verwendung von "Elixir Pro". Design a supervision strategy for a web socket handler
Erwartetes Ergebnis:
A Supervisor configuration with one_for_one strategy, child specifications for socket supervisors, and error handling patterns for connection management.
Sicherheitsaudit
SicherPrompt-only skill with no executable code. Provides guidance on Elixir best practices, OTP patterns, and Phoenix development. Static analysis found 0 files scanned (0 lines) with no suspicious patterns detected. This is a safe developer tool skill.
Qualitätsbewertung
Was du bauen kannst
Build Production OTP Applications
Create robust Elixir applications with proper supervision trees and fault-tolerant design patterns
Refactor to Modern Elixir
Upgrade legacy Elixir code to use contemporary OTP patterns and best practices
Develop Real-time Phoenix Apps
Build interactive web applications with Phoenix LiveView and reactive interfaces
Probiere diese Prompts
Create a GenServer that manages a simple counter with increment, decrement, and get functions. Include proper initialization and termination callbacks.
Design a supervision tree for a worker pool application. Include a Supervisor, a dynamic supervisor for workers, and a registry for tracking worker processes.
Create a Phoenix LiveView component for real-time form validation. Include proper LiveView lifecycle handling, form state management, and error display.
Implement a distributed counter that syncs state across multiple BEAM nodes. Use Registry for node discovery and handle node disconnection gracefully.
Bewährte Verfahren
- Prefer pattern matching over conditionals in function heads for cleaner, more expressive code
- Embrace the 'let it crash' philosophy with proper supervision to handle failures gracefully
- Use separate processes for isolation and concurrency instead of shared mutable state
Vermeiden
- Avoid using GenServer for simple utility functions where plain module functions suffice
- Do not skip supervision trees even for small applications to ensure fault tolerance
- Avoid mutable state updates; use immutable data structures and functional updates