/jutsu-credo:credo-checksfrom jutsu-credo
Guides fixing common Credo lint issues in Elixir projects, including missing module docs, high cyclomatic complexity, unnecessary pipe chains, and unused variables.
Ships in jutsu-credo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Understanding and fixing common Credo issues.
Ensure consistent code style across the project.
Identify design issues and anti-patterns.
Improve code readability and maintainability.
Highlight refactoring opportunities.
Catch potential bugs and issues.
# Issue: Missing module documentation
defmodule MyModule do
end
# Fixed
@moduledoc """
This module handles user authentication.
"""
defmodule MyModule do
end
# Issue: High cyclomatic complexity
def complex_function(x) do
if x > 10 do
if x < 20 do
if rem(x, 2) == 0 do
:even_mid
else
:odd_mid
end
else
:high
end
else
:low
end
end
# Fixed: Extract to separate functions
def classify_number(x) do
case {x > 10, x < 20, rem(x, 2) == 0} do
{false, _, _} -> :low
{true, false, _} -> :high
{true, true, true} -> :even_mid
{true, true, false} -> :odd_mid
end
end
# Issue: Single pipe
list |> Enum.map(&(&1 * 2))
# Fixed
Enum.map(list, &(&1 * 2))
# Issue
def process({:ok, result}, _context) do
result
end
# Fixed: Prefix with underscore
def process({:ok, result}, _context) do
result
end
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thedotmack/han --plugin jutsu-credo3 skills in this plugin
Other plugins' skills for the same job