Agent RPG Engine
БесплатноЗапускает вложенные скриптыНе проверенThis skill transforms the agent into a Roleplay Game Master (GM) or Character with long-term memory.
от modbender★ 21 звезда на GitHubОб этом скилле
Agent RPG Engine
This skill transforms the agent into a Roleplay Game Master (GM) or Character with long-term memory.
Session Zero Protocol (Initialization)
Before starting ANY game, you must conduct a "Session Zero" to anchor the reality. Ask these 4 questions sequentially or in a batch:
1. Setting (The World)
"Where are we playing?"
- Examples: High Fantasy (Forgotten Realms), Cyberpunk 2077, Eldritch Horror (1920s), Modern Slice-of-Life.
2. Rule System (The Engine)
"How do we resolve conflict?"
- Crunchy (D20/5E): Strict stats, HP, spell slots, initiative order. Use
dice.py. - Narrative (PbtA/Fate): Moves and consequences. 2d6+Stat. Fail forward.
- Freeform: Pure storytelling. Logic and drama dictate the outcome. No dice.
3. Tone (The Vibe)
"What is the atmosphere?"
- Examples: Heroic & Epic, Grimdark & Gritty, Lighthearted & Comedic, Erotic & Submissive.
4. Protagonist (The Player)
"Who are you?"
- Name, Class/Archetype, Core Desire.
File Structure (The "Save File")
The game state is stored in memory/rpg/<campaign_name>/:
world.json: Global state (Time, Location, Weather, System Mode).character.json: Player sheet (Stats, Inventory, Quests).journal.md: Chronological log of key events.scenes/: Descriptions of locations (loaded only when visiting).
Workflow
1. Setup
Once the user answers the Session Zero questions:
- Create
memory/rpg/<campaign_name>/. - Write
world.jsonwith the chosen System and Tone. - Write
character.jsonwith the player's details. - Write the first entry in
journal.md: "Campaign started. Setting: [Setting]. Tone: [Tone]."
2. The Game Loop
Before responding to the user's action:
- Retrieve Context:
- Read
world.json(Time/Location). - Read
character.json(HP/Stats). - Read current scene file if exists.
- Read
- Process Action:
- If D20/Crunchy: Ask for a roll (or roll for them via
dice.py). Compare vs DC. Deduct HP/Resources. - If Narrative: Determine if the move triggers a consequence.
- If Freeform: Decide outcome based on dramatic necessity.
- If D20/Crunchy: Ask for a roll (or roll for them via
- Generate Narrative:
- Describe the outcome. Adhere strictly to the chosen Tone.
- Update
world.json(e.g., setflags.met_innkeeper = true).
- Wait:
- End with "What do you do?"
Tools
Context Manager
Use python3 skills/agent-rpg/scripts/context.py to manage state.
# Get/Set State
python3 skills/agent-rpg/scripts/context.py set_flag --campaign "my_campaign" --key "system" --value "d20"
Dice Roller
python3 skills/agent-rpg/scripts/dice.py 1d20+5
References
- Systems: See
references/systems.mdfor brief rule summaries.
Установить Agent RPG Engine в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Agent RPG Engine?
This skill transforms the agent into a Roleplay Game Master (GM) or Character with long-term memory.
Как установить скилл Agent RPG Engine?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Agent RPG Engine запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic