ecto-constraint-debug
CommunityDebug Ecto constraint errors
Authoroliver-kriska
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers systematically diagnose and resolve Ecto.ConstraintError issues, such as unique constraint violations, foreign key problems, and check constraint failures, which often halt development.
Core Features & Use Cases
- Constraint Analysis: Parses error messages to identify the specific constraint and table involved.
- Migration & Schema Verification: Checks migration files and schema definitions for discrepancies.
- Code Path Tracing: Helps locate all code paths that interact with the constrained table.
- Root Cause Identification: Provides patterns for common causes like race conditions,
cast_associssues, and data inconsistencies. - Use Case: When an
Ecto.ConstraintErroroccurs during a user registration process due to a duplicate email, this Skill guides you to check theunique_constraintin the migration, find the relevant schema, trace the insert paths, and apply an upsert pattern to fix it.
Quick Start
Use the ecto-constraint-debug skill to debug a unique_constraint error on the users table.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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-constraint-debug Download link: https://github.com/oliver-kriska/claude-elixir-phoenix/archive/main.zip#ecto-constraint-debug Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.