ecto-changesets
OfficialValidate Elixir data with precision, ensure integrity.
Software Engineering#error handling#validation#data integrity#data transformation#constraints#elixir#ecto#changesets
AuthorTheBushidoCollective
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you master Ecto changesets to validate, cast, and transform data before database operations, ensuring data integrity and providing user-friendly error messages in Elixir applications. It automates data validation and transformation workflows.
Core Features & Use Cases
- Data Casting & Validation: Filter and convert external parameters to schema types, and apply built-in or custom validations (e.g., required fields, format, length, number ranges).
- Constraint Handling: Map database-level constraints (unique, foreign key, check) to changeset errors, providing clear feedback to users.
- Nested & Associated Changesets: Validate embedded schemas and manage associations (e.g.,
many_to_manytags) within a single changeset, ensuring consistency across related data. - Use Case: A user is registering on your platform. Use this Skill to create a
Userchangeset that validates email format, password strength, ensures the email is unique, and hashes the password before saving. If any validation fails, the changeset provides specific error messages, guiding the user to correct their input.
Quick Start
Use the ecto-changesets skill to create a changeset for a User struct, casting name and email parameters and validating that both are required.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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-changesets Download link: https://github.com/TheBushidoCollective/han/archive/main.zip#ecto-changesets Please download this .zip file, extract it, and install it in the .claude/skills/ directory.