← 返回 Skills 市场
CI Flake Triage
作者
Daniel Lummis
· GitHub ↗
· v1.0.0
280
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ci-flake-triage
功能描述
Detect flaky tests from JUnit XML retries and emit a triage report with top unstable cases.
使用说明 (SKILL.md)
CI Flake Triage
Use this skill to turn noisy JUnit retry artifacts into a focused flaky-test report.
What this skill does
- Reads one or more JUnit XML files (for example: first run + rerun artifacts)
- Aggregates status per test case (
passed,failed,skipped,error) - Flags flaky candidates when a test has both fail-like and pass outcomes
- Separates persistent failures from flaky failures
- Prints top flaky tests to prioritize stabilization work
Inputs
Optional:
JUNIT_GLOB(default:test-results/**/*.xml)TRIAGE_TOP(default:20)OUTPUT_FORMAT(textorjson, default:text)FAIL_ON_PERSISTENT(0or1, default:0) — exit non-zero when persistent failures existFAIL_ON_FLAKE(0or1, default:0) — exit non-zero when flaky candidates exist
Run
Text report:
JUNIT_GLOB='artifacts/junit/**/*.xml' \
TRIAGE_TOP=15 \
bash skills/ci-flake-triage/scripts/triage-flakes.sh
JSON output for CI ingestion:
JUNIT_GLOB='artifacts/junit/**/*.xml' \
OUTPUT_FORMAT=json \
FAIL_ON_PERSISTENT=1 \
bash skills/ci-flake-triage/scripts/triage-flakes.sh
Run with bundled fixtures:
JUNIT_GLOB='skills/ci-flake-triage/fixtures/*.xml' \
bash skills/ci-flake-triage/scripts/triage-flakes.sh
Output contract
- Exit
0when no fail gates are enabled (default) - Exit
1ifFAIL_ON_PERSISTENT=1and persistent failures are found - Exit
1ifFAIL_ON_FLAKE=1and flaky candidates are found - In
textmode, prints summary + top flaky + persistent failures - In
jsonmode, prints machine-readable summary and testcase details
安全使用建议
This skill appears coherent and safe for use: it only reads JUnit XML files (based on the provided JUNIT_GLOB), parses them with Python, and emits reports. Before running in CI, confirm the JUNIT_GLOB only matches the intended test artifacts (it can read any files the glob matches). No network calls or credential access are present, so there is no obvious data exfiltration risk from the skill itself.
功能分析
Type: OpenClaw Skill
Name: ci-flake-triage
Version: 1.0.0
The skill is a legitimate utility designed to analyze JUnit XML test results and identify flaky tests in CI pipelines. It uses a bash wrapper (scripts/triage-flakes.sh) to execute an inline Python script that aggregates test statuses and generates triage reports. The code performs basic input validation, lacks any network or exfiltration capabilities, and its behavior is entirely consistent with its stated purpose.
能力评估
Purpose & Capability
The name/description (CI Flake Triage) aligns with the included script and SKILL.md: both parse JUnit XML, aggregate statuses, classify flaky vs persistent failures, and emit text or JSON reports. Required binaries (bash, python3) are appropriate for the provided shell+Python implementation.
Instruction Scope
SKILL.md instructs the agent to run the bundled script against a JUnit file glob. The script only reads files matched by the glob, parses XML, and prints/returns results. It does not reference unrelated system paths, environment secrets, or external endpoints.
Install Mechanism
There is no install spec (instruction-only plus bundled script). Nothing is downloaded or written to disk beyond running the included script; this is low-risk and proportionate.
Credentials
The skill requests no environment variables or credentials by default. Optional runtime variables (JUNIT_GLOB, TRIAGE_TOP, OUTPUT_FORMAT, FAIL_ON_PERSISTENT, FAIL_ON_FLAKE) are reasonable and scoped to the task.
Persistence & Privilege
The skill does not request persistent presence (always:false) and does not modify other skills or system config. Autonomous invocation is allowed (platform default) but combined with the script's limited scope this is not a concern.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ci-flake-triage - 安装完成后,直接呼叫该 Skill 的名称或使用
/ci-flake-triage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of ci-flake-triage.
- Detects flaky tests from JUnit XML retries and generates a triage report highlighting unstable cases.
- Aggregates and flags tests with both failing and passing outcomes.
- Separates persistent failures from flaky failures for clearer prioritization.
- Supports configurable report format (text or JSON) and result filtering.
- Includes options to control CI exit behavior based on failures or flakes.
- Provides easy-to-run scripts and bundled fixtures for testing.
元数据
常见问题
CI Flake Triage 是什么?
Detect flaky tests from JUnit XML retries and emit a triage report with top unstable cases. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 280 次。
如何安装 CI Flake Triage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ci-flake-triage」即可一键安装,无需额外配置。
CI Flake Triage 是免费的吗?
是的,CI Flake Triage 完全免费(开源免费),可自由下载、安装和使用。
CI Flake Triage 支持哪些平台?
CI Flake Triage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 CI Flake Triage?
由 Daniel Lummis(@daniellummis)开发并维护,当前版本 v1.0.0。
推荐 Skills