Skip to content

Credo skills that guide Elixir static analysis, check fixes, and custom rule creation.

CCM score
42 of 100
GitHub stars
201
View on GitHub

Own this plugin? Claim it

What it does

  • Adds 3 skills (credo-configuration, credo-checks, and credo-custom-checks) for Elixir code quality work
  • Covers setup and check configuration with priority levels, common issue fixes, and project-specific check creation
  • Runs mix credo --strict through a Stop/SubagentStop hook on projects that contain a .credo.exs file
  • Designed for Elixir projects that need customized Credo rules and consistent code style

Credo skills for Elixir code analysis and style checking

Add marketplace

/plugin marketplace add TheBushidoCollective/han

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install jutsu-credo@han

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Credo Checks

Understanding and fixing common Credo issues.

Check Categories

Consistency Checks

Ensure consistent code style across the project.

Design Checks

Identify design issues and anti-patterns.

Readability Checks

Improve code readability and maintainability.

Refactoring Checks

Highlight refactoring opportunities.

Warning Checks

Catch potential bugs and issues.

Common Issues

Module Documentation

# Issue: Missing module documentation
defmodule MyModule do
end

# Fixed
@moduledoc """
This module handles user authentication.
"""
defmodule MyModule do
end

Function Complexity

# 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

Pipe Chain

# Issue: Single pipe
list |> Enum.map(&(&1 * 2))

# Fixed
Enum.map(list, &(&1 * 2))

Unused Variables

# Issue
def process({:ok, result}, _context) do
  result
end

# Fixed: Prefix with underscore
def process({:ok, result}, _context) do
  result
end

Readme

Credo

Advanced Credo skills for code analysis and style checking in Elixir.

Skills

  • credo-configuration: Setup, check configuration, priority levels
  • credo-checks: Common issues and how to fix them
  • credo-custom-checks: Creating project-specific checks

Hooks

  • Stop/SubagentStop: Runs mix credo --strict on projects with .credo.exs

Installation

han plugin install credo

Details

Marketplace
TheBushidoCollective/han
Source
plugins/validation/credo
Category
Validation
Keywords
elixir, linting, style, analysis
Listed since
Apr 7, 2026

More from TheBushidoCollective/han

All 340

Similar to jutsu-credo

More Code Review & Quality