style
Elixir Style and Conventions
When to Activate
Activate when:
- Writing or reviewing Elixir code for idiomatic style
- Deciding between bang (
!) and non-bang function variants - Handling errors from external APIs, user input, or DB operations
- Designing Ecto schemas and changesets for validation
- Building Phoenix forms connected to changeset validation
- Chaining multi-step operations with
withorcase - Choosing between
map.keyandmap[:key]access patterns - Implementing non-DB data structures (search forms, filter params)
This skill complements elixir:anti-patterns — that skill covers what to avoid; this one covers what to do instead.
Tagged Tuples and Return Conventions
Elixir functions signal success or failure through return values, not exceptions.
More from vinnie357/claude-skills
material-design
Guide for implementing Material Design 3 (Material You). Use when designing Android apps, implementing dynamic theming, or following Material component patterns.
18elixir-testing
Guide for Elixir testing with ExUnit. Use when writing unit tests, implementing property-based tests, setting up mocks, or organizing test suites.
16phoenix-framework
Guide for Phoenix web applications. Use when building Phoenix apps, implementing LiveView, designing contexts, setting up channels, or integrating Tidewave MCP dev tools.
16elixir-anti-patterns
Identify and refactor Elixir anti-patterns. Use when reviewing Elixir code for smells, refactoring problematic patterns, or improving code quality.
15nushell
Guide for using Nushell for structured data pipelines and scripting. Use when writing shell scripts, processing structured data, or working with cross-platform automation.
14documentation-writing
Guide for writing technical documentation. Use when creating README files, API documentation, guides, or inline code documentation.
12