analyze-ci — скилл для Claude Code: анализ и установка
Скилл analyze-ci для Claude Code разбирает сбои GitHub Actions и связывает ошибки с их причинами. Запускается по URL job, workflow run или PR.
Apache-2.0 ★ 28 925 обновлён 2026-11-11
npx skills add mlflow/mlflow --skill analyze-ci -a claude-codeЧто делает analyze-ci
analyze-ci работает в Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Скилл принимает URL задания, запуска или pull request в GitHub Actions, получает логи всех упавших job и делает отдельное резюме для каждой.
В отчёте сохраняются URL job, путь к сырому логу и диапазоны строк с ошибками. Скилл читает сообщения исключений, stack trace, имена тестов и контекст сбоя; при наличии также учитывает версии пакетов и изменения snapshot. Для загрузки логов нужен токен GitHub: его можно передать через gh auth token или переменную GH_TOKEN. Без токена логи не загрузятся.
Какие задачи решает
- разобрать падение GitHub Actions по URL job
- найти корневую причину ошибки в CI-логе
- сопоставить сбой с конкретным тестом и stack trace
- проверить изменения версий пакетов рядом с падением
- сохранить диапазоны строк для повторного анализа
Примеры запросов агенту
/analyze-ci https://github.com/mlflow/mlflow/pull/19601— разберись со всеми упавшими job в этом PR/analyze-ci https://github.com/mlflow/mlflow/actions/runs/22626454465— собери причины сбоев этого запуска/analyze-ci https://github.com/mlflow/mlflow/actions/runs/12345/job/67890— проанализируй конкретную job и укажи строки лога
Как установить analyze-ci
1Через Skills CLI (Vercel)
npx skills add mlflow/mlflow --skill analyze-ci -a claude-code2Вручную: положить файлы
~/.claude/skills/analyze-ci/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/analyze-ci/
1Через Skills CLI (Vercel)
npx skills add mlflow/mlflow --skill analyze-ci -a codex2Вручную: положить файлы
.agents/skills/analyze-ci/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add mlflow/mlflow --skill analyze-ci -a cursor2Вручную: положить файлы
.cursor/skills/analyze-ci/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install mlflow/mlflow .claude/skills/analyze-ci2Вручную: положить файлы
.github/skills/analyze-ci/SKILL.md1Через Skills CLI (Vercel)
npx skills add mlflow/mlflow --skill analyze-ci -a gemini-cli2Командой платформы
gemini skills install https://github.com/mlflow/mlflow --path .claude/skills/analyze-ciВручную: положить файлы
.devin/skills/analyze-ci/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add mlflow/mlflow --skill analyze-ci -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об analyze-ci
Как установить analyze-ci в Claude Code?
Выполните npx skills add mlflow/mlflow --skill analyze-ci -a claude-code. Файл скилла появится по пути ~/.claude/skills/analyze-ci/SKILL.md.
Что делает analyze-ci?
Скилл получает логи упавших job GitHub Actions по URL job, workflow run или PR. Он выделяет корневую причину, сообщения ошибок, имена тестов и пути к логам.
Что нужно для работы analyze-ci?
Нужен токен GitHub: скилл находит его через gh auth token или берёт из GH_TOKEN. Без токена загрузка логов не выполнится.
Исходный текст
SKILL.md · Apache-2.0
--- name: analyze-ci description: Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root cause and log paths. when_to_use: When CI is red or a check failed, when the user pastes a GitHub Actions job or run URL, or when asked why a PR's checks are failing. argument-hint: "url(s) of failed GitHub Action jobs, workflow runs, or PRs" --- # 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: ```bash 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): ```text ## 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 ```bash # 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 ```
© mlflow · Apache-2.0 · mlflow/mlflow