What problem does it solve?
Ecto database operations can fail with cryptic constraint violation errors (unique indexes, foreign keys, check constraints) that are hard to map back to the changeset or migration that caused them. This Skill routes your error, file, or scope to the canonical Ecto constraint debugger so you get a consistent diagnosis without duplicating analysis logic.
Core Features & Use Cases
- Compatibility Alias: Acts as a stable entry point that forwards the full request to the canonical
phx:ecto-constraint-debug skill, keeping older invocations working.
- Flexible Input: Accepts an error message, a file path, or a code scope as its argument to focus the debugging session.
- Use Case: You hit a
unique_constraint violation when inserting a user record. Invoke the alias with the error output, and it loads the canonical debugger which walks you through identifying the conflicting constraint and fixing the changeset.
Quick Start
Invoke /ecto:constraint-debug with the Ecto constraint error message or the file you want diagnosed.