Skip to content
Back to skills

Benchmark E2e

ASecurity

Benchmarks end-to-end ML execution quality across multiple modes (no-plugin/manual, plugin-driven, and AutoGluon-backed AutoML). Automatically identifies exactly one dataset scenario (hard-fraud, hard-readmission, or xhard-churn) and runs the benchmark against that single scenario. Use when asked to compare E2E workflows, measure agent reliability/cost/speed, or recommend which skills should be used for the detected scenario.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
data-aigobashgit

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add lawwu/agentic-ml-plugin --skill benchmark-e2e --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Benchmark E2e?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Benchmark E2e
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lawwu-benchmark-e2e/badge)](https://www.skillsdirectory.com/skills/lawwu-benchmark-e2e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: benchmark-e2e
description: Benchmarks end-to-end ML execution quality across multiple modes (no-plugin/manual, plugin-driven, and AutoGluon-backed AutoML). Automatically identifies exactly one dataset scenario (hard-fraud, hard-readmission, or xhard-churn) and runs the benchmark against that single scenario. Use when asked to compare E2E workflows, measure agent reliability/cost/speed, or recommend which skills should be used for the detected scenario.
argument-hint: "[--modes no-plugin,plugin,automl|autogluon] [--scenario auto|hard-fraud|hard-readmission|xhard-churn] [--dataset PATH] [--label-col COLUMN] [--metric METRIC] [--runs N] [--out-dir DIR]"
disable-model-invocation: true
---

# Benchmark E2E

Run a structured benchmark of end-to-end ML execution paths and produce a comparable scorecard.

## Invocation

Arguments (`$ARGUMENTS`) are interpreted as:

- `--modes` — benchmark targets; default: `no-plugin,plugin,automl` (where `automl` maps to AutoGluon; `autogluon` alias accepted)
- `--scenario` — `auto` (default), `hard-fraud`, `hard-readmission`, or `xhard-churn`
- `--dataset` — dataset path/ID (required unless scenario specifies source)
- `--label-col` — target column
- `--metric` — primary metric for quality scoring
- `--runs N` — repeats per mode for the selected scenario (default: 1)
- `--out-dir DIR` — report/artifact directory (default: `./reports/e2e-benchmark`)

Target: `$ARGUMENTS`

## Your responsibilities

### 1. Identify exactly one scenario

Determine one scenario before benchmarking:

- If `--scenario hard-fraud`, `--scenario hard-readmission`, or `--scenario xhard-churn` is passed, use it.
- Otherwise (`--scenario auto` or omitted), classify automatically using [references/scenarios.md](references/scenarios.md).
- You must select exactly one scenario: `hard-fraud`, `hard-readmission`, or `xhard-churn`.
- Never run more than one scenario in one invocation.

If classification is ambiguous, ask the user which scenario to run (or to pass `--dataset` with `--label-col`) instead of guessing.

### 2. Define benchmark matrix (single scenario)

Build only:

- Modes: requested subset of `no-plugin`, `plugin`, `automl` (AutoGluon)
- Scenario: the one selected in step 1

Generate the dataset from `demo/scenarios/<scenario>/generate_data.py` when no `--dataset` path is provided. The scenario generators live in the [agentic-ml-plugin repository](https://github.com/lawwu/agentic-ml-plugin) under `demo/scenarios/` and are **not** shipped with the installed plugin — if `demo/scenarios/` is not in the working directory, ask the user to clone the repository or pass `--dataset`. See [references/datasets.md](references/datasets.md) for generation commands and benchmark configuration.

Document any assumptions.

### 3. Apply mode-specific flow

Use [references/modes.md](references/modes.md) to run each mode consistently. All modes must attempt all 9 lifecycle stages in order. A NO-GO at any stage is recorded but does not halt the benchmark — continue to the next stage so every cell has full coverage.

For each stage, record:

- start/end timestamps
- decision: `GO | NO-GO | CONDITIONAL | SKIPPED`
- commands run
- failures/retries
- final model metrics
- artifact paths

### 4. Capture execution telemetry

For each mode run, capture and report:

- `loc_run`: lines of code executed by the agent/mode (sum of executed script/code lines; exclude blank/comment-only lines)
- `tokens_in`: prompt/input tokens consumed
- `tokens_out`: completion/output tokens generated
- `tokens_total`: `tokens_in + tokens_out`

If a metric is unavailable, set it to `unknown` and note the source gap in the run notes.

### 5. Enforce skill usage mapping

For each run, apply the required skill chain from [references/skill-matrix.md](references/skill-matrix.md) and record:

- expected skills
- actually used skills
- missing/extra skills

For `no-plugin` and `automl` (AutoGluon), expected skills must be empty. Any skill invocation in either mode is an audit violation and must be reported as `extra`.

### 6. Score each run

Score along four axes:

- quality (primary metric and regression checks)
- reliability (completion rate, failures, retries)
- efficiency (wall time, approximate cost/compute, and token footprint)
- operational readiness (reproducibility + artifact completeness)

Use a consistent 0-100 scale per axis, then compute a weighted total.

### 7. Produce benchmark report

Create:

- run-level logs
- matrix summary table
- mode ranking for the selected scenario
- recommendation: best default mode + fallback mode

Use [`bash "${CLAUDE_SKILL_DIR}/scripts/init-report.sh" <out-dir>`](scripts/init-report.sh) to initialize report files.

After writing `benchmark-report.json`, generate the HTML report:

```bash
uv run "${CLAUDE_SKILL_DIR}/scripts/generate_benchmark_report.py" <run-dir>
# → <run-dir>/benchmark-report.html
```

The HTML report is a self-contained scorecard with the results table, stage coverage matrix, skill audit, findings, and recommendation. Always generate it as the final step of the benchmark.

## Output format

```text
E2E Benchmark Report
====================
Matrix: <modes x 1 scenario>
Selected scenario: <hard-fraud|hard-readmission|xhard-churn> (detection: <auto|user-forced>)
Runs per cell: <N>
Primary metric: <metric>

Results:
| Mode   | Scenario      | Quality | Reliability | Efficiency | Ops Readiness | LOC Run | Tokens In | Tokens Out | Tokens Total | Total |
|-----------|---------------|---------|-------------|------------|---------------|---------|-----------|------------|--------------|-------|
| ...       | ...           | ...     | ...         | ...        | ...           | ...     | ...       | ...        | ...          | ...   |

Stage coverage:
| Stage | no-plugin | plugin | automl |
|---|---|---|---|
| 1. Target readiness | GO/NO-GO/SKIPPED | GO/NO-GO/SKIPPED | GO/NO-GO/SKIPPED |
| 2. Dataset quality | ... | ... | ... |
| 3. Non-ML baseline | ... | ... | ... |
| 4. Experiment plan | ... | ... | ... |
| 5. Data pipeline | ... | ... | ... |
| 6. Training stability | ... | ... | ... |
| 7. Evaluation quality | ... | ... | ... |
| 8. Interpretability/bias | ... | ... | ... |
| 9. Promotion decision | GO/NO-GO | GO/NO-GO | GO/NO-GO |

Skill usage audit:
- Expected vs actual skills per cell
- Missing critical skills (if any)

Recommendation:
- Default mode: <...> (why)
- Fallback mode: <...> (why)
```

## Stop conditions

Stop when:

- the selected scenario is identified and every requested mode cell for that one scenario has a scored result, or
- a blocking dependency is missing and explicitly reported with retry command.

### JSON artifact

Write `benchmark-report.json` to `--out-dir` (default: `./reports/e2e-benchmark`) following the schema in [../../references/schemas.md](../../references/schemas.md). Use vocabulary from [../../references/vocabulary.md](../../references/vocabulary.md).

`benchmark-e2e` is a meta-skill; set `decision` to `GO` when benchmark completes normally. Populate `results` with one entry per mode and `recommendation` with the ranked conclusions.

Then immediately generate the HTML report:

```bash
uv run "${CLAUDE_SKILL_DIR}/scripts/generate_benchmark_report.py" <run-dir>
```

Both `benchmark-report.json` and `benchmark-report.html` must be present for the benchmark to be considered complete.

## Additional resources

- [references/harnesses.md](references/harnesses.md) — agent harnesses and models (Claude Code, Codex, Gemini CLI)
- [references/modes.md](references/modes.md) — execution flow by mode (no-plugin, plugin, automl)
- [references/scenarios.md](references/scenarios.md) — scenario definitions and constraints
- [references/datasets.md](references/datasets.md) — benchmark dataset catalog and loading snippets
- [references/skill-matrix.md](references/skill-matrix.md) — required skills by mode/scenario
- [scripts/init-report.sh](scripts/init-report.sh) — benchmark report scaffold
- [scripts/generate_benchmark_report.py](scripts/generate_benchmark_report.py) — generate self-contained HTML scorecard from `benchmark-report.json`

Files in this skill

  • SKILL.md7.6 KB
  • references/datasets.md5 KB
  • references/harnesses.md2.5 KB
  • references/modes.md4.3 KB
  • references/scenarios.md7.2 KB
  • references/skill-matrix.md1.6 KB
  • scripts/generate_benchmark_report.py16.9 KB
  • scripts/init-report.sh1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.