ecto-patterns
FeaturedWrite or fix Ecto schemas, changesets, queries, and migrations — preloads, unique constraints, money fields, Multi, upserts. Use when adding fields, validations, Repo queries, or migrations. Skip for Ash.
Install
Quality Score: 97/100
Skill Content
Details
- Author
- oliver-kriska
- Repository
- oliver-kriska/claude-elixir-phoenix
- Created
- 7 months ago
- Last Updated
- yesterday
- Language
- Python
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
ecto-thinking
This skill should be used when the user asks to "add a database table", "create a new context", "query the database", "add a field to a schema", "validate form input", "fix N+1 queries", "preload this association", "separate these concerns", or mentions Repo, changesets, migrations, Ecto.Multi, has_many, belongs_to, transactions, query composition, or how contexts should talk to each other.
schema-design
Use when designing or reviewing a relational schema — table and key design, data types, constraints, nullability, normalization vs denormalization, soft deletes, and modelling time. Triggers on new tables, a migration adding columns, "how should I model this", or a schema review before it reaches production.
schema-antipatterns
This skill should be used when the user mentions "schema design", "database anti-pattern", "N+1", "foreign key index", "normalization", "data types", "constraints", "ORM performance", "missing primary key", "VARCHAR 255", "boolean as int", or reviewing DDL/models for design problems. It provides a relational schema design anti-pattern catalog plus a per-ORM N+1 pattern library.