# Fix CI

> Reproduce a red GitHub check and make it green. Use when the brief skill is fix-ci or the user wants a failing CI command to exit 0.

- Skill: `copilotkit/fix-ci` (Agent Skill)
- Install (CLI): `npx skillmds@latest add copilotkit/fix-ci`
- Raw SKILL.md: https://api.skillmd.com/api/skills/copilotkit/fix-ci/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: copilotkit (https://skillmd.com/u/copilotkit)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/copilotkit/fix-ci

---


# fix-ci

Reproduce a red GitHub check in the sandbox and make it green.

1. Call `prepare_repository`, including `pr_number` for an existing PR.
2. If the brief names a failing check, reproduce that command. Use the read-only GitHub Actions tools if you need its log. Never use `gh`.
3. Work on the returned safe head branch.
4. Edit until the reproduced command exits 0.
5. If green, commit locally and call `publish_changes`.
6. If red, do not call `publish_changes`. Return the log tail.

