# Fix CI

> Automatically diagnose and fix CI failures using the gh CLI. Fetches logs from broken GitHub Actions, analyses errors, and applies fixes. Use when this capability is needed.

- Skill: `tomevault-io/fix-ci` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/fix-ci`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/fix-ci/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/fix-ci

---


<!--
Example prompts:
  /fix-ci
-->

Let's fix whatever error we can find in CI using the `gh` CLI.

**Current branch:** `!`git branch --show-current``

**PR check status:**

```
!`gh pr checks 2>/dev/null || echo "No PR found for current branch"`
```

## Steps

1. **Analyse the check status above**: Identify which actions are failing
2. If nothing is broken, bail.
3. Fetch the logs for the broken action using `gh run view <run-id> --log-failed`
4. Make a quick plan on what needs to be fixed
5. Fix the error

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/ryoppippi) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

