gate-fix

Run mix consistency and apply stage-specific fixes to Elixir codebases.

11|Updated Dec 28, 2024
One-click install
npx skills add https://github.com/wadvanced/aurora_uix --skill gate-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gate-fix
Source: https://github.com/wadvanced/aurora_uix/tree/main/.claude/skills/gate-fix
Command: npx skills add https://github.com/wadvanced/aurora_uix --skill gate-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you get your Elixir project passing mix consistency by iteratively running the failing stage and applying safe, mechanical fixes when possible, or producing a concrete refactor plan when human review is required.

Core Features & Use Cases

  • Iterative consistency remediation: Runs mix consistency, detects which pipeline stage failed, and applies the corresponding corrective action.
  • Mechanical fixes with guardrails: Safely repairs common issues (formatting, unused code patterns, targeted credo strict offenses) without changing business logic.
  • Refactor Plan fallback: Stops when only refactor-class issues remain and outputs an actionable plan for user approval.

Quick Start

Run the gate-fix skill to execute mix consistency and either repair mechanical issues automatically or generate a refactor plan when code changes are required.

Frequently Asked Questions about gate-fix

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

FAQPage Schema
How do I fix mix consistency pipeline failures blocking my Elixir CI merges?

To fix mix consistency pipeline failures blocking Elixir CI merges, repeatedly run the pipeline, identify the failing stage, and apply stage-specific mechanical remediation for formatting or credo strict offenses without altering business logic.

Can I automatically resolve Elixir compilation warnings-as-errors without changing logic?

You can automatically resolve Elixir compilation warnings-as-errors by applying safe, mechanical fixes to unused code patterns and formatting, ensuring no business logic changes are made to silence the warnings.

What is a refactor plan for Phoenix credo strict or dialyzer failures?

A refactor plan for Phoenix credo strict or dialyzer failures is an actionable document generated when mechanical fixes are insufficient, detailing necessary code changes for human review and approval.

Does gate-fix work with doctor and dialyzer stages in a fail-fast CI workflow?

Gate-fix works with doctor and dialyzer stages in a fail-fast CI workflow by mapping the last executed failing stage to deterministic actions and applying targeted remediation.

When should I not use automated remediation for Elixir mix consistency errors?

You should not use automated remediation for Elixir mix consistency errors when only refactor-class issues remain, requiring the system to stop and emit STATUS: PLAN_PENDING or STATUS: BLOCKED for human intervention.

What's the best way to handle mix formatting and documentation failures in an Elixir project?

The best way to handle mix formatting and documentation failures in an Elixir project is to iteratively run mix consistency, detect the specific failed stage, and apply the corresponding safe corrective action automatically.