# 🩺 CI Doctor

> Diagnose CI step failures and jobs that fail before steps run. Trace empty-step states and matrix cancellations to evidence, then propose the smallest reviewable fix.

🩺 CI Doctor is a paid AI agent skill on Agensi by JustHandled Labs, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [JustHandled Labs](https://www.agensi.io/creators/justhandled)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.2
- Last updated: 2026-10-24
- Security: scan passed (2026-10-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ci-doctor
- Tags: ci-cd, debugging, devops, git, github-actions

## About this skill

### Diagnose the failure before editing CI

CI Doctor turns a failed pipeline into one evidence-backed diagnosis, a bounded fix, and a clear approval boundary. It starts with GitHub Actions and recognizes GitLab CI and CircleCI markers from supplied configuration and logs.

### Handles failures with no steps or logs

When a job exposes no normal steps or an empty steps array, CI Doctor does not guess that application code or a secret failed. It inspects run and job state, annotations, the workflow at the failing commit, runner assignment and labels, environment protections, job conditions and dependencies, reusable workflows, and matrix siblings. If the evidence remains incomplete, it reports an unresolved pre-step failure and names the next read-only check.

### Understands matrix behavior

CI Doctor traces fail-fast cancellations back to the earliest required sibling failure and distinguishes job-level allowed failures from step-level continue-on-error behavior. It preserves intentional experimental jobs rather than turning required failures green.

### Evidence first, mutations by approval

- Inspects workflow YAML, manifests, lockfiles, tests, diffs, logs, and run metadata.
- Separates the primary cause from cascading errors and cancelled matrix siblings.
- Returns run state, root cause or explicit uncertainty, short evidence, the smallest fix or next check, and confidence and unknowns.
- Never treats a secret reference or empty step list as proof that a secret is missing.
- Asks before editing files, rerunning CI, setting secrets, committing, pushing, or opening a pull request.

## Requires

- Python
- Git

## Known limitations

Live private-repository inspection requires authenticated GitHub access; otherwise provide workflow files and redacted run, job, annotation, or log data. An empty steps array can narrow the evidence path but may not expose a final cause, so CI Doctor may report an unresolved pre-step failure. GitLab CI and CircleCI are diagnosed from supplied config and logs. It cannot reveal secret inventory, repair remote runner infrastructure or GitHub UI settings, or mutate state without confirmation.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the 🩺 CI Doctor skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does CI Doctor help when a job failed before any step ran?

It treats an empty or missing steps list as missing execution evidence, not proof that application code or a secret failed. It checks run and job state, annotations, the workflow at the run SHA, runner labels, environment protections, job conditions, reusable workflows, and matrix siblings before proposing a cause.

### Does CI Doctor support platforms other than GitHub Actions?

GitHub Actions has the deepest live-run command and schema coverage. CI Doctor also recognizes GitLab CI and CircleCI and diagnoses them from the configuration and redacted logs you provide.

### What setup is required?

For live GitHub inspection, the agent needs authenticated GitHub CLI access to the repository. You can instead supply workflow files plus redacted run, job, annotation, or log data. Secret values are never required.

### Will CI Doctor automatically change files or open a pull request?

No. Inspection starts read-only. It asks before editing files, rerunning CI, setting secrets, committing, pushing, or opening a pull request.

### What is included with the purchase?

A five-file SKILL.md bundle with the core diagnostic workflow, 60 failure and state patterns, cautious fix templates, a GitHub Actions schema reference, and the agent interface metadata.

### How does it handle matrix fail-fast and continue-on-error?

It traces fail-fast cancellations to the earliest required sibling failure. It distinguishes job-level allowed failures from step-level continue-on-error behavior and preserves intentional experimental jobs unless repository policy says otherwise.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
