Skill / SKILL.md

Ecto Changeset Patterns

j-morgan6/elixir-phoenix-guide

Use when writing Ecto changeset validations beyond cast/validate_required — custom and cross-field validations (e.g. end date after start date), separate changesets per operation (registration vs update), conditional validation, field transforms, password/email rules, uniqueness checks. Not for parent/child forms or cast_assoc (use ecto-nested-associations).
1 views 175 repository starsUpdated Nov 27, 2026
Overview

Use when writing Ecto changeset validations beyond cast/validate_required — custom and cross-field validations (e.g. end date after start date), separate changesets per operation (registration vs update), conditional validation, field transforms, password/email rules, uniqueness checks. Not for parent/child forms or cast_assoc (use ecto-nested-associations).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/j-morgan6/elixir-phoenix-guide' skill-source

Use the complete skill-source/skills/ecto-changeset-patterns directory with your client’s skill installer.

  • skills/ecto-changeset-patterns

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/ecto-changeset-patterns

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
11223163bfb8d51c6b92e59f0864260154da0e563288d5a56bd87376e01a02ed
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills