Analyze CI Failure

Download and analyze a CI failure log to construct an actionable suggested fix plan and report back

bazelbuild Updated

File contents

When a CI monitoring workflow alerts you to a failed Buildkite job or GitHub check, invoke this skill by running:

./.agents/skills/analyze-ci-failure/scripts/analyze_ci_failure.py \
  "<job_name>" "<build_id_or_log_url>" "<job_id>" "<your_conversation_id>"

✨ What this Skill Does

  1. Resolves Log: Automatically resolves the Buildkite job download URL or fetches GitHub Actions logs via gh CLI.
  2. Downloads & Ingests: Fetches the full raw CI log file and saves it locally to .agents/skills/analyze-ci-failure/scratch/.
  3. Smart Error Extraction: Scans log lines for critical failure signatures (Traceback, ERROR:, FAILED:, missing packages, compiler aborts, linter errors).
  4. Fix Plan Synthesis: Constructs a beautifully structured Markdown suggested plan on how to resolve the root cause.
  5. Natively Notifies: Dispatches a high-priority summary notification message back to your active agent conversation via agentapi send-message.

bazelbuild/rules_python/tree/main/.agents/skills/analyze-ci-failure commit 0af8a92fb1

Frequently asked questions

npx skillmds@latest add bazelbuild/analyze-ci-failure