bnadlerjr/dotfiles/developing-elixir

Claude Code and agent skill by bnadlerjr/dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Comprehensive Elixir/Phoenix development expertise covering Phoenix controllers, routing, channels; LiveView components and real-time features; Ecto schemas, queries, migrations; OTP patterns (GenServer, Supervisor); functional domain modeling; and GraphQL with Absinthe. Use when working with .ex/.exs files, mix projects, Phoenix applications, or when the user mentions Elixir, Phoenix, Ecto, LiveView, OTP, GenServer, Supervisor, or Absinthe. Also use for defmodule, mix.exs, umbrella apps, or iex sessions.

Install

npx vskill@latest install bnadlerjr/dotfiles/developing-elixir

SKILL.md

Developing Elixir

Expert guidance for building robust, scalable Elixir/Phoenix applications.

Quick Start

For immediate help, identify your task type and consult the relevant reference:

Working OnReference FileKey Topics
Controllers, routing, plugs, channelsphoenix-frameworkMVC patterns, authentication, WebSockets
LiveView components, formsliveviewReal-time UI, hooks, streams
Schemas, queries, migrationsecto-databaseAssociations, changesets, transactions
Safe migrations, schema changessafe-ecto-migrationsConcurrent indexes, zero-downtime DDL
GenServer, Supervisor, processesotp-patternsFault tolerance, state management
Domain modeling, layering, value objectsfunctional-modelingLayers, parse-don't-validate, DDD
GraphQL schemas, resolversgraphql-absintheSubscriptions, dataloader
ExUnit tests, TDD workflowtesting-elixir skillDelegated — ExUnit, assertions, Ecto sandbox, Phoenix test helpers

Cross-Cutting Principles

These principles apply across all Elixir development:

Functional-First Approach
  1. Prefer pure functions over stateful processes
  2. Use explicit state passing through function parameters
  3. Only introduce OTP patterns when tests require them
  4. Push side effects to the Lifecycle and Workers layers
Progressive Abstraction
  1. Start with primitives and maps
  2. Introduce structs when structure is genuinely needed
  3. Add type specs when interfaces stabilize
  4. Extract domain modules when concepts are proven
Parse, Don't Validate
  • Transform unstructured data into guaranteed-valid types at the Boundary layer
  • Once data is parsed, it's always valid throughout the system
  • Prefer constructors that return {:ok, value} | {:error, reason} at that layer.

Constructors below it take already-parsed values and stay total.

Error Handling Philosophy
  • Tagged tuples belong where a question can be answered "no", which is the Boundary

layer. Pure computation below it returns plain values. See functional-modeling.

  • Implement proper error types for domain-specific errors
  • Never expose internal implementation details in errors

Examples

Creating a Phoenix context with Ecto:

User: "I need to add a checkout feature for orders"
→ Consult ecto-database.md for schema design, phoenix-framework.md for controller

Implementing real-time updates:

User: "Show live order status updates to the customer"
→ Consult liveview.md for socket state and PubSub patterns

Refactoring to proper domain model:

User: "This order calculation has grown complex with many edge cases"
→ Consult functional-modeling.md

Adding background job processing:

User: "Process order confirmations asynchronously"
→ Consult otp-patterns.md for process decisions, phoenix-framework.md for Oban

Writing a database migration:

User: "I need to add an index to the posts table"
→ Consult safe-ecto-migrations.md for concurrent index creation

Anti-Patterns to Avoid

Premature OTP
  • GenServer for data that could be function arguments
  • Supervisors for processes that don't need restart strategies
  • ETS tables for small, static datasets
  • Message passing when direct function calls suffice
Premature Abstraction
  • Creating types for single-use values
  • Building generic solutions for specific problems
  • Introducing abstractions without duplication
  • Modeling future requirements

Reference File IDs

For programmatic access (e.g., parallel reviews), use these identifiers:

phoenix-framework · liveview · ecto-database · safe-ecto-migrations · otp-patterns · functional-modeling · graphql-absinthe

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bnadlerjr/dotfiles/developing-elixir/badge)](https://verified-skill.com/skills/bnadlerjr/dotfiles/developing-elixir)

Something wrong with this skill or its page? Tell us.