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.zipInstalls 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.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
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 setGH_TOKEN.
Steps
-
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-375Snapshot changes are located in the existing raw log, not fetched or compared separately.
-
Read the reported ranges and summarize each failure. For every block, read all
Failed step lines:andPytest summary lines:ranges from theRaw 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:orSnapshot 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'sUpdated name vold -> vnew,Added name vversion, andRemoved name vversionformat. 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. -
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 theConclusion: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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| analyze-ci (this skill) | 1 | 5mo | Review | Intermediate |
| moai-workflow-testing | 1 | 5mo | Review | Intermediate |
| sentry-pr-code-review | 0 | 5mo | Review | Intermediate |
| python-testing-patterns | 77 | 5mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by mlflow
View all by mlflow →You might also like
moai-workflow-testing
modu-ai
Comprehensive development workflow specialist combining DDD testing, debugging, performance optimization, code review, PR review, and quality assurance into unified development workflows
sentry-pr-code-review
richardadonnell
Review a project's PRs to check for issues detected in code review by Seer Bug Prediction. Use when asked to review or fix issues identified by Sentry in PR comments, or to find recent PRs with Sentry feedback.
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
error-handling-patterns
wshobson
Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.
codex-claude-loop
bear2u
Orchestrates a dual-AI engineering loop where Claude Code plans and implements, while Codex validates and reviews, with continuous feedback for optimal code quality
shellcheck-configuration
wshobson
Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.