ash-framework
Installation
SKILL.md
Ash Framework
RULES — Follow these with no exceptions
- Use
use Ash.Resourcefor domain resources — never manually implement protocols - Define actions explicitly — don't rely on
defaults [:read, :create]without understanding what they expose - Add policies for authorization — every resource with sensitive data must have explicit policy blocks
- Use
Ash.Changeset.for_create/3andAsh.Changeset.for_update/3— not bare struct manipulation - Run
mix ash_postgres.generate_migrationsbefore manual migration — let Ash generate the schema - Verify resource loads — run
mix compileand confirm noSpark.Error.DslErrorbefore proceeding
End-to-End Workflow
Follow this sequence when starting a new Ash project: