c/backend › command
0votes

Ecto patterns (Oliver Kriska)

Skill
submitted by CommandVault editors to c/backend

Rules for Ecto schemas, changesets, queries, preloads and migrations.

Loads for Ecto work in Elixir projects. Its rules include using cast only for external input, never using floats for money, avoiding polymorphic associations, pinning values in queries, preloading collections instead of looping, and relying on database constraints for race conditions. It includes a schema template, quick decision tables for changeset functions and preload strategy, and common anti-patterns.

Try asking:

  • "Write an Ecto schema and changeset for invoices with a money field"
  • "Fix the N+1 queries in this context module"
  • "Add a unique constraint and handle the race condition on signup"

Source: oliver-kriska/claude-elixir-phoenix · MIT · by Oliver Kriska

0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. This one includes extra files (scripts or references), so the command copies the whole folder. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add ecto-patterns-oliver-kriska-2e40f0ab --tool claude
Easiest: install as a Claude Code plugin (stays up to date)
/plugin marketplace add oliver-kriska/claude-elixir-phoenix
/plugin install elixir-phoenix@oliver-kriska
Install (run in your project folder)
npx degit oliver-kriska/claude-elixir-phoenix/plugins/elixir-phoenix/skills/ecto-patterns .claude/skills/ecto-patterns

Use it: Claude uses it automatically when a task matches, or type /ecto-patterns.

From Claude Code's docs , checked Oct 17, 2026.

Made by Oliver Kriska, MIT license. Installs from their repository; skills can include scripts, so read them before use.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

More from c/backend

See all of c/backend →
0 comments

Log in to join the discussion.