CI Failure Fixer for Openclaw

A specialized automation skill that monitors GitHub Actions, diagnoses build logs, and automatically applies fixes for common CI failures.

danielgrobelny
v1.0.0
Mar 24, 2026
0
760
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ci-failure-fixer

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ci-failure-fixer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is CI Failure Fixer?

The CI Failure Fixer is a powerful addition to the Openclaw Skills library designed to reduce developer toil by handling the first line of defense in CI/CD pipelines. It proactively monitors GitHub repositories for failed workflows, interprets raw build logs using the GitHub CLI, and executes automated remediation strategies for frequent issues like dependency mismatches or linting errors.

By integrating this skill into your workflow, you ensure that your main branch remains stable without manual intervention for trivial breaks. For complex issues that require human intuition, the skill provides a detailed diagnosis, allowing developers to jump straight into the fix rather than digging through megabytes of logs.

CI Failure Fixer Use Cases

  • Automatically updating test snapshots in Playwright or Vitest when UI changes are intentional.
  • Fixing transient dependency resolution errors in npm or yarn environments.
  • Maintaining code quality by auto-fixing ESLint or Prettier formatting violations discovered during CI.
  • Reducing the time-to-fix for E2E testing pipelines in active development branches.

How CI Failure Fixer Works

  1. The script polls designated GitHub repositories for the latest workflow run statuses using the GitHub CLI.
  2. Upon detecting a failure, it retrieves the comprehensive build logs via the gh run view command.
  3. The skill parses the logs against a library of known fix patterns to identify the root cause.
  4. If a match is found (e.g., a lint error), it executes the corresponding fix script and pushes the changes back to the repository.
  5. It monitors the subsequent CI run after a brief delay to verify the fix and reports the final status to the user.

CI Failure Fixer Setup

Ensure you have the GitHub CLI (gh) installed and authenticated. Then, you can run the fixer on-demand or schedule it as a cron job.

# Install/Authenticate GH CLI
gh auth login

# Run on-demand
bash scripts/check-ci-failures.sh

To configure specific repositories, set the environment variables:

export GITHUB_OWNER="your-username"
export CI_REPOS="repo1 repo2 repo3"

CI Failure Fixer Data Schema & Taxonomy

The skill manages state and pattern matching through organized JSON and Markdown files to ensure persistence and extensibility.

Component Description
CI_STATE_FILE A JSON file tracking the timestamps of the last checked runs to prevent duplicate processing.
fix-patterns.md A reference document containing the decision tree and regex patterns for error detection.
scripts/ Contains the core logic for polling (check-ci-failures.sh) and specific remediation scripts.

CI Failure Fixer Advanced Features

  • Multi-repo auto-discovery for large organizations using Openclaw Skills.
  • Intelligent wait-and-verify loops to confirm fix success before closing the task.
  • Support for low-cost LLM integration (like Claude Haiku) for cost-efficient log interpretation.
  • Extensible pattern matching for custom internal build tools and proprietary error codes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*