# Fix CI

> Diagnoses and fixes CI failures with the gh CLI. Use when GitHub Actions checks are red and the failing logs need to be fetched, analysed, and resolved.

- Skill: `ryoppippi/fix-ci-3` (Agent Skill)
- Install (CLI): `npx get-skill add ryoppippi/fix-ci-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ryoppippi/fix-ci-3/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ryoppippi (https://skillmd.com/u/ryoppippi)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/ryoppippi/fix-ci-3

---


<!--
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

