AN

analyze-ci

It retrieves and parses failed CI logs to summarize specific errors and failing test cases.

Install

mkdir -p .claude/skills/analyze-ci && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2952" && unzip -o skill.zip -d .claude/skills/analyze-ci && rm skill.zip

Installs to .claude/skills/analyze-ci

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Analyze failed GitHub Action jobs for a pull request.
53 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Fetch logs from failed GitHub Action jobs
  • →Identify root causes and specific error messages
  • →Extract pytest test names from logs
  • →Generate per-job failure summaries
  • →Provide paths to raw and failed-step logs

How it works

The skill fetches logs using a package-specific command and then parses the failed-step log to identify root causes and error details.

Inputs & outputs

You give it
URL of a failed GitHub Action job, workflow run, or pull request
You get back
A focused summary containing workflow name, failed step, error context, and log paths

When to use analyze-ci

  • →Debug failing pull request CI jobs
  • →Summarize root causes of test failures
  • →Identify package version issues in builds

About this skill

Analyze CI Failures

Fetch logs from failed GitHub Action jobs and produce a focused per-job failure summary.

URLs provided: $ARGUMENTS

If no URLs are listed above, ask for a job, run, or PR URL and stop. fetch-logs requires at least one and exits 2 without.

Prerequisites

  • GitHub Token: Auto-detected via gh auth token, or set GH_TOKEN.

Steps

  1. Fetch logs. Run, single-quoting each URL so the shell does not interpret ? or other special characters in it:

    uv run --package skills skills fetch-logs '<url>' ['<url>' ...]
    

    The command saves one raw log per job, preserving timestamps and removing ANSI colors. It prints all failed steps and inclusive, 1-based line ranges in that file, with multiple ranges separated by commas. Absent sections are omitted; no separate section files are created. For example (URL and ranges are illustrative):

    ## Cross-version tests / Python 3.11
    URL: https://github.com/mlflow/mlflow/actions/runs/123/job/456
    Raw log: /tmp/fetch-logs/123/456.log
    Failed step lines: 850-1620, 1800-2100
    Pytest summary lines: 1580-1618, 2060-2098
    Package versions lines: 120-340
    Snapshot changes lines: 350-375
    

    Snapshot changes are located in the existing raw log, not fetched or compared separately.

  2. Read the reported ranges and summarize each failure. For every block, read all Failed step lines: and Pytest summary lines: ranges from the Raw log: file (for example, sed -n '850,1620p' /tmp/fetch-logs/123/456.log), then identify:

    • The root cause.
    • Specific error messages (assertion errors, exceptions, stack traces).
    • Full pytest test names where applicable (e.g. tests/test_foo.py::test_bar).
    • A short log snippet showing the error context.

    If Package versions lines: or Snapshot changes lines: is present, read those ranges in the same raw log too and summarize relevant package changes alongside the failure, including the baseline run link when available. Changes use uv's Updated name vold -> vnew, Added name vversion, and Removed name vversion format. Treat changes as diagnostic evidence, not proof of the root cause. Report unavailable baselines or comparison errors as such, not as package removals. Do not fetch artifacts or perform another comparison. Older or non-cross-version logs may have no snapshot changes block; analyze them normally. If no failed-step range is available (for example, step timestamps are missing), inspect the raw log directly.

  3. Format each summary with these fields, then a blank line, then the 1-2 paragraph summary.

    • ## <workflow name> / <job name>
    • URL: <job_url>
    • Raw log: <raw_log_path>
    • Failed step lines: <ranges> (if present)
    • Pytest summary lines: <ranges> (if present)
    • Package versions lines: <ranges> (if present)
    • Snapshot changes lines: <ranges> (if present)

    Preserve the Raw log: path and all reported ranges verbatim from step 1 so downstream agents can inspect the same evidence. If no failed step is recorded, preserve the Conclusion: field too.

Invocation examples

# All failed jobs on a PR
/analyze-ci https://github.com/mlflow/mlflow/pull/19601

# All failed jobs in one workflow run
/analyze-ci https://github.com/mlflow/mlflow/actions/runs/22626454465

# Specific job by URL
/analyze-ci https://github.com/mlflow/mlflow/actions/runs/12345/job/67890

# Multiple URLs at once
/analyze-ci https://github.com/mlflow/mlflow/actions/runs/123/job/456 https://github.com/mlflow/mlflow/actions/runs/789/job/012

When not to use it

  • →When the job URL is not for a GitHub Action

Prerequisites

GitHub Token

Limitations

  • →Requires specific URL formats for GitHub Action jobs
  • →Relies on the availability of cached log files

How it compares

Unlike manual log inspection, this skill automatically aggregates failure data and formats it into a structured summary for debugging.

Compared to similar skills

analyze-ci side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
analyze-ci (this skill)15moReviewIntermediate
moai-workflow-testing15moReviewIntermediate
sentry-pr-code-review05moReviewIntermediate
python-testing-patterns775moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry