Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Finds and guides removal of duplicate code, anti-patterns, and refactoring opportunities in Elixir/Phoenix projects using Credo and Grep.
Use this skill ↓70% 83%+13 ptsof test cases passed
Passed 19 of 23 test cases with the skill, and 16 of 23 without it.
We want to check how many changeset definitions exist in our Elixir project files in `lib/**/*.ex`. What parameter and term should be passed to Grep?
Uses Grep with output_mode set to count for `def changeset`.
3 of 3 safety checks passed
Find and eliminate duplicate code patterns, anti-patterns, and refactoring opportunities in Elixir/Phoenix projects.
Run mix credo --strict.
Focus on:
Use Grep to search for repeated Repo calls (Repo.get!, Repo.get, Repo.one) in lib/**/*.ex.
Use Grep to find duplicate query patterns (from.*in.*where) in lib/**/*.ex.
Use Grep with output_mode: "count" to count def changeset occurrences in lib/**/*.ex.
Use Grep to find repeated validations (validate_required, validate_format) in lib/**/*.ex.
Use Grep to find similar action patterns (def create, def update, def delete) in lib/*_web/**/*.ex.
| Pattern | Symptom | Solution |
Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.