ecto-patterns

Community

Master Ecto database interactions.

Authoroliver-kriska
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides clear, actionable guidance and best practices for working with Ecto, Elixir's powerful database wrapper, preventing common pitfalls and ensuring robust data management.

Core Features & Use Cases

  • Schema Design: Learn optimal field types and association strategies.
  • Changeset Management: Understand cast, put_change, and custom validations for secure data handling.
  • Query Optimization: Discover techniques for efficient data retrieval and avoiding N+1 queries.
  • Migrations: Implement safe and reliable database schema changes.
  • Use Case: When writing a new Ecto schema, quickly reference the correct field types for money (:integer for cents) and timestamps (:utc_datetime_usec), and ensure all external input is handled via cast/4.

Quick Start

Show me the best way to handle user input for an Ecto changeset.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ecto-patterns
Download link: https://github.com/oliver-kriska/claude-elixir-phoenix/archive/main.zip#ecto-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.