analyze-ci

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Analyze CI Failures

分析CI失败情况

This skill analyzes logs from failed GitHub Action jobs using Claude.
本Skill使用Claude分析GitHub Action失败任务的日志。

Prerequisites

前提条件

  • GitHub Token: Auto-detected via
    gh auth token
    , or set
    GITHUB_TOKEN
    env var
  • GitHub Token:通过
    gh auth token
    自动检测,或设置
    GITHUB_TOKEN
    环境变量

Usage

使用方法

bash
undefined
bash
undefined

Analyze all failed jobs in a PR

分析PR中所有失败的任务

uv run skills analyze-ci <pr_url>
uv run skills analyze-ci <pr_url>

Analyze specific job URLs directly

直接分析特定任务URL

uv run skills analyze-ci <job_url> [job_url ...]
uv run skills analyze-ci <job_url> [job_url ...]

Show debug info (tokens and costs)

显示调试信息(令牌和成本)

uv run skills analyze-ci <pr_url> --debug

Output: A concise failure summary with root cause, error messages, test names, and relevant log snippets.
uv run skills analyze-ci <pr_url> --debug

输出内容:包含根本原因、错误信息、测试名称和相关日志片段的简洁失败总结。

Examples

示例

bash
undefined
bash
undefined

Analyze CI failures for a PR

分析某PR的CI失败情况

Analyze specific job URLs directly

直接分析特定任务URL