Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions plugins/rf-core/evals/tasks/narrow/narrow-run-digest-01.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
id: narrow-run-digest-01
skill: rf-run-digest
tier: narrow
description: |
Run a suite and report from `robotcode results summary --failed`. Gated by
a results.txt that holds the command's output.
prompt: |
Run tests/example.robot into results/, save the output of the robotcode
results summary --failed command to results/results.txt, then report the
pass and fail counts from it.
model: claude-haiku-5-5
max_turns: 14
timeout_seconds: 300
allowed_tools:
- Read
- Write
- Edit
- Bash
- Glob
- Grep
- Skill
grader_checks:
- type: file_contains
name: results_saved
path: results/results.txt
regex: '_Total:_ \d+'
fixture: sut-minimal
primary_metric: file_contains
28 changes: 28 additions & 0 deletions plugins/rf-core/evals/triggers/rf-run-digest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Trigger query set for rf-run-digest (format: eval/triggers/README.md).
# Tune descriptions on the train split only; never edit validation queries
# to make a description pass (rotate them only when the skill's intent changes).
skill: rf-run-digest
model: claude-haiku-5-5
runs: 3
threshold: 0.5
queries:
# should trigger (train)
- {id: rd-t01, split: train, should_trigger: true, query: "My robot run just finished with 80 failures, what went wrong?"}
- {id: rd-t02, split: train, should_trigger: true, query: "Summarize results/output.xml from the last Robot Framework run"}
- {id: rd-t03, split: train, should_trigger: true, note: "indirect", query: "log.html is huge, how do I see which robot tests failed and why?"}
- {id: rd-t04, split: train, should_trigger: true, note: "edit existing file", query: "Edit run_tests.sh so it prints the failed tests from output.xml after every robot call"}
- {id: rd-t05, split: train, should_trigger: true, note: "indirect", query: "The nightly robot job went red again, I just need the short story of what broke"}
# should trigger (validation)
- {id: rd-v01, split: validation, should_trigger: true, query: "Group the failures in this Robot output.xml by error message"}
- {id: rd-v02, split: validation, should_trigger: true, query: "Compare two Robot Framework runs and tell me which tests changed status"}
- {id: rd-v03, split: validation, should_trigger: true, query: "Show the failing keyword path for one test in my Robot output.xml"}
# should NOT trigger (train)
- {id: rd-n01, split: train, should_trigger: false, note: "sibling rf-setup", query: "Install robotframework-requests into our uv project"}
- {id: rd-n02, split: train, should_trigger: false, note: "sibling rf-language", query: "Add a suite teardown in an __init__.robot file"}
- {id: rd-n03, split: train, should_trigger: false, note: "sibling rf-requests", query: "Write a Robot test that GETs /health with RequestsLibrary and checks the 200"}
- {id: rd-n04, split: train, should_trigger: false, note: "non-RF look-alike", query: "Summarize the failures in this pytest run output"}
- {id: rd-n05, split: train, should_trigger: false, note: "sibling rf-browser", query: "Click the login button and wait for the dashboard in a Browser library test"}
# should NOT trigger (validation)
- {id: rd-nv01, split: validation, should_trigger: false, note: "non-RF look-alike", query: "Parse this JUnit XML report from pytest"}
- {id: rd-nv02, split: validation, should_trigger: false, note: "sibling rf-language", query: "Rename a keyword across my Robot suites and fix the callers"}
- {id: rd-nv03, split: validation, should_trigger: false, note: "non-RF look-alike", query: "Why did my GitHub Actions build fail on the npm install step?"}
46 changes: 46 additions & 0 deletions plugins/rf-core/skills/rf-run-digest/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: rf-run-digest
description: "Use after an RF run: read results with robotcode results, not output.xml."
license: Apache-2.0
compatibility: "Requires robotcode[all]>=2.8 (or robotcode[runner]) in the project environment for the results commands. No bundled scripts."
metadata:
author: ai94iq
---

# Robot Framework Run Digest Skill

## When to use

Load this skill after a `robot` or `pabot` run, before you look at its result. output.xml and log.html are large; reading or parsing them wastes time and hides the few failures that matter.

## The rule

Read results with `robotcode results`, not output.xml. Never write your own output.xml parser.

## Read a run

Without `-o`, each command finds the result file from the project's robot.toml profile (output.xml or output.json). Pass `-o <file or directory>` after the subcommand to name another one. `--format json` goes before `results`.

```bash
uv run robotcode results summary # headline status and counts
uv run robotcode results summary --failed # plus each failing test with its message
uv run robotcode results show --failed # failing tests, one line each
uv run robotcode results stats --by suite --by tag # counts per suite and tag
uv run robotcode results log -bl "<longname>" --level FAIL # keyword tree of one test
uv run robotcode results diff before.xml after.xml --only new-failures
```

