fix-ci

A command for repeatedly investigating and fixing a failing Buildkite CI build. CI, or continuous integration, automatically builds and tests code when changes are made.

In plain words
What is it for?
Use it with a Buildkite build URL, an open pull request, or a current branch to repair failed builds and update the code.
Why use it?
It provides a defined loop for finding the cause, making a fix, checking the build, and repeating until the build passes or the iteration limit is reached.

Command

Part of the ci-cd-tools plugin — 1 skill, 1 command shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/technicalpickles/pickled-claude-plugins/fix-ci
Clone the repo
git clone --depth 1 https://github.com/technicalpickles/pickled-claude-plugins

Or install ci-cd-tools, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 679 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00040 $0.00679
Opus 5 $0.00020 $0.00340
Sonnet 5 $0.00008 $0.00136
Haiku 4.5 $0.00004 $0.00068

Measured 3d ago against content hash 7546697d87a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fix-ci scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ci-cd-tools/commands/fix-ci.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fix CI Failures

Iteratively fix a failing Buildkite CI run. This command resolves what to fix, then loads the ci-cd-tools:fixing-ci skill to drive the loop (verify locally → push → check → iterate).

Arguments

  • URL (optional): Buildkite build URL to start with
  • If no URL provided, infer from current branch / open PR

Step 1: Resolve the Input

Determine the build to fix using this priority order:

  1. URL argument provided → use it directly. The bktide snapshot tool parses any Buildkite URL.
  2. No URL, current git branch has an open PR → resolve via gh pr view --json number,headRefName, then find the latest failing build for that branch using the buildkite:investigating-builds skill's "Checking Current Branch/PR Status" workflow.
  3. No URL, current branch but no PR → ask the user for either the build URL or the PR number.
  4. Detached HEAD or no clear branch → ask the user.

Once resolved, you have one of: build_url, pr number, or branch name.

Step 2: Optional Tracking Document

For complex or multi-day debugging sessions, offer to create a tracking document:

"Would you like me to create a tracking document for this CI fix session? Useful for multi-day debugging or handoff."

If yes, create docs/plans/ci-fix-<branch-slug>.md with this template:

# CI Fix Workflow: <branch-name>

## Session: <YYYY-MM-DD>

### Initial State
- Branch: `<branch-name>`
- PR: #<pr-number>
- Latest failing build: <build-number> (<N> failures - <brief description>)

---

## Iteration 1: <Title>

**Build:** <number> (<status>)
**Failures:** <count> (<pattern description>)

**Root cause:**
<1-2 sentences>

**Fix:**
<Code changes or commands>

**Verification:**
\`\`\`bash
<local verification commands>
\`\`\`

**Commit:** `<sha>` - "<message>"
**Next build:** <number>

---

## Summary of Issues Fixed

| Build | Issue | Root Cause | Fix |
|-------|-------|------------|-----|
| <num> | <issue> | <cause> | <fix> |

## Next Steps

- [ ] <remaining items if session ends before green>

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 84 lines · 40 tokens per session scan A 7546697d87a4

Subscribe to this mod's changes

fix-ci is a command published in the GitHub repository technicalpickles/pickled-claude-plugins (10 stars, last pushed 5d ago), licensed MIT. It adds 40 tokens to every session and 679 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.