ecto-guidelines

Community

Adopt robust Ecto guidelines for Elixir apps.

Authorcode0100fun
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides clear, battle-tested guidelines for using Ecto effectively in Elixir projects, reducing runtime errors and inconsistencies.

Core Features & Use Cases

  • Preloading associations in queries to avoid N+1 issues and improve performance.
  • Correct schema field types and definitions to align with database columns and types.
  • Changeset validation patterns and secure handling of programmatic fields to prevent mass-assignment risks.
  • Safe access to changeset data using Ecto.Changeset.get_field and avoiding map-style access on changesets.
  • Migration best practices and generation conventions to ensure proper timestamps and naming.

Quick Start

Audit a sample module against these guidelines and adjust preloading, field handling, and changeset patterns accordingly.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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-guidelines
Download link: https://github.com/code0100fun/botfiles/archive/main.zip#ecto-guidelines

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.