mantle-simulating-evaluating
БесплатноБез исполняемых скриптовНе проверенProves a Mantle agent works using the engine's built-in simulation/evaluation framework: an LLM user-simulator plays the customer per scenario and an LLM…
от RasaHQ★ 45 звёзд на GitHubОб этом скилле
Simulating and evaluating a Mantle agent
rasa train proves the project is well-formed; it says nothing about whether the
agent behaves. This framework does: for each scenario, an LLM user-simulator
plays the customer turn by turn, and an LLM judge scores the resulting
conversation. It is how you turn "it worked when I tried it" into a repeatable suite.
You author scenarios as files under eval/ (portable, reviewable, version-
controlled). To run a suite against the agent you built, drive the Rasa MCP
server from your coding agent — see
https://rasa.com/docs/pro/testing/simulation-evaluation/. For engine
regression against the shared benchmarking agents, use make eval-mantle-agents.
eval/ layout
eval/
├── conftest.yml # the two LLMs: simulator + judge
└── scenarios/
└── *.yml # one scenario per file
conftest.yml configures the two models independently — the simulator that
generates user turns and the judge that scores them can be different providers or
models:
simulation:
llm: # drives the user simulator (generates user turns)
provider: openai
model: gpt-5.1
timeout: 30
evaluation:
llm: # the LLM judge (scores criteria + quality metrics)
provider: openai
model: gpt-5.1
timeout: 30
Optional jinja2 prompt overrides exist for teams that need to customise how the
simulated user talks or how the judge scores — simulation.simulated_user_prompt and
evaluation.criteria_judge_prompt / metrics_judge_prompt. Reach for them only when
the defaults genuinely don't fit.
Scenario anatomy
scenario:
name: Customer replaces a damaged card and completes the order
simulation_context: >
You are a calm, logged-in customer whose Riverbend Everyday card has a cracked
chip. Ask to replace it. When the agent asks what happened, say it is damaged.
Choose the Riverbend Everyday card. Accept a digital wallet if offered, choose
standard shipping, and confirm when the order summary is read back. Provide
details only when asked and do not bring up anything unrelated.
goals:
criteria:
- The agent does not claim the order is placed until it has actually submitted it
- The agent treats the reason as damaged and does not run a fraud review
assertions:
- flow_completed:
flow_id: card_replace__main
name— a one-line description of the scenario.simulation_context— one prose block carrying both persona (who the customer is, their temperament) and intent (what they'll ask, correct, refuse, and when to stop). Write it like stage directions: give the simulator enough to play the part and a clear end condition, but let it choose the words.setup.initial_slots(optional) — a{slot_name: value}map that seeds starting state (e.g. an already-logged-in customer) so a scenario doesn't have to replay setup turns. Supported by the scenario schema (values are type-checked against each slot's declared type); the packaged example scenarios simply don't use it.goals— the pass condition, split intocriteriaandassertions.
criteria vs assertions — the design decision
This is the choice you make for every goal:
criteriaare natural-language statements the LLM judge scores against the transcript. Use them for judged intent — "did the agent recognise the correction", "did it decline gracefully without fabricating a balance", "did it not restart the flow". They tolerate paraphrase and capture quality of handling.assertionsare deterministic checks evaluated against tracker events — binary, no LLM. Use them for facts that must be exactly true — "this flow completed", "this slot ended up with this value", "these things happened in order".
Rule of thumb: if a human reviewer would have to read and judge the conversation, it's a criterion; if it's a yes/no lookup against what happened, it's an assertion. Most scenarios want both — criteria for the behavior, one or two assertions to nail the non-negotiable facts.
Assertion vocabulary
Present in the reference scenarios:
assertions:
# a flow reached its end
- flow_completed:
flow_id: card_replace__main
- flow_started: card_replace__main # started (bare-string form)
- flow_cancelled:
flow_id: card_replace__main # user abandoned it
# a slot took a specific value (scope-qualified: project.<key> or <skill>.<key>)
- slot_was_set:
- name: card_replace.replacement_reason
value: stolen
# ordered checks — each child must occur, in this order
- sequencing:
- slot_was_set: project.selected_card_id # set once...
- slot_was_set: project.selected_card_id # ...then re-set (a correction)
The docs list more assertion types yo
Установить mantle-simulating-evaluating в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mantle-simulating-evaluating?
Proves a Mantle agent works using the engine's built-in simulation/evaluation framework: an LLM user-simulator plays the customer per scenario and an LLM judge scores the outcome against natural-language criteria and deterministic assertions. Use when validating an agent end to end, writing eval scenarios, or building a regression suite ("test my agent with simulations", "does it still pass", "evaluate these behaviors").
Как установить скилл mantle-simulating-evaluating?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mantle-simulating-evaluating запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic