elixir-quality-gate

Run Mix-based quality checks for Elixir/Phoenix projects.

10|2|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/mkreyman/bmad-elixir --skill elixir-quality-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elixir-quality-gate
Source: https://github.com/mkreyman/bmad-elixir/tree/main/priv/skills/elixir-quality-gate
Command: npx skills add https://github.com/mkreyman/bmad-elixir --skill elixir-quality-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill runs a full quality gate for Elixir projects—formatting, compilation, static analysis, dialyzer, and tests.

Core Features & Use Cases

  • Comprehensive Checks: Runs format, compile, credo, dialyzer, and tests in sequence.
  • Pre-commit Readiness: Suitable for pre-commit or CI checks.
  • Status Reporting: Clear failure messages to guide fixes.

Quick Start

Run the full gate: mix format --check-formatted && mix compile --warnings-as-errors && mix credo --strict && mix dialyzer && mix test.

Frequently Asked Questions about elixir-quality-gate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run quality checks for an Elixir project automatically?

Quality checks for Elixir projects automate formatting, compilation, static analysis, type checking, and tests in a single workflow. This Skill runs mix format, mix compile with warnings-as-errors, mix credo strict mode, mix dialyzer, and mix test sequentially, catching bugs before deployment and providing actionable failure messages.

Can I use a quality gate with pre-commit hooks in Elixir?

Yes, quality gates work with pre-commit hooks to enforce standards before commits reach your repository. This Skill integrates with Git hooks and CI pipelines, running all Mix-based checks locally during development and in deployment workflows to maintain code consistency.

What does Credo strict analysis do for Elixir code?

Credo strict analysis performs static analysis on Elixir code to detect code quality issues, inconsistencies, and potential bugs beyond basic compilation errors. Running mix credo --strict as part of a quality gate ensures stricter adherence to code quality standards before code moves forward.

How do I catch type errors in Elixir before runtime?

Dialyzer performs static type checking on Elixir code to identify type mismatches and potential runtime errors before execution. Including mix dialyzer in your quality gate workflow catches type inconsistencies early alongside formatting, compilation, and test failures.

What's the best way to enforce code formatting and compilation warnings in Elixir CI?

Enforce formatting and compilation standards by running mix format --check-formatted and mix compile --warnings-as-errors in your CI pipeline. This Skill combines these checks with tests and static analysis, treating warnings as failures to maintain consistent code quality across deployments.