Skip to content
Back to skills

Fix Ci

ASecurity

Make the current task's pull request checks pass - read the failing jobs, reproduce locally, fix, push, and repeat until green or truly stuck.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgit

Works with

  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add crashPopeye/layer8 --skill fix-ci --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fix Ci?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fix Ci
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/crashpopeye-fix-ci/badge)](https://www.skillsdirectory.com/skills/crashpopeye-fix-ci)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fix-ci
description: Make the current task's pull request checks pass - read the failing jobs, reproduce locally, fix, push, and repeat until green or truly stuck.
argument-hint: "[check to focus on]"
---

# Fix CI

## 1. Orient

Read `layer8://here` (MCP server `layer8`): `worktree`, `branch`, and `pr`, which holds the PR number, its checks and the log tail of failing jobs. If `refresh-pr` is listed, call it first so the checks are current:

```json
{"ops":[{"target":"here","action":"refresh-pr"}]}
```

Without a `pr` field, use `gh pr checks` and `gh run view <run-id> --log-failed` from the worktree. With no PR at all, tell the user and stop.

## 2. Fix, one round at a time

1. Pick the first failing check. Read its log tail; find the real error, not the last line.
2. Reproduce it locally with the same command CI runs (read the workflow file under `.github/workflows/`).
3. Fix the cause, not the symptom: never skip, delete or loosen a test to get green unless the test itself is wrong, and say so when it is.
4. Run the check locally, then the rest of the suite.
5. Commit, then push with the task's action, or `git push` when it isn't listed:

```json
{"ops":[{"target":"here","action":"push"}]}
```

6. Wait for CI (`gh pr checks --watch`), then start the next round with what is still red.

Stop after 3 rounds without progress, or when the failure is outside the branch (flaky infrastructure, secrets, a broken base branch), and explain what you found.

## 3. Finish

When the PR is merged, set the stage to `Done` (skip it when `set-stage` is not listed on `here` or does not offer that stage):

```json
{"ops":[{"target":"here","action":"set-stage","args":{"stage":"Done"}}]}
```

Tell the user which checks you fixed and how. Then, if `advance` is listed on `here`:

```json
{"ops":[{"target":"here","action":"advance"}]}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.