← 返回 Skills 市场
daniellummis

GitHub Actions Cancel Waste Audit

作者 Daniel Lummis · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
272
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install github-actions-cancel-waste-audit
功能描述
Audit cancelled and timed-out GitHub Actions runs from JSON exports to surface wasted CI minutes and noisy workflows.
使用说明 (SKILL.md)

GitHub Actions Cancel Waste Audit

Use this skill to quantify wasted GitHub Actions runtime from cancelled or timed-out runs so flaky workflow churn gets fixed before it burns CI budget.

What this skill does

  • Reads one or more GitHub Actions run JSON exports (gh api output)
  • Estimates wasted runtime minutes per run (run_started_at/created_at -> updated_at)
  • Groups waste by repository + workflow + conclusion for fast triage
  • Flags warn/critical waste levels using configurable minute thresholds
  • Supports text and JSON output for terminal checks or dashboards

Inputs

Optional:

  • RUN_GLOB (default: artifacts/github-actions-runs/*.json)
  • TOP_N (default: 20)
  • OUTPUT_FORMAT (text or json, default: text)
  • WARN_WASTED_MINUTES (default: 15)
  • CRITICAL_WASTED_MINUTES (default: 45)
  • FAIL_ON_CRITICAL (0 or 1, default: 0)
  • REPO_MATCH (regex, optional)
  • REPO_EXCLUDE (regex, optional)
  • WORKFLOW_MATCH (regex, optional)
  • WORKFLOW_EXCLUDE (regex, optional)
  • BRANCH_MATCH (regex, optional)
  • BRANCH_EXCLUDE (regex, optional)
  • ACTOR_MATCH (regex, optional)
  • ACTOR_EXCLUDE (regex, optional)
  • CONCLUSION_MATCH (regex, optional, default behavior already includes only cancelled/timed_out)
  • CONCLUSION_EXCLUDE (regex, optional)

Collect run JSON

Single repository:

gh api repos/\x3Cowner>/\x3Crepo>/actions/runs --paginate \
  > artifacts/github-actions-runs/\x3Cowner>-\x3Crepo>.json

Run

Text report:

RUN_GLOB='artifacts/github-actions-runs/*.json' \
WARN_WASTED_MINUTES=20 \
CRITICAL_WASTED_MINUTES=60 \
bash skills/github-actions-cancel-waste-audit/scripts/cancel-waste-audit.sh

JSON output for automation:

RUN_GLOB='artifacts/github-actions-runs/*.json' \
OUTPUT_FORMAT=json \
FAIL_ON_CRITICAL=1 \
bash skills/github-actions-cancel-waste-audit/scripts/cancel-waste-audit.sh

Filter to one repo/workflow family:

RUN_GLOB='artifacts/github-actions-runs/*.json' \
REPO_MATCH='^flowcreatebot/' \
WORKFLOW_MATCH='(test|build)' \
BRANCH_MATCH='^(main|release)' \
bash skills/github-actions-cancel-waste-audit/scripts/cancel-waste-audit.sh

Run with bundled fixtures:

RUN_GLOB='skills/github-actions-cancel-waste-audit/fixtures/*.json' \
bash skills/github-actions-cancel-waste-audit/scripts/cancel-waste-audit.sh

Output contract

  • Exit 0 in reporting mode (default)
  • Exit 1 if FAIL_ON_CRITICAL=1 and at least one run has waste at/above CRITICAL_WASTED_MINUTES
  • In text mode: prints summary and top waste hotspots
  • In json mode: prints summary, grouped stats, and critical run instances
安全使用建议
This skill appears to do exactly what it claims: parse local GitHub Actions run JSON exports and report wasted CI minutes. Before installing or running it, consider: (1) SKILL.md suggests collecting run JSON via `gh api` — using that requires the GitHub CLI and authentication (not required by the script itself). (2) The script reads any files matched by RUN_GLOB, so ensure the glob only matches intended run-export files and not unrelated JSON containing secrets. (3) Run against the provided fixtures first (RUN_GLOB='skills/github-actions-cancel-waste-audit/fixtures/*.json') to verify behavior. (4) Review and, if desired, pin or sandbox where you run the script in case you feed it large or sensitive datasets.
功能分析
Type: OpenClaw Skill Name: github-actions-cancel-waste-audit Version: 1.0.0 The skill is a utility designed to audit GitHub Actions run exports for wasted CI minutes. It processes local JSON files using a Python script (embedded in cancel-waste-audit.sh) to aggregate statistics on cancelled or timed-out workflows. While it accepts user-defined file globs and regex filters, which are standard for this type of tool, there is no evidence of malicious intent, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
Name/description align with the included script and fixtures. One minor mismatch: SKILL.md shows using `gh api` to collect run JSONs (which requires the GitHub CLI and authentication), but the skill's declared required binaries list only `bash` and `python3`. The audit itself operates on local JSON files and does not call out to GitHub at runtime.
Instruction Scope
Runtime instructions and the script operate only on local JSON files matched by RUN_GLOB, apply regex filters, compute durations, and emit text or JSON reports. The script does not read unrelated system files, access external endpoints, or reference undeclared environment secrets.
Install Mechanism
No install spec (instruction-only with a bundled script). Nothing is downloaded or installed by the skill itself.
Credentials
The skill requires no credentials or non-proportional environment access. It uses a number of optional environment variables to control filtering and thresholds; none are secret tokens.
Persistence & Privilege
Skill is not always-enabled and does not request persistent privileges or modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-actions-cancel-waste-audit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-actions-cancel-waste-audit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. - Audits cancelled and timed-out GitHub Actions runs to identify wasted CI minutes from JSON exports. - Groups waste by repository, workflow, and conclusion for efficient triage. - Supports configurable warning and critical minute thresholds with optional workflow/repo/actor filters. - Outputs in either text (for report) or JSON (for integration), with exit code signaling for CI usage. - Requires bash and python3.
元数据
Slug github-actions-cancel-waste-audit
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

GitHub Actions Cancel Waste Audit 是什么?

Audit cancelled and timed-out GitHub Actions runs from JSON exports to surface wasted CI minutes and noisy workflows. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 272 次。

如何安装 GitHub Actions Cancel Waste Audit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-actions-cancel-waste-audit」即可一键安装,无需额外配置。

GitHub Actions Cancel Waste Audit 是免费的吗?

是的,GitHub Actions Cancel Waste Audit 完全免费(开源免费),可自由下载、安装和使用。

GitHub Actions Cancel Waste Audit 支持哪些平台?

GitHub Actions Cancel Waste Audit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GitHub Actions Cancel Waste Audit?

由 Daniel Lummis(@daniellummis)开发并维护,当前版本 v1.0.0。

💬 留言讨论