Not using uv? Run the same commands with `.venv/bin/robotcode` or `poetry run robotcode`; see rf-setup.

Start with `summary --failed`. Open `log` for one named test only. Quote the summary counts and the failure messages when you report a run.

`--search TEXT` or `--search-regex PATTERN` narrows any command to tests whose names, messages, tags or log text match; `-i`/`-e` filter by tag and `-s`/`-t` by suite or test name. Filters run before counting, so `stats --by tag --search Timeout` counts only the matching tests.

`results` has no failure grouping. To group failures that differ only by ids or hosts, read `uv run robotcode --format json results summary --failed` and group the `failed[].message` values yourself. `results diff` always exits 0; read `newFailures` from its JSON to gate a build.

## Companion Skills

| Need | Skill |
|------|-------|
| Install Robot Framework or a library, fix the environment | `rf-setup` |
| Write tests, suites, user keywords, resources and variables in Robot Framework syntax | `rf-language` |
2 changes: 1 addition & 1 deletion tests/eval/test_arms.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,5 @@ def test_partial_task_stages_only_its_plugins(tmp_path: Path, fake_claude: Path)
repo_root=_REPO)
run = runner.execute(_task(tier="partial", stage=["rf-core"]), Profile.for_arm("treatment", out / "cfg"), out)
config = run.artifacts_dir / "claude_config"
assert sorted(p.name for p in (config / "skills").iterdir()) == ["rf-bdd", "rf-language", "rf-python-library", "rf-setup"]
assert sorted(p.name for p in (config / "skills").iterdir()) == ["rf-bdd", "rf-language", "rf-python-library", "rf-run-digest", "rf-setup"]
assert (config / "agents").is_dir()
2 changes: 1 addition & 1 deletion tests/eval/test_trigger_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def behaviour(task, profile, replicate): # type: ignore[no-untyped-def]
"--split", "validation", "--runs", "1", "--output", str(out),
"--baseline", str(tmp_path / "none.json")])
assert res.exit_code == 0, res.output
assert staged_dirs == {frozenset({"rf-language", "rf-bdd", "rf-setup", "rf-python-library", "rf-browser", "rf-selenium"})}
assert staged_dirs == {frozenset({"rf-language", "rf-bdd", "rf-setup", "rf-python-library", "rf-run-digest", "rf-browser", "rf-selenium"})}
data = json.loads((out / "trigger-results.json").read_text())
assert data["staged"] == ["rf-core", "rf-web"] and "rf-requests" not in data["staged_skills"]
partial = json.loads((out / "partial-install.json").read_text())
Expand Down
2 changes: 1 addition & 1 deletion tests/installer/test_plugin_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_plugins_flag_selects_plugins(two_plugin_bundle: Path, fake_home: Path,
prefix = tmp_path / "root"
assert main(["install", "--agent", "claude-code", "--prefix", str(prefix), "--yes",
"--plugins", "rf-core,rf-web,rf-example"]) == 0
assert _skills(prefix) == {"rf-language", "rf-bdd", "rf-setup", "rf-python-library", "rf-browser", "rf-selenium",
assert _skills(prefix) == {"rf-language", "rf-bdd", "rf-setup", "rf-python-library", "rf-run-digest", "rf-browser", "rf-selenium",
"rf-example"}


Expand Down
2 changes: 1 addition & 1 deletion tests/installer/test_split_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_narrowing_is_explicit(old_bundle: Path, fake_home: Path, tmp_path: Path
assert _install(project, "claude-code") == 0
capsys.readouterr()
assert _install(project, "claude-code", "--plugins", "rf-core,rf-web") == 0
assert _skills(project) == {"rf-language", "rf-bdd", "rf-setup", "rf-python-library", "rf-browser", "rf-selenium"}
assert _skills(project) == {"rf-language", "rf-bdd", "rf-setup", "rf-python-library", "rf-run-digest", "rf-browser", "rf-selenium"}
assert set(_record(project)) == {"rf-core", "rf-web"}
out = " ".join(capsys.readouterr().out.split())
assert "skills rf-appium, rf-platynui, rf-requests, rf-restinstance" in out
1 change: 1 addition & 0 deletions tests/test_skill_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
"rf-language": ("browser", "requests", "setup", "python-library", "bdd"),
"rf-python-library": ("language", "setup"),
"rf-bdd": ("language", "setup", "python-library"),
"rf-run-digest": ("setup", "language"),
}

THREE_COLUMN_HEADERS: dict[str, tuple[str, ...]] = {}
Expand Down
Loading