← 返回
数据分析 中文

CI Whisperer

Analyze GitHub Actions failures and propose fixes. Use when a user shares a failing GitHub Actions run URL/id, says 'CI is failing', asks 'why did this workf...
分析 GitHub Actions 失败原因并提出修复建议。适用于用户分享失败的运行链接/ID、报告 CI 失败或询问工作流失败原因时。
martok9803
数据分析 clawhub v0.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 918
下载
💾 18
安装
1
版本
#latest

概述

CI Whisperer

Fetch GitHub Actions run details, pinpoint the failure, and propose a minimal fix.

This skill is meant to feel like a senior engineer doing a fast “CI autopsy”.

Modes

Read-only mode (default)

  • Collect evidence, explain root cause, propose fixes.
  • No pushes, no PRs, no branch creation.

PR fix mode (opt-in)

PR fix mode is allowed only when both are true:

1) The user explicitly asks to open a PR.

2) A local toggle is enabled (the “on/off button”):

  • env var: CI_WHISPERER_WRITE=1

If the toggle is not enabled, refuse politely and explain how to enable it.

Workflow

1) Identify target run

Accept any of:

  • workflow run URL
  • run id
  • PR number (then locate latest run)

Always determine:

  • owner/repo
  • run id

If the user didn’t specify the repo, ask for it (or infer from context).

2) Gather evidence (tool-backed)

Prefer deterministic tooling. Use /usr/bin/gh when the system has multiple gh binaries.

Suggested commands:

  • gh run view --repo owner/repo --json status,conclusion,createdAt,updatedAt,event,headBranch,headSha,url,name
  • gh run view --repo owner/repo --log-failed
  • gh run view --repo owner/repo --log (only if needed; can be noisy)

If gh is not authenticated, stop and ask the user to run:

  • /usr/bin/gh auth login

3) Produce a "CI Autopsy" report

Return:

  • failing job(s) and step(s)
  • the exact error excerpt (short; redact secrets)
  • likely root cause(s) ranked
  • minimal fix options
  • confidence level

4) (Optional) Open a PR (only with explicit approval + write toggle)

If the user asks to fix it and CI_WHISPERER_WRITE=1:

  • create a branch
  • apply minimal changes
  • run local lint/tests if available
  • open PR with a clear description and link to the failing run

If the user asks but write mode is OFF:

  • provide the patch/diff instructions, but do not push.

Safety

  • Never print tokens.
  • Don’t open PRs or push changes unless explicitly requested.
  • If logs contain secrets, redact before quoting.

Bundled scripts

Use scripts for repeatable fetching and parsing:

  • scripts/ci_autopsy.py (fetch run metadata + failed logs)

版本历史

共 1 个版本

  • v0.2.0 当前
    2026-03-29 08:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,859
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 366 📥 139,963
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 162 📥 59,675