mantle-new-project
БесплатноБез исполняемых скриптовНе проверенScaffold a complete, working Rasa Mantle project from scratch. Use when the user wants a new Mantle/Rasa agent, a new bot project, or asks to "set up Rasa"…
от RasaHQ★ 45 звёзд на GitHubОб этом скилле
Scaffold a new Rasa Mantle project
Ask for (or infer): the agent's domain, a short persona name, and which channels it needs (text-only vs voice). Then create every file below — do not skip any; each absence is a lint finding or a runtime surprise.
1. pyproject.toml — the version facts are non-negotiable
[project]
name = "<project-slug>"
version = "0.1.0"
description = "<one line>"
readme = "README.md"
requires-python = ">=3.11,<3.13"
dependencies = [
"rasa-pro==3.21.0.dev5",
"python-dotenv>=1.0.0",
]
[tool.uv]
prerelease = "allow"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["lib"]
WHY, so you can defend it: the Mantle engine ships only on the
3.20.0.dev pre-release line — the newest stable rasa-pro contains no
engine package at all, so "latest stable" produces a project whose imports
fail. prerelease = "allow" is what lets uv resolve a dev pin. The
>=3.11 floor is required by 3.20; a lower floor fails uv lock with an
error about "versions not supported by your dependencies" that never
mentions Python.
If the project needs credentials beyond RASA_LICENSE and OPENAI_API_KEY
(e.g. GEMINI_API_KEY), also declare them:
[tool.rasa-catalog]
required-secrets = ["GEMINI_API_KEY"]
2. lib/engine.py — the only file that imports the engine directly
"""Engine imports, resolved in one place.
Rasa renamed the engine package to rasa.mantle in 3.20.0.dev1, with no alias
for the old name. Every tool imports from here, never from rasa.* directly,
so the next rename is a one-file change.
"""
from __future__ import annotations
from rasa.mantle.tools.decorator import ToolContext, tool
from rasa.mantle.tools.result import ToolResult
ENGINE_PACKAGE = "rasa.mantle"
__all__ = ["ENGINE_PACKAGE", "ToolContext", "ToolResult", "tool"]
Also create empty lib/__init__.py and tools/__init__.py.
3. agent.yml — prompt-tuning keys are TOP-LEVEL
agent:
id: <project-slug>
language: en
persona: |
You are <Name>, a concise assistant for <domain>.
Ask one question at a time and keep answers short.
Never invent facts — always use tools for data.
# TOP-LEVEL keys, siblings of `agent:`. Nested inside they parse without
# error and are silently discarded — the engine reads them only from the top
# level of this file.
name: <Name>
description: <one line, shown to the model>
rules:
- "Be polite, clear, and brief."
- "Never state data that did not come from a tool."
- "Activate a skill only when the request clearly matches it."
For a voice agent, set the engines on the channel in integrations.yml
(section 4), not in agent.yml. A nested agent.voice block is ignored by Rasa
Pro 3.21 and rejected by 3.22.
4. integrations.yml — llm is a model-group reference
# The orchestrator LLM is a model-group reference. Provider, model and
# credentials live on the named group, never inline under `llm:` — the
# inline form was removed in 3.20.0.dev6.
llm:
model_group: orchestrator
model_groups:
- id: orchestrator
models:
- provider: openai
model: gpt-4.1-mini
api_key: ${OPENAI_API_KEY}
temperature: 0.0
channels:
rest:
enabled: true
inspector:
enabled: true
# Voice agents only: the engines for this channel.
asr:
name: deepgram # or a dotted path to a custom engine class
tts:
name: deepgram
5. memory.yml — project memory is tool-written
# Project memory — facts that outlive a single skill. Readable and writable
# by EVERY skill. Keep it to facts about the end user and the session.
# NEVER put `llm_settable: true` here — the engine rejects it at the project
# level. LLM-settable fields belong in skills/<id>/memory.yml.
authenticated:
type: bool
# Whether the caller has proven their identity this session.
initial_value: false
Document a project field with a YAML comment, not description:. The model
cannot set project fields, so it never sees their description, and Rasa Pro
3.22 rejects one (mantle.validation.memory.description_not_exposed).
Skill-scoped llm_settable fields keep description:, because the model
reads it.
6. Skills — at least one real skill plus a greeting
Create skills/<skill_id>/skill.md using the mantle-skill-authoring
skill's grammar (frontmatter → prose → top-level if: branches). Put tools
only that skill uses in skills/<skill_id>/tools.py; shared tools in
tools/ and reference them with import_tools: in the frontmatter.
7. Credentials and hygiene
.env.example(committed): every key the project reads, values empty, one comment per key saying where to get it. Start with:# Rasa Pro licence (free Developer Edition, a long JWT, one line) RASA_LICENSE= # LLM for routing and conversation OPENAI_API_KEY=.gitignoremust contain:.env,.venv/, `
Установить mantle-new-project в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mantle-new-project?
Scaffold a complete, working Rasa Mantle project from scratch. Use when the user wants a new Mantle/Rasa agent, a new bot project, or asks to "set up Rasa". Produces every file with the catalog-pinned configuration shapes so the first validate passes.
Как установить скилл mantle-new-project?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mantle-new-project запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic