Skip to content

Elixir static analysis plugin that wires Credo's style checks into Claude Code sessions.

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, credo-custom-checks) and a hooks.json hook for Credo runs
  • Covers setup and priority levels, fixes for common check issues, and authoring project-specific custom checks
  • Runs mix credo --strict on Stop and SubagentStop events when the project has a .credo.exs file
  • Designed for Elixir projects that need customized code quality rules and consistent style enforcement

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 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

Questions

What does the credo plugin add to Claude Code?

The credo plugin gives Claude Code skills for Elixir code analysis and style checking. Its skills cover credo-configuration for setup and priority levels, credo-checks for common issues and fixes, and credo-custom-checks for project-specific checks. It also adds a Stop and SubagentStop hook that runs mix credo --strict on projects with a .credo.exs file.

How do I install the credo plugin?

Run /plugin marketplace add TheBushidoCollective/han and then /plugin install credo@han inside Claude Code. These commands register the han marketplace and then install the credo plugin from it. Once installed, the plugin's Elixir checks and Credo hook are available in Claude Code sessions.

Which plugins lead the Code Review & Quality category, and where does credo stand?

Credo sits in the Code Review & Quality category alongside code-review, pr-review-toolkit, open-code-review, and code-modernization. Its focus is narrower than those, centered on Elixir linting and style checks with Credo. It is the plugin to reach for when your project is written in Elixir and uses Credo.

More from TheBushidoCollective/han

All 340