Skip to content
Back to skills

Coding

ASecurity

Fix a failing CI run: read the log, find the first root cause (lint, types, test, build), apply a minimal change and verify it locally. Use when CI is red, a build is broken, or a lint, type or test job fails.

  • 24 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 14, 2026
ai-agentstypescriptrustgogit

Works with

  • terminal

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill coding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-coding-f9e801f1/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-coding-f9e801f1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ci-autofix
description: "Fix a failing CI run: read the log, find the first root cause (lint, types, test, build), apply a minimal change and verify it locally. Use when CI is red, a build is broken, or a lint, type or test job fails."
triggers: [ci failed, build broken, test failed, lint error, fix ci, auto-fix]
tags: [coding]
context_cost: high
---
# CI Auto-Fix Skill

## Goal
Restore the "Green Build" state by autonomously fixing common CI failures.

## Flow

### Steps
## 1. Log Analysis
**Input**: CI Failure Log / Terminal Output
**Action**: Identify the *first* failure type.
*   **Linting**: Prettier/ESLint errors? (e.g., "Missing semicolon", "Unused var").
*   **Type Check**: TypeScript/MyPy errors? (e.g., "Type 'string' is not assignable to type 'number'").
*   **Unit Test**: Assertion failure? (e.g., "Expected 200, got 500").
*   **Build**: Webpack/Rustc error? (e.g., "Module not found").

### 2. Diagnosis & Strategy
*   **Pattern Matching**:
    *   `TS2322` -> Fix type definition or cast.
    *   `Module not found` -> Check `package.json` or import path.
    *   `AssertionError` -> Read test case vs implementation (Review `spec.md`).

### 3. Auto-Remediation Loop
1.  **Isolate**: Create a temporary fix branch (optional) or stash.
2.  **Fix**: Apply the code change.
3.  **Local Verify**: Run the specific failing command locally (e.g., `npm run lint`).
    *   *If Pass*: Commit and push only if the human asked for that in this request. Otherwise leave the changes in the working tree and report.
    *   *If Fail*: Retry with "Self-Correction" context (feed error back to LLM).

### 4. Safety
*   **Max Retries**: 5 attempts per failure, the same cap as `self-heal.skill`.
*   **Escalation**: If auto-fix fails 5 times, alert Human with "Request for Intervention".

## Constraints
- Fix the first failure only, then re-run the failing command before looking at the next one.
- At most 5 attempts per failure; then escalate.

## Output Format
The fix in the working tree and a report: failure type, root cause, files changed and the output of the local verification command; or the "Request for Intervention" after 5 failed attempts.

## Limits and safety
- At most 5 attempts per failure, as in `self-heal.skill`; then stop and give the human the log excerpt, the fixes tried and the suspected cause.
- Change implementation code only: never remove or weaken an assertion, add `.skip`, or lower coverage to get green.
- Do not change dependency versions, lockfiles or CI configuration files (`.github/workflows`, `.gitlab-ci.yml`) without the human's approval.
- Remove secrets and environment values from log text before you quote it, analyse it or put it in a report.
- If the log does not show a clear root cause (timeouts, differences between local and CI), stop and report; do not guess a fix.

Files in this skill

  • agent-trajectory-eval.skill.md5.7 KB
  • artisan-commands.skill.md3.7 KB
  • browser-tdd.skill.md7 KB
  • chaos-fault-injection.skill.md8.1 KB
  • ci-autofix.skill.md4.2 KB
  • clean-coder.skill.md4.5 KB
  • code-review.skill.md6.1 KB
  • debug.skill.md6.5 KB
  • documentation.skill.md7.3 KB
  • eval-driven-development.skill.md6.9 KB
  • evals/code-review.eval.yaml1 KB
  • excalidraw.skill.md3.7 KB
  • file-processing.skill.md4.3 KB
  • git-workflow.skill.md7.2 KB
  • metamorphic-testing.skill.md7.8 KB
  • mobile-dev.skill.md4.2 KB
  • nodejs-expert.skill.md1.6 KB
  • output-validation.skill.md5.4 KB
  • pbt-strategy.skill.md8 KB
  • performant-ai.skill.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.