# Ci babysit

> Ci babysit is an open-source agent skill for developer tools. Runs one bounded round on a draft PR: fixes red CI, merges base conflicts, answers reviews. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tonyghiani/ai-essentials/tree/main/skills/ci-babysit
- **Repository:** https://github.com/tonyghiani/ai-essentials
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** ci-babysit
- **Collection:** https://github.com/tonyghiani/ai-essentials
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

Ci-babysit performs a single, capped pass over a draft pull request the agent opened. Each run reads the PR state and check results, pulls the logs of failing checks, reproduces failures locally before editing, and commits minimal fixes on the agent's own branch. It also merges the base branch in when it conflicts and works through new review comments using a companion review-handling flow. Designed to be repeated by a loop command, it keeps retry counts and recorded lesson links in a small state file so later rounds do not repeat work.

The skill is built with hard limits: it never merges, never marks a PR ready for review, never force pushes, and never posts top-level comments or reviews. It stops after a few fix attempts per round and reports failures it cannot reproduce locally, such as CI-only problems involving secrets or services. It is meant to run under the user's own GitHub CLI login rather than from a cloud routine or GitHub App.

It depends on two companion commands, ai-work and ai-verify, plus the resolve-merge-conflicts and review-pr-comments skills. If those commands are missing, the skill tells the user the setup is incomplete and stops.

## When your agent uses it

> One round of watching a draft PR the agent opened: read CI status, fix red checks on the agent's own branch, merge the base in when it conflicts, and handle review comments with the review-pr-comments flow. Built to run under /loop. Never merges, never marks ready. Use when the user says "babysit this PR", "watch CI", "fix the red build on my draft PR".

## What it can access

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

- [Instructions only, no scripts](https://github.com/tonyghiani/ai-essentials/tree/HEAD/skills/ci-babysit)
- [License: MIT](https://github.com/tonyghiani/ai-essentials/tree/HEAD/skills/ci-babysit)

## Features

- **Red check repair:** Reads failing CI logs, reproduces the failure locally, and commits a minimal fix to the agent's branch.
- **Base conflict merging:** Merges the base branch into the PR branch and resolves conflicts by intent when the PR is conflicting.
- **Review comment handling:** Triages new review comments and hands them to the review-pr-comments flow for replies and resolution.
- **Bounded retry limits:** Caps fix attempts per round and repeated failures, then stops and reports for the user.
- **Safety guardrails:** Refuses to merge, mark ready, force push, or touch default branches or non-agent branches.
- **Lesson recording:** Logs general rules from accepted review comments with routing to the appropriate memory or lint target.

## Good for

- Watch my draft PR and fix whatever CI check is failing
- Merge main into my draft branch because it has conflicts
- Respond to the new review comments on my agent-opened PR
- Run another round of checks on this PR until everything is green

## Install

### Claude Code

This skill ships in the `ai-essentials` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add tonyghiani/ai-essentials
/plugin install ai-essentials@ai-essentials
```

Or copy only this skill to `~/.claude/skills/ci-babysit`:

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/ci-babysit` 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/tonyghiani/ai-essentials.git --path skills/ci-babysit
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git
```

Then copy `ai-essentials/skills/ci-babysit` into your agent's skills folder as `ci-babysit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Ci babysit trigger?

It triggers when the user says things like "babysit this PR", "watch CI", or "fix the red build on my draft PR".

### Can Ci babysit merge or mark the PR ready?

No. It never merges, never marks the PR ready, never force pushes, and never pushes to a default branch.

### What does Ci babysit need to run?

It runs locally with the user's own gh login and calls the ai-work and ai-verify commands. If those are not installed, it stops.

### What happens if a failure only occurs in CI?

If the failure cannot be reproduced locally, the skill reports the log excerpt and stops rather than guessing a fix.

### How do I install Ci babysit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ci-babysit to use it in all your projects, or to .claude/skills/ci-babysit in one project. Or install the ai-essentials plugin, which includes it: /plugin marketplace add tonyghiani/ai-essentials, then /plugin install ai-essentials@ai-essentials.

### Does Ci babysit 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 Ci babysit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Ci babysit?

The closest alternatives to Ci babysit are Babysit, Iterate PR, Fix ci, Fix ci and Babysit.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Babysit](https://ai-powered.com/skills/babysit): Babysit is an open-source agent skill for developer tools.
- [Iterate PR](https://ai-powered.com/skills/iterate-pr): Iterate PR is an open-source agent skill for developer tools.
- [Fix ci](https://ai-powered.com/skills/fix-ci-fumiya-kume): Fix ci is an open-source agent skill for developer tools.
- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.
- [Babysit](https://ai-powered.com/skills/babysit-ivy00johns): Babysit is an open-source agent skill for developer tools.
- [Loop on ci](https://ai-powered.com/skills/loop-on-ci): Loop on ci is an open-source agent skill for developer tools.
- [Merge PR](https://ai-powered.com/skills/merge-pr): Merge PR is an open-source agent skill for developer tools.
- [Fix PR](https://ai-powered.com/skills/fix-pr): Fix PR is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/ci-babysit
