mantle-migrating-from-calm
Migrates a CALM (flows-based) Rasa assistant to the Mantle engine: maps flows to skills, slots to memory, custom actions to tools, and identifies what has no…
от RasaHQ★ 45 звёзд на GitHub
Установить mantle-migrating-from-calm в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Migrating a CALM assistant to Mantle
Mantle is not a config translation — it's a different control model. CALM encodes behavior as explicit flow steps; Mantle encodes it as prose instructions plus targeted control levers. A mechanical 1:1 port of every flow step into an ordered block produces the worst of both worlds. Migrate intent, not structure.
Target the config shapes the other skills document: an agent.yml with an
agent: block carrying persona, and rules / prompts / session_config as
top-level siblings of it; a flat integrations.yml llm: block plus channels:;
memory.yml schema: with every written key declared; one tools.py per skill;
and the rasa train then rasa inspect loop. The engine is selected by project
layout, so there is no version key to set.
Migration workflow
- Inventory the source project: flows (
data/), slots + responses (domain.yml), custom actions (actions.py/ action server), pipeline customizations (config.yml), endpoints/credentials. - Group flows into skills. One skill per user goal. A CALM parent flow with
its
called child flows usually collapses into ONE skill — child flows become prose sections,@blocks, or sub-skills only if independently reusable. - Port tools first (from custom actions) — they're the most mechanical part and everything else references them.
- Rewrite each flow as prose in
skill.md: describe the goal and what to gather, not step numbering. Let the LLM own sequencing initially. - Re-add guarantees the old flow actually enforced using the control ladder
(see
mantle-building-skills): slot preconditions becomerequires:, branching becomes oneif:marker per case, confirmations become prose plus a confirmation memory key gated withrequires:, mandated wording becomes verbatimutter:responses, and genuinely order-critical sections become one ordered block. For an irreversible tool call,requires_confirmation:pluson_success:/on_failure:intool_constraintslets the engine pause and emit fixed outcome text instead of relying on prose. - Port config to
agent.yml+integrations.yml(seemantle-configuring-agent). - Test side by side: run the same conversations against the old bot and the
new agent (
rasa inspect); compare outcomes per the checklist inmantle-testing-debugging.
Mapping table
| CALM artifact | Mantle target | Effort |
|---|---|---|
| Flow (YAML steps) | Skill prose body; ordered block only for order-critical sections | Rewrite, not transform |
call step → child flow |
Same-skill prose section or @block.<block_id>; @skill.<skill_id> if reused across skills |
Judgment call |
link step |
@skill.<skill_id> reference, or plain orchestrator routing |
Small |
collect step |
Prose ("ask for X"); collect: step inside an ordered block if strict |
Small |
| Slot | Memory entry in memory.yml schema: — public if other skills read it, else private; categorical slots keep their values as enum_values |
Small |
| Slot validation action | run_after_setting_<memory_entry> tool in the same tools.py; return a non-null error to reject and roll back the write |
Small |
| Dynamic question generation | Prose ask, or instructions: + complete_when: on an ordered-block step |
Small |
utter_ response (must stay exact) |
responses.yml + utter: triggers |
Small |
utter_ response (tone only) |
Delete — prose instructions + persona cover it | Free |
| Custom action | @tool function in the skill's tools.py (import tool/ToolContext/ToolResult from rasa.calm_v2.tools.*, not rasa_sdk): tracker.get_slot → context.memory.get, SlotSet(...) → context.memory.set(...), dispatcher.utter_message → context.send or llm_response |
Medium — code updates + verification |
pattern_session_start |
The bundled default_session_start skill's utter_greet; redeclare it in your project responses.yml to change the wording |
Small |
| Rephraser prompt | agent.yml agent.persona |
Small |
credentials.yml, endpoints.yml model/LLM config |
integrations.yml (llm + channels) |
Small |
endpoints.yml Langfuse tracing: |
integrations.yml tracing: (type: langfuse) |
Small |
domain.yml |
Dissolves — slots→memory, responses→responses.yml/prose, actions→tools | Structural |
No migration path — flag these to the user, do not silently drop
| CALM artifact | Why it breaks | What to do |
|---|---|---|
Custom graph components (config.yml pipeline) |
The pipeline doesn't exist; one LLM loop replaced it | Identify the component's intent; check if a control lever or tool covers it; otherwise raise to the user |
| Custom command generators | The command-generation stage is gone | Usually subsumed by the orchestrator; verify the behaviors it enforced, re-add as levers |
| NLU pipeline tuning (intents, entities, regexes) | No NLU stage |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mantle-migrating-from-calm?
Migrates a CALM (flows-based) Rasa assistant to the Mantle engine: maps flows to skills, slots to memory, custom actions to tools, and identifies what has no migration path (custom components, command generators, NLU pipeline, rephraser customizations). Use when a project contains domain.yml/config.yml/flows and the goal is a Mantle agent.
Как установить скилл mantle-migrating-from-calm?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mantle-migrating-from-calm запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…