# Diagnose ci gate

> Diagnose ci gate is an open-source agent skill. Determine whether a failing CI check was caused by the current change, then recommend exactly one action. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/github/awesome-copilot/tree/main/skills/diagnose-ci-gate
- **Repository:** https://github.com/github/awesome-copilot
- **GitHub stars:** 41,254
- **License:** MIT
- **Skill name:** diagnose-ci-gate
- **Collection:** https://github.com/github/awesome-copilot
- **Listing updated:** 2026-11-17

## About

Determine whether a failing CI check was caused by the current change, then recommend exactly one action. Use when a required check fails on a pull request, when asked "is this failure mine?", when a job passes locally but fails in CI, or before retrying a red build. Covers fetching the real log, reading the first error instead of the tail, classifying bug / flaky / environment / pipeline, comparing against the base branch and recent runs, reproducing with CI versions, and fixing a flaky test rather than re-running it forever.

## When your agent uses it

> Determine whether a failing CI check was caused by the current change, then recommend exactly one action. Use when a required check fails on a pull request, when asked "is this failure mine?", when a job passes locally but fails in CI, or before retrying a red build. Covers fetching the real log, reading the first error instead of the tail, classifying bug / flaky / environment / pipeline, comparing against the base branch and recent runs, reproducing with CI versions, and fixing a flaky test rather than re-running it forever.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/github/awesome-copilot/tree/HEAD/skills/diagnose-ci-gate)
- [License: MIT](https://github.com/github/awesome-copilot/tree/HEAD/skills/diagnose-ci-gate)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/diagnose-ci-gate` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/diagnose-ci-gate &&
cp -R "$tmp/skills/diagnose-ci-gate" ~/.claude/skills/diagnose-ci-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/diagnose-ci-gate` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/diagnose-ci-gate` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/diagnose-ci-gate &&
cp -R "$tmp/skills/diagnose-ci-gate" ~/.agents/skills/diagnose-ci-gate &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/diagnose-ci-gate` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/diagnose-ci-gate` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/diagnose-ci-gate &&
cp -R "$tmp/skills/diagnose-ci-gate" ~/.cursor/skills/diagnose-ci-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/diagnose-ci-gate` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/github/awesome-copilot.git --path skills/diagnose-ci-gate
```

Or copy the folder to `~/.gemini/skills/diagnose-ci-gate` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/diagnose-ci-gate`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/diagnose-ci-gate &&
cp -R "$tmp/skills/diagnose-ci-gate" ~/.copilot/skills/diagnose-ci-gate &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/diagnose-ci-gate` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/github/awesome-copilot.git
```

Then copy `awesome-copilot/skills/diagnose-ci-gate` into your agent's skills folder as `diagnose-ci-gate`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Diagnose ci gate in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/diagnose-ci-gate to use it in all your projects, or to .claude/skills/diagnose-ci-gate in one project.

### Does Diagnose ci gate run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Diagnose ci gate?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

---
Source: https://ai-powered.com/skills/diagnose-ci-gate
