analyze-ci-failure

analyze-ci-failure is a command for Claude Code from rohitg00/awesome-claude-code-toolkit. It costs 15 tokens per session (375 once invoked), scanned A, original, Apache-2.0.

A command for investigating failed continuous integration and delivery (CI/CD) pipeline runs. CI/CD systems automatically build, test, and sometimes deploy code after changes.

In plain words
What is it for?
Use it to investigate build, test, lint, deployment, Docker, dependency, permission, credential, timeout, and environment problems, including possible flaky failures.
Why use it?
It turns lengthy build logs and unclear failure messages into a diagnosis of the failing step and likely root cause.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ci-debugger plugin — 2 commands shipped together

Good fit Use it to investigate build, test, lint, deployment, Docker, dependency, permission, credential, timeout, and environment problems, including possible flaky failures.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/analyze-ci-failure
About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,595 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit

Made for: Claude Code.

Or install ci-debugger, the plugin that ships this one along with the rest of its 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-ci-failure

README.md
[![agentmods](https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/analyze-ci-failure.svg)](https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/analyze-ci-failure)
Your own site
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/analyze-ci-failure"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/analyze-ci-failure.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 375 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00015 $0.00375
Opus 5 $0.00008 $0.00187
Sonnet 5 $0.00003 $0.00075
Haiku 4.5 $0.00002 $0.00038

Measured 8d ago against content hash e3a6a6c00ae2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

analyze-ci-failure 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 8d 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-debugger/commands/analyze-ci-failure.md · 38 lines

What it actually says

/analyze-ci-failure - Analyze CI/CD Failure

Analyze and diagnose a CI/CD pipeline failure.

Steps

  1. Identify the CI/CD platform: GitHub Actions, GitLab CI, CircleCI, Jenkins, Azure DevOps
  2. Locate the failed pipeline run from logs, URL, or recent git push
  3. Retrieve the full build log output for the failed step
  4. Identify the exact failure point: which step, which command, which line
  5. Classify the failure type: build error, test failure, lint error, deployment error, infra issue
  6. Extract the error message and relevant stack trace
  7. Check if the failure is flaky by reviewing recent run history for the same job
  8. Analyze the error against common CI failure patterns:
    • Dependency installation failures (network, version conflicts)
    • Test timeouts or resource exhaustion
    • Docker build failures (layer caching, missing base image)
    • Permission or credential issues
  9. Check for environment differences between local and CI
  10. Suggest specific fixes with code changes or configuration updates
  11. If the fix requires a pipeline config change, show the exact diff
  12. Provide a confidence level for the diagnosis and suggested fix

Rules

  • Focus on the root cause, not symptoms (a test timeout may be caused by a resource leak)
  • Check for recent changes to the CI config file that may have introduced the failure
  • Consider caching issues: suggest clearing cache if the error is inconsistent
  • Check if the failure only occurs on CI (environment-specific issue)
  • Look for secret or credential expiration as a common cause
  • Do not expose secret values in the analysis output
  • Suggest adding better error handling to prevent obscure failures
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. 8d ago First seen · 38 lines · 15 tokens per session scan A e3a6a6c00ae2

Subscribe to this mod's changes

analyze-ci-failure is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,595 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 375 once invoked, about $0.0001 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-30.