evaluate-presets
БесплатноБез исполняемых скриптовНе проверенEvaluate and audit Ralph's built-in presets: run the evaluation scripts, check hat routing, review a preset's design. Use after changing a preset, hat…
Об этом скилле
Evaluate presets
Two jobs: run the evaluation scripts against the builtin presets, and audit a preset's design. For launching, monitoring, and measuring a single loop, or comparing two presets on one task, follow skills/ralph-loop/references/headless-runs.md.
Run the evaluation scripts
./tools/evaluate-preset.sh <preset> [claude|kiro] # one preset (default backend: claude)
./tools/evaluate-all-presets.sh claude # every preset in its PRESETS list
- The presets evaluated, and each one's test task, expected iterations, and timeout, live in
tools/evaluate-all-presets.sh(PRESETS=) andtools/preset-test-tasks.yml. Read them there rather than from this file. - Runs take minutes to hours, so start them as background jobs and wait for the exit notification.
- Each run writes
.eval/logs/<preset>/<timestamp>/(output.log,session.jsonl,metrics.json,environment.json,merged-config.yml). The suite writes.eval/results/<suite-id>/SUMMARY.mdplus one JSON file per preset. - Exit codes:
0means the completion promise was reached.124means it timed out. Anything else is a failure; readoutput.log.
Done when every preset in the run has an exit code and a metrics.json, and each failure or timeout has a cause written next to it.
Check hat routing
Each hat should run in its own iteration with fresh context: one hat, one published event, then stop.
Pattern in session.jsonl / output.log |
Meaning |
|---|---|
| iterations ≈ events published | Routing works |
| iterations well below events | Several hats' work done in one iteration |
| iterations well above events | Hats ending without publishing; default_publishes or recovery is firing |
| 0 events | Events are not being read from the JSONL file |
grep -c "ITERATION" .eval/logs/<preset>/latest/output.log
grep -c "bus.publish" .eval/logs/<preset>/latest/session.jsonl
jq -r '.ts' .eval/logs/<preset>/latest/session.jsonl # identical stamps = same-iteration publishes
When routing is broken, look first at the prompt text in crates/ralph-core/src/hatless_ralph.rs: the Event Publishing Guide and the EVENT WRITING section tell a hat to publish one event and stop. Then check that the active hat's instructions and the ## PENDING EVENTS section reach the prompt.
Audit a preset's design
Apply every check in skills/ralph-hats/references/design.md to every hat in the preset. Built-in presets add two of their own:
- Tests assert protocol, not wording.
crates/ralph-cli/src/presets.rschecks events, triggers, paths, task keys, and commands, so a prompt rewrite doesn't break the tests. - Both copies stay in sync. Edit
presets/, then run./scripts/sync-embedded-files.sh, which mirrors tocrates/ralph-cli/presets/forinclude_str!.
Done when every hat has passed every check, or each miss is written down with its reason.
Fix what the evaluation finds
For each failure, create a code task (/code-task-generator, output to .ralph/tasks/preset-fixes/), implement it (/code-assist), then re-run ./tools/evaluate-preset.sh <preset>.
Prerequisites
- Cargo, to build Ralph.
yq(optional), to load test tasks from YAML.
Установить evaluate-presets в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл evaluate-presets?
Evaluate and audit Ralph's built-in presets: run the evaluation scripts, check hat routing, review a preset's design. Use after changing a preset, hat routing, or the core prompt.
Как установить скилл evaluate-presets?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл evaluate-presets запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